[PATCH][v2] perf tools, powerpc: Fix compile warnings in tests/attr.c

2013-01-23 Thread Sukadev Bhattiprolu
[PATCH][v2] perf tools, powerpc: Fix compile warnings in tests/attr.c We print several '__u64' quantities using '%llu'. On powerpc, we by default include ' which results in __u64 being an unsigned long. This causes compile warnings which are treated as errors due to '-Werror'. By defining __SANE

[PATCH] arch/powerpc/kernel: using %12.12s instead of %12s for avoiding memory overflow.

2013-01-23 Thread Chen Gang
for tmp_part->header.name: it is "Terminating null required only for names < 12 chars". so need to limit the %.12s for it in printk additional info: %12s limit the width, not for the original string output length if name length is more than 12, it still can be fully di

Re: [PATCH] perf/Power: PERF_EVENT_IOC_ENABLE does not reenable event

2013-01-23 Thread Paul Mackerras
On Fri, Jan 11, 2013 at 11:11:17AM -0800, Sukadev Bhattiprolu wrote: > If we disable a perf event because we exceeded the specified ->event_limit, > power_pmu_stop() sets the PERF_HES_STOPPED flag on the event. > > If the application then re-enables the event using PERF_EVENT_IOC_ENABLE > ioctl, w

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

