GitHub PushEvent at 2014-09-06 21:07:29
Repository: kernel_htc_msm8974
Actor: task650
Payload: {"shas":[["804f543fa4da1bc50d65a9870483ee854473bdf6","b663de708df4f4c156ccd6bd367635cdae9afccc@gmail.com","Add kexec-hardboot changes for htc one m8\n\nImplement kexec-hardboot\n\n\"Allows hard booting (i.e., with a full hardware reboot) to a kernel\npreviously loaded in memory by kexec.  This works around the problem of\nsoft-booted kernel hangs due to improper device shutdown and/or\nreinitialization.\"\nMore info in /arch/arm/Kconfig.\n\nOriginal author: Mike Kasick <mike@kasick.org>\n\nVojtech Bocek <vbocek@gmail.com>:\n  I've ported it to hammerhead, it is based of my mako/grouper port, which is\n  based of Asus TF201 patch ported by Jens Andersen <jens.andersen@gmail.com>\n\n  Hammerhead is the first device I've ported this patch to which uses\n  device tree binary instead of atags. It is also rather picky - its\n  bootloader erases first 128MB of RAM on reboot, so following hacks had\n  to be applied:\n  * Copy dtb to location passed in r2 before jumping to kexecd' kernel,\n    the kernel would just freeze when I left dtb above 128MB of RAM.\n  * Copy kexecd' kernel to location in the first 128MB before jumping to it,\n    the decompressor operates very slowly if the kernel is above the cached\n    area, copying it lower and decompressing it afterwards is much faster.\n\n  Same as my mako/flo patches, the guest kernel does not require any\n  modifications, kexec-hardboot is equivalent to standard kexec.\n\n  To support dtb, following commit was backported from the mainline:\n    commit 4cabd1d9625c7d88acd143f4021fbef75394f154\n    Author: Matthew Leach <matthew.leach@arm.com>\n    Date:   Fri Sep 21 18:56:02 2012 +0100\n\n      ARM: 7539/1: kexec: scan for dtb magic in segments\n\n      This patch allows a dtb to be passed to a new kernel using the kexec\n      mechinism.\n\n      When loading segments from userspace, scan each segment's first four\n      bytes for the dtb magic. If this is found set the kexec_boot_atags\n      parameter to the relocate_kernel code to the phyical address of this\n      segment.\n\n  and fixes of this commit:\n    c564df4db85aac8d1d65a56176a0a25f46138064\n    2456f44dd7a9aaffc2cd21a13f78198b3d94da08\n\nayysir <dresadd09691@gmail.com>:\n  kexec: use mem_text_write_kernel_word to set reboot_code_buffer args\n  in order to avoid protection faults (writes to read-only\n  kernel memory) when CONFIG_STRICT_MEMORY_RWX is enabled.\n\nSigned-off-by: Vojtech Bocek <vbocek@gmail.com>\n\nConflicts:\n\tarch/arm/configs/hammerhead_defconfig\n\tarch/arm/include/asm/kexec.h\n\tarch/arm/kernel/machine_kexec.c\n\tarch/arm/mach-msm/include/mach/memory.h\n\tarch/arm/mach-msm/lge/devices_lge.c\n\tinclude/linux/kexec.h\n\nEnable kexec-hardboot\n\nAdd missing reserve functions and dtb flag","task650",true]],"size":1,"ref":"refs/heads/multirom","head":"804f543fa4da1bc50d65a9870483ee854473bdf6"}