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

2007-10-18 Thread Huang, Ying
. There are several memory areas used by kernel bootstrap before e820 map is consulted. You can refer to bad_addr for details. So I think it may be not a stable/simple prototype to provide this information to bootloader. Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe

Re: [PATCH 0/2 -mm] kexec based hibernation -v5

2007-10-19 Thread huang ying
On 10/20/07, Phillip Susi [EMAIL PROTECTED] wrote: Huang, Ying wrote: The hibernation procedure with the patch set is as follow: 1. Boot a kernel A 2. Work under kernel A 3. Kexec another kernel B (crash dump enabled) in kernel A. 4. Save the memory image of kernel A through

[PATCH -v6 3/3] x86 boot: document for 32 bit boot protocol

2007-10-22 Thread Huang, Ying
This patch defines a 32-bit boot protocol and adds corresponding document. It is based on the proposal of Peter Anvin. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- boot.txt | 68 ++ zero-page.txt | 129

[PATCH -v6 0/3] x86 boot: 32-bit boot protocol

2007-10-22 Thread Huang, Ying
according to the source code and move them to zero-page.txt. 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

[PATCH -v6 1/3] x86 boot: setup data

2007-10-22 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 as a more extensible boot parameters passing mechanism. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/boot/header.S |8

[PATCH -v6 2/3] x86 boot: boot parameters export via sysfs

2007-10-22 Thread Huang, Ying
This patch export the boot parameters via sysfs. This can be used for debugging and kexec. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- Makefile_32 |1 Makefile_64 |1 ksysfs.c| 236 setup64.c |2 setup_32.c

Re: [PATCH -v6 0/3] x86 boot: 32-bit boot protocol

2007-10-22 Thread Huang, Ying
rewrite this myself, but it may be quicker for you to update it. OK, I will update it as soon as possible. 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 -v7 0/3] x86 boot: 32-bit boot protocol

2007-10-23 Thread Huang, Ying
the boot protocol version number - Check version number before parsing setup data. - Revise zero page description according to the source code and move them to zero-page.txt. Best Regards, Huang Ying - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

[PATCH -v7 1/3] x86 boot: setup data

2007-10-23 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 as a more extensible boot parameters passing mechanism. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/boot/header.S |6

[PATCH -v7 3/3] x86 boot: document for 32 bit boot protocol

2007-10-23 Thread Huang, Ying
This patch defines a 32-bit boot protocol and adds corresponding document. It is based on the proposal of Peter Anvin. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- boot.txt | 76 + zero-page.txt | 130

[PATCH -v7 2/3] x86 boot: boot parameters export via sysfs

2007-10-23 Thread Huang, Ying
This patch export the boot parameters via sysfs. This can be used for debugging and kexec. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- Makefile_32 |1 Makefile_64 |1 ksysfs.c| 236 setup64.c |2 setup_32.c

Re: [PATCH -v7 0/3] x86 boot: 32-bit boot protocol

2007-10-23 Thread Huang, Ying
On Tue, 2007-10-23 at 15:06 -0700, H. Peter Anvin wrote: Huang, Ying wrote: This patch set defines a 32-bit boot protocol for x86 platform, adds an extensible boot parameter passing mechanism, export the boot parameters via sysfs. The patch set has been tested against kernel of git

[PATCH] x86 boot: document for 32 bit boot protocol

2007-10-23 Thread Huang, Ying
This patch documents the 32-bit boot protocol of x86. It has been used by Kexec and LinuxBIOS. This patch is based on the proposal of Peter Anvin. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- boot.txt | 38 zero-page.txt | 130

[PATCH -v2] x86 boot: document for 32 bit boot protocol

2007-10-23 Thread Huang, Ying
This patch documents the 32-bit boot protocol of x86. It has been used by Kexec and LinuxBIOS. This patch is based on the proposal of Peter Anvin. Signed-off-by: Huang Ying [EMAIL PROTECTED] v2: - Fixes a bug about which registers should be set to zero. --- boot.txt | 38

Re: [PATCH -v7 1/3] x86 boot: setup data

2007-10-23 Thread Huang, Ying
~796M memory area. So some early reserve memory area can not be revered with bootmem allocator later. Should we fix bootmem allocator firstly? 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

