Re: [PATCH 1/9] PCI: Use dev_is_pci() to check whether it is pci device

2013-12-09 Thread Yijing Wang
On 2013/12/10 8:01, Bjorn Helgaas wrote: > [+cc arch lists] > > On Thu, Dec 05, 2013 at 07:52:53PM +0800, Yijing Wang wrote: >> Use dev_is_pci() instead of directly compare >> pci_bus_type to check whether it is pci device. >> >> Signed-off-by: Yijing Wang > > I applied all these to my pci/yijin

[PATCH] powerpc: set default kernel thread priority to medium-low

2013-12-09 Thread Philippe Bergheaud
All the important PThread locking occurs in GLIBC libpthread.so For scaling to large core counts we need to stay out of the kernel and scheduler as much as possible which implies increasing the spin time in user mode. For POWER implementations with SMT this implies that user mode needs to manag

Re: [PATCH V4 07/10] powerpc, lib: Add new branch instruction analysis support functions

2013-12-09 Thread Anshuman Khandual
On 12/09/2013 11:51 AM, Michael Ellerman wrote: > On Wed, 2013-04-12 at 10:32:39 UTC, Anshuman Khandual wrote: >> Generic powerpc branch instruction analysis support added in the code >> patching library which will help the subsequent patch on SW based >> filtering of branch records in perf. This p

Re: [PATCH V4 08/10] powerpc, perf: Enable SW filtering in branch stack sampling framework

2013-12-09 Thread Anshuman Khandual
On 12/09/2013 11:51 AM, Michael Ellerman wrote: > This code was already in need of some unindentation, and now it's just > ridiculous. > > To start with at the beginning of this routine we have: > > while (..) { > if (!val) > break; > else { > // Bulk of th

Re: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-12-09 Thread Alex Williamson
On Tue, 2013-12-10 at 05:37 +, bharat.bhus...@freescale.com wrote: > > > -Original Message- > > From: Alex Williamson [mailto:alex.william...@redhat.com] > > Sent: Saturday, December 07, 2013 1:00 AM > > To: Wood Scott-B07421 > > Cc: Bhushan Bharat-R65777; linux-...@vger.kernel.org; ag

RE: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-12-09 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Saturday, December 07, 2013 1:00 AM > To: Wood Scott-B07421 > Cc: Bhushan Bharat-R65777; linux-...@vger.kernel.org; ag...@suse.de; Yoder > Stuart-B08248; io...@lists.linux-foundation.org; bhelg...@goo

RE: [PATCH 0/9 v2] vfio-pci: add support for Freescale IOMMU (PAMU)

2013-12-09 Thread bharat.bhus...@freescale.com
> -Original Message- > From: Wood Scott-B07421 > Sent: Saturday, December 07, 2013 12:55 AM > To: Bhushan Bharat-R65777 > Cc: Alex Williamson; linux-...@vger.kernel.org; ag...@suse.de; Yoder Stuart- > B08248; io...@lists.linux-foundation.org; bhelg...@google.com; linuxppc- > d...@lists.oz

Re: [git pull] Please pull powerpc.git merge branch

2013-12-09 Thread Benjamin Herrenschmidt
On Mon, 2013-12-09 at 19:58 -0800, Linus Torvalds wrote: > On Mon, Dec 9, 2013 at 5:57 PM, Benjamin Herrenschmidt > wrote: > > > > Here are a handful of powerpc fixes for 3.13. > > Grr. > > I've pulled it, but looking at that history, it's just pure and utter > f*cking garbage. > > It was rebas

Re: [PATCH 1/9] PCI: Use dev_is_pci() to check whether it is pci device

2013-12-09 Thread Benjamin Herrenschmidt
On Mon, 2013-12-09 at 17:01 -0700, Bjorn Helgaas wrote: > [+cc arch lists] > > On Thu, Dec 05, 2013 at 07:52:53PM +0800, Yijing Wang wrote: > > Use dev_is_pci() instead of directly compare > > pci_bus_type to check whether it is pci device. > > > > Signed-off-by: Yijing Wang > > I applied all t

Re: [git pull] Please pull powerpc.git merge branch

2013-12-09 Thread Linus Torvalds
On Mon, Dec 9, 2013 at 5:57 PM, Benjamin Herrenschmidt wrote: > > Here are a handful of powerpc fixes for 3.13. Grr. I've pulled it, but looking at that history, it's just pure and utter f*cking garbage. It was rebased *minutes* before sending it, as far as I can tell. Why? And it has a pointl

