[PATCH] panic: flush local cache in panic_smp_self_stop

2015-04-08 Thread Neil Zhang
Sometimes we will use the memory dump to figure out what has happened. Flush the local cache is needed to make the memory content be updated. Signed-off-by: Neil Zhang --- kernel/panic.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/panic.c b/kernel/panic.c index 8136ad7

[PATCH v2] mm: show free pages per each migrate type

2015-04-08 Thread Neil Zhang
0 0 0 0 0 0 0 [ 806.653113@1] Isolate: 0 0 0 0 0 0 0 0 0 0 0 Signed-off-by: Neil Zhang --- mm/internal.h |2 ++ mm/page_alloc.c | 55 ++- mm

[PATCH] mm: show free pages per each migrate type

2015-04-07 Thread Neil Zhang
show detailed free pages per each migrate type in show_free_areas. Signed-off-by: Neil Zhang --- mm/internal.h |2 ++ mm/page_alloc.c | 55 ++- mm/vmstat.c | 13 - 3 files changed, 28 insertions(+), 42 deletions

Re: panic at rb_next when do pick_next_task_fair because of rb_leftmost is NULL

2014-12-28 Thread Neil Zhang
one more info as following before crash. [83321.794602] c1 230 (DispSync) BUG: Bad rss-counter state mm:ec376200 idx:0 val:2497 [83321.795281] c0 2084 (v.airplayserver) Unable to handle kernel NULL pointer dereference at virtual address 0008 2014-12-29 9:56 GMT+08:00 Neil Zhang : > D

Re: panic at rb_next when do pick_next_task_fair because of rb_leftmost is NULL

2014-12-28 Thread Neil Zhang
Does anyone ever encountered it? Please give your help if any. Thanks in advanced! Best Regards, Neil Zhang 2014-12-26 17:37 GMT+08:00 Neil Zhang : > Hi All, > I encountered the following crash in 3.10.24. > > The panic log is as following. > The strange thing is that the nr_ru

panic at rb_next when do pick_next_task_fair because of rb_leftmost is NULL

2014-12-26 Thread Neil Zhang
Hi All, I encountered the following crash in 3.10.24. The panic log is as following. The strange thing is that the nr_running change to NULL after pass the check in the beginning of pick_next_task_fair. So it seems there are race condition in the code. Seems no related patch to fix it in the mainl

RE: [PATCH] usb: gadget: don't create new string_container if already exist

2014-11-04 Thread Neil Zhang
> -Original Message- > From: Andrzej Pietrasiewicz [mailto:andrze...@samsung.com] > Sent: 2014年10月28日 21:10 > To: Neil Zhang; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org > Cc: ba...@ti.com; gre...@linuxfoundation.org > Subject: Re: [PATCH] usb: gadget

RE: [PATCH V2] Driver cpu: update online when cpu_up/down besides sysfs

2014-10-29 Thread Neil Zhang
Dan, > -Original Message- > From: ddstr...@gmail.com [mailto:ddstr...@gmail.com] On Behalf Of Dan > Streetman > Sent: 2014年10月30日 5:52 > To: Rafael J. Wysocki > Cc: Rafael J. Wysocki; Neil Zhang; linux-kernel; Greg Kroah-Hartman; > nf...@linux.vnet.ibm.com > Subjec

RE: [PATCH V2] Driver cpu: update online when cpu_up/down besides sysfs

2014-10-29 Thread Neil Zhang
Rafael, > -Original Message- > From: Rafael J. Wysocki [mailto:r...@rjwysocki.net] > Sent: 2014年10月30日 5:47 > To: Dan Streetman > Cc: Rafael J. Wysocki; Neil Zhang; linux-kernel; Greg Kroah-Hartman; > nf...@linux.vnet.ibm.com > Subject: Re: [PATCH V2] Driver cpu: upda

[PATCH] usb: gadget: don't create new string_container if already exist

2014-10-28 Thread Neil Zhang
Don't create new usb_gadget_string_container if the current strings are already exist in the usb_composite_dev. Otherwise the ids_tab will overflow soon if we bind / unbind usb functions frequently like android does. Signed-off-by: Neil Zhang --- drivers/usb/gadget/composite.c |6

[PATCH] arm64: ARCH_PFN_OFFSET should be unsigned long

2014-10-27 Thread Neil Zhang
pfns are unsigned long, but PHYS_PFN_OFFSET is phys_addr_t. This leads to page_to_pfn() returning phys_addr_t which cause type mismatches in some print statements. Signed-off-by: Neil Zhang --- arch/arm64/include/asm/memory.h |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH V2] Driver cpu: update online when cpu_up/down besides sysfs

2014-10-26 Thread Neil Zhang
se generic offline/online for CPU offline/online) CC: Rafael J. Wysocki Tested-by: Dan Streetman Signed-off-by: Neil Zhang --- drivers/base/cpu.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index 006b1bc..9d61824 10

RE: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-26 Thread Neil Zhang
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: 2014年10月27日 10:27 > To: Neil Zhang > Cc: Dan Streetman; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] drivers: base: update cpu offline info when do hotplug > > On Sun, Oc