[PATCH 1/2 -v2 resend] x86_64 EFI boot support: EFI frame buffer driver

2007-10-24 Thread Huang, Ying
the video information as appropriate for EFI firmware. The framebuffer driver has been tested in i386 kernel and x86_64 kernel on EFI platform. Signed-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] --- drivers/video/Kconfig | 11 ++ drivers/video

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

2007-10-24 Thread Huang, Ying
This patch adds document for EFI x86_64 boot support. The setup and operation guide of EFI based system is documented in Documentation/x86_64/uefi.txt. Signed-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] --- uefi.txt | 29

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

2007-10-24 Thread Huang, Ying
/UEFI firmware and the support of bootloader is required. Detailed usage guide can be found in Documentation/x86_64/uefi.txt, which is added in the patch: EFI boot document v2: - The include files of efifb.c is cleaned up. - Make CONFIG_FB_EFI not depend on CONFIG_EFI. Best Regards, Huang Ying

Re: Latest kernel doesn't boot

2008-02-12 Thread Huang, Ying
the error message with elilo 3.8? It should be noted somewhere that with Huangs patches, elilo version 3.8 is needed. Yes. I will add 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

[PATCH] x86: EFI runtime code mapping enhancement

2008-02-13 Thread Huang, Ying
in early_mapping_set_exec(). This eliminates the duplicated implementation. This patch has been tested on Intel x86_64 platform with EFI64/32 firmware. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86/kernel/efi.c|6 ++ arch/x86/kernel/efi_64.c | 30

Re: [PATCH] x86: EFI runtime code mapping enhancement

2008-02-13 Thread Huang, Ying
On Wed, 2008-02-13 at 12:32 +0100, Andi Kleen wrote: Huang, Ying wrote: This patch enhances EFI runtime code memory mapping as following: - Move __supported_pte_mask _PAGE_NX checking before invoking runtime_code_page_mkexec(). This makes it possible for compiler to eliminate

Re: [2.6 patch] x86: make struct efi_phys static

2008-02-13 Thread Huang, Ying
setup_noefi(char *arg) Reviewed-by: Huang Ying [EMAIL PROTECTED] 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

Re: [PATCH] x86: EFI runtime code mapping enhancement

2008-02-14 Thread Huang, Ying
you don't need to worry about fixing up any aliases. This is the original method. The issue is that it must be synced with set_memory_*() and lookup_address() implementation. For example, it lacked 1G support when that is added to lookup_address(). Best Regards, Huang Ying -- To unsubscribe from

Re: [PATCH] x86: EFI runtime code mapping enhancement

2008-02-14 Thread Huang, Ying
Hi, Ingo, Please revert this patch. Because it does not work with 1GB pages. Although the original implementation does not work with 1GB pages too, it can be fixed easier than this one. I will compose a new patch to fix the original implementation. Best Regards, Huang Ying On Wed, 2008-02-13

Re: [PATCH] Fix left over EFI cache mapping problems

2008-02-14 Thread Huang, Ying
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] Fix left over EFI cache mapping problems

2008-02-14 Thread Huang, Ying
? (this fix is also in the latest x86.git#mm) I think the patch following may be better, because it is possible that the EFI_PAGE_SHIFT and PAGE_SHIFT are different. Best Regards, Huang Ying - The EFI-runtime mapping code changed a larger memory area than it should have, due

Re: [PATCH] Fix left over EFI cache mapping problems

2008-02-14 Thread Huang, Ying
On Thu, 2008-02-14 at 21:44 -0800, Linus Torvalds wrote: On Fri, 15 Feb 2008, Huang, Ying wrote: I think the patch following may be better, because it is possible that the EFI_PAGE_SHIFT and PAGE_SHIFT are different. If this is a problem in practice, we'd be better off having a helper

Re: [PATCH] Fix left over EFI cache mapping problems

2008-02-14 Thread Huang, Ying
On Fri, 2008-02-15 at 08:08 +0100, Ingo Molnar wrote: * Huang, Ying [EMAIL PROTECTED] wrote: On Thu, 2008-02-14 at 17:12 +0100, Ingo Molnar wrote: this is indeed a bug (we change the attributes for a larger area than needed), but your fix is unclean. Find below a cleaner solution

Re: [PATCH] Fix left over EFI cache mapping problems

2008-02-15 Thread Huang, Ying
On Fri, 2008-02-15 at 09:48 +0100, Andi Kleen wrote: On Fri, Feb 15, 2008 at 12:48:06PM +0800, Huang, Ying wrote: This patch has been tested on Intel x86 platform with EFI 32/64. Can EFI_PAGE_SIZE ever be 4k? If yes you would need to round up first to linux page size before shifting

Re: [PATCH] Fix left over EFI cache mapping problems

2008-02-15 Thread Huang, Ying
tested efi_ioremap with memmap=..., and it works fine on my 2G EFI box. 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 2/9] uuid: use random32_get_bytes()