[PATCH] powerpc/pseries: Select ARCH_RANDOM on pseries

2013-12-09 Thread Michael Ellerman
We have a driver for the ARCH_RANDOM hook in rng.c, so we should select ARCH_RANDOM on pseries. Without this the build breaks if you turn ARCH_RANDOM off. This hasn't broken the build because pseries_defconfig doesn't specify a value for PPC_POWERNV, which is default y, and selects ARCH_RANDOM.

Re: [PATCH] powerpc/pseries: Don't try to register pseries cpu hotplug on non-pseries

2013-12-09 Thread Benjamin Herrenschmidt
On Tue, 2013-12-10 at 13:02 +1100, Michael Ellerman wrote: > On Tue, 2013-12-10 at 11:31 +1100, Benjamin Herrenschmidt wrote: > > This results in oddball messages at boot on other platforms telling us > > that CPU hotplug isn't supported even when it is. > > We have a bunch more. Most are probably

Re: [PATCH] powerpc/pseries: Don't try to register pseries cpu hotplug on non-pseries

2013-12-09 Thread Michael Ellerman
On Tue, 2013-12-10 at 11:31 +1100, Benjamin Herrenschmidt wrote: > This results in oddball messages at boot on other platforms telling us > that CPU hotplug isn't supported even when it is. We have a bunch more. Most are probably safe because they rely on the device tree but we should probably con

[git pull] Please pull powerpc.git merge branch

2013-12-09 Thread Benjamin Herrenschmidt
Hi Linus ! Here are a handful of powerpc fixes for 3.13. The patches are reasonably trivial and self contained. Note the offb patches outside of arch/powerpc, they are LE fixes for our open-firmware "dumb" framebuffer. Cheers, Ben. The following changes since commit 721cb59e9d95eb7f47ec73711ed3

[PATCH] powerpc/pseries: Don't try to register pseries cpu hotplug on non-pseries

2013-12-09 Thread Benjamin Herrenschmidt
This results in oddball messages at boot on other platforms telling us that CPU hotplug isn't supported even when it is. Signed-off-by: Benjamin Herrenschmidt --- arch/powerpc/platforms/pseries/hotplug-cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/platfor

Re: [PATCH 1/9] PCI: Use dev_is_pci() to check whether it is pci device

2013-12-09 Thread Bjorn Helgaas
[+cc arch lists] On Thu, Dec 05, 2013 at 07:52:53PM +0800, Yijing Wang wrote: > Use dev_is_pci() instead of directly compare > pci_bus_type to check whether it is pci device. > > Signed-off-by: Yijing Wang I applied all these to my pci/yijing-dev_is_pci branch for v3.14, thanks! Browse them he

[PATCH] powerpc/pasemi: turn on devtmpfs in defconfig

2013-12-09 Thread Olof Johansson
At least some distros expect it these days; turn it on. Also, random churn from doing a savedefconfig for the first time in a year or so. Signed-off-by: Olof Johansson --- arch/powerpc/configs/pasemi_defconfig |7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/pow

Re: [PATCH] powerpc: Fix "attempt to move .org backwards" error

2013-12-09 Thread Benjamin Herrenschmidt
On Tue, 2013-12-10 at 10:10 +1100, Stephen Rothwell wrote: > Reported-by: Stephen Rothwell > Tested-by: Stephen Rothwell > > Works for me. Thanks. I will add this to linux-next today if Ben > doesn't add it to his tree. I will but probably not soon enough for your cut today Cheers, Ben. __

Re: [PATCH] powerpc: Fix "attempt to move .org backwards" error

2013-12-09 Thread Stephen Rothwell
Hi, On Tue, 10 Dec 2013 00:40:15 +0530 Mahesh J Salgaonkar wrote: > > From: Mahesh Salgaonkar > > With recent machine check patch series changes, The exception vectors > starting from 0x4300 are now overflowing with allyesconfig. Fix that by > moving machine_check_common and machine_check_hand

Re: questions: second of the 2 pcie controllers does not scan the bus.