RE: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-26 Thread Neil Zhang
> -Original Message- > From: Greg KH [mailto:gre...@linuxfoundation.org] > Sent: 2014年10月27日 9:59 > To: Neil Zhang > Cc: Dan Streetman; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] drivers: base: update cpu offline info when do hotplug > > On Sun, Oct 26,

RE: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-26 Thread Neil Zhang
Greg, > -Original Message- > From: ddstr...@gmail.com [mailto:ddstr...@gmail.com] On Behalf Of Dan > Streetman > Sent: 2014年10月21日 1:03 > To: Neil Zhang > Cc: Greg KH; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] drivers: base: update cpu offline info when d

RE: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-21 Thread Neil Zhang
Dan, > -Original Message- > From: ddstr...@gmail.com [mailto:ddstr...@gmail.com] On Behalf Of Dan > Streetman > Sent: 2014年10月21日 21:03 > To: Neil Zhang > Cc: linux-kernel; Greg Kroah-Hartman > Subject: Re: [PATCH] drivers: base: update cpu offline info when do hotplu

RE: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-20 Thread Neil Zhang
> -Original Message- > From: Yasuaki Ishimatsu [mailto:isimatu.yasu...@jp.fujitsu.com] > Sent: 2014年10月21日 11:27 > To: Neil Zhang; Dan Streetman > Cc: Greg KH; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] drivers: base: update cpu offline info when do hotplug &

RE: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-20 Thread Neil Zhang
Yasuaki, > -Original Message- > From: Yasuaki Ishimatsu [mailto:isimatu.yasu...@jp.fujitsu.com] > Sent: 2014年10月21日 10:57 > To: Dan Streetman; Neil Zhang > Cc: Greg KH; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] drivers: base: update cpu offline info when do ho

RE: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-20 Thread Neil Zhang
Dan, > -Original Message- > From: ddstr...@gmail.com [mailto:ddstr...@gmail.com] On Behalf Of Dan > Streetman > Sent: 2014年10月21日 1:03 > To: Neil Zhang > Cc: Greg KH; linux-kernel@vger.kernel.org > Subject: Re: [PATCH] drivers: base: update cpu offline info when do

RE: [PATCH v4] ARM: perf: save/restore pmu registers in pm notifier

2014-10-20 Thread Neil Zhang
> -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: 2014年10月20日 17:20 > To: Sudeep Holla > Cc: Neil Zhang; 'li...@arm.linux.org.uk'; 'linux-arm- > ker...@lists.infradead.org'; 'linux-kernel@vger.kernel.org

RE: [PATCH v4] ARM: perf: save/restore pmu registers in pm notifier

2014-10-20 Thread Neil Zhang
> -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: 2014年7月4日 1:57 > To: Neil Zhang > Cc: Sudeep Holla; 'li...@arm.linux.org.uk'; 'linux-arm- > ker...@lists.infradead.org'; 'linux-kernel@vger.kernel.org'; > &#

RE: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-20 Thread Neil Zhang
Greg, -Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: 2014年10月20日 14:48 To: Neil Zhang Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers: base: update cpu offline info when do hotplug On Sun, Oct 19, 2014 at 11:39:23PM -0700, Neil Zhang wrote

RE: [PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-19 Thread Neil Zhang
Greg, -Original Message- From: Greg KH [mailto:gre...@linuxfoundation.org] Sent: 2014年10月20日 12:44 To: Neil Zhang Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers: base: update cpu offline info when do hotplug On Mon, Oct 20, 2014 at 11:29:08AM +0800, Neil Zhang wrote

[PATCH] drivers: base: update cpu offline info when do hotplug

2014-10-19 Thread Neil Zhang
The current per-cpu offline info won't be updated if it is hotplugged in/out by a kernel governer. Let's update it via cpu notifier. Signed-off-by: Neil Zhang --- drivers/base/cpu.c | 25 + 1 file changed, 25 insertions(+) diff --git a/drivers/base/cpu.c

RE: [PATCH] arm: irq: fix the affinity when migrate a irq

2014-08-15 Thread Neil Zhang
> -Original Message- > From: Sudeep Holla [mailto:sudeep.ho...@arm.com] > Sent: 2014年8月15日 16:45 > To: Neil Zhang; li...@arm.linux.org.uk > Cc: Sudeep Holla; linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org > Subject: Re: [PATCH] arm: irq:

[PATCH] arm: irq: fix the affinity when migrate a irq

2014-08-15 Thread Neil Zhang
target CPU again, then the interrupt won't be migrated correctly. Signed-off-by: Neil Zhang --- arch/arm/kernel/irq.c |5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/kernel/irq.c b/arch/arm/kernel/irq.c index 2c42576..6f5a878 100644 --- a/arch/arm/kernel/i

[PATCH] kernel: printk: fix bool assignements

2014-07-22 Thread Neil Zhang
Fix coccinelle warnings. Signed-off-by: Neil Zhang --- kernel/printk/printk.c |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index 13e839d..89894e5 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c

RE: [PATCH] ARM: remove redundant code in machine_halt

2014-07-03 Thread Neil Zhang
> -Original Message- > From: Neil Zhang > Sent: 2014年5月14日 15:52 > To: Neil Zhang; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org > Cc: rmk+ker...@arm.linux.org.uk > Subject: RE: [PATCH] ARM: remove redundant code in machine_halt > &

RE: [PATCH v4] ARM: perf: save/restore pmu registers in pm notifier

2014-06-30 Thread Neil Zhang
Sudeep & Will, > -Original Message- > From: Neil Zhang > Sent: 2014年5月21日 19:47 > To: 'Sudeep Holla'; Will Deacon > Cc: 'li...@arm.linux.org.uk'; 'linux-arm-ker...@lists.infradead.org'; > 'linux-kernel@vger.kernel.org'; &#

RE: [PATCH] arm64: add the ability to hook the fault code

2014-06-20 Thread Neil Zhang
> -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: 2014年6月20日 16:40 > To: Neil Zhang > Cc: Catalin Marinas; linux-kernel@vger.kernel.org; > linux-arm-ker...@lists.infradead.org > Subject: Re: [PATCH] arm64: add the ability to hook the fault

RE: [PATCH] arm64: add the ability to hook the fault code

2014-06-20 Thread Neil Zhang
> -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: 2014年6月20日 16:26 > To: Neil Zhang > Cc: Catalin Marinas; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] arm64: add the ability to hook the fault