2012-10-29 Thread Huang Ying
) uses as well. uuid_be complies RFC4122, it uses internet byte order. But EFI uses little endian. Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

Re: [PATCH 2/9] uuid: use random32_get_bytes()

2012-10-30 Thread Huang Ying
On Tue, 2012-10-30 at 00:48 -0400, Theodore Ts'o wrote: On Tue, Oct 30, 2012 at 09:49:58AM +0800, Huang Ying wrote: The uuid_le/be_gen() in lib/uuid.c has set UUID variants to be DCE, that is done in __uuid_gen_common() with b[8] = (b[8] 0x3F) | 0x80. Oh, I see, I missed that. To deal

Re: [PATCH 2/9] uuid: use random32_get_bytes()

2012-10-30 Thread Huang Ying
On Tue, 2012-10-30 at 22:38 -0400, Theodore Ts'o wrote: On Wed, Oct 31, 2012 at 09:35:37AM +0800, Huang Ying wrote: The intention of lib/uuid.c is to unify various UUID related code, and put them in same place. In addition to UUID generation, it provide some other utility and may

[PATCH] ACPI/PCI: Make PCI devices notified when its power resource turned on

2012-09-26 Thread Huang Ying
on to D0uninitialized state. These devices should be resumed, so that they can get opportunity to go to low power state later. Signed-off-by: Huang Ying ying.hu...@intel.com Acked-by: Rafael J. Wysocki r...@sisk.pl --- drivers/acpi/pci_bind.c |2 ++ 1 file changed, 2 insertions(+) --- a/drivers/acpi

[PATCH RESEND] ACPI/PCI: Make PCI devices notified when its power resource turned on

2012-09-26 Thread Huang Ying
off. When one of the device is waked, the power resource will be turned on and all devices share it will be powered on to D0uninitialized state. These devices should be resumed, so that they can get opportunity to go to low power state later. Signed-off-by: Huang Ying ying.hu...@intel.com Acked

Re: [BUGFIX 2/2] PCI/PM: Resume device before shutdown

2012-11-02 Thread Huang Ying
On Fri, 2012-11-02 at 10:52 -0600, Bjorn Helgaas wrote: On Wed, Oct 24, 2012 at 12:54 AM, Huang Ying ying.hu...@intel.com wrote: Some actions during shutdown need device to be in D0 state, such as MSI shutdown etc, so resume device before shutdown. Is there a problem report or bugzilla

Re: [BUGFIX 1/2] PCI/PM: Fix deadlock when unbind device if its parent in D3cold

2012-11-02 Thread Huang Ying
On Fri, 2012-11-02 at 10:50 -0600, Bjorn Helgaas wrote: On Wed, Oct 24, 2012 at 12:54 AM, Huang Ying ying.hu...@intel.com wrote: If a PCI device and its parents are put into D3cold, unbinding the device will trigger deadlock as follow: - driver_unbind - device_release_driver

Re: [BUGFIX 1/2] PCI/PM: Fix deadlock when unbind device if its parent in D3cold

2012-11-03 Thread Huang Ying
On Sat, 2012-11-03 at 11:22 -0600, Bjorn Helgaas wrote: On Fri, Nov 2, 2012 at 11:06 PM, Huang Ying ying.hu...@intel.com wrote: On Fri, 2012-11-02 at 10:50 -0600, Bjorn Helgaas wrote: On Wed, Oct 24, 2012 at 12:54 AM, Huang Ying ying.hu...@intel.com wrote: If a PCI device and its parents

