PowerPC Build error with patch: powerpc/ppc64: Allow allmodconfig to build (finally !)

2014-05-19 Thread Mike Qiu
Hi all, I face one build error in linux-next git tree, see below: The platform is IBM P7. [root@cena01 linux-next]# make -j60 CHK include/config/kernel.release CHK include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h CALLscripts/checksyscalls.sh :1232

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-19 Thread Hugh Dickins
On Tue, 20 May 2014, Rusty Russell wrote: > Hugh Dickins writes: > >> On Monday 19 May 2014 05:42 AM, Rusty Russell wrote: > >> > > >> > Perhaps we try to generalize from two data points (a slight improvement > >> > over doing it from 1!), eg: > >> > > >> > /* 4 seems good for 4k-page x86, 0 see

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-19 Thread Rusty Russell
Hugh Dickins writes: > On Mon, 19 May 2014, Madhavan Srinivasan wrote: >> On Monday 19 May 2014 05:42 AM, Rusty Russell wrote: >> > Hugh Dickins writes: >> >> On Thu, 15 May 2014, Madhavan Srinivasan wrote: >> >>> >> >>> Hi Ingo, >> >>> >> >>> Do you have any comments for the latest version of t

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-19 Thread Madhavan Srinivasan
On Tuesday 20 May 2014 04:53 AM, Hugh Dickins wrote: > On Mon, 19 May 2014, Madhavan Srinivasan wrote: >> On Monday 19 May 2014 05:42 AM, Rusty Russell wrote: >>> Hugh Dickins writes: On Thu, 15 May 2014, Madhavan Srinivasan wrote: > > Hi Ingo, > > Do you have any comments f

powerpc/powernv: Add calls to support little endian host

2014-05-19 Thread Benjamin Herrenschmidt
When running as a powernv "host" system on P8, we need to switch the endianness of interrupt handlers. This does it via the appropriate call to the OPAL firmware which may result in just switching HID0:HILE but depending on the processor version might need to do a few more things. This call must be

[PATCH net-next 9/9] powerpc/fsl: fsl_soc: remove 'fixed-link' parsing code

2014-05-19 Thread Florian Fainelli
Parsing and registration of fixed PHY devices was needed with the use of of_phy_connect_fixed_link() because this function was using the designated PHY address identifier (first cell of the property) as the address to bind the PHY on the emulated bus. Since commit 3be2a49e5c08d268f8af0dd4fe89a24ea

[PATCH net-next 8/9] of: mdio: remove of_phy_connect_fixed_link

2014-05-19 Thread Florian Fainelli
All in-tree drivers have been converted to use the new pair of functions: of_is_fixed_phy_link() plus of_phy_register_fixed_link(), we can now safely remove of_phy_connect_fixed_link. Signed-off-by: Florian Fainelli --- drivers/of/of_mdio.c| 38 -- include

[PATCH net-next 6/9] gianfar: use the new fixed PHY helpers

2014-05-19 Thread Florian Fainelli
of_phy_connect_fixed_link() is becoming obsolete, and also required platform code to register the fixed PHYs at the specified addresses for those to be usable. Get rid of it and use the new of_phy_is_fixed_link() plus of_phy_register_fixed_link() helpers to transition over the new scheme. Signed-o

[PATCH net-next 7/9] ucc_geth: use the new fixed PHY helpers

2014-05-19 Thread Florian Fainelli
of_phy_connect_fixed_link() is becoming obsolete, and also required platform code to register the fixed PHYs at the specified addresses for those to be usable. Get rid of it and use the new of_phy_is_fixed_link() plus of_phy_register_fixed_link() helpers to transition over the new scheme. Signed-o

[PATCH net-next 5/9] fs_enet: use the new fixed PHY helpers

2014-05-19 Thread Florian Fainelli
of_phy_connect_fixed_link() is becoming obsolete, and also required platform code to register the fixed PHYs at the specified addresses for those to be usable. Get rid of it and use the new of_phy_is_fixed_link() plus of_phy_register_fixed_link() helpers to transition over the new scheme. Signed-o

[PATCH net-next 4/9] net: systemport: use the new fixed PHY helpers

2014-05-19 Thread Florian Fainelli
of_phy_connect_fixed_link() is becoming obsolete, and also required platform code to register the fixed PHYs at the specified addresses for those to be usable. Get rid of it and use the new of_phy_is_fixed_link() plus of_phy_register_fixed_link() helpers to transition over the new scheme. Signed-o

[PATCH net-next 3/9] net: bcmgenet: use the new fixed PHY helpers

2014-05-19 Thread Florian Fainelli
of_phy_connect_fixed_link() is becoming obsolete, and also required platform code to register the fixed PHYs at the specified addresses for those to be usable. Get rid of it and use the new of_phy_is_fixed_link() plus of_phy_register_fixed_link() helpers to transition over the new scheme. Signed-o

[PATCH net-next 2/9] Documentation: devicetree: net: refer to fixed-link.txt

2014-05-19 Thread Florian Fainelli
Update the Freescale TSEC PHY, Broadcom GENET & SYSTEMPORT Device Tree binding documentation to refer to the fixed-link Device Tree binding in fixed-link.txt. Reviewed-by: Thomas Petazzoni Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/broadcom-bcmgenet.txt | 2 +-

[PATCH net-next 1/9] Documentation: devicetree: add old and deprecated 'fixed-link'

2014-05-19 Thread Florian Fainelli
Update the fixed-link Device Tree binding documentation to contain information about the old and deprecated 5-digit 'fixed-link' property. Signed-off-by: Florian Fainelli --- Documentation/devicetree/bindings/net/fixed-link.txt | 12 1 file changed, 12 insertions(+) diff --git a/Do

[PATCH 0/9 net-next] net: of_phy_connect_fixed_link removal

2014-05-19 Thread Florian Fainelli
Hi all, This patch set removes of_phy_connect_fixed_link() from the tree now that we have a better solution for dealing with fixed PHY (emulated PHY) devices for drivers that require them. First two patches update the 'fixed-link' Device Tree binding and drivers to refere to it. Patches 3 to 7 u

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-19 Thread Kirill A. Shutemov
Andrew Morton wrote: > On Mon, 19 May 2014 16:23:07 -0700 (PDT) Hugh Dickins > wrote: > > > Shouldn't FAULT_AROUND_ORDER and fault_around_order be changed to be > > the order of the fault-around size in bytes, and fault_around_pages() > > use 1UL << (fault_around_order - PAGE_SHIFT) > > Yes. A

Re: [PATCH 3/8] drivers/vfio: New IOCTL command VFIO_EEH_INFO

2014-05-19 Thread Alex Williamson
On Tue, 2014-05-20 at 10:22 +1000, Gavin Shan wrote: > On Mon, May 19, 2014 at 04:33:10PM -0600, Alex Williamson wrote: > >On Wed, 2014-05-14 at 14:11 +1000, Gavin Shan wrote: > >> The patch adds new IOCTL command VFIO_EEH_INFO to VFIO container > >> to support EEH functionality for PCI devices, wh

Re: [PATCH] selftests: PAGE_SIZE may not be defined

2014-05-19 Thread Benjamin Herrenschmidt
On Thu, 2014-05-15 at 18:02 +0200, Thierry Fauck ( thierry @ linux.vnet.ibm.com ) wrote: > Hi Ben, > > The following patch seems relevant for Ubuntu and Debian distro > testing. > I know it's minor but I need to know if you do you care about it or > sif I should remove it from the bugs info. You

Re: [PATCH 3/8] drivers/vfio: New IOCTL command VFIO_EEH_INFO

2014-05-19 Thread Gavin Shan
On Mon, May 19, 2014 at 04:33:10PM -0600, Alex Williamson wrote: >On Wed, 2014-05-14 at 14:11 +1000, Gavin Shan wrote: >> The patch adds new IOCTL command VFIO_EEH_INFO to VFIO container >> to support EEH functionality for PCI devices, which have been >> passed from host to guest via VFIO. Thanks

Re: [PATCH 3/8] drivers/vfio: New IOCTL command VFIO_EEH_INFO

2014-05-19 Thread Gavin Shan
On Mon, May 19, 2014 at 02:51:27PM +0200, Alexander Graf wrote: > >On 14.05.14 06:11, Gavin Shan wrote: >>The patch adds new IOCTL command VFIO_EEH_INFO to VFIO container >>to support EEH functionality for PCI devices, which have been >>passed from host to guest via VFIO. >> >>Signed-off-by: Gavin

Re: [PATCH 2/8] powerpc/eeh: Info to trace passed devices

2014-05-19 Thread Gavin Shan
On Tue, May 20, 2014 at 08:37:29AM +1000, Benjamin Herrenschmidt wrote: >On Mon, 2014-05-19 at 14:46 +0200, Alexander Graf wrote: >> I don't see the point of VFIO knowing about guest addresses. They are >> not unique across a system and the whole idea that a VFIO device has to >> be owned by a gu

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-19 Thread Andrew Morton
On Mon, 19 May 2014 16:23:07 -0700 (PDT) Hugh Dickins wrote: > Shouldn't FAULT_AROUND_ORDER and fault_around_order be changed to be > the order of the fault-around size in bytes, and fault_around_pages() > use 1UL << (fault_around_order - PAGE_SHIFT) Yes. And shame on me for missing it (this ti

Re: [PATCH V4 0/2] mm: FAULT_AROUND_ORDER patchset performance data for powerpc

2014-05-19 Thread Hugh Dickins
On Mon, 19 May 2014, Madhavan Srinivasan wrote: > On Monday 19 May 2014 05:42 AM, Rusty Russell wrote: > > Hugh Dickins writes: > >> On Thu, 15 May 2014, Madhavan Srinivasan wrote: > >>> > >>> Hi Ingo, > >>> > >>> Do you have any comments for the latest version of the patchset. If > >>> not, kin

Re: [PATCH 3/8] drivers/vfio: New IOCTL command VFIO_EEH_INFO

2014-05-19 Thread Benjamin Herrenschmidt
On Mon, 2014-05-19 at 16:33 -0600, Alex Williamson wrote: > On Wed, 2014-05-14 at 14:11 +1000, Gavin Shan wrote: > > The patch adds new IOCTL command VFIO_EEH_INFO to VFIO container > > to support EEH functionality for PCI devices, which have been > > passed from host to guest via VFIO. > > Some c

Re: [PATCH 8/8] powerpc/powernv: Error injection infrastructure

2014-05-19 Thread Benjamin Herrenschmidt
On Mon, 2014-05-19 at 15:04 +0200, Alexander Graf wrote: > On 14.05.14 06:12, Gavin Shan wrote: > > The patch intends to implement the error injection infrastructure > > for PowerNV platform. The predetermined handlers will be called > > according to the type of injected error (e.g. OpalErrinjctTyp

Re: [PATCH 6/8] powerpc: Extend syscall ppc_rtas()

2014-05-19 Thread Benjamin Herrenschmidt
On Mon, 2014-05-19 at 14:55 +0200, Alexander Graf wrote: > On 14.05.14 06:12, Gavin Shan wrote: > > Originally, syscall ppc_rtas() can be used to invoke RTAS call from > > user space. Utility "errinjct" is using it to inject various errors > > to the system for testing purpose. The patch intends to

Re: [PATCH 2/8] powerpc/eeh: Info to trace passed devices

2014-05-19 Thread Benjamin Herrenschmidt
On Mon, 2014-05-19 at 14:46 +0200, Alexander Graf wrote: > I don't see the point of VFIO knowing about guest addresses. They are > not unique across a system and the whole idea that a VFIO device has to > be owned by a guest is also pretty dubious. > > I suppose what you really care about here i

Re: [PATCH 3/8] drivers/vfio: New IOCTL command VFIO_EEH_INFO

2014-05-19 Thread Alex Williamson
On Wed, 2014-05-14 at 14:11 +1000, Gavin Shan wrote: > The patch adds new IOCTL command VFIO_EEH_INFO to VFIO container > to support EEH functionality for PCI devices, which have been > passed from host to guest via VFIO. Some comments throughout, but overall this seems to forgo every bit of the d

[PATCH] dt/powerpc: Introduce the use of the managed version of kzalloc

2014-05-19 Thread Himangi Saraogi
This patch moves data allocated using kzalloc to managed data allocated using devm_kzalloc and cleans now unnecessary kfrees in probe and remove functions. Also, the now unnecessary labels out_free_priv and out are done away with. The following Coccinelle semantic patch was used for making the cha

Re: Node 0 not necessary for powerpc?

2014-05-19 Thread Nishanth Aravamudan
On 13.03.2014 [09:49:49 -0700], Nishanth Aravamudan wrote: > On 12.03.2014 [08:41:40 -0500], Christoph Lameter wrote: > > On Tue, 11 Mar 2014, Nishanth Aravamudan wrote: > > > I have a P7 system that has no node0, but a node0 shows up in numactl > > > --hardware, which has no cpus and no memory (an

[RFC PATCH v2 1/2] powerpc: numa: enable USE_PERCPU_NUMA_NODE_ID

2014-05-19 Thread Nishanth Aravamudan
Hi Andrew, I found one issue with my patch, fixed below... On 16.05.2014 [16:39:45 -0700], Nishanth Aravamudan wrote: > Based off 3bccd996 for ia64, convert powerpc to use the generic per-CPU > topology tracking, specifically: > > initialize per cpu numa_node entry in start_secondary >

Re: questions on CONFIG_PPC_ADV_DEBUG_REGS, DBCR0_BRT, and DBCR0_ACTIVE_EVENTS

2014-05-19 Thread Scott Wood
On Sun, 2014-05-18 at 16:38 -0700, shiva7 wrote: > Thanks Scott. > > Apologize for not quoting the old email reference. You did it again. :-) > I assumed the old archive content always will be in the trail. It's in the archives (as I noted), but it's a pain to search for it versus having releva

Re: [PATCH V2 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-05-19 Thread Pedro Alves
On 05/19/2014 12:46 PM, Anshuman Khandual wrote: >> > I couldn't actually find any arch that currently returns -ENODEV in >> > the "active" hook. I see that binfmt_elf.c doesn't handle >> > regset->active() returning < 0. Guess that may be why. Looks like >> > something that could be cleaned up

[PATCH v2] powerpc/powernv: hwmon driver for power values, fan rpm and temperature

2014-05-19 Thread Neelesh Gupta
This patch adds basic kernel enablement for reading power values, fan speed rpm and temperature values on powernv platforms which will be exported to user space through sysfs interface. Test results: - [root@tul163p1 ~]# sensors ibmpowernv-isa- Adapter: ISA adapter fan1:548

Re: [PATCH 8/8] powerpc/powernv: Error injection infrastructure

2014-05-19 Thread Alexander Graf
On 14.05.14 06:12, Gavin Shan wrote: The patch intends to implement the error injection infrastructure for PowerNV platform. The predetermined handlers will be called according to the type of injected error (e.g. OpalErrinjctTypeIoaBusError). For now, we just support PCI error injection. We need

Re: [PATCH 7/8] powerpc/powernv: Implement ppc_call_opal()

2014-05-19 Thread Alexander Graf
On 14.05.14 06:12, Gavin Shan wrote: If we're running PowerNV platform, ppc_firmware() will be directed to ppc_call_opal() where we can call to OPAL API accordingly. In ppc_call_opal(), the input argument are parsed out and call to appropriate OPAL API to handle that. Each request passed to the

Re: [PATCH 6/8] powerpc: Extend syscall ppc_rtas()

2014-05-19 Thread Alexander Graf
On 14.05.14 06:12, Gavin Shan wrote: Originally, syscall ppc_rtas() can be used to invoke RTAS call from user space. Utility "errinjct" is using it to inject various errors to the system for testing purpose. The patch intends to extend the syscall to support both pSeries and PowerNV platform. Wi

Re: [PATCH 3/8] drivers/vfio: New IOCTL command VFIO_EEH_INFO

2014-05-19 Thread Alexander Graf
On 14.05.14 06:11, Gavin Shan wrote: The patch adds new IOCTL command VFIO_EEH_INFO to VFIO container to support EEH functionality for PCI devices, which have been passed from host to guest via VFIO. Signed-off-by: Gavin Shan --- arch/powerpc/platforms/powernv/Makefile | 1 + arch/power

Re: [PATCH 2/8] powerpc/eeh: Info to trace passed devices

2014-05-19 Thread Alexander Graf
On 14.05.14 06:11, Gavin Shan wrote: The address of passed PCI devices (domain:bus:slot:func) might be quite different from the perspective of host and guest. We have to trace the address mapping so that we can emulate EEH RTAS requests from guest. The patch introduces additional fields to eeh_p

Re: [PATCH V2 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-05-19 Thread Anshuman Khandual
On 05/15/2014 05:38 PM, Pedro Alves wrote: > On 05/15/2014 09:25 AM, Anshuman Khandual wrote: >> On 05/14/2014 04:45 PM, Pedro Alves wrote: >>> On 05/14/14 06:46, Anshuman Khandual wrote: On 05/13/2014 10:43 PM, Pedro Alves wrote: > On 05/05/14 08:54, Anshuman Khandual wrote: >> This p

Re: [PATCH RFC v3 0/8] EEH Support for VFIO PCI device

2014-05-19 Thread Gavin Shan
On Wed, May 14, 2014 at 02:11:54PM +1000, Gavin Shan wrote: Ping, Alex.G and Alex.W. Could you please take a look on this when you have available bandwidth? Thanks in advance for your time :-) >The series of patches intends to support EEH for PCI devices, which are >passed through to PowerKVM bas

Re: [PATCH V2 2/3] powerpc, ptrace: Enable support for transactional memory register sets

2014-05-19 Thread Anshuman Khandual
On 05/15/2014 05:38 PM, Pedro Alves wrote: > On 05/15/2014 09:25 AM, Anshuman Khandual wrote: >> On 05/14/2014 04:45 PM, Pedro Alves wrote: >>> On 05/14/14 06:46, Anshuman Khandual wrote: On 05/13/2014 10:43 PM, Pedro Alves wrote: > On 05/05/14 08:54, Anshuman Khandual wrote: >> This p