[PATCH] pstore: skip zero size persistent ram buffer in traverse

2014-02-27 Thread shuox . liu
From: Liu ShuoX In ramoops_pstore_read, a valid prz pointer with zero size buffer will break traverse of all persistent ram buffers. The latter buffer might be lost. Signed-off-by: Liu ShuoX --- fs/pstore/ram.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH] pstore: reset ftrace_read_cnt at ramoops_pstore_open

2014-02-27 Thread shuox . liu
From: Liu ShuoX ftrace_read_cnt need to be reset in open to support mutli times getting the records. Signed-off-by: Liu ShuoX --- fs/pstore/ram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index fa8cef2..a5d0cab 100644 --- a/fs/pstore/ram.c +++

[PATCH] pstore: skip zero size persistent ram buffer in traverse

2014-02-27 Thread shuox . liu
From: Liu ShuoX shuox@intel.com In ramoops_pstore_read, a valid prz pointer with zero size buffer will break traverse of all persistent ram buffers. The latter buffer might be lost. Signed-off-by: Liu ShuoX shuox@intel.com --- fs/pstore/ram.c | 10 +- 1 file changed, 5

[PATCH] pstore: reset ftrace_read_cnt at ramoops_pstore_open

2014-02-27 Thread shuox . liu
From: Liu ShuoX shuox@intel.com ftrace_read_cnt need to be reset in open to support mutli times getting the records. Signed-off-by: Liu ShuoX shuox@intel.com --- fs/pstore/ram.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/pstore/ram.c b/fs/pstore/ram.c index fa8cef2..a5d0cab

[PATCH] pnp: Bypass the calling to pnp_stop_dev at suspend when there is a protocol suspend

2013-12-23 Thread shuox . liu
From: Zhang Yanmin pnp pnp_bus_suspend/_resume have an issue. pnp_bus_suspend calls pnp_stop_dev to disable the device. With ACPI, pnp_stop_dev turns off the dev usually. Then, pnp_bus_suspend=>pnp_dev->protocol->suspend accesses the device and suspend it again. pnp_bus_resume has the similar

[PATCH] pnp: Bypass the calling to pnp_stop_dev at suspend when there is a protocol suspend

2013-12-23 Thread shuox . liu
From: Zhang Yanmin yanmin.zh...@intel.com pnp pnp_bus_suspend/_resume have an issue. pnp_bus_suspend calls pnp_stop_dev to disable the device. With ACPI, pnp_stop_dev turns off the dev usually. Then, pnp_bus_suspend=pnp_dev-protocol-suspend accesses the device and suspend it again.

[PATCH] pnp: avoid inaccurate resource name

2013-07-16 Thread shuox . liu
From: Liu ShuoX Set temporary variable as 0 to avoid garbage string output from /proc/iomem after register resources, and reset to pnp dev name. Signed-off-by: Liu ShuoX --- drivers/pnp/pnpacpi/rsparser.c | 2 +- drivers/pnp/resource.c | 1 + 2 files changed, 2 insertions(+), 1

[PATCH] pnp: avoid inaccurate resource name

2013-07-16 Thread shuox . liu
From: Liu ShuoX shuox@intel.com Set temporary variable as 0 to avoid garbage string output from /proc/iomem after register resources, and reset to pnp dev name. Signed-off-by: Liu ShuoX shuox@intel.com --- drivers/pnp/pnpacpi/rsparser.c | 2 +- drivers/pnp/resource.c | 1 + 2

[PATCH] PM: avoid 'autosleep' in shutdown progress

2013-07-11 Thread shuox . liu
From: Liu ShuoX In shutdown progress, system is possible to do power transition (such as suspend-to-ram) in parallel. It is unreasonable. So, fixes it by adding a system_state checking and queue try_to_suspend again when system status is not running. Signed-off-by: Liu ShuoX ---

[PATCH] PM: avoid 'autosleep' in shutdown progress