Re: [BUGFIX 2/2] PCI/PM: Resume device before shutdown

2012-11-03 Thread Huang Ying
On Sat, 2012-11-03 at 11:21 -0600, Bjorn Helgaas wrote: On Fri, Nov 2, 2012 at 11:05 PM, Huang Ying ying.hu...@intel.com wrote: On Fri, 2012-11-02 at 10:52 -0600, Bjorn Helgaas wrote: On Wed, Oct 24, 2012 at 12:54 AM, Huang Ying ying.hu...@intel.com wrote: Some actions during shutdown need

[BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-04 Thread Huang Ying
children are suspended, and may cause issue. This issue is fixed via checking the usage count of the child device because if the runtime PM of the child device is forbidden, the usage_count of the child device will be non-zero. Signed-off-by: Huang Ying ying.hu...@intel.com --- drivers/base/power

Re: [PATCH RESEND] ACPI/PCI: Make PCI devices notified when its power resource turned on

2012-11-05 Thread Huang Ying
On Mon, 2012-11-05 at 17:02 -0700, Bjorn Helgaas wrote: On Wed, Sep 26, 2012 at 7:59 AM, Huang Ying ying.hu...@intel.com wrote: Sorry for bothering. It appears that this patch should go through ACPI tree because code changed are under drivers/acpi. A set of power resources may be shared

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-05 Thread Huang Ying
On Sun, 2012-11-04 at 20:56 -0500, Alan Stern wrote: On Mon, 5 Nov 2012, Huang Ying wrote: In current runtime PM implementation, the active child count of the parent device may be decreased if the runtime PM of the child device is disabled and forbidden. For example, to unbind a PCI

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-06 Thread Huang Ying
On Tue, 2012-11-06 at 10:17 -0500, Alan Stern wrote: On Tue, 6 Nov 2012, Huang Ying wrote: On Sun, 2012-11-04 at 20:56 -0500, Alan Stern wrote: On Mon, 5 Nov 2012, Huang Ying wrote: In current runtime PM implementation, the active child count of the parent device may

[PATCH -v2] ACPI/PCI: Make PCI devices notified when its power resource turned on

2012-11-06 Thread Huang Ying
on to D0uninitialized state. These devices should be resumed, so that they can get opportunity to go to low power state later. v2: - Fix build error Signed-off-by: Huang Ying ying.hu...@intel.com Acked-by: Rafael J. Wysocki r...@sisk.pl Cc: Bjorn Helgaas bhelg...@google.com --- drivers/acpi/pci_bind.c

Re: [PATCH] pci/runtime-pm: respect devices autosuspend timeout on config access

2012-11-06 Thread Huang Ying
. The driver configures the autosuspend timeout to 5s for this reason, and I think the PCI layer config accesses should respect the autosuspend. Cc: Huang Ying ying.hu...@intel.com Cc: Bjorn Helgaas bhelg...@google.com Cc: Rafael J. Wysocki r...@sisk.pl Signed-off-by: Dave Airlie airl

Re: [PATCH] pci/runtime-pm: respect devices autosuspend timeout on config access

2012-11-06 Thread Huang Ying
On Wed, 2012-11-07 at 01:15 -0500, David Airlie wrote: Cc: Huang Ying ying.hu...@intel.com Cc: Bjorn Helgaas bhelg...@google.com Cc: Rafael J. Wysocki r...@sisk.pl Signed-off-by: Dave Airlie airl...@redhat.com --- drivers/pci/pci-sysfs.c | 2 +- 1 file changed, 1

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-07 Thread Huang Ying
, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-07 Thread Huang Ying
On Thu, 2012-11-08 at 02:35 +0100, Rafael J. Wysocki wrote: On Thursday, November 08, 2012 09:15:08 AM Huang Ying wrote: On Thu, 2012-11-08 at 00:09 +0100, Rafael J. Wysocki wrote: On Wednesday, November 07, 2012 11:51:15 PM Rafael J. Wysocki wrote: On Wednesday, November 07, 2012 04:56

[BUGFIX 2/2] PCI/PM: Resume device before shutdown

2012-10-24 Thread Huang Ying
Some actions during shutdown need device to be in D0 state, such as MSI shutdown etc, so resume device before shutdown. Signed-off-by: Huang Ying ying.hu...@intel.com --- drivers/pci/pci-driver.c | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) --- a/drivers/pci/pci