2013-01-23 Thread Srivatsa S. Bhat
On 01/24/2013 01:27 AM, Tejun Heo wrote: > Hello, Srivatsa. > > On Thu, Jan 24, 2013 at 01:03:52AM +0530, Srivatsa S. Bhat wrote: >> Hmm.. I split it up into steps to help explain the reasoning behind >> the code sufficiently, rather than spring all of the intricacies at >> one go (which would mak

Re: [PATCH v5 01/45] percpu_rwlock: Introduce the global reader-writer lock backend

2013-01-23 Thread Michel Lespinasse
On Tue, Jan 22, 2013 at 11:32 AM, Steven Rostedt wrote: > On Tue, 2013-01-22 at 13:03 +0530, Srivatsa S. Bhat wrote: >> A straight-forward (and obvious) algorithm to implement Per-CPU Reader-Writer >> locks can also lead to too many deadlock possibilities which can make it very >> hard/impossible

Re: [v0][PATCH 1/1] powerpc/book3e: disable interrupt after preempt_schedule_irq

2013-01-23 Thread Benjamin Herrenschmidt
On Sun, 2013-01-06 at 18:49 +0800, Tiejun Chen wrote: > In preempt case current arch_local_irq_restore() from > preempt_schedule_irq() may enable hard interrupt but we really > should disable interrupts when we return from the interrupt, > and so that we don't get interrupted after loading SRR0/1.

Re: [PATCH powerpc ] Avoid debug_smp_processor_id() check in arch_spin_unlock_wait()

2013-01-23 Thread Benjamin Herrenschmidt
On Thu, 2013-01-10 at 17:00 +0800, Li Zhong wrote: > Use local_paca directly in arch_spin_unlock_wait(), as all processors have the > same value for the field shared_proc, so we don't need care racy here. Of course that won't build if CONFIG_PPC_SPLPAR isn't defined... Maybe you could change the

Re: [PATCH] perf: Fix compile warnings in tests/attr.c

2013-01-23 Thread Michael Ellerman
On Wed, 2013-01-23 at 10:57 -0800, Sukadev Bhattiprolu wrote: > Michael Ellerman [mich...@ellerman.id.au] wrote: > | > | make: *** [tests/attr.o] Error 1 > | > | > | > | i386 compiles fine > | > > | > __u64 is 'unsigned long long' on x86 and PRIu64 is 'llu' which is fine. > | > > | > __u64 is 'u

Re: [PATCH Bug fix 0/5] Bug fix for physical memory hot-remove.

2013-01-23 Thread Simon Jeons
On Thu, 2013-01-24 at 09:36 +0800, Tang Chen wrote: > On 01/24/2013 08:35 AM, Simon Jeons wrote: > > On Wed, 2013-01-23 at 21:17 +0800, Tang Chen wrote: > >> On 01/23/2013 08:29 PM, Simon Jeons wrote: > >>> Hi Tang, > >>> > >>> I remember your big physical memory hot-remove patchset has already > >

Re: [PATCH Bug fix 0/5] Bug fix for physical memory hot-remove.

2013-01-23 Thread Tang Chen
On 01/24/2013 08:35 AM, Simon Jeons wrote: On Wed, 2013-01-23 at 21:17 +0800, Tang Chen wrote: On 01/23/2013 08:29 PM, Simon Jeons wrote: Hi Tang, I remember your big physical memory hot-remove patchset has already merged by Andrew, but where I can find it? Could you give me git tree address?

[PATCH 8/8] mm: remove free_area_cache

2013-01-23 Thread Michel Lespinasse
Since all architectures have been converted to use vm_unmapped_area(), there is no remaining use for the free_area_cache. Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel --- arch/arm/mm/mmap.c |2 -- arch/arm64/mm/mmap.c |2 -- arch/mips/mm/mmap.c

[PATCH 7/8] mm: use vm_unmapped_area() on powerpc architecture

2013-01-23 Thread Michel Lespinasse
Update the powerpc slice_get_unmapped_area function to make use of vm_unmapped_area() instead of implementing a brute force search. Signed-off-by: Michel Lespinasse --- arch/powerpc/mm/slice.c | 123 ++- 1 files changed, 78 insertions(+), 45 deletion

[PATCH 6/8] mm: remove free_area_cache use in powerpc architecture

2013-01-23 Thread Michel Lespinasse
As all other architectures have been converted to use vm_unmapped_area(), we are about to retire the free_area_cache. This change simply removes the use of that cache in slice_get_unmapped_area(), which will most certainly have a performance cost. Next one will convert that function to use the vm_

[PATCH 5/8] mm: use vm_unmapped_area() in hugetlbfs on ia64 architecture

2013-01-23 Thread Michel Lespinasse
Update the ia64 hugetlb_get_unmapped_area function to make use of vm_unmapped_area() instead of implementing a brute force search. Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel --- arch/ia64/mm/hugetlbpage.c | 20 +--- 1 files changed, 9 insertions(+), 11 deletions(

[PATCH 4/8] mm: use vm_unmapped_area() on ia64 architecture

2013-01-23 Thread Michel Lespinasse
Update the ia64 arch_get_unmapped_area function to make use of vm_unmapped_area() instead of implementing a brute force search. Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel --- arch/ia64/kernel/sys_ia64.c | 37 - 1 files changed, 12 insertions(+

[PATCH 3/8] mm: use vm_unmapped_area() on frv architecture

2013-01-23 Thread Michel Lespinasse
Update the frv arch_get_unmapped_area function to make use of vm_unmapped_area() instead of implementing a brute force search. Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel --- arch/frv/mm/elf-fdpic.c | 49 -- 1 files changed, 17 insertio

[PATCH 2/8] mm: use vm_unmapped_area() on alpha architecture

2013-01-23 Thread Michel Lespinasse
Update the alpha arch_get_unmapped_area function to make use of vm_unmapped_area() instead of implementing a brute force search. Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel --- arch/alpha/kernel/osf_sys.c | 20 +--- 1 files changed, 9 insertions(+), 11 deletions(-

[PATCH 1/8] mm: use vm_unmapped_area() on parisc architecture

2013-01-23 Thread Michel Lespinasse
Update the parisc arch_get_unmapped_area function to make use of vm_unmapped_area() instead of implementing a brute force search. Signed-off-by: Michel Lespinasse Acked-by: Rik van Riel --- arch/parisc/kernel/sys_parisc.c | 46 ++ 1 files changed, 17 inser

[PATCH 0/8] convert remaining archs to use vm_unmapped_area()

2013-01-23 Thread Michel Lespinasse
This is a resend of my "finish the mission" patch series. I need arch maintainers to approve so I can push this to andrew's -mm tree. These patches, which apply on top of v3.8-rc kernels, are to complete the VMA gap finding code I introduced (following Rik's initial proposal) in v3.8-rc1. First 5

Re: [PATCH Bug fix 0/5] Bug fix for physical memory hot-remove.

2013-01-23 Thread Simon Jeons
On Wed, 2013-01-23 at 21:17 +0800, Tang Chen wrote: > On 01/23/2013 08:29 PM, Simon Jeons wrote: > > Hi Tang, > > > > I remember your big physical memory hot-remove patchset has already > > merged by Andrew, but where I can find it? Could you give me git tree > > address? > > Hi Simon, > > You ca

Re: [PATCH 2/2] powerpc/85xx: describe the PAMU topology in the device tree

2013-01-23 Thread Scott Wood
On 01/23/2013 11:27:29 AM, Gala Kumar-B11780 wrote: On Jan 17, 2013, at 4:34 PM, Timur Tabi wrote: > From: Timur Tabi > > The PAMU caches use the LIODNs to determine which cache lines hold the > entries for the corresponding LIODs. The LIODNs must therefore be > carefully assigned to avoid

Re: Freescale P2020 CPU Freeze over PCIe abort signal

2013-01-23 Thread Scott Wood
On 01/23/2013 11:41:26 AM, siva kumar wrote: Hi , Is there any update on this , am getting in to the same state . https://lists.ozlabs.org/pipermail/linuxppc-dev/2010-October/086680.html Eran's initial comment of "This should probably go to the Freescale support" seems right. You can reach

[PATCH 3/4] powerpc: add alternate dts file for sbc8548 boot via SODIMM

2013-01-23 Thread Paul Gortmaker
By moving the two JP12 jumpers 90 degrees, and switching the setting of SW2.8, the sbc8548 can be configured to boot off the alternate 64MB SODIMM, which when populated with u-boot can be a handy recovery option, in case the u-boot in the 8MB soldered on flash gets corrupted. Here we add an altern

[PATCH 2/4] powerpc: update sbc8548 flash information to match recent u-boot

2013-01-23 Thread Paul Gortmaker
The original memory map for the sbc8548 had the 64MB SODIMM flash device misaligned by 8MB to allow a window of address space for the soldered on 8MB device -- i.e. start end CS width Desc. -- fb80_ ff7f

[PATCH 1/4] powerpc: split sbc8548 dts file into pre and post chunks

2013-01-23 Thread Paul Gortmaker
Updates to u-boot allow this board to boot off of either the 8MB soldered on flash, or the 64MB SODIMM flash. This is achieved by changing JP12 and SW2.8 which in turn swaps which flash device appears on /CS0 and /CS6 respectively. Since the flash devices are not the same size, this also changes

[PATCH 0/4] powerpc: update sbc8548 flash/mtd settings

2013-01-23 Thread Paul Gortmaker
The sbc8548 dts information for flash was out of date with respect to u-boot configuration changes made just over a year ago. However MTD support wasn't enabled by default, so the stale information wasn't really an issue. Here we update that information, split the dts file to allow sharing the co

[PATCH 4/4] powerpc: enable MTD options in sbc8548 defconfig

2013-01-23 Thread Paul Gortmaker
This board has soldered on flash, and a SODIMM flash module. Both can be used for booting, via switching JP12 and SW2.8 and using the sbc8548-altflash.dts when booting from SODIMM. Here we enable MTD in kernel so that we can see the bootloader (and other flash sectors) from linux. Normal configur

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

2013-01-23 Thread Tejun Heo
Hello, Srivatsa. On Thu, Jan 24, 2013 at 01:03:52AM +0530, Srivatsa S. Bhat wrote: > Hmm.. I split it up into steps to help explain the reasoning behind > the code sufficiently, rather than spring all of the intricacies at > one go (which would make it very hard to write the changelog/comments > a

Re: Freescale P2020 CPU Freeze over PCIe abort signal

2013-01-23 Thread siva kumar
Hi , Is there any update on this , am getting in to the same state . https://lists.ozlabs.org/pipermail/linuxppc-dev/2010-October/086680.html Thanks, Sivakumar ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo

Re: [PATCH Bug fix 0/5] Bug fix for physical memory hot-remove.

2013-01-23 Thread Simon Jeons
On Tue, 2013-01-22 at 19:42 +0800, Tang Chen wrote: > Here are some bug fix patches for physical memory hot-remove. All these > patches are based on the latest -mm tree. > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git akpm > > And patch1 and patch3 are very important. > patch1:

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

2013-01-23 Thread Srivatsa S. Bhat
On 01/24/2013 12:25 AM, Tejun Heo wrote: > Hello, Srivatsa. > > First of all, I'm not sure whether we need to be this step-by-step > when introducing something new. It's not like we're transforming an > existing implementation and it doesn't seem to help understanding the > series that much eithe

Re: [PATCH] perf: Fix compile warnings in tests/attr.c

2013-01-23 Thread Sukadev Bhattiprolu
Michael Ellerman [mich...@ellerman.id.au] wrote: | > | make: *** [tests/attr.o] Error 1 | > | | > | i386 compiles fine | > | > __u64 is 'unsigned long long' on x86 and PRIu64 is 'llu' which is fine. | > | > __u64 is 'unsigned long' on Power and PRIu64 is 'lu' which is again fine. | > | > But __

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

2013-01-23 Thread Tejun Heo
Hello, Srivatsa. First of all, I'm not sure whether we need to be this step-by-step when introducing something new. It's not like we're transforming an existing implementation and it doesn't seem to help understanding the series that much either. On Tue, Jan 22, 2013 at 01:03:53PM +0530, Srivats

Re: [PATCH 1/2] powerpc/mpic: allow coreint to be determined by MPIC version

2013-01-23 Thread Scott Wood
On 01/23/2013 11:23:51 AM, Kumar Gala wrote: On Jan 21, 2013, at 7:56 PM, Scott Wood wrote: > This will be used by the qemu-e500 platform, as the MPIC version (and > thus whether we have coreint) depends on how QEMU is configured. > > Signed-off-by: Scott Wood > --- > arch/powerpc/sysdev/mp

Re: [PATCH 2/2] powerpc/85xx: describe the PAMU topology in the device tree

2013-01-23 Thread Gala Kumar-B11780
On Jan 17, 2013, at 4:34 PM, Timur Tabi wrote: > From: Timur Tabi > > The PAMU caches use the LIODNs to determine which cache lines hold the > entries for the corresponding LIODs. The LIODNs must therefore be > carefully assigned to avoid cache thrashing -- two active LIODs with > LIODNs that

Re: [PATCH 1/2] powerpc/mpic: allow coreint to be determined by MPIC version

2013-01-23 Thread Kumar Gala
On Jan 21, 2013, at 7:56 PM, Scott Wood wrote: > This will be used by the qemu-e500 platform, as the MPIC version (and > thus whether we have coreint) depends on how QEMU is configured. > > Signed-off-by: Scott Wood > --- > arch/powerpc/sysdev/mpic.c | 26 +++--- > 1 file c

Re: [PATCH Bug fix 0/5] Bug fix for physical memory hot-remove.

2013-01-23 Thread Tang Chen
On 01/23/2013 08:29 PM, Simon Jeons wrote: Hi Tang, I remember your big physical memory hot-remove patchset has already merged by Andrew, but where I can find it? Could you give me git tree address? Hi Simon, You can find all the physical memory hot-remove patches and related bugfix patches f

[PATCH] powerpc: make irq_stat.timers_irqs counting more specific

2013-01-23 Thread Fan Du
Current irq_stat.timers_irqs counting doesn't discriminate timer event handler and other timer interrupt(like arch_irq_work_raise). Sometimes we need to know exactly how much interrupts timer event handler fired, so let's be more specific on this. Signed-off-by: Fan Du --- arch/powerpc/include/a