[PATCH] arm64: add the ability to hook the fault code

2014-06-19 Thread Neil Zhang
Add the ability to hook the fault code for future use. Signed-off-by: Neil Zhang --- arch/arm64/include/asm/system_misc.h |4 arch/arm64/mm/fault.c| 12 2 files changed, 16 insertions(+) diff --git a/arch/arm64/include/asm/system_misc.h b/arch/arm64

RE: [PATCH v4] ARM: perf: save/restore pmu registers in pm notifier

2014-05-21 Thread Neil Zhang
Sudeep, > -Original Message- > From: Sudeep Holla [mailto:sudeep.ho...@arm.com] > Sent: 2014年5月14日 17:32 > To: Neil Zhang; Will Deacon > Cc: Sudeep Holla; 'li...@arm.linux.org.uk'; > 'linux-arm-ker...@lists.infradead.org'; 'linux-kernel@vger

RE: [PATCH] ARM: remove redundant code in machine_halt

2014-05-14 Thread Neil Zhang
> -Original Message- > From: Neil Zhang [mailto:zhan...@marvell.com] > Sent: 2014年5月7日 13:50 > To: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org > Cc: rmk+ker...@arm.linux.org.uk; Neil Zhang > Subject: [PATCH] ARM: remove redundant code in machine_hal

RE: [PATCH] ARM64: kernel: add compatable cpuinfo

2014-05-13 Thread Neil Zhang
> -Original Message- > From: Neil Zhang [mailto:zhan...@marvell.com] > Sent: 2014年5月14日 11:00 > To: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org > Cc: catalin.mari...@arm.com; will.dea...@arm.com; Neil Zhang > Subject: [PATCH] ARM64: kernel: add

[PATCH v2] ARM64: kernel: add compatible cpuinfo

2014-05-13 Thread Neil Zhang
Print the necessary features in order to be backwards compatible with ARMv7 and earlier version. Signed-off-by: Neil Zhang --- arch/arm64/kernel/setup.c |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 7ec7846..a09ecfe

[PATCH] ARM64: kernel: add compatable cpuinfo

2014-05-13 Thread Neil Zhang
Print the necessary features in order to be backwards compatable with ARMv7 and earlier version. Signed-off-by: Neil Zhang --- arch/arm64/kernel/setup.c |5 + 1 file changed, 5 insertions(+) diff --git a/arch/arm64/kernel/setup.c b/arch/arm64/kernel/setup.c index 7ec7846..a09ecfe

RE: [PATCH v4] ARM: perf: save/restore pmu registers in pm notifier

2014-05-13 Thread Neil Zhang
> -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: 2014年5月14日 2:45 > To: Neil Zhang > Cc: Sudeep Holla; 'li...@arm.linux.org.uk'; > 'linux-arm-ker...@lists.infradead.org'; 'linux-kernel@vger.kernel.org'; > &#

RE: [PATCH v4] ARM: perf: save/restore pmu registers in pm notifier