[BUGFIX 1/2] PCI/PM: Fix deadlock when unbind device if its parent in D3cold

2012-10-24 Thread Huang Ying
callback function. So I fixed the dead lock as follow: - remove device_lock from pci_walk_bus - add device_lock into callback if callback will call driver's callback I checked pci_walk_bus users one by one, and found only PCIe aer needs device lock. Signed-off-by: Huang Ying ying.hu...@intel.com Cc

Re: [PATCH 7/7] PM / ACPI: Take device PM QoS flags into account

2012-10-08 Thread Huang Ying
...@intel.com Reviewed-by: Jean Pihet j-pi...@ti.com Reviewed-by: Huang Ying ying.hu...@intel.com Best Regards, Huang Ying -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org

[BUGFIX] PCI/PM: Fix proc config reg access for D3cold and bridge suspending

2012-10-24 Thread Huang Ying
. This is the same as /sys/bus/pci/devices/:??:??.?/config access issue. So the function used to solve sysfs issue is used to solve this issue. Cc: sta...@vger.kernel.org Reported-by: Peter lekenst...@gmail.com Signed-off-by: Huang Ying ying.hu...@intel.com --- drivers/pci/pci-sysfs.c | 34

PCI/PM: Add comments for PME poll support for PCIe

2012-10-25 Thread Huang Ying
of commit: 379021d5c0899fcf9410cae4ca7a59a5a94ca769 Cc: Rafael J. Wysocki rafael.j.wyso...@intel.com Signed-off-by: Huang Ying ying.hu...@intel.com --- drivers/pci/pci.c | 28 +++- 1 file changed, 19 insertions(+), 9 deletions(-) --- a/drivers/pci/pci.c +++ b/drivers

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-08 Thread Huang Ying
may be a little low level and error-prone to the invoker (mainly bus code). Best Regards, Huang Ying Also when the device's status is ACTIVE, but its parent's child count is 0. __pm_runtime_set_status prevents this situation from arising. When the device's status is set to ACTIVE

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-11 Thread Huang Ying
On Fri, 2012-11-09 at 11:41 -0500, Alan Stern wrote: On Fri, 9 Nov 2012, Huang Ying wrote: On Thu, 2012-11-08 at 12:07 -0500, Alan Stern wrote: On Thu, 8 Nov 2012, Rafael J. Wysocki wrote: is it a good idea to allow to set device state to SUSPENDED if the device

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-11 Thread Huang Ying
On Sun, 2012-11-11 at 21:36 -0500, Alan Stern wrote: On Mon, 12 Nov 2012, Huang Ying wrote: The first question: How should the PCI subsystem prevent the parents of driverless VGA devices from being runtime suspended while userspace is accessing them? I think Rafael's patch

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-12 Thread Huang Ying
On Mon, 2012-11-12 at 11:32 -0500, Alan Stern wrote: On Mon, 12 Nov 2012, Huang Ying wrote: Is it absolute necessary to call pm_runtime_set_suspended? If the device is disabled, the transition to SUSPENDED state will not be triggered even if the device is ACTIVE. It's

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-12 Thread Huang Ying
On Mon, 2012-11-12 at 21:32 -0500, Alan Stern wrote: On Tue, 13 Nov 2012, Huang Ying wrote: Sorry, my original idea is: pm_runtime_disable will put device into SUSPENDED state if dev-power.runtime_auto is clear. pm_runtime_allow will put device into SUSPENDED state

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-13 Thread Huang Ying
On Tue, 2012-11-13 at 11:10 -0500, Alan Stern wrote: On Tue, 13 Nov 2012, Huang Ying wrote: This is not quite right. Consider a device that is in runtime suspend when a system sleep starts. When the system sleep ends, the device will be resumed but the PM core will still think its

Re: [BUGFIX] PM: Fix active child counting when disabled and forbidden

