Re: [PATCH 0/3 -mm] kexec jump -v8

2008-01-07 Thread Huang, Ying
kernel. So why not change the information between two kernel via setup page directly (need not purgatory). Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

[PATCH -mm] x86 boot : export boot_params via debugfs for debugging

2008-01-07 Thread Huang, Ying
. This patch is based on the Peter Anvin's proposal. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/Kconfig.debug |7 arch/x86/kernel/Makefile_32 |3 +- arch/x86/kernel/Makefile_64 |2 - arch/x86/kernel/kdebugfs.c | 65 arch

[PATCH -mm 0/2] kexec/i386: kexec page table code clean up

2008-01-08 Thread Huang, Ying
This patchset cleans up page table setup code of kexec on i386. This patchset is based on 2.6.24-rc5-mm1 and has been tested on i386 with/without PAE enabled. Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

[PATCH -mm 1/2] kexec/i386: kexec page table code clean up - add arch_kimage

2008-01-08 Thread Huang, Ying
memory when kexec image is not loaded. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/machine_kexec_32.c | 68 + include/asm-x86/kexec_32.h | 12 ++ include/linux/kexec.h |4 ++ 3 files changed, 63 insertions

[PATCH -mm 2/2] kexec/i386: kexec page table code clean up - page table setup in C

2008-01-08 Thread Huang, Ying
This patch transforms the kexec page tables setup code from assembler code to C code in machine_kexec_prepare. This improves readability and reduces code line number. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/machine_kexec_32.c | 50 +++ arch/x86/kernel

Re: [PATCH -mm 1/2] kexec/i386: kexec page table code clean up - add arch_kimage

2008-01-09 Thread Huang, Ying
in alloc_page_tables() itself and following will look neater. OK, I will change it. Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: [PATCH -mm 2/2] kexec/i386: kexec page table code clean up - page table setup in C

2008-01-09 Thread Huang, Ying
On Wed, 2008-01-09 at 20:05 -0500, Vivek Goyal wrote: On Wed, Jan 09, 2008 at 10:57:50AM +0800, Huang, Ying wrote: This patch transforms the kexec page tables setup code from asseumbler code to iC code in machine_kexec_prepare. This improves readability and reduces code line number. I

[PATCH -mm 2/3] i386 boot: replace boot_ioremap with enhanced bt_ioremap - remove boot_ioremap

2008-01-14 Thread Huang, Ying
This patch replaces boot_ioremap invokation with bt_ioremap and removes the boot_ioremap implementation. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/Kconfig |4 - arch/x86/kernel/srat_32.c |8 +-- arch/x86/mm/Makefile_32 |1 arch/x86/mm

[PATCH -mm 0/3] i386 boot: replace boot_ioremap with enhanced bt_ioremap

2008-01-14 Thread Huang, Ying
-split-efi-tables-parsing-code-from-efi-runtime-service-support-code.patch. It has been tested on i386 with PAE on/off. Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http

[PATCH -mm 1/3] i386 boot: replace boot_ioremap with enhanced bt_ioremap - enhance bt_ioremap

2008-01-14 Thread Huang, Ying
This patch makes bt_ioremap can be used before paging_init via providing an early implementation of set_fixmap that can be used before paging_init. This makes boot_ioremap can be replaced by bt_ioremap. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/setup_32.c |1 arch/x86

[PATCH -mm 3/3] i386 boot: replace boot_ioremap with enhanced bt_ioremap - rename bt_ioremap to early_ioremap

2008-01-14 Thread Huang, Ying
This patch renames bt_ioremap to early_ioremap, which is used in x86_64. This makes it easier to merge i386 and x86_64 usage. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/efi.c| 16 arch/x86/kernel/efi_32.c |2 +- arch/x86/kernel

[PATCH -mm 1/2 -v2] kexec/i386: kexec page table code clean up - add arch_kimage

2008-01-14 Thread Huang, Ying
memory when kexec image is not loaded. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/machine_kexec_32.c | 70 + include/asm-x86/kexec_32.h | 12 ++ include/linux/kexec.h |4 ++ 3 files changed, 64 insertions

[PATCH -mm 0/2 -v2] kexec/i386: kexec page table code clean up

2008-01-14 Thread Huang, Ying
for machine_alloc_page_tables. Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH -mm 2/2 -v2] kexec/i386: kexec page table code clean up - page table setup in C