2014-05-12 Thread Neil Zhang
Will & Sudeep, > -Original Message- > From: Neil Zhang > Sent: 2014年5月5日 14:28 > To: Sudeep Holla; Will Deacon > Cc: li...@arm.linux.org.uk; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; devicet...@vger.kernel.org > Subject: RE: [PATCH v4

[PATCH] ARM: remove redundant code in machine_halt

2014-05-06 Thread Neil Zhang
There is no need to call local_irq_disable twice. Signed-off-by: Neil Zhang --- arch/arm/kernel/process.c |1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/kernel/process.c b/arch/arm/kernel/process.c index 81ef686..18cfce4 100644 --- a/arch/arm/kernel/process.c +++ b/arch/arm

RE: [PATCH v4] ARM: perf: save/restore pmu registers in pm notifier

2014-05-04 Thread Neil Zhang
Sudeep, > -Original Message- > From: Sudeep Holla [mailto:sudeep.ho...@arm.com] > Sent: 2014年4月30日 21:31 > To: Neil Zhang; Will Deacon > Cc: Sudeep Holla; li...@arm.linux.org.uk; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; > devicet...@vger

RE: [PATCH v4] ARM: perf: save/restore pmu registers in pm notifier

2014-04-29 Thread Neil Zhang
> -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: 2014年4月24日 1:08 > To: Neil Zhang > Cc: li...@arm.linux.org.uk; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; Sudeep Holla; devicet...@vger.kernel.org > Subject: Re:

RE: [PATCH v4] ARM: perf: save/restore pmu registers in pm notifier

2014-04-23 Thread Neil Zhang
> -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: 2014年4月22日 18:37 > To: Neil Zhang > Cc: li...@arm.linux.org.uk; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; Sudeep Holla; devicet...@vger.kernel.org > Subject: Re:

RE: [PATCH v3] ARM: perf: save/restore pmu registers in pm notifier

2014-04-21 Thread Neil Zhang
> -Original Message- > From: Neil Zhang [mailto:zhan...@marvell.com] > Sent: 2014年4月21日 19:09 > To: will.dea...@arm.com; li...@arm.linux.org.uk > Cc: linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org; Neil > Zhang; Sudeep KarkadaNagesha > Subject:

[PATCH v4] ARM: perf: save/restore pmu registers in pm notifier

2014-04-21 Thread Neil Zhang
working on Marvell's CA7 based SoCs. And it has consulted Sudeep KarkadaNagesha's patch set for multiple PMUs. Thanks Will and Sudeep's suggestion to only save / restore used events. Cc: Sudeep KarkadaNagesha Signed-off-by: Neil Zhang --- arch/arm/include/asm/pmu.h |4 +++

[PATCH v3] ARM: perf: save/restore pmu registers in pm notifier

2014-04-21 Thread Neil Zhang
on our CA7 based SoCs. And it is based on Sudeep KarkadaNagesha's patch set for multiple PMUs. Thanks Will and Sudeep's suggestion to only save / restore used events. Cc: Sudeep KarkadaNagesha Signed-off-by: Neil Zhang --- arch/arm/include/asm/pmu.h |4 ++ arch/arm/kernel/pe

RE: [PATCH v2] ARM: perf: save/restore pmu registers in pm notifier

2014-04-15 Thread Neil Zhang
Hi Sudeep, > -Original Message- > From: Sudeep Holla [mailto:sudeep.ho...@arm.com] > Sent: 2014年4月15日 21:06 > To: Neil Zhang > Cc: Will Deacon; li...@arm.linux.org.uk; Sudeep Holla; > linux-arm-ker...@lists.infradead.org; linux-kernel@vger.kernel.org > Subject: Re:

RE: [PATCH v2] ARM: perf: save/restore pmu registers in pm notifier

2014-04-15 Thread Neil Zhang
> -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: 2014年4月15日 20:50 > To: Neil Zhang > Cc: li...@arm.linux.org.uk; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; Sudeep Holla > Subject: Re: [PATCH v2] ARM: perf: save/

RE: [PATCH v2] ARM: perf: save/restore pmu registers in pm notifier

2014-04-15 Thread Neil Zhang
> -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: 2014年4月15日 20:41 > To: Neil Zhang > Cc: li...@arm.linux.org.uk; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; Sudeep Holla > Subject: Re: [PATCH v2] ARM: perf: save/

RE: [PATCH v2] ARM: perf: save/restore pmu registers in pm notifier

2014-04-15 Thread Neil Zhang
Will, Thanks for the comments! > -Original Message- > From: Will Deacon [mailto:will.dea...@arm.com] > Sent: 2014年4月15日 16:48 > To: Neil Zhang > Cc: li...@arm.linux.org.uk; linux-arm-ker...@lists.infradead.org; > linux-kernel@vger.kernel.org; Sudeep Holla > Subjec

[PATCH v2] ARM: perf: save/restore pmu registers in pm notifier

2014-04-13 Thread Neil Zhang
found that DS-5 not work on our CA7 based SoCs. After debuging, found PMU registers were lost because of core power down. Then i found Sudeep had a patch to fix it about two years ago but not in the mainline, just port it. Signed-off-by: Sudeep KarkadaNagesha Signed-off-by: Neil Zhang --- arch/arm

RE: [PATCH] ARM: perf: save/restore pmu registers in pm notifier

2014-04-13 Thread Neil Zhang
Stephen, > -Original Message- > From: Stephen Boyd [mailto:sb...@codeaurora.org] > Sent: 2014年4月12日 2:32 > To: Neil Zhang > Cc: will.dea...@arm.com; li...@arm.linux.org.uk; Sudeep KarkadaNagesha; > linux-kernel@vger.kernel.org; linux-arm-ker...@lists.infradead.org >

[PATCH] ARM: perf: save/restore pmu registers in pm notifier

2014-04-11 Thread Neil Zhang
found that DS-5 not work on our CA7 based SoCs. After debuging, found PMU registers were lost because of core power down. Then i found Sudeep had a patch to fix it about two years ago but not in the mainline, just port it. Signed-off-by: Sudeep KarkadaNagesha Signed-off-by: Neil Zhang --- arch/arm

[PATCH V2] printk: add sleep time into timestamp

2014-03-31 Thread Neil Zhang
Add sleep time into timestamp to reflect the actual time since sched_clock will be stopped during suspend. Thanks John Stultz for suggestion to use monotonic_to_bootbased. Signed-off-by: Neil Zhang --- kernel/printk/printk.c | 16 ++-- 1 file changed, 14 insertions(+), 2

RE: [PATCH] printk: add sleep time into timestamp

2014-03-30 Thread Neil Zhang
> -Original Message- > From: John Stultz [mailto:john.stu...@linaro.org] > Sent: 2014年3月29日 1:37 > To: Neil Zhang > Cc: Andrew Morton; Linux Kernel Mailing List > Subject: Re: [PATCH] printk: add sleep time into timestamp > > On 03/27/2014 11:45 PM, Ne

RE: [PATCH] printk: add sleep time into timestamp

2014-03-27 Thread Neil Zhang
John, > -Original Message- > From: johnstul.l...@gmail.com [mailto:johnstul.l...@gmail.com] On Behalf > Of John Stultz > Sent: 2014年3月28日 11:18 > To: Neil Zhang > Cc: Andrew Morton; Linux Kernel Mailing List > Subject: Re: [PATCH] printk: add sleep time into timestam

RE: [PATCH] timekeeping: check params before use them

2014-03-27 Thread Neil Zhang
> -Original Message- > From: John Stultz [mailto:john.stu...@linaro.org] > Sent: 2014年3月28日 1:26 > To: Neil Zhang; t...@linutronix.de > Cc: linux-kernel@vger.kernel.org > Subject: Re: [PATCH] timekeeping: check params before use them > > On 03/27/2014 01

[PATCH] printk: add sleep time into timestamp

2014-03-27 Thread Neil Zhang
Add sleep time into timestamp to reflect the actual time since sched_clock will be stopped during suspend. This patch depends on the following patch. timekeeping: check params before use them Signed-off-by: Neil Zhang --- kernel/printk/printk.c | 15 +-- 1 file changed, 13

[PATCH] timekeeping: check params before use them

2014-03-27 Thread Neil Zhang
Sometimes we won't need all the information from get_xtime_and_monotonic_and_sleep_offset(), so let's check the params before assign the value to them. Signed-off-by: Neil Zhang --- kernel/time/timekeeping.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --gi

[PATCH] arm64: Fix memory layout typo

2014-03-25 Thread Neil Zhang
Signed-off-by: Neil Zhang --- Documentation/arm64/memory.txt |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/arm64/memory.txt b/Documentation/arm64/memory.txt index 5e054bf..c2765e2 100644 --- a/Documentation/arm64/memory.txt +++ b/Documentation/arm64

RE: [PATCH 2/6] usb: gadget: mv_udc: disable HW zlt for ep0

2014-02-27 Thread Neil Zhang
> -Original Message- > From: Felipe Balbi [mailto:ba...@ti.com] > Sent: 2014年2月26日 23:19 > To: Neil Zhang > Cc: ba...@ti.com; Peter Chen; gre...@linuxfoundation.org; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Alexander Shishkin > Subject: Re: [P

RE: [PATCH 2/6] usb: gadget: mv_udc: disable HW zlt for ep0

2014-02-25 Thread Neil Zhang
> -Original Message- > From: Felipe Balbi [mailto:ba...@ti.com] > Sent: 2014年2月26日 2:13 > To: Peter Chen > Cc: Neil Zhang; ba...@ti.com; gre...@linuxfoundation.org; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Alexander Shishkin > Subject: Re: [PATCH 2/6

RE: [PATCH 3/6] usb: gadget: mv_udc: clear corresponding interrupt when flush fifo

2014-02-24 Thread Neil Zhang
> -Original Message- > From: Peter Chen [mailto:peter.c...@freescale.com] > Sent: 2014年2月25日 9:59 > To: Neil Zhang > Cc: ba...@ti.com; gre...@linuxfoundation.org; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH 3/6] usb: gadget: mv_udc

RE: [PATCH 0/6] bug fix for mv_udc_core.c

2014-02-24 Thread Neil Zhang
> -Original Message- > From: Peter Chen [mailto:peter.c...@freescale.com] > Sent: 2014年2月25日 12:18 > To: Neil Zhang > Cc: Matthieu CASTET; ba...@ti.com; gre...@linuxfoundation.org; > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org > Subject: Re: [P

RE: [PATCH 5/6] USB: gadget: mv_udc: workaroud for missing dTD

2014-02-24 Thread Neil Zhang
> -Original Message- > From: Peter Chen [mailto:peter.c...@freescale.com] > Sent: 2014年2月25日 12:19 > To: Neil Zhang > Cc: ba...@ti.com; gre...@linuxfoundation.org; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH 5/6] USB: gadget:

RE: [PATCH 2/6] usb: gadget: mv_udc: disable HW zlt for ep0

2014-02-24 Thread Neil Zhang
> -Original Message- > From: Peter Chen [mailto:peter.c...@freescale.com] > Sent: 2014年2月25日 13:15 > To: Neil Zhang > Cc: ba...@ti.com; gre...@linuxfoundation.org; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: RE: [PATCH 2/6] usb: gadget: mv_ud

RE: [PATCH 2/6] usb: gadget: mv_udc: disable HW zlt for ep0

2014-02-24 Thread Neil Zhang
> -Original Message- > From: Peter Chen [mailto:peter.c...@freescale.com] > Sent: 2014年2月25日 9:19 > To: Neil Zhang > Cc: ba...@ti.com; gre...@linuxfoundation.org; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH 2/6] usb: gadget: mv_ud

RE: [PATCH 0/6] bug fix for mv_udc_core.c

2014-02-24 Thread Neil Zhang
> -Original Message- > From: Matthieu CASTET [mailto:matthieu.cas...@parrot.com] > Sent: 2014年2月24日 18:32 > To: Neil Zhang > Cc: ba...@ti.com; gre...@linuxfoundation.org; linux-...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH 0/6] bug fix for