2012-11-14 Thread Huang Ying
On Wed, 2012-11-14 at 10:52 +0100, Rafael J. Wysocki wrote: On Wednesday, November 14, 2012 09:08:28 AM Huang Ying wrote: On Tue, 2012-11-13 at 11:10 -0500, Alan Stern wrote: On Tue, 13 Nov 2012, Huang Ying wrote: This is not quite right. Consider a device that is in runtime

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

2007-09-20 Thread Huang, Ying
proven to be the panacea for all the issues. Configuration is a problem, we will work on it. But, because it is based on kexec/kdump instead of starting from scratch, the duplicated part between hibernation and kexec/kdump can be eliminated. Best Regards, Huang Ying - To unsubscribe from

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

2007-09-20 Thread Huang, Ying
On Fri, 2007-09-21 at 12:25 +1000, Nigel Cunningham wrote: Hi. On Friday 21 September 2007 12:18:57 Huang, Ying wrote: That's not true. Kexec will itself be an implementation, otherwise you'd end up with people screaming about no hibernation support. And it won't result

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

2007-09-21 Thread Huang, Ying
On Thu, 2007-09-20 at 20:55 -0600, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: This patch implements the functionality of jumping between the kexeced kernel and the original kernel. A new reboot command named LINUX_REBOOT_CMD_KJUMP is defined to trigger the jumping

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

2007-09-21 Thread Huang, Ying
On Thu, 2007-09-20 at 22:01 -0600, Eric W. Biederman wrote: Huang, Ying [EMAIL PROTECTED] writes: Index: linux-2.6.23-rc6/include/linux/kexec.h === --- linux-2.6.23-rc6.orig/include/linux/kexec.h 2007-09-20 11:24

Re: [linux-pm] [RFC][PATCH 0/2 -mm] kexec based hibernation -v3

2007-09-21 Thread Huang, Ying
On Fri, 2007-09-21 at 10:43 +0200, Stefan Rompf wrote: Am Donnerstag, 20. September 2007 07:34 schrieb Huang, Ying: The hibernation procedure with the patch set is as follow: 1. Boot a kernel A 2. Work under kernel A 3. Kexec another kernel B (crash dump enabled) in kernel

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

2007-09-21 Thread huang ying
idea of having separate hibernate methods, at least as far as ACPI systems are concerned. So sadly to hear this. Can you details it a little? Or a link? 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: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump

2007-09-21 Thread huang ying
in a compatible way on top of the kexec-based solution.] 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: [linux-pm] Re: [RFC][PATCH 1/2 -mm] kexec based hibernation -v3: kexec jump

2007-09-21 Thread huang ying
On 9/21/07, Rafael J. Wysocki [EMAIL PROTECTED] wrote: On Friday, 21 September 2007 15:14, huang ying wrote: On 9/21/07, Rafael J. Wysocki [EMAIL PROTECTED] wrote: On Friday, 21 September 2007 05:33, Eric W. Biederman wrote: Nigel Cunningham [EMAIL PROTECTED] writes: [--snip

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

2007-09-27 Thread Huang, Ying
Hi, Peter, On Wed, 2007-09-19 at 09:04 -0700, H. Peter Anvin wrote: Huang, Ying wrote: Known Issues: 1. Where is safe to place the linked list of setup_data? Because the length of the linked list of setup_data is variable, it can not be copied into BSS segment of kernel

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

2007-09-27 Thread Huang, Ying
. For example, it is possible that there is only one user process -- the image-writing process running in image-writing kernel. So, no freezer or blkdev snapshot is needed. 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 -v4 0/3] i386/x86_64 boot: 32-bit boot protocol

2007-10-09 Thread Huang, Ying
them to zero-page.txt. 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 -v4 1/3] i386/x86_64 boot: setup data

2007-10-09 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 as a more extensible boot parameters passing mechanism. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/i386/Kconfig|3

[PATCH -mm -v4 2/3] i386/x86_64 boot: boot parameters export via sysfs

2007-10-09 Thread Huang, Ying
This patch export the boot parameters via sysfs. This can be used for debugging and kexec. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- i386/kernel/Makefile|1 i386/kernel/ksysfs.c| 242 i386/kernel/setup.c |2 x86_64

