Re: [RFC PATCH v2 4/4] powerpc: Try to insert the hptes repeatedly in kernel_map_linear_page()

2013-04-14 Thread Michael Ellerman
On Fri, Apr 12, 2013 at 10:17:00AM +0800, Li Zhong wrote: > This patch tries to fix following issue when CONFIG_DEBUG_PAGEALLOC > is enabled: Please include a better changelog. This patch does fix (I hope?) the following oops, caused by xxx. Reproducible by doing yyy. cheers > > [ 543.075675]

Re: [RFC PATCH v2 1/4] powerpc: Move the setting of rflags out of loop in __hash_page_huge

2013-04-14 Thread Michael Ellerman
On Fri, Apr 12, 2013 at 10:16:57AM +0800, Li Zhong wrote: > It seems that rflags don't get changed in the repeating loop, so move > it out of the loop. You've also changed the way new_pte is handled on repeat, but I think that's OK too. cheers > diff --git a/arch/powerpc/mm/hugetlbpage-hash64.c

Re: [PATCH] perf: Power7: Make CPI stack events available in sysfs

2013-04-14 Thread Michael Ellerman
On Sat, Apr 06, 2013 at 09:48:03AM -0700, Sukadev Bhattiprolu wrote: > From bdeacf7175241f6c79b5b2be0fa6b20b0d0b7d1c Mon Sep 17 00:00:00 2001 > From: Sukadev Bhattiprolu > Date: Sat, 6 Apr 2013 08:48:26 -0700 > Subject: [PATCH] perf: Power7: Make CPI stack events available in sysfs > > A set of P

[PATCH] powerpc: fix usage of setup_pci_atmu()

2013-04-14 Thread Michael Neuling
Linux next is currently failing to compile mpc85xx_defconfig with: arch/powerpc/sysdev/fsl_pci.c:944:2: error: too many arguments to function 'setup_pci_atmu' This is caused by (from Kumar's next branch): commit 34642bbb3d12121333efcf4ea7dfe66685e403a1 Author: Kumar Gala powerpc/fsl-pci:

Re: [PATCH] Enable CONFIG_DEVTMPFS_MOUNT to ensure /dev can be mounted correctly

2013-04-14 Thread Michael Ellerman
On Thu, Apr 11, 2013 at 09:56:30PM +0800, Zhenhua Luo wrote: > When using recent udev, the /dev node mount requires CONFIG_DEVTMPFS_MOUNT > is enabled in Kernel. Really? I know it makes life easier when you don't have an initramfs, but is it actually required now? cheers

Re: [PATCHv3 1/2] ppc64: perform proper max_bus_speed detection

2013-04-14 Thread Michael Ellerman
On Thu, Apr 11, 2013 at 10:13:13AM -0300, Lucas Kannebley Tavares wrote: > On pseries machines the detection for max_bus_speed should be done > through an OpenFirmware property. This patch adds a function to perform this > detection and a hook to perform dynamic adding of the function only for > ps

[PATCH] powerpc/perf: Power8 PMU support

2013-04-14 Thread Michael Ellerman
This patch adds preliminary support for the power8 PMU to perf. Signed-off-by: Michael Ellerman --- arch/powerpc/perf/Makefile |3 +- arch/powerpc/perf/power8-pmu.c | 454 2 files changed, 456 insertions(+), 1 deletion(-) create mode 100644 arch

Re: [RFC PATCH v2 3/4] powerpc: Don't bolt the hpte in kernel_map_linear_page()

2013-04-14 Thread Paul Mackerras
On Fri, Apr 12, 2013 at 10:16:59AM +0800, Li Zhong wrote: > It seems that in kernel_unmap_linear_page(), it only checks whether there > is a map in the linear_map_hash_slots array, so seems we don't need bolt > the hpte. I don't exactly understand your rationale here, but I don't think it's safe n

[PATCH] powerpc: Fix audit crash due to save/restore PPR changes

2013-04-14 Thread Alistair Popple
The current mainline crashes when hitting userspace with the following: kernel BUG at /home/alistair/Source/linux-stable/kernel/auditsc.c:1769! cpu 0x1: Vector: 700 (Program Check) at [c00023883a60] pc: c01047a8: .__audit_syscall_entry+0x38/0x130 lr: c000ed64: .do_sysca

Re: [PATCH -V5 24/25] powerpc: Optimize hugepage invalidate

2013-04-14 Thread David Gibson
On Sun, Apr 14, 2013 at 03:32:12PM +0530, Aneesh Kumar K.V wrote: > David Gibson writes: > > > On Thu, Apr 04, 2013 at 11:28:02AM +0530, Aneesh Kumar K.V wrote: > >> From: "Aneesh Kumar K.V" > >> > >> Hugepage invalidate involves invalidating multiple hpte entries. > >> Optimize the operation u

Re: [PATCH 03/17] powerpc/85xx: cache operations for Freescale SoCs based on BOOK3E

2013-04-14 Thread Zhao Chenhui
On Wed, Apr 03, 2013 at 09:09:11PM +0800, Zhao Chenhui wrote: > These cache operations support Freescale SoCs based on BOOK3E. > Move L1 cache operations to fsl_booke_cache.S in order to maintain > easily. And, add cache operations for backside L2 cache and platform cache. > > The backside L2 cach

Re: [PATCH 0/3] freescale: Update logging style

2013-04-14 Thread David Miller
From: Joe Perches Date: Sat, 13 Apr 2013 22:03:16 -0700 > Convert various printk logging styles to current styles. > > Uncompiled, untested. > > Joe Perches (3): > fec: Convert printks to netdev_ > gianfar: Use netdev_ when possible > ucc_geth: Convert ugeth_ to pr_ All applied.

[PATCH 2/3 v12] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-14 Thread Varun Sethi
Added the following domain attributes for the FSL PAMU driver: 1. Added new iommu stash attribute, which allows setting of the LIODN specific stash id parameter through IOMMU API. 2. Added an attribute for enabling/disabling DMA to a particular memory window. 3. Added domain attribute to chec

[PATCH 1/3] iommu: Move swap_pci_ref function to pci.h.

2013-04-14 Thread Varun Sethi
swap_pci_ref function is used by the IOMMU API code for swapping pci device pointers, while determining the iommu group for the device. Currently this function was being implemented for different IOMMU drivers. This patch moves the function to pci.h so that the implementation can be shared across v

Re: [PATCH -V5 24/25] powerpc: Optimize hugepage invalidate

2013-04-14 Thread Aneesh Kumar K.V
David Gibson writes: > On Thu, Apr 04, 2013 at 11:28:02AM +0530, Aneesh Kumar K.V wrote: >> From: "Aneesh Kumar K.V" >> >> Hugepage invalidate involves invalidating multiple hpte entries. >> Optimize the operation using H_BULK_REMOVE on lpar platforms. >> On native, reduce the number of tlb flu