[PATCH 0/6] bug fix for mv_udc_core.c

2014-02-24 Thread Neil Zhang
This patch set is mainly for bug fix. Neil Zhang (6): usb: gadget: mv_udc: remove redundant pull up in udc_start usb: gadget: mv_udc: disable HW zlt for ep0 usb: gadget: mv_udc: clear corresponding interrupt when flush fifo usb: gadget: mv_udc: check endpoint before queue dtd USB

[PATCH 1/6] usb: gadget: mv_udc: remove redundant pull up in udc_start

2014-02-24 Thread Neil Zhang
Romove redundant pull up in udc_start since function udc_bind_to_driver in udc-core.c will do it for us. Signed-off-by: Neil Zhang --- drivers/usb/gadget/mv_udc_core.c |3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c

[PATCH 3/6] usb: gadget: mv_udc: clear corresponding interrupt when flush fifo

2014-02-24 Thread Neil Zhang
need clear the pending corresponding interrupt as well as flush endpoint. Signed-off-by: Neil Zhang --- drivers/usb/gadget/mv_udc_core.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/gadget/mv_udc_core.c b/drivers/usb/gadget/mv_udc_core.c index 657ac5c..d5a9bdf 100644 --

[PATCH 2/6] usb: gadget: mv_udc: disable HW zlt for ep0