[PATCH -mm -v4 3/3] i386/x86_64 boot: document for 32 bit boot protocol

2007-10-09 Thread Huang, Ying
This patch defines a 32-bit boot protocol and adds corresponding document. It is based on the proposal of Peter Anvin. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- boot.txt | 70 +++ zero-page.txt | 129

Re: [PATCH -mm -v4 1/3] i386/x86_64 boot: setup data

2007-10-09 Thread Huang, Ying
On Tue, 2007-10-09 at 01:25 +1000, Nick Piggin wrote: On Tuesday 09 October 2007 16:40, Huang, Ying wrote: +unsigned long copy_from_phys(void *to, unsigned long from_phys, +unsigned long n) +{ + struct page *page; + void *from; + unsigned long remain

Re: [PATCH -mm -v4 1/3] i386/x86_64 boot: setup data

2007-10-09 Thread Huang, Ying
On Tue, 2007-10-09 at 02:06 +1000, Nick Piggin wrote: On Tuesday 09 October 2007 18:22, Huang, Ying wrote: On Tue, 2007-10-09 at 01:25 +1000, Nick Piggin wrote: On Tuesday 09 October 2007 16:40, Huang, Ying wrote: +unsigned long copy_from_phys(void *to, unsigned long from_phys

Re: [PATCH -mm -v4 1/3] i386/x86_64 boot: setup data

2007-10-09 Thread Huang, Ying
On Tue, 2007-10-09 at 02:28 +1000, Nick Piggin wrote: On Tuesday 09 October 2007 18:55, Huang, Ying wrote: On Tue, 2007-10-09 at 02:06 +1000, Nick Piggin wrote: I'm just wondering whether you really need to access highmem in boot code... Because the zero page (boot_parameters

Re: [PATCH -mm -v4 1/3] i386/x86_64 boot: setup data

2007-10-09 Thread huang ying
, the virtual memory space of ioremap is limited too. 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 -mm -v4 0/3] i386/x86_64 boot: 32-bit boot protocol

2007-10-09 Thread Huang, Ying
On Tue, 2007-10-09 at 12:23 -0700, H. Peter Anvin wrote: Huang, Ying wrote: - Which fields of boot parameters should be exported directly in sysfs? Export all fields of boot parameters in sysfs is too complex and unnecessary. Which fields should be? The main this is that since

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

2007-09-12 Thread Huang, Ying
On Tue, 2007-09-11 at 20:23 -0700, Andrew Morton wrote: On Fri, 17 Aug 2007 13:28:38 +0800 Huang, Ying [EMAIL PROTECTED] wrote: This patch fixes a bug of change_page_attr/change_page_attr_addr on Intel x86_64 CPU. After changing page attribute to be executable with these functions

Re: [linux-pm] Re: Hibernation considerations

2007-07-20 Thread Huang, Ying
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: [linux-pm] Re: Hibernation considerations

2007-07-21 Thread Huang, Ying
: tmp=dest; dest=src; src=tmp If memory is swapped, no information is lost, both that of kexec kernel and kexeced 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

RE: [linux-pm] Re: Hibernation considerations

2007-07-24 Thread Huang, Ying
state and system is put into suspend state; or the image is written to disk (through snapshot/uswsusp or kexeced kernel). 4. After resuming from RAM/DISK, devices are put into normal state and the syscall entries replaced in step 2 are restored. Best Regards, Huang Ying - To unsubscribe from this list

RE: [PATCH 0/2] Kexec jump: The first step to kexec base hibernation

2007-07-24 Thread Huang, Ying
RAM and all kinds of reserved regions, which is backed by iomem_resource. On x86_64, it is initialized in the exact same way as nosave region initialization. I think maybe we can replace the nosave region concepts with iomem_resource (maybe need some enhancement). Best Regards, Huang Ying

Re: [linux-pm] Re: [PATH 1/1] Kexec jump - v2 - kexec jump

2007-08-22 Thread Huang, Ying
a full kexec based hibernation prototype, including kexec, write out the image, reboot, restore the memory and jump back. I will release it recently. :) 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 0/3] x86_64 EFI runtime service support

2007-08-22 Thread huang ying
instead of zero page protocol. In the future, when all bootloaders use new protocol, the zero page is made internal formally. Any comment is welcome. 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

