[RFC PATCH powerpc] try secondary hash before BUG in kernel_map_linear_page()

2013-02-25 Thread Li Zhong
This patch tries to fix following issue when CONFIG_DEBUG_PAGEALLOC is enabled: [ 543.075675] [ cut here ] [ 543.075701] kernel BUG at arch/powerpc/mm/hash_utils_64.c:1239! [ 543.075714] Oops: Exception in kernel mode, sig: 5 [#1] [ 543.075722] PREEMPT SMP NR_CPUS=16

RE: [PATCH 0/6 v8] iommu/fsl: Freescale PAMU driver and IOMMU API implementation.

2013-02-25 Thread Sethi Varun-B16395
Hi Joerg, Do you have any comments on the patch set. Regards Varun -Original Message- From: Sethi Varun-B16395 Sent: Monday, February 18, 2013 6:22 PM To: io...@lists.linux-foundation.org; linuxppc-dev@lists.ozlabs.org; linux-ker...@vger.kernel.org; Wood Scott-B07421;

Re: [PATCH v6 04/46] percpu_rwlock: Implement the core design of Per-CPU Reader-Writer Locks

2013-02-25 Thread Srivatsa S. Bhat
Hi Lai, On 02/25/2013 09:23 PM, Lai Jiangshan wrote: Hi, Srivatsa, The target of the whole patchset is nice for me. Cool! Thanks :-) A question: How did you find out the such usages of preempt_disable() and convert them? did all are converted? Well, I scanned through the source tree

Re: [PATCH v6 04/46] percpu_rwlock: Implement the core design of Per-CPU Reader-Writer Locks

2013-02-25 Thread Lai Jiangshan
Hi, Srivatsa, The target of the whole patchset is nice for me. A question: How did you find out the such usages of preempt_disable() and convert them? did all are converted? And I think the lock is too complex and reinvent the wheel, why don't you reuse the lglock? I wrote an untested draft

Re: [PATCH v6 00/46] CPU hotplug: stop_machine()-free CPU hotplug

2013-02-25 Thread Rusty Russell
Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com writes: Hi, This patchset removes CPU hotplug's dependence on stop_machine() from the CPU offline path and provides an alternative (set of APIs) to preempt_disable() to prevent CPUs from going offline, which can be invoked from atomic context.

Re: [PATCH v6 00/46] CPU hotplug: stop_machine()-free CPU hotplug

2013-02-25 Thread Srivatsa S. Bhat
On 02/22/2013 06:01 AM, Rusty Russell wrote: Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com writes: Hi, This patchset removes CPU hotplug's dependence on stop_machine() from the CPU offline path and provides an alternative (set of APIs) to preempt_disable() to prevent CPUs from going

Re: [PATCH 2/6] powerpc/fsl_pci: Store the platform device information corresponding to the pci controller.

2013-02-25 Thread Stuart Yoder
This patch was submitted separately to linuxppc-dev (and was already applied). You don't need it in this patch set, right? Stuart On Mon, Feb 18, 2013 at 6:52 AM, Varun Sethi varun.se...@freescale.com wrote: The pci controller structure has a provision to store the device strcuture pointer of

Re: [PATCH v6 04/46] percpu_rwlock: Implement the core design of Per-CPU Reader-Writer Locks

2013-02-25 Thread Lai Jiangshan
On Tue, Feb 26, 2013 at 3:26 AM, Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com wrote: Hi Lai, On 02/25/2013 09:23 PM, Lai Jiangshan wrote: Hi, Srivatsa, The target of the whole patchset is nice for me. Cool! Thanks :-) A question: How did you find out the such usages of

Re: [PATCH v6 04/46] percpu_rwlock: Implement the core design of Per-CPU Reader-Writer Locks

2013-02-25 Thread Lai Jiangshan
On Tue, Feb 26, 2013 at 8:17 AM, Lai Jiangshan eag0...@gmail.com wrote: On Tue, Feb 26, 2013 at 3:26 AM, Srivatsa S. Bhat srivatsa.b...@linux.vnet.ibm.com wrote: Hi Lai, On 02/25/2013 09:23 PM, Lai Jiangshan wrote: Hi, Srivatsa, The target of the whole patchset is nice for me. Cool!

[PATCH] ppc32: Fix compile of sha1-powerpc-asm.S

2013-02-25 Thread Tony Breeds
When building with CRYPTO_SHA1_PPC enabled we fail with: --- powerpc/crypto/sha1-powerpc-asm.S: Assembler messages: powerpc/crypto/sha1-powerpc-asm.S:116: Error: can't resolve `0' {*ABS* section} - `STACKFRAMESIZE' {*UND* section} powerpc/crypto/sha1-powerpc-asm.S:116: Error: expression too

[PATCH] PowerPC:PSeries: strncpy need limit destnation length

2013-02-25 Thread Chen Gang
the dest buf len is 80 (HVCS_CLC_LENGTH + 1). the src buf len is PAGE_SIZE. if src buf string len is more than 80, it will cause issue. Signed-off-by: Chen Gang gang.c...@asianux.com --- arch/powerpc/platforms/pseries/hvcserver.c |5 +++-- 1 files changed, 3 insertions(+), 2

[PATCH] powerpc/85xx: Reserve a partition of NOR flash for QE ucode firmware

2013-02-25 Thread Jiucheng Xu
Due to the partition of JFFS2 overlaps with QE ucode firmware, So JFFS2 will break QE ucode. Shrink JFFS2's partition to reserve the space of QE ucode firmware. Signed-off-by: Jiucheng Xu jiucheng...@freescale.com --- arch/powerpc/boot/dts/p1021rdb-pc.dtsi | 12 ++-- 1 files changed,

[PATCH] drivers/tty/hvc: using strlcpy instead of strncpy

2013-02-25 Thread Chen Gang
when strlen pi-location_code is larger than HVCS_CLC_LENGTH + 1, original implementation can not let hvcsd-p_location_code NUL terminated. so need fix it (also can simplify the code) Signed-off-by: Chen Gang gang.c...@asianux.com --- drivers/tty/hvc/hvcs.c |9 ++--- 1 files

Re: [PATCH 5/6][v4]: perf: Create a sysfs entry for Power event format

2013-02-25 Thread Michael Ellerman
On Tue, Jan 22, 2013 at 10:26:13PM -0800, Sukadev Bhattiprolu wrote: [PATCH 5/6][v4]: perf: Create a sysfs entry for Power event format Create a sysfs entry, '/sys/bus/event_source/devices/cpu/format/event' which describes the format of a POWER cpu. Did this patch go upstream? I don't see

RE: [PATCH 2/6] powerpc/fsl_pci: Store the platform device information corresponding to the pci controller.

2013-02-25 Thread Sethi Varun-B16395
This patch is not present in Joerg's tree and the add_device API in the PAMU driver requires this patch. -Varun -Original Message- From: Stuart Yoder [mailto:b08...@gmail.com] Sent: Tuesday, February 26, 2013 5:39 AM To: Sethi Varun-B16395 Cc: io...@lists.linux-foundation.org;