2014-02-24 Thread Neil Zhang
Hardware zlt will try to send the zero length packet automatically when the data transferd is multiple times of max packet, this will cause issues on Windows. So let's disable HW zlt by default. Signed-off-by: Neil Zhang --- drivers/usb/gadget/mv_udc_core.c |2 +- 1 file chang

[PATCH 4/6] usb: gadget: mv_udc: check endpoint before queue dtd

2014-02-24 Thread Neil Zhang
There is a corner case that endpoint is disabled by system shutdown between check ep->desc and hold spin lock in mv_ep_queue. In this case ep->ep.desc will be NULL and occur kernel panic when access it in build_dtd. Signed-off-by: Neil Zhang --- drivers/usb/gadget/mv_udc_core.c

[PATCH 5/6] USB: gadget: mv_udc: workaroud for missing dTD

2014-02-24 Thread Neil Zhang
eqh_status (56), and release_prime_mask (42) states. As shown in the waveform, the ep_addtd_tripwire_clr signal is not set to clear the tripwire bit in these states. Signed-off-by: Neil Zhang --- drivers/usb/gadget/mv_udc_core.c | 20 1 file changed, 20 insertions(+) di

[PATCH 6/6] USB: gadget: mv_udc: fix corner case for missiong dTD

2014-02-24 Thread Neil Zhang
When the missing dTD issue is triggerred, queue_dtd may prime the new request instead of the missing dTD. We can just add the request to the queue end and jump out if there are more than one request in the queue already. Signed-off-by: Neil Zhang --- drivers/usb/gadget/mv_udc_core.c | 12

RE: [PATCH] gpio: pxa: normalize the return value for gpio_get

2014-01-15 Thread Neil Zhang
> -Original Message- > From: Linus Walleij [mailto:linus.wall...@linaro.org] > Sent: 2014年1月15日 15:58 > To: Neil Zhang > Cc: Alexandre Courbot; linux-g...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH] gpio: pxa: normalize the return value for

[PATCH] arm64: fix typo in entry.S

2014-01-13 Thread Neil Zhang
Commit 64681787 (arm64: let the core code deal with preempt_count) changed the code, but left the comments unchanged, fix it. Signed-off-by: Neil Zhang --- arch/arm64/kernel/entry.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/entry.S b/arch/arm64