2013-07-11 Thread shuox . liu
From: Liu ShuoX shuox@intel.com In shutdown progress, system is possible to do power transition (such as suspend-to-ram) in parallel. It is unreasonable. So, fixes it by adding a system_state checking and queue try_to_suspend again when system status is not running. Signed-off-by: Liu ShuoX

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-09 Thread ShuoX Liu
On 2013-06-08 18:54, Rafael J. Wysocki wrote: > On Saturday, June 08, 2013 10:37:18 AM Yanmin Zhang wrote: >> On Sat, 2013-06-08 at 03:52 +0200, Rafael J. Wysocki wrote: >>> On Saturday, June 08, 2013 09:36:03 AM Yanmin Zhang wrote: On Sat, 2013-06-08 at 03:30 +0200, Rafael J. Wysocki wrote:

Re: [PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-09 Thread ShuoX Liu
On 2013-06-08 18:54, Rafael J. Wysocki wrote: On Saturday, June 08, 2013 10:37:18 AM Yanmin Zhang wrote: On Sat, 2013-06-08 at 03:52 +0200, Rafael J. Wysocki wrote: On Saturday, June 08, 2013 09:36:03 AM Yanmin Zhang wrote: On Sat, 2013-06-08 at 03:30 +0200, Rafael J. Wysocki wrote: On

[PATCH 2/2] PM: add dpm_run_callback_void and use it in device_complete

2013-06-07 Thread shuox . liu
From: ShuoX Liu dpm_run_callback_void could show more debug info around complete stage Signed-off-by: Zhang Yanmin Signed-off-by: Liu ShuoX --- drivers/base/power/main.c | 27 ++- 1 files changed, 22 insertions(+), 5 deletions(-) diff --git a/drivers/base/power

[PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread shuox . liu
dpm_run_callback is used in other stages of power states changing. It provides debug info message and time measurement when call these callback. We also want to benefit ->prepare and ->complete. [PATCH 1/2] PM: use dpm_run_callback in device_prepare [PATCH 2/2] PM: add dpm_run_callback_void and

[PATCH 1/2] PM: use dpm_run_callback in device_prepare

2013-06-07 Thread shuox . liu
From: ShuoX Liu dpm_run_callback could show more debug info around prepare stage. Signed-off-by: Zhang Yanmin Signed-off-by: Liu ShuoX --- drivers/base/power/main.c |9 - 1 files changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/base/power/main.c b/drivers/base/power

[PATCH 1/2] PM: use dpm_run_callback in device_prepare

2013-06-07 Thread shuox . liu
From: ShuoX Liu shuox@intel.com dpm_run_callback could show more debug info around prepare stage. Signed-off-by: Zhang Yanmin yanmin.zh...@intel.com Signed-off-by: Liu ShuoX shuox@intel.com --- drivers/base/power/main.c |9 - 1 files changed, 4 insertions(+), 5 deletions

[PATCH 0/2] Run callback of device_prepare/complete consistently

2013-06-07 Thread shuox . liu
dpm_run_callback is used in other stages of power states changing. It provides debug info message and time measurement when call these callback. We also want to benefit -prepare and -complete. [PATCH 1/2] PM: use dpm_run_callback in device_prepare [PATCH 2/2] PM: add dpm_run_callback_void and use

[PATCH 2/2] PM: add dpm_run_callback_void and use it in device_complete

2013-06-07 Thread shuox . liu
From: ShuoX Liu shuox@intel.com dpm_run_callback_void could show more debug info around complete stage Signed-off-by: Zhang Yanmin yanmin.zh...@intel.com Signed-off-by: Liu ShuoX shuox@intel.com --- drivers/base/power/main.c | 27 ++- 1 files changed, 22

[PATCH] irq: add a new function irq_in_progress to check pending IRQ handlers

2013-06-06 Thread shuox . liu
From: Zhang Yanmin synchronize_irq waits pending IRQ handlers to be finished. If using this function while holding a resource, the IRQ handler may cause deadlock. Here we add a new function irq_in_progress which doesn't wait for the handlers to be finished. A typical use case at

[PATCH] irq: add a new function irq_in_progress to check pending IRQ handlers

2013-06-06 Thread shuox . liu
From: Zhang Yanmin yanmin.zh...@intel.com synchronize_irq waits pending IRQ handlers to be finished. If using this function while holding a resource, the IRQ handler may cause deadlock. Here we add a new function irq_in_progress which doesn't wait for the handlers to be finished. A typical use

[tip:perf/urgent] perf/x86: Enable Intel Lincroft/Penwell/ Cloverview Atom support

2013-01-24 Thread tip-bot for ShuoX Liu
Commit-ID: 0927b482ae69acb7605f6be1ad3860b657512fbd Gitweb: http://git.kernel.org/tip/0927b482ae69acb7605f6be1ad3860b657512fbd Author: ShuoX Liu AuthorDate: Sat, 29 Dec 2012 00:48:44 +0800 Committer: Ingo Molnar CommitDate: Thu, 24 Jan 2013 15:10:03 +0100 perf/x86: Enable Intel

[tip:perf/urgent] perf/x86: Enable Intel Lincroft/Penwell/ Cloverview Atom support

2013-01-24 Thread tip-bot for ShuoX Liu
Commit-ID: 0927b482ae69acb7605f6be1ad3860b657512fbd Gitweb: http://git.kernel.org/tip/0927b482ae69acb7605f6be1ad3860b657512fbd Author: ShuoX Liu shuox@intel.com AuthorDate: Sat, 29 Dec 2012 00:48:44 +0800 Committer: Ingo Molnar mi...@kernel.org CommitDate: Thu, 24 Jan 2013 15:10:03

[PATCH] PM / Runtime: Add new helper function: pm_runtime_active()

2013-01-23 Thread shuox . liu
From: ShuoX Liu This boolean function simply returns whether or not the runtime status of the device is 'active'. The typical scenario is driver calls pm_runtime_get firstly, then check pm_runtime_active in atomic environment. Also add entry to Documentation/power/runtime.txt Signed-off

[PATCH] PM / Runtime: Add new helper function: pm_runtime_active()

2013-01-23 Thread shuox . liu
From: ShuoX Liu shuox@intel.com This boolean function simply returns whether or not the runtime status of the device is 'active'. The typical scenario is driver calls pm_runtime_get firstly, then check pm_runtime_active in atomic environment. Also add entry to Documentation/power/runtime.txt

[PATCH] perf/x86: Enable Intel Lincroft/Penwell/Cloverview Atom support

2012-12-28 Thread shuox . liu
From: ShuoX Liu These three chip are based on Atom and have different model id. So add such three id for perf HW event support. Signed-off-by: ShuoX Liu --- arch/x86/kernel/cpu/perf_event_intel.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/x86/kernel/cpu

[PATCH] perf/x86: Enable Intel Lincroft/Penwell/Cloverview Atom support

2012-12-28 Thread shuox . liu
From: ShuoX Liu shuox@intel.com These three chip are based on Atom and have different model id. So add such three id for perf HW event support. Signed-off-by: ShuoX Liu shuox@intel.com --- arch/x86/kernel/cpu/perf_event_intel.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions

[PATCH] driver core: use initcall_debug to control shutdown info

2012-11-22 Thread ShuoX Liu
From: ShuoX Liu syscore_shutdown uses initcall_debug to control the debug info output. It’s a good programming. But device_shutdown doesn’t. The patch changes device_shutdown to follow the style. Signed-off-by: Yanmin Zhang Signed-off-by: ShuoX Liu --- drivers/base/core.c |6 -- 1

[PATCH] driver core: use initcall_debug to control shutdown info

2012-11-22 Thread ShuoX Liu
From: ShuoX Liu shuox@intel.com syscore_shutdown uses initcall_debug to control the debug info output. It’s a good programming. But device_shutdown doesn’t. The patch changes device_shutdown to follow the style. Signed-off-by: Yanmin Zhang yanmin_zh...@linux.intel.com Signed-off-by: ShuoX