2013-12-09 Thread Scott Wood
On Fri, 2013-12-06 at 18:48 -0600, Ruchika wrote: > Hi, > I am working with an p4080 based board. I am trying to get 2 PCIE > controllers probed properly. > > In uboot I have no problems scanning and discovering what is connected > to both controllers/PCI bridges. > > For both PCIE1/2 uboot set

Please pull 'merge' branch of 5xxx tree

2013-12-09 Thread Anatolij Gustschin
Hi Ben ! Please pull a device tree fix for v3.13. The booting on mpc512x is broken since v3.13-rc1, this patch repairs it. Thanks, Anatolij The following changes since commit 721cb59e9d95eb7f47ec73711ed35ef85e1ea1ca: powerpc/windfarm: Fix XServe G5 fan control Makefile issue (2013-11-27 11:3

[PATCH] powerpc/52xx: re-enable bestcomm driver in defconfigs

2013-12-09 Thread Anatolij Gustschin
The bestcomm driver has been moved to drivers/dma, so to select this driver by default additionally CONFIG_DMADEVICES has to be enabled. Currently it is not enabled in the config despite existing CONFIG_PPC_BESTCOMM=y in the config files. Fix it. Signed-off-by: Anatolij Gustschin --- arch/powerp

[PATCH] powerpc: Fix "attempt to move .org backwards" error

2013-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar With recent machine check patch series changes, The exception vectors starting from 0x4300 are now overflowing with allyesconfig. Fix that by moving machine_check_common and machine_check_handle_early code out of that region to make enough room for exception vector area.

[PATCH] powernv: fix VFIO support with PHB3

2013-12-09 Thread Thadeu Lima de Souza Cascardo
I have recently found out that no iommu_groups could be found under /sys/ on a P8. That prevents PCI passthrough from working. During my investigation, I found out there seems to be a missing iommu_register_group for PHB3. The following patch seems to fix the problem. After applying it, I see iomm

Re: [PATCH] powerpc/44x: fix ocm_block allocation

2013-12-09 Thread Ilia Mirkin
On Mon, Dec 9, 2013 at 3:38 AM, Vinh Huu Tuong Nguyen wrote: > > Hi Ilia Mirkin, > Thanks for your info. I did investigated why our test didn't detect it and > found out that > the struct ocm_block is only used on ocm_debugfs_show function when we want to > know information about ocm and it's ava

Re: [PATCH] powerpc/44x: fix ocm_block allocation

2013-12-09 Thread Vinh Huu Tuong Nguyen
Hi Ilia Mirkin, Thanks for your info. I did investigated why our test didn't detect it and found out that the struct ocm_block is only used on ocm_debugfs_show function when we want to know information about ocm and it's available when we enable debugfs. But our test only tried to use the OCM block

[PATCH] powerpc: Fix up the kdump base cap to 128M

2013-12-09 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar The current logic sets the kdump base to min of 2G or ppc64_rma_size/2. On PowerNV kernel the first memory block 'memory@0' can be very large, equal to the DIMM size with ppc64_rma_size value capped to 1G. Hence on PowerNV, kdump base is set to 512M resulting kdump to fail

MPC8641 BASED Custom designed Board Linux stucks after Mounting cache hash table entries

2013-12-09 Thread Ashish
Hii All, I am trying to port linux 2.6.34 to mpc8641d based custom designed board but I am facing kernel oops after mounting hash table entries. can anybody was facing this kind of issue while porting or can give me some light on this. Any pointer/direction will be very helpfull. Here I am s

Re: [PATCH v3] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-09 Thread Aneesh Kumar K.V
"Hong H. Pham" writes: > From: "Hong H. Pham" > > In pte_alloc_one(), pgtable_page_ctor() is passed an address that has > not been converted by page_address() to the newly allocated PTE page. > > When the PTE is freed, __pte_free_tlb() calls pgtable_page_dtor() > with an address to the PTE page

Re: [PATCH v3] powerpc: Fix PTE page address mismatch in pgtable ctor/dtor

2013-12-09 Thread Aneesh Kumar K.V
Benjamin Herrenschmidt writes: > On Sat, 2013-12-07 at 09:06 -0500, Hong H. Pham wrote: > >> diff --git a/arch/powerpc/include/asm/pgalloc-32.h >> b/arch/powerpc/include/asm/pgalloc-32.h >> index 27b2386..842846c 100644 >> --- a/arch/powerpc/include/asm/pgalloc-32.h >> +++ b/arch/powerpc/include