[PATCH] gpio: pxa: normalize the return value for gpio_get

2014-01-09 Thread Neil Zhang
It would be convenient to normalize the return value for gpio_get. I have checked mach-mmp / mach-pxa / plat-pxa / plat-orion / mach-orion5x. It's OK for all of them to change this function to return 0 and 1. Signed-off-by: Neil Zhang --- drivers/gpio/gpio-pxa.c |3 ++- 1 file chang

RE: [PATCH] gpio: pxa: fix bug when get gpio value

2014-01-09 Thread Neil Zhang
Gerhard Firstly thanks for your comments. > -Original Message- > From: Gerhard Sittig [mailto:g...@denx.de] > Sent: 2014年1月9日 18:46 > To: Neil Zhang > Cc: linus.wall...@linaro.org; gnu...@gmail.com; linux-g...@vger.kernel.org; > linux-kernel@vger.kernel.org > Subj

RE: [PATCH] gpio: pxa: fix bug when get gpio value

2014-01-09 Thread Neil Zhang
> -Original Message- > From: Neil Zhang [mailto:zhan...@marvell.com] > Sent: 2014年1月9日 17:26 > To: linus.wall...@linaro.org; gnu...@gmail.com; linux-g...@vger.kernel.org; > linux-ker...@vger.kernel.or > Cc: Neil Zhang > Subject: [PATCH] gpio: pxa: fix bu

RE: [PATCH v3] irqchip: mmp: avoid use head file in a specific arch

2013-12-27 Thread Neil Zhang
Thomas, > -Original Message- > From: Neil Zhang > Sent: 2013年12月13日 13:36 > To: Neil Zhang; t...@linutronix.de; haojian.zhu...@gmail.com; > linux-kernel@vger.kernel.org > Subject: RE: [PATCH v3] irqchip: mmp: avoid use head file in a specific arch > > Thomas, >

RE: [PATCH v3] irqchip: mmp: avoid use head file in a specific arch

2013-12-12 Thread Neil Zhang
Thomas, > -Original Message- > From: Neil Zhang [mailto:zhan...@marvell.com] > Sent: 2013年12月6日 18:47 > To: t...@linutronix.de; haojian.zhu...@gmail.com; > linux-kernel@vger.kernel.org > Cc: Neil Zhang > Subject: [PATCH v3] irqchip: mmp: avoid use head file in a s

RE: [PATCH] usb: phy: initilize the notifier when add a new phy

2013-12-10 Thread Neil Zhang
> -Original Message- > From: Neil Zhang [mailto:zhan...@marvell.com] > Sent: 2013年12月11日 14:18 > To: ba...@ti.com; gre...@linuxfoundation.org > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Neil Zhang > Subject: [PATCH] usb: phy: initilize the notifier

[PATCH v2] usb: phy: initilize the notifier when add a new phy

2013-12-10 Thread Neil Zhang
We need to initilize the notifer before use it. So lets initilize it when add a new phy device to reduce the code redundance. Signed-off-by: Neil Zhang --- drivers/usb/phy/phy-ab8500-usb.c|2 -- drivers/usb/phy/phy-generic.c |1 - drivers/usb/phy/phy-gpio-vbus-usb.c |2

RE: [PATCH] usb: phy: Initilize the spinlock in notifier

2013-12-10 Thread Neil Zhang
> -Original Message- > From: Neil Zhang [mailto:zhan...@marvell.com] > Sent: 2013年12月11日 13:05 > To: ba...@ti.com; gre...@linuxfoundation.org > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; Neil Zhang > Subject: [PATCH] usb: phy: Initilize the spinlock i

[PATCH] usb: phy: initilize the notifier when add a new phy

2013-12-10 Thread Neil Zhang
We need to initilize the notifer before use it. So lets initilize it when add a new phy device to reduce the code redundance. Signed-off-by: Neil Zhang --- drivers/usb/phy/phy-ab8500-usb.c|2 -- drivers/usb/phy/phy-generic.c |1 - drivers/usb/phy/phy-gpio-vbus-usb.c |2

[PATCH] usb: phy: Initilize the spinlock in notifier

2013-12-10 Thread Neil Zhang
We need to initilize every spinlock before use it. So lets initilize the spinlock in notifier when add a new phy device. Signed-off-by: Neil Zhang --- drivers/usb/phy/phy.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/usb/phy/phy.c b/drivers/usb/phy/phy.c index 1b74523

[PATCH v3] irqchip: mmp: avoid use head file in a specific arch

2013-12-06 Thread Neil Zhang
For example, arm64 doesn't have mach/irq.h. Signed-off-by: Neil Zhang Acked-by: Haojian Zhuang --- drivers/irqchip/irq-mmp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mmp.c b/drivers/irqchip/irq-mmp.c index 2cb7cd0..470c5de 100644 --- a/dr

[PATCH v3] irqchip: mmp: add dt support for wakeup