2008-01-14 Thread Huang, Ying
This patch transforms the kexec page tables setup code from assembler code to C code in machine_kexec_prepare. This improves readability and reduces code line number. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/machine_kexec_32.c | 59 ++ arch/x86/kernel

Re: [PATCH -mm 0/3] i386 boot: replace boot_ioremap with enhanced bt_ioremap

2008-01-15 Thread Huang, Ying
On Tue, 2008-01-15 at 09:44 +0100, Ingo Molnar wrote: * Huang, Ying [EMAIL PROTECTED] wrote: This patchset replaces boot_ioremap with a enhanced version of bt_ioremap and renames the bt_ioremap to early_ioremap. This reduces 12k from .init.data segment and increases the size of memory

Re: [BUGFIX] x86_64: NX bit handling in change_page_attr

2007-09-12 Thread Huang, Ying
the change as you said. Anyways; it's really not very important. It is needed by EFI runtime service supporting. Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http

[RFC -mm 1/2] i386/x86_64 boot: setup data

2007-09-17 Thread Huang, Ying
This patch add a field of 64-bit physical pointer to NULL terminated single linked list of struct setup_data to real-mode kernel header. This is used to define a more extensible boot parameters passing mechanism. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/i386/Kconfig

[RFC -mm 2/2] i386/x86_64 boot: document for 32 bit boot protocol

2007-09-17 Thread Huang, Ying
This patch defines a 32-bit boot protocol and adds corresponding document. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- boot.txt | 105 ++- 1 file changed, 104 insertions(+), 1 deletion(-) Index: linux-2.6.23-rc4/Documentation

[RFC -mm 0/2] i386/x86_64 boot: 32-bit boot protocol

2007-09-17 Thread Huang, Ying
will overwrite some pages from 0x1000 on. EFI64 runtime service is the first user of 32-bit boot protocol and boot parameters passing mechanism. To demonstrate their usage, the EFI64 runtime service patch is also appended with the mail. Best Regards, Huang Ying --- Documentation/i386/boot.txt

Re: [RFC -mm 0/2] i386/x86_64 boot: 32-bit boot protocol

2007-09-17 Thread Huang, Ying
On Mon, 2007-09-17 at 10:40 +0200, Andi Kleen wrote: On Monday 17 September 2007 10:26:12 Huang, Ying wrote: For machine with some new BIOS other than legacy BIOS, such as EFI, LinuxBIOS, etc, and kexec, the 16-bit real mode setup code in kernel based on legacy BIOS can not be used, so a 32

Re: [RFC -mm 1/2] i386/x86_64 boot: setup data

2007-09-17 Thread Huang, Ying
On Mon, 2007-09-17 at 08:30 -0700, H. Peter Anvin wrote: Huang, Ying wrote: This patch add a field of 64-bit physical pointer to NULL terminated single linked list of struct setup_data to real-mode kernel header. This is used to define a more extensible boot parameters passing mechanism

Re: [RFC -mm 2/2] i386/x86_64 boot: document for 32 bit boot protocol

2007-09-17 Thread Huang, Ying
On Mon, 2007-09-17 at 08:29 -0700, H. Peter Anvin wrote: Huang, Ying wrote: This patch defines a 32-bit boot protocol and adds corresponding document. + +In addition to read/modify/write kernel header of the zero page as +that of 16-bit boot protocol, the boot loader should fill

Re: [RFC -mm 2/2] i386/x86_64 boot: document for 32 bit boot protocol

2007-09-17 Thread Huang, Ying
On Mon, 2007-09-17 at 18:48 -0700, H. Peter Anvin wrote: Huang, Ying wrote: OK, I will check the actual structure, and change the document accordingly. The best would probably be to fix zero-page.txt (and probably rename it something saner.) Does the patch appended with the mail

[PATCH -mm -v2 1/2] i386/x86_64 boot: setup data