Re: [PATCH 0/3] x86_64 EFI runtime service support

2007-08-22 Thread Huang, Ying
On Thu, 2007-08-23 at 00:28 +0800, H. Peter Anvin wrote: huang ying wrote: My proposal: Use Peter proposed linked list of struct setup_data style boot protocol as long term goal. To smooth the transforming process, the following back compatible scheme can be taken: 1. Keep zero

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

2007-08-26 Thread Huang, Ying
Kexec base hibernation has some potential advantages over uswsusp and TuxOnIce (suspend2). Some most obvious advantages are: 1. The hibernation image size can exceed half of memory size easily. 2. The hibernation image can be written to and read from almost anywhere, such as USB disk, NFS.

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

2007-08-26 Thread Huang, Ying
, the state of devices and CPU are restored accordingly. The devices/CPU state save/restore code of software suspend is called to implement corresponding function. Signed-off-by: Huang Ying [EMAIL PROTECTED] --- Documentation/kernel-parameters.txt |8 +++ arch/i386/Kconfig

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

2007-08-26 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: [linux-pm] [RFC][PATCH 0/2 -mm] kexec based hibernation

2007-08-26 Thread Huang, Ying
directly. Best Regards, Huang Ying Best regards Hu, Fenghua -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Huang, Ying Sent: 2007年8月27日 9:14 To: Eric W. Biederman; Pavel Machek; [EMAIL PROTECTED]; Andrew Morton; Jeremy Maitin-Shepard; Alan Stern Cc

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

2007-08-27 Thread Huang, Ying
On Mon, 2007-08-27 at 10:30 +0530, Vivek Goyal wrote: On Mon, Aug 27, 2007 at 09:14:05AM +0800, Huang, Ying wrote: Kexec base hibernation has some potential advantages over uswsusp and TuxOnIce (suspend2). Some most obvious advantages are: 1. The hibernation image size can exceed half

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

2007-08-27 Thread Huang, Ying
in grub 2.0 in a manageable way. :) 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: [RFC][PATCH 2/2 -mm] kexec based hibernation: kexec restore

2007-08-27 Thread Huang, Ying
On Mon, 2007-08-27 at 23:31 +0200, Pavel Machek wrote: Hi! 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] +ssize_t write_oldmem_page(unsigned long pfn, const char *buf

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

2007-08-31 Thread Huang, Ying
, the state of devices and CPU are restored accordingly. The devices/CPU state save/restore code of software suspend is called to implement corresponding function. Signed-off-by: Huang Ying [EMAIL PROTECTED] Looks quite ok to me... Index: linux-2.6.23-rc3/include/asm-i386/kexec.h

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

2007-08-13 Thread Huang, Ying
Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] Index: linux-2.6.23-rc2/Documentation/i386/zero-page.txt === --- linux-2.6.23-rc2.orig/Documentation/i386/zero-page.txt 2007-08-13 13:08:39.0 +0800

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

2007-08-13 Thread Huang, Ying
with kernel boot options. Signed-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86_64/kernel/reboot.c| 19 - arch/x86_64/kernel/time.c | 48 ++--- include/asm-x86_64

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

2007-08-13 Thread Huang, Ying
is the number of parameters) are implemented. EFI function calls are wrapped before calling the firmware service. Signed-off-by: Chandramouli Narayanan [EMAIL PROTECTED] Signed-off-by: Huang Ying [EMAIL PROTECTED] --- arch/x86_64/Kconfig | 13 arch/x86_64/kernel/Makefile

[PATCH 0/3] x86_64 EFI runtime service support

2007-08-13 Thread Huang, Ying
comments, 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 0/3] x86_64 EFI runtime service support

2007-08-16 Thread Huang, Ying
On Thu, 2007-08-16 at 06:42 +0800, Andrew Morton wrote: On Mon, 13 Aug 2007 15:30:19 +0800 Huang, Ying [EMAIL PROTECTED] wrote: Following sets of patches add EFI/UEFI (Unified Extensible Firmware Interface) runtime services support to x86_64 architecture. I had to rework these a bit due

<    1   2   3   4   5   6   7   8   9   10   >