2013-12-04 Thread Neil Zhang
Some of the Marvell SoCs use GIC as its interrupt controller,and ICU only used as wakeup logic. When AP subsystem is powered off, GIC will lose its context, the PMU will need ICU to wakeup the AP subsystem. So add wakeup entry for such kind of usage. Signed-off-by: Neil Zhang --- .../devicetree

RE: [PATCH 2/2 v2] irqchip: mmp: add dt support for wakeup

2013-11-27 Thread Neil Zhang
Mark, Sorry for reply late. > -Original Message- > From: Mark Rutland [mailto:mark.rutl...@arm.com] > Sent: 2013年11月15日 20:50 > To: Neil Zhang > Cc: Haojian Zhuang; devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > Thomas Gleixner > Subject: Re: [PATCH 2/2

RE: [PATCH 2/2 v2] irqchip: mmp: add dt support for wakeup

2013-11-15 Thread Neil Zhang
> -Original Message- > From: Mark Rutland [mailto:mark.rutl...@arm.com] > Sent: 2013年11月14日 20:28 > To: Haojian Zhuang > Cc: Neil Zhang; devicet...@vger.kernel.org; linux-kernel@vger.kernel.org; > Thomas Gleixner > Subject: Re: [PATCH 2/2 v2] irqchip: mmp: add

RE: [PATCH 2/2 v2] irqchip: mmp: add dt support for wakeup

2013-10-24 Thread Neil Zhang
Haojian, > -Original Message- > From: Neil Zhang > Sent: 2013年10月18日 17:50 > To: Neil Zhang; linux-kernel@vger.kernel.org > Cc: haojian.zhu...@gmail.com; t...@linutronix.de > Subject: RE: [PATCH 2/2 v2] irqchip: mmp: add dt support for wakeup > > Ping ? >

RE: [PATCH 2/2 v2] irqchip: mmp: add dt support for wakeup

2013-10-18 Thread Neil Zhang
Ping ? > -Original Message- > From: Neil Zhang [mailto:zhan...@marvell.com] > Sent: 2013年10月11日 16:24 > To: linux-kernel@vger.kernel.org > Cc: haojian.zhu...@gmail.com; t...@linutronix.de; Neil Zhang > Subject: [PATCH 2/2 v2] irqchip: mmp: add dt support for wakeu

RE: [Question] Ask for arm arch timer

2013-10-16 Thread Neil Zhang
> -Original Message- > From: Catalin Marinas [mailto:catalin.mari...@arm.com] > Sent: 2013年10月16日 21:21 > To: Rob Herring > Cc: Neil Zhang; linux-kernel@vger.kernel.org; Yu Tang; Zhou Zhu; Will Deacon > Subject: Re: [Question] Ask for arm arch timer > > On Wed, Oc

[Question] Ask for arm arch timer

2013-10-16 Thread Neil Zhang
: Rob Herring Date: Wed Apr 10 18:27:51 2013 -0500 ARM: convert arm/arm64 arch timer to use CLKSRC_OF init Best Regards, Neil Zhang -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo inf

[PATCH 0/2 v2] add wakeup dt support for irq mmp

2013-10-11 Thread Neil Zhang
changelog: V2: add the missing head file. Neil Zhang (2): irqchip: mmp: avoid use head file in a specific arch irqchip: mmp: add dt support for wakeup .../devicetree/bindings/arm/mrvl/intc.txt | 14 ++- drivers/irqchip/irq-mmp.c | 126

[PATCH 2/2 v2] irqchip: mmp: add dt support for wakeup

2013-10-11 Thread Neil Zhang
Some of the Marvell SoCs use GIC as its interrupt controller,and ICU only used as wakeup logic. When AP subsystem is powered off, GIC will lose its context, the PMU will need ICU to wakeup the AP subsystem. So add wakeup entry for such kind of usage. Signed-off-by: Neil Zhang --- .../devicetree

[PATCH 1/2 v2] irqchip: mmp: avoid use head file in a specific arch

2013-10-11 Thread Neil Zhang
For example, arm64 doesn't have mach/irq.h. Signed-off-by: Neil Zhang --- drivers/irqchip/irq-mmp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mmp.c b/drivers/irqchip/irq-mmp.c index 2cb7cd0..470c5de 100644 --- a/drivers/irqchip/irq-mmp.c

[PATCH 2/2] irqchip: mmp: add dt support for wakeup

2013-10-10 Thread Neil Zhang
Some of the Marvell SoCs use GIC as its interrupt controller, and ICU only used as wakeup logic. When AP subsystem is powered off, GIC will lose its context, the PMU will need ICU to wakeup the AP subsystem. So add wakeup entry for such kind of usage. Signed-off-by: Neil Zhang

[PATCH 1/2] irqchip: mmp: avoid use head file in a specific arch

2013-10-10 Thread Neil Zhang
For example, arm64 doesn't have mach/irq.h. Signed-off-by: Neil Zhang --- drivers/irqchip/irq-mmp.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/irqchip/irq-mmp.c b/drivers/irqchip/irq-mmp.c index 2cb7cd0..470c5de 100644 --- a/drivers/irqchip/irq-mmp.c

  1   2   >