2007-09-18 Thread Huang, Ying
by kernel during booting up. The i386 kernel will overwrite some pages after _end. The x86_64 kernel will overwrite some pages from 0x1000 on. ChangeLog: -- v2 -- - Increase the boot protocol version number. - Check version number before parsing setup_data. Signed-off-by: Huang Ying [EMAIL

[PATCH -mm -v2 2/2] i386/x86_64 boot: document for 32 bit boot protocol

2007-09-18 Thread Huang, Ying
description according to the source code and move them to zero-page.txt. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- boot.txt | 70 +++ zero-page.txt | 127 -- 2 files changed, 97 insertions(+), 100

Re: [PATCH -mm -v2 2/2] i386/x86_64 boot: document for 32 bit boot protocol

2007-09-18 Thread Huang, Ying
On Tue, 2007-09-18 at 22:30 -0700, H. Peter Anvin wrote: Huang, Ying wrote: Known issues: - The hd0_info and hd1_info are deleted from the zero page. Additional work should be done for this? Or this is unnecessary (because no new fields will be added to zero page

[PATCH -mm -v3 1/2] i386/x86_64 boot: setup data

2007-09-19 Thread Huang, Ying
by kernel during booting up. The i386 kernel will overwrite some pages after _end. The x86_64 kernel will overwrite some pages from 0x1000 on. ChangeLog: -- v2 -- - Increase the boot protocol version number. - Check version number before parsing setup_data. Signed-off-by: Huang Ying [EMAIL

[PATCH -mm -v3 2/2] i386/x86_64 boot: document for 32 bit boot protocol

2007-09-19 Thread Huang, Ying
the primary data type? Or is it sufficient to provide the C struct name only? ChangeLog: -- v3 -- - Move hd0_info and hd1_info back to zero page for compatibility. -- v2 -- - Revise zero page description according to the source code and move them to zero-page.txt. Signed-off-by: Huang Ying [EMAIL

[RFC][PATCH 0/2 -mm] kexec based hibernation -v3

2007-09-19 Thread Huang, Ying
] 11. In restore kernel (kernel C), the memory image of kernel A can be restored as follow: cp kexec_jump_back_entry /sys/kernel/kexec_jump_back_entry krestore vmcore 12. Jump back to hibernated kernel (kernel A) kexec -b Best Regards, Huang Ying - To unsubscribe from this list

[RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump

2007-09-19 Thread Huang, Ying
and jump back to original kernel. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- Documentation/i386/jump_back_protocol.txt | 81 arch/i386/Kconfig |7 + arch/i386/boot/header.S |2 arch/i386/kernel/machine_kexec.c

[RFC][PATCH 2/2 -mm] kexec based hibernation -v3: kexec restore

2007-09-19 Thread Huang, Ying
This patch adds writing support for /dev/oldmem. This is used to restore the memory contents of hibernated system. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/i386/kernel/crash_dump.c | 27 +++ drivers/char/mem.c| 32

Re: [RFC][PATCH 2/2 -mm] kexec based hibernation -v3: kexec restore

2007-09-20 Thread Huang, Ying
On Thu, 2007-09-20 at 10:15 +0200, Pavel Machek wrote: This patch adds writing support for /dev/oldmem. This is used to restore the memory contents of hibernated system. Signed-off-by: Huang Ying [EMAIL PROTECTED] ACK. (And this can even go in before the patch #1, right?) Yes

Could you please merge the x86_64 EFI boot support patchset?

2007-11-11 Thread Huang, Ying
for this patchset to be merged into 2.6.24. But this patchset is very simple, just adds a framebuffer driver, so it is impossible for this patchset to break anything. And this patchset will be helpful for people have machine with UEFI 64 firmware instead of legacy BIOS. Best Regards, Huang Ying

[PATCH 1/3 -mm] kexec based hibernation -v6: kexec jump

2007-11-18 Thread Huang, Ying
executing. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- Documentation/i386/jump_back_protocol.txt | 103 ++ arch/powerpc/kernel/machine_kexec.c |2 arch/ppc/kernel/machine_kexec.c |2 arch/sh/kernel/machine_kexec.c|2 arch/x86/kernel

[PATCH 3/3 -mm] kexec based hibernation -v6: kexec hibernate/resume

2007-11-18 Thread Huang, Ying
This patch implements kexec based hibernate/resume. This is based on the facility provided by kexec_jump. The ACPI methods are called at specified environment to conform the ACPI specification. Two new reboot commands are added to trigger hibernate/resume. Signed-off-by: Huang Ying [EMAIL

[PATCH 2/3 -mm] kexec based hibernation -v6: kexec restore

2007-11-18 Thread Huang, Ying
This patch adds writing support for /dev/oldmem. This is used to restore the memory contents of hibernated system. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/crash_dump_32.c | 27 +++ drivers/char/mem.c | 32

[PATCH 0/3 -mm] kexec based hibernation -v6

2007-11-18 Thread Huang, Ying
kexec a new kernel and jump back to original kernel. Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http

Re: [PATCH -mm -v3] x86 boot : export boot_params via sysfs

2007-12-17 Thread Huang, Ying
edid_info? e820_entries and e820_map? maybe useful for kdump edd related fields (eddbuf, edd_mbr_sig_buffer, etc)? split fields until fundamental types? Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-18 Thread Huang, Ying
On Tue, 2007-12-11 at 02:27 -0700, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: On Mon, 2007-12-10 at 19:25 -0700, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: [...] /* * Do not allocate memory (or fail in any way) in machine_kexec(). * We

[PATCH 0/3 -mm] kexec jump -v8

2007-12-20 Thread Huang, Ying
state save/restore code of software suspend is called when needed. - The same code path is used for both kexec a new kernel and jump back to original kernel. Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL

[PATCH 2/3 -mm] kexec jump -v8 : add write support to oldmem device

2007-12-20 Thread Huang, Ying
This patch adds writing support for /dev/oldmem. This can be used to - Communicate between original kernel and kexeced kernel through write to some pages in original kernel. - Restore the memory contents of hibernated system in kexec based hibernation. Signed-off-by: Huang Ying [EMAIL

[PATCH 1/3 -mm] kexec jump -v8 : kexec jump basic

2007-12-20 Thread Huang, Ying
provided by this patch can be used to call ordinary C function in physical mode. A flag named KEXEC_PRESERVE_CONTEXT for sys_kexec_load is added to indicate that the loaded kernel image is used for jumping back. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- Documentation/i386/jump_back_protocol.txt

[PATCH 3/3 -mm] kexec jump -v8 : access memory image of kexec_image

2007-12-20 Thread Huang, Ying
, jump to the point where you leave last time in kexeced kernel. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- fs/proc/Makefile |1 fs/proc/kimgcore.c| 277 ++ fs/proc/proc_misc.c |6 + include/linux/kexec.h |7 + kernel

Re: [PATCH 0/3 -mm] kexec jump -v8

2007-12-21 Thread Huang, Ying
On Fri, 2007-12-21 at 19:35 +1100, Nigel Cunningham wrote: Hi. Huang, Ying wrote: This patchset provides an enhancement to kexec/kdump. It implements the following features: - Backup/restore memory used both by the original kernel and the kexeced kernel. Why the kexeced kernel

Re: [PATCH 2/3 -mm] kexec jump -v8 : add write support to oldmem device

2007-12-21 Thread huang ying
of hibernated system in kexec based hibernation. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- a/arch/x86/kernel/crash_dump_32.c +++ b/arch/x86/kernel/crash_dump_32.c +ssize_t write_oldmem_page(unsigned long pfn, const char *buf, + size_t csize, unsigned long offset

[PATCH -mm] x86_64 EFI runtime service support : Calling convention fix (resend, cc LKML)

2007-12-05 Thread Huang, Ying
in CR0 in clear/restore to make it possible to use SSE2 in EFI runtime service. This patch is based on 2.6.24-rc4-mm1. And it has been tested on Intel platforms with 64-bit UEFI 2.0 firmware. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/efi_stub_64.S | 71

[PATCH 4/4 -mm] kexec based hibernation -v7 : kimgcore

2007-12-06 Thread Huang, Ying
-off-by: Huang Ying [EMAIL PROTECTED] --- fs/proc/Makefile |1 fs/proc/kimgcore.c| 204 ++ fs/proc/proc_misc.c |5 + include/linux/kexec.h |7 + kernel/kexec.c|5 - 5 files changed, 217 insertions(+), 5 deletions

[PATCH 2/4 -mm] kexec based hibernation -v7 : kexec restore

2007-12-06 Thread Huang, Ying
This patch adds writing support for /dev/oldmem. This is used to restore the memory contents of hibernated system. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/crash_dump_32.c | 27 +++ drivers/char/mem.c | 32

[PATCH 0/4 -mm] kexec based hibernation -v7

2007-12-06 Thread Huang, Ying
instead of software suspend framework. The device and CPU state save/restore code of software suspend is called when needed. - The same code path is used for both kexec a new kernel and jump back to original kernel. Best Regards, Huang Ying -- To unsubscribe from this list: send the line

[PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-06 Thread Huang, Ying
code executing. The states (exclude CPU state) save/restore code can be overridden based on the command parameter of kexec jump. Because more states need to be saved/restored by hibernating/resuming. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- Documentation/i386/jump_back_protocol.txt | 103

[PATCH 3/4 -mm] kexec based hibernation -v7 : kexec hibernate/resume

2007-12-06 Thread Huang, Ying
. A new reboot command is added to go to ACPI S4 state from user space. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- include/linux/kexec.h |4 include/linux/reboot.h |1 include/linux/suspend.h |1 kernel/power/disk.c | 244

Re: [PATCH 4/4 -mm] kexec based hibernation -v7 : kimgcore

2007-12-07 Thread huang ying
On Dec 7, 2007 8:33 PM, Rafael J. Wysocki [EMAIL PROTECTED] wrote: On Friday, 7 of December 2007, Huang, Ying wrote: This patch adds a file in proc file system to access the loaded kexec_image, which may contains the memory image of kexeced system. This can be used by kexec based

Re: [PATCH 3/4 -mm] kexec based hibernation -v7 : kexec hibernate/resume

2007-12-07 Thread huang ying
On Dec 7, 2007 8:52 PM, Rafael J. Wysocki [EMAIL PROTECTED] wrote: On Friday, 7 of December 2007, Huang, Ying wrote: This patch implements kexec based hibernate/resume. This is based on the facility provided by kexec_jump. The states save/restore code of ordinary kexec_jump is overridden

Re: [PATCH 3/3 -mm] kexec based hibernation -v6: kexec hibernate/resume

2007-11-19 Thread Huang, Ying
://www.sisk.pl/kernel/hibernation_and_suspend/2.6.24-rc2/patches/ (patches 10-12). Please base your changes on top of that. OK, I will do it. Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info

Re: [PATCH 3/3 -mm] kexec based hibernation -v6: kexec hibernate/resume

2007-11-19 Thread Huang, Ying
On Tue, 2007-11-20 at 03:24 +0100, Rafael J. Wysocki wrote: On Tuesday, 20 of November 2007, Huang, Ying wrote: On Mon, 2007-11-19 at 19:22 +0100, Rafael J. Wysocki wrote: +#ifdef CONFIG_KEXEC +static void kexec_hibernate_power_down(void) +{ + switch (hibernation_mode

Re: [PATCH 3/3 -mm] kexec based hibernation -v6: kexec hibernate/resume

2007-11-21 Thread Huang, Ying
On Wed, 2007-11-21 at 01:00 +0100, Rafael J. Wysocki wrote: On Tuesday, 20 of November 2007, Huang, Ying wrote: On Tue, 2007-11-20 at 03:24 +0100, Rafael J. Wysocki wrote: On Tuesday, 20 of November 2007, Huang, Ying wrote: On Mon, 2007-11-19 at 19:22 +0100, Rafael J. Wysocki wrote

[PATCH -mm 3/4 -v6] x86_64 EFI runtime service support: document for EFI runtime services

2007-11-26 Thread Huang, Ying
This patch adds document for EFI x86_64 runtime services support. Signed-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] --- Documentation/x86_64/boot-options.txt |9 - Documentation/x86_64/uefi.txt |9 + 2 files

[PATCH -mm 0/4 -v6] x86_64 EFI runtime service support

2007-11-26 Thread Huang, Ying
. Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

[PATCH -mm 1/4 -v6] x86_64 EFI runtime service support: EFI basic runtime service support

2007-11-26 Thread Huang, Ying
and efi_64.c is placed in efi.c to remove them from efi_32.c. Signed-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/Kconfig |2 arch/x86/kernel/Makefile_64 |1 arch/x86/kernel/efi.c | 484

[PATCH -mm 2/4 -v6] x86_64 EFI runtime service support: EFI runtime services

2007-11-26 Thread Huang, Ying
This patch adds support for several EFI runtime services for EFI x86_64 system. The EFI support for emergency_restart is added. Signed-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/reboot_64.c | 20

[PATCH -mm 4/4 -v6] x86_64 EFI runtime service support: remove duplicated code from efi_32.c

2007-11-26 Thread Huang, Ying
This patch removes the duplicated code between efi_32.c and efi.c. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/Makefile_32 |2 arch/x86/kernel/e820_32.c |5 arch/x86/kernel/efi_32.c| 430 arch/x86/kernel/setup_32

Re: [PATCH -mm 1/4 -v6] x86_64 EFI runtime service support: EFI basic runtime service support

2007-11-27 Thread Huang, Ying
); + + if (status != EFI_SUCCESS) { + printk(KERN_ALERT You are screwed! This came over when you copied the original file. This patchset would be a decent opportunity to de-stupid these messages. Frankly. I will do it. And I will recheck all messages. Best Regards, Huang Ying

[PATCH -mm] x86_64 EFI runtime service support: EFI basic runtime service support fixes

2007-11-28 Thread Huang, Ying
messages. - Turn on debug by default. - Remove unnecessary memset of static variable. This patch has been tested against 2.6.24-rc3-mm1 kernel on Intel platforms with 64-bit EFI1.10 and UEFI2.0 firmware. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/efi.c| 24

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Huang, Ying
On Mon, 2007-12-10 at 14:55 -0500, Vivek Goyal wrote: On Fri, Dec 07, 2007 at 03:53:30PM +, Huang, Ying wrote: This patch implements the functionality of jumping between the kexeced kernel and the original kernel. Hi, I am just going through your patches and trying to understand

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Huang, Ying
such as KEXEC_PRESERVE_CONTEXT now, and create the others required flags when really needed. Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-10 Thread Huang, Ying
On Mon, 2007-12-10 at 19:25 -0700, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: [...] /* * Do not allocate memory (or fail in any way) in machine_kexec(). * We are past the point of no return, committed to rebooting now. */ -NORET_TYPE void machine_kexec(struct

[PATCH -mm] x86 boot : Use E820 memory map on EFI 32 platform

2007-12-11 Thread Huang, Ying
Because the EFI memory map are converted to e820 memory map in bootloader, the EFI memory map handling code is removed to clean up. This patch is based on 2.6.24-rc4-mm1 and has been tested on Intel 32-bit platform with EFI 32 and UEFI 32 firmware. Signed-off-by: Huang Ying [EMAIL PROTECTED

[PATCH -mm] x86 boot : export boot_params via sysfs

2007-12-11 Thread Huang, Ying
been tested on i386 and x86_64 platoform. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/Makefile_32 |1 arch/x86/kernel/Makefile_64 |1 arch/x86/kernel/ksysfs.c| 94 arch/x86/kernel/setup64.c |2 arch/x86/kernel

Re: [PATCH 1/4 -mm] kexec based hibernation -v7 : kexec jump

2007-12-11 Thread Huang, Ying
On Tue, 2007-12-11 at 02:27 -0700, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: On Mon, 2007-12-10 at 19:25 -0700, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: [...] /* * Do not allocate memory (or fail in any way) in machine_kexec(). * We

[PATCH -mm -v2] x86 boot : export boot_params via sysfs

2007-12-12 Thread Huang, Ying
been tested on i386 and x86_64 platoform. This patch is based on the Peter Anvin's proposal. v2: - Add document in Document/ABI. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- Documentation/ABI/testing/sysfs-kernel-boot_params | 14 +++ arch/x86/kernel/Makefile_32

[PATCH -mm] i386 EFI runtime service support : fixes in sync with x86_64 support

2007-12-13 Thread Huang, Ying
up includes. - Revise Kconfig description. - Enable noefi kernel parameter on i386. This patch has been tested against 2.6.24-rc5-mm1 kernel on Intel platforms with 32-bit EFI1.10 and UEFI2.0 firmware. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- Documentation/kernel-parameters.txt

[PATCH -mm -v3] x86 boot : export boot_params via sysfs

2007-12-14 Thread Huang, Ying
been tested on i386 and x86_64 platoform. This patch is based on the Peter Anvin's proposal. v3: - Use updated API: kobject_create_and_add. v2: - Add document in Document/ABI. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- Documentation/ABI/testing/sysfs-kernel-boot_params | 14 +++ arch

Re: [PATCH 0/3 -mm] kexec jump -v8

2007-12-26 Thread Huang, Ying
to provide a struct kimage (including control page, swap page) and entry point to jump back. Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 0/3 -mm] kexec jump -v8

2007-12-27 Thread Huang, Ying
On Thu, 2007-12-27 at 13:12 -0500, Vivek Goyal wrote: On Thu, Dec 27, 2007 at 10:33:13AM +0800, Huang, Ying wrote: On Wed, 2007-12-26 at 20:57 -0500, Vivek Goyal wrote: [...] 9. Now, you are in the original kernel again. You can read/write the memory image of kexeced kernel via

Re: [PATCH 0/3 -mm] kexec jump -v8

2007-12-28 Thread Huang, Ying
On Fri, 2007-12-28 at 16:33 -0500, Vivek Goyal wrote: On Fri, Dec 21, 2007 at 03:33:19PM +0800, Huang, Ying wrote: This patchset provides an enhancement to kexec/kdump. It implements the following features: - Backup/restore memory used both by the original kernel and the kexeced

[PATCH -mm] EFI : Split EFI tables parsing code from EFI runtime service support code

2007-12-28 Thread Huang, Ying
on EFI 64 Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/ia64/kernel/acpi.c |6 - arch/ia64/kernel/efi.c | 30 arch/ia64/kernel/setup.c |2 arch/ia64/sn/kernel/setup.c |4 - arch/x86/Kconfig |4 - arch/x86/kernel/Makefile_32 |3

Re: [PATCH -mm] EFI : Split EFI tables parsing code from EFI runtime service support code

2008-01-02 Thread Huang, Ying
On Sun, 2007-12-30 at 15:28 +0100, Ingo Molnar wrote: * Huang, Ying [EMAIL PROTECTED] wrote: +struct efi_tables efi_tables; +EXPORT_SYMBOL(efi_tables); +enum bios_type bios_type = BIOS_LEGACY; +EXPORT_SYMBOL(bios_type); please make all the new exports EXPORT_SYMBOL_GPL(). OK, I

Re: [PATCH 0/3 -mm] kexec jump -v8

2008-01-03 Thread Huang, Ying
jump or resuming. I think a kernel-to-kernel mechanism may be needed. But I don't know if Eric Biederman will agree with this. Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http

[PATCH -mm -v2] EFI : Split EFI tables parsing code from EFI runtime service support code

2008-01-03 Thread Huang, Ying
on EFI 64 ChangeLog v2: - Change EXPORT_SYMBOL to EXPORT_SYMBOL_GPL. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/ia64/kernel/acpi.c |6 - arch/ia64/kernel/efi.c | 30 arch/ia64/kernel/setup.c |2 arch/ia64/sn/kernel/setup.c |4 - arch/x86

[PATCH 1/3 -v4] x86_64 EFI runtime service support: EFI basic runtime service support

2007-10-25 Thread Huang, Ying
[EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/Makefile_64 |1 arch/x86/kernel/efi_64.c | 593 ++ arch/x86/kernel/efi_callwrap_64.S | 69 arch/x86/kernel/setup_64.c| 15 arch/x86_64/Kconfig

[PATCH 2/3 -v4] x86_64 EFI runtime service support: EFI runtime services

2007-10-25 Thread Huang, Ying
-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/reboot_64.c | 19 +- arch/x86/kernel/time_64.c | 48 include/asm-x86/emergency-restart.h |8 ++ include

[PATCH 3/3 -v4] x86_64 EFI runtime service support: document for EFI runtime services

2007-10-25 Thread Huang, Ying
This patch adds document for EFI x86_64 runtime services support. --- boot-options.txt | 12 +++- uefi.txt | 10 ++ 2 files changed, 21 insertions(+), 1 deletion(-) Signed-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED

[PATCH 0/3 -v4] x86_64 EFI runtime service support

2007-10-25 Thread Huang, Ying
based implementation. v2: - The EFI callwrapper is re-implemented in assembler. Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: [PATCH 1/3 -v4] x86_64 EFI runtime service support: EFI basic runtime service support

2007-10-25 Thread Huang, Ying
(the NDISwrapper?) in the future. Do you agree? Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org

Re: [PATCH 1/3 -v4] x86_64 EFI runtime service support: EFI basic runtime service support

2007-10-25 Thread Huang, Ying
of EFI from kernel bootstrap on. Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [PATCH 1/3 -v4] x86_64 EFI runtime service support: EFI basic runtime service support

2007-10-25 Thread Huang, Ying
) is provided in drivers/firmware/efivars.c, which depends on this patchset to work. Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please

Re: [PATCH 1/3 -v4] x86_64 EFI runtime service support: EFI basic runtime service support

2007-10-25 Thread Huang, Ying
kernel command line parameter now. If it is desired, it can be disabled by default, and only enabled if specified in kernel command line parameter. I think the time runtime service may be useful if the underlying hardware is changed silently by some vendor. Best Regards, Huang Ying - To unsubscribe

Re: [PATCH 1/3 -v4] x86_64 EFI runtime service support: EFI basic runtime service support

2007-10-25 Thread Huang, Ying
? (Eric: do note that there are two EFI framebuffer standard, UGA and GOP. Apparently UGA is obsolete and we have always been at war with GOP at the moment.) EFI framebuffer doesn't depend on EFI runtime service. It only depends on kernel boot parameters (screen_info). Best Regards, Huang Ying

Re: [PATCH 1/3 -v4] x86_64 EFI runtime service support: EFI basic runtime service support

2007-10-25 Thread Huang, Ying
runtime service is useful and it does not break anything. But the code duplication between efi_32.c and efi_64.c should be eliminated and I will work on this. Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED

Re: [PATCH 1/3 -v4] x86_64 EFI runtime service support: EFI basic runtime service support

2007-10-25 Thread Huang, Ying
On Thu, 2007-10-25 at 18:09 +0200, Thomas Gleixner wrote: On Thu, 25 Oct 2007, Huang, Ying wrote: This patch adds basic runtime services support for EFI x86_64 system. The main file of the patch is the addition of efi.c for x86_64. This file is modeled after the EFI IA32 avatar

Re: [PATCH 1/3 -v4] x86_64 EFI runtime service support: EFI basic runtime service support

2007-10-26 Thread Huang, Ying
dump kernel must be done. But saving OOPS information in FLASH via EFI variable runtime service is quite simple, without configuration requirement. That is, there could be more bug report with OOPS information. I think this is useful. Best Regards, Huang Ying - To unsubscribe from this list: send

Re: [PATCH 1/3 -v4] x86_64 EFI runtime service support: EFI basic runtime service support

2007-10-28 Thread Huang, Ying
On Fri, 2007-10-26 at 12:31 +0100, Alan Cox wrote: On Fri, 26 Oct 2007 09:03:11 +0800 Huang, Ying [EMAIL PROTECTED] wrote: On Thu, 2007-10-25 at 18:09 +0200, Thomas Gleixner wrote: EFI runtime services initialization are implemented in efi.c. Some x86_64 specifics are worth

[PATCH 4/4 -v5] x86_64 EFI runtime service support: remove duplicated code from efi_32.c

2007-10-29 Thread Huang, Ying
| 37 +++ 5 files changed, 42 insertions(+), 443 deletions(-) Signed-off-by: Huang Ying [EMAIL PROTECTED] Index: linux-2.6.24-rc1/arch/x86/kernel/Makefile_32 === --- linux-2.6.24-rc1.orig/arch/x86/kernel/Makefile_32 2007-10-30 11:05

[PATCH 3/4 -v5] x86_64 EFI runtime service support: document for EFI runtime services

2007-10-29 Thread Huang, Ying
This patch adds document for EFI x86_64 runtime services support. --- boot-options.txt | 11 ++- uefi.txt |9 + 2 files changed, 19 insertions(+), 1 deletion(-) Signed-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED

[PATCH 2/4 -v5] x86_64 EFI runtime service support: EFI runtime services

2007-10-29 Thread Huang, Ying
-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/reboot_64.c | 19 +- arch/x86/kernel/time_64.c | 47 +++- include/asm-x86/emergency-restart.h |8 ++ include

[PATCH 0/4 -v5] x86_64 EFI runtime service support

2007-10-29 Thread Huang, Ying
into the framework of reboot_type. - A kernel command line option noefi_time is added to make it possible to fall back to CMOS based implementation. v2: - The EFI callwrapper is re-implemented in assembler. Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe

[PATCH 1/4 -v5] x86_64 EFI runtime service support: EFI basic runtime service support

2007-10-29 Thread Huang, Ying
and efi_64.c is placed in efi.c to remove them from efi_32.c. Signed-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/Makefile_64 |1 arch/x86/kernel/efi.c | 483 ++ arch/x86

Re: [PATCH 2/4 -v5] x86_64 EFI runtime service support: EFI runtime services

2007-10-30 Thread Huang, Ying
On Tue, 2007-10-30 at 15:58 +, Denys Vlasenko wrote: On Tuesday 30 October 2007 05:55, Huang, Ying wrote: +static inline unsigned long native_get_wallclock(void) +{ + unsigned long retval; + + if (efi_enabled) + retval = efi_get_time(); + else

Re: [PATCH 0/2 -v2 resend] x86_64 EFI boot support

2007-10-30 Thread Huang, Ying
, the 32-bit boot protocol has been merged into mainline. So can this patchset be merged into mainline kernel now? Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org

Re: [PATCH -mm -v5 0/3] i386/x86_64 boot: 32-bit boot protocol

2007-10-18 Thread Huang, Ying
without the risk of conflicting with setup data from bootloader. Do you think this solution is better? Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo

  1   2   3   4   5   6   7   8   9   10   >