Re: [RFC PATCH V3 11/17] ppc/pnv: Expand VF resources according to the number of total_pe

2014-06-23 Thread Gavin Shan
On Tue, Jun 10, 2014 at 09:56:33AM +0800, Wei Yang wrote: On PHB3, VF resources will be covered by M64 BAR to have better PE isolation. Mostly the total_pe number is different from the total_VFs, which will lead to a conflict between MMIO space and the PE number. This patch expands the VF

Re: [RFC PATCH V3 12/17] powerpc/powernv: implement pcibios_sriov_resource_alignment on powernv

2014-06-23 Thread Gavin Shan
On Tue, Jun 10, 2014 at 09:56:34AM +0800, Wei Yang wrote: This patch implements the pcibios_sriov_resource_alignment() on powernv platform. Signed-off-by: Wei Yang weiy...@linux.vnet.ibm.com --- arch/powerpc/include/asm/machdep.h|1 + arch/powerpc/kernel/pci-common.c |8

RE: [PATCH v2 1/2] flexcan: add err_irq handler for flexcan

2014-06-23 Thread qiang.z...@freescale.com
On Sat, 2014-06-21 at 12:19, Wood Scott wrote: -Original Message- From: Wood Scott-B07421 Sent: Saturday, June 21, 2014 12:19 AM To: Zhao Qiang-B45475 Cc: linuxppc-dev@lists.ozlabs.org; linux-...@vger.kernel.org; w...@grandegger.com; m...@pengutronix.de; Wood Scott-B07421 Subject:

Re: [RFC PATCH V3 02/17] pci/of: Match PCI VFs to dev-tree nodes dynamically

2014-06-23 Thread Wei Yang
On Mon, Jun 23, 2014 at 03:07:47PM +1000, Gavin Shan wrote: On Tue, Jun 10, 2014 at 09:56:24AM +0800, Wei Yang wrote: As introduced by commit 98d9f30c82 (pci/of: Match PCI devices to dev-tree nodes dynamically), we need to match PCI devices to their corresponding dev-tree nodes. While for VFs,

Re: [RFC PATCH V3 04/17] PCI: SRIOV: add VF enable/disable hook

2014-06-23 Thread Wei Yang
On Mon, Jun 23, 2014 at 03:03:10PM +1000, Gavin Shan wrote: On Tue, Jun 10, 2014 at 09:56:26AM +0800, Wei Yang wrote: VFs are dynamically created/released when driver enable them. On some platforms, like PowerNV, special resources are necessary to enable VFs. This patch adds two hooks for

Re: [RFC PATCH V3 05/17] ppc/pnv: user macro to define the TCE size

2014-06-23 Thread Wei Yang
On Mon, Jun 23, 2014 at 03:12:33PM +1000, Gavin Shan wrote: On Tue, Jun 10, 2014 at 09:56:27AM +0800, Wei Yang wrote: During the initialization of the TVT/TCE, it uses digits to specify the TCE IO Page Size, TCE Table Size, TCE Entry Size, etc. This patch replaces those digits with macros, which

Re: [RFC PATCH V3 11/17] ppc/pnv: Expand VF resources according to the number of total_pe

2014-06-23 Thread Wei Yang
On Mon, Jun 23, 2014 at 04:07:07PM +1000, Gavin Shan wrote: On Tue, Jun 10, 2014 at 09:56:33AM +0800, Wei Yang wrote: On PHB3, VF resources will be covered by M64 BAR to have better PE isolation. Mostly the total_pe number is different from the total_VFs, which will lead to a conflict between MMIO

Re: [RFC PATCH V3 11/17] ppc/pnv: Expand VF resources according to the number of total_pe

2014-06-23 Thread Gavin Shan
On Mon, Jun 23, 2014 at 02:56:52PM +0800, Wei Yang wrote: On Mon, Jun 23, 2014 at 04:07:07PM +1000, Gavin Shan wrote: On Tue, Jun 10, 2014 at 09:56:33AM +0800, Wei Yang wrote: On PHB3, VF resources will be covered by M64 BAR to have better PE isolation. Mostly the total_pe number is different from

[PATCH v3 1/2] flexcan: add err_irq handler for flexcan

2014-06-23 Thread Zhao Qiang
when flexcan is not physically linked, command 'cantest' will trigger an err_irq, add err_irq handler for it. Signed-off-by: Zhao Qiang b45...@freescale.com --- Changes for v2: - use a space instead of tab - use flexcan_poll_state instead of print Changes for v3: - return

[PATCH v3 2/2] flexcan: add err interrupt for p1010rdb

2014-06-23 Thread Zhao Qiang
add err interrupt for p1010rdb into dts. Signed-off-by: Zhao Qiang b45...@freescale.com --- Changes for v2: - add binding documentation update Changes for v3: - update binding documentation Documentation/devicetree/bindings/net/can/fsl-flexcan.txt | 15 +--

Re: [PATCH v3 1/2] flexcan: add err_irq handler for flexcan

2014-06-23 Thread Marc Kleine-Budde
On 06/23/2014 09:11 AM, Zhao Qiang wrote: when flexcan is not physically linked, command 'cantest' will trigger an err_irq, add err_irq handler for it. Signed-off-by: Zhao Qiang b45...@freescale.com --- Changes for v2: - use a space instead of tab - use flexcan_poll_state

RE: [PATCH v3 1/2] flexcan: add err_irq handler for flexcan

2014-06-23 Thread qiang.z...@freescale.com
On 06/23/2014 03:18 PM, Marc Kleine-Budde wrote: On 06/23/2014 09:11 AM, Zhao Qiang wrote: when flexcan is not physically linked, command 'cantest' will trigger an err_irq, add err_irq handler for it. Signed-off-by: Zhao Qiang b45...@freescale.com --- Changes for v2: - use a

Re: [PATCH v3 1/2] flexcan: add err_irq handler for flexcan

2014-06-23 Thread Marc Kleine-Budde
On 06/23/2014 09:26 AM, qiang.z...@freescale.com wrote: On 06/23/2014 03:18 PM, Marc Kleine-Budde wrote: On 06/23/2014 09:11 AM, Zhao Qiang wrote: when flexcan is not physically linked, command 'cantest' will trigger an err_irq, add err_irq handler for it. Signed-off-by: Zhao Qiang

Re: [RFC PATCH V3 08/17] PCI: Add weak pcibios_sriov_resource_size() interface

2014-06-23 Thread Wei Yang
On Mon, Jun 23, 2014 at 03:41:28PM +1000, Gavin Shan wrote: On Tue, Jun 10, 2014 at 09:56:30AM +0800, Wei Yang wrote: When retrieving sriov resource size in pci_sriov_resource_size(), it will divide the total IOV resource size with the totalVF number. This is true for most cases, while may not be

RE: [PATCH v3 1/2] flexcan: add err_irq handler for flexcan

2014-06-23 Thread qiang.z...@freescale.com
On 06/23/2014 03:37 PM, Marc Kleine-Budde wrote: -Original Message- From: Marc Kleine-Budde [mailto:m...@pengutronix.de] Sent: Monday, June 23, 2014 3:37 PM To: Zhao Qiang-B45475; linuxppc-dev@lists.ozlabs.org; linux- c...@vger.kernel.org; w...@grandegger.com; Wood Scott-B07421

Re: [RFC PATCH V3 12/17] powerpc/powernv: implement pcibios_sriov_resource_alignment on powernv

2014-06-23 Thread Wei Yang
On Mon, Jun 23, 2014 at 04:09:47PM +1000, Gavin Shan wrote: On Tue, Jun 10, 2014 at 09:56:34AM +0800, Wei Yang wrote: This patch implements the pcibios_sriov_resource_alignment() on powernv platform. Signed-off-by: Wei Yang weiy...@linux.vnet.ibm.com --- arch/powerpc/include/asm/machdep.h

Re: Build regressions/improvements in v3.16-rc2

2014-06-23 Thread Geert Uytterhoeven
On Mon, Jun 23, 2014 at 10:24 AM, Geert Uytterhoeven ge...@linux-m68k.org wrote: JFYI, when comparing v3.16-rc2[1] to v3.16-rc1[3], the summaries are: - build errors: +1/-6 + /scratch/kisskb/src/drivers/edac/ppc4xx_edac.c: error: request for member 'dimm' in something not a structure or

Re: [PATCH v3 1/2] flexcan: add err_irq handler for flexcan

2014-06-23 Thread Marc Kleine-Budde
On 06/23/2014 10:15 AM, qiang.z...@freescale.com wrote: [...] + reg_esr = flexcan_read(regs-esr); + reg_ctrl = flexcan_read(regs-ctrl); + if (reg_esr FLEXCAN_ESR_TX_WRN) { When does the hardware trigger the interrupt? When there is no wire link between tx and rx, tx start transfer and

Re: [RFC PATCH V3 07/17] ppc/pnv: Add function to deconfig a PE

2014-06-23 Thread Wei Yang
On Mon, Jun 23, 2014 at 03:27:21PM +1000, Gavin Shan wrote: On Tue, Jun 10, 2014 at 09:56:29AM +0800, Wei Yang wrote: On PowerNV platform, it will support dynamic PE allocation and deallocation. This patch adds a function to release those resources related to a PE. Signed-off-by: Wei Yang

Re: [PATCH] fsl-rio: add support for mapping inbound windows

2014-06-23 Thread Martijn de Gouw
On 06/18/2014 05:17 PM, Bounine, Alexandre wrote: On Friday, June 13, 2014 7:09 AM Martijn de Gouw [mailto:martijn.de.gouw@prodrive- technologies.com] wrote: Add support for mapping and unmapping of inbound rapidio windows. Signed-off-by: Martijn de Gouw martijn.de.g...@prodrive.nl --- ...

[PATCH v2] fsl-rio: add support for mapping inbound windows

2014-06-23 Thread Martijn de Gouw
From: Martijn de Gouw martijn.de.g...@prodrive.nl Add support for mapping and unmapping of inbound rapidio windows. Signed-off-by: Martijn de Gouw martijn.de.g...@prodrive-technologies.com --- arch/powerpc/sysdev/fsl_rio.c | 92 +

Re: OF_DYNAMIC node lifecycle

2014-06-23 Thread Grant Likely
On Thu, 19 Jun 2014 10:26:15 -0500, Nathan Fontenot nf...@austin.ibm.com wrote: On 06/18/2014 03:07 PM, Grant Likely wrote: Hi Nathan and Tyrel, I'm looking into lifecycle issues on nodes modified by OF_DYNAMIC, and I'm hoping you can help me. Right now, pseries seems to be the only

Re: OF_DYNAMIC node lifecycle

2014-06-23 Thread Grant Likely
On Thu, 19 Jun 2014 11:33:20 +0300, Pantelis Antoniou pantelis.anton...@konsulko.com wrote: Hi Grant, CCing Thomas Gleixner Steven Rostedt, since they might have a few ideas... On Jun 18, 2014, at 11:07 PM, Grant Likely wrote: Hi Nathan and Tyrel, I'm looking into lifecycle

Re: OF_DYNAMIC node lifecycle

2014-06-23 Thread Pantelis Antoniou
Hi Grant, On Jun 23, 2014, at 5:58 PM, Grant Likely wrote: On Thu, 19 Jun 2014 11:33:20 +0300, Pantelis Antoniou pantelis.anton...@konsulko.com wrote: Hi Grant, CCing Thomas Gleixner Steven Rostedt, since they might have a few ideas... On Jun 18, 2014, at 11:07 PM, Grant Likely

Re: [PATCH 1/3] PCI/MSI: Add pci_enable_msi_partial()

2014-06-23 Thread Alexander Gordeev
Hi Bjorn, Any feedback? Thanks! -- Regards, Alexander Gordeev agord...@redhat.com ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: OF_DYNAMIC node lifecycle

2014-06-23 Thread Grant Likely
On Mon, 23 Jun 2014 18:26:04 +0300, Pantelis Antoniou pantelis.anton...@konsulko.com wrote: On Jun 23, 2014, at 5:58 PM, Grant Likely wrote: We'll also need a transition plan to move to RCU. I think the existing iterators can be modified to do the rcu locking in-line, but still require the

Re: [PATCH v1 1/3] powerpc/powernv: Sync header with firmware

2014-06-23 Thread Benjamin Herrenschmidt
On Mon, 2014-06-23 at 12:14 +1000, Gavin Shan wrote: The patch synchronizes firmware header file (opal.h) for PCI error injection The FW API you expose is not PCI specific. I haven't seen the corresponding FW patches yet but I'm not fan of that single call that collates unrelated things. I

Re: [PATCH v1 2/3] powerpc/powernv: Support PCI error injection

2014-06-23 Thread Benjamin Herrenschmidt
On Mon, 2014-06-23 at 12:14 +1000, Gavin Shan wrote: The patch implements one OPAL firmware sysfs file to support PCI error injection: /sys/firmware/opal/errinjct, which will be used like the way described as follows. According to PAPR spec, there are 3 RTAS calls related to error injection:

Re: [RFC PATCH V3 12/17] powerpc/powernv: implement pcibios_sriov_resource_alignment on powernv

2014-06-23 Thread Gavin Shan
On Mon, Jun 23, 2014 at 04:21:42PM +0800, Wei Yang wrote: On Mon, Jun 23, 2014 at 04:09:47PM +1000, Gavin Shan wrote: On Tue, Jun 10, 2014 at 09:56:34AM +0800, Wei Yang wrote: This patch implements the pcibios_sriov_resource_alignment() on powernv platform. Signed-off-by: Wei Yang

Re: [PATCH v1 1/3] powerpc/powernv: Sync header with firmware

2014-06-23 Thread Gavin Shan
On Tue, Jun 24, 2014 at 07:10:14AM +1000, Benjamin Herrenschmidt wrote: On Mon, 2014-06-23 at 12:14 +1000, Gavin Shan wrote: The patch synchronizes firmware header file (opal.h) for PCI error injection The FW API you expose is not PCI specific. I haven't seen the corresponding FW patches yet

Re: [PATCH v1 1/3] powerpc/powernv: Sync header with firmware

2014-06-23 Thread Benjamin Herrenschmidt
On Tue, 2014-06-24 at 09:44 +1000, Gavin Shan wrote: I much'd prefer see a opal_pci_err_inject that is specific to IO(D)A errors, which takes a PHB ID and goes via the normal dispatch to PHB ops inside OPAL. For the rest, especially core specific injections, we can provide a separate dedicated

Re: [PATCH v1 2/3] powerpc/powernv: Support PCI error injection

2014-06-23 Thread Michael Neuling
On Mon, 2014-06-23 at 12:14 +1000, Gavin Shan wrote: The patch implements one OPAL firmware sysfs file to support PCI error injection: /sys/firmware/opal/errinjct, which will be used like the way described as follows. According to PAPR spec, there are 3 RTAS calls related to error injection:

Re: [RFC PATCH V3 12/17] powerpc/powernv: implement pcibios_sriov_resource_alignment on powernv

2014-06-23 Thread Wei Yang
On Tue, Jun 24, 2014 at 09:29:22AM +1000, Gavin Shan wrote: On Mon, Jun 23, 2014 at 04:21:42PM +0800, Wei Yang wrote: On Mon, Jun 23, 2014 at 04:09:47PM +1000, Gavin Shan wrote: On Tue, Jun 10, 2014 at 09:56:34AM +0800, Wei Yang wrote: This patch implements the pcibios_sriov_resource_alignment()

[PATCH] powerpc: Remove __arch_swab*

2014-06-23 Thread Benjamin Herrenschmidt
The generic code uses gcc built-ins which work fine so there's no benefit in implementing our own anymore. We can't completely remove the ld/st_le* functions as some historical cruft still uses them, but that's next on the radar Signed-off-by: Benjamin Herrenschmidt b...@kernel.crashing.org ---

Re: [PATCH 5/9] [arch/powerpc] replace obsolete strict_strto* calls

2014-06-23 Thread Benjamin Herrenschmidt
On Sat, 2014-06-21 at 13:05 +0100, Daniel Walter wrote: Replace strict_strto calls with more appropriate kstrto calls Signed-off-by: Daniel Walter dwal...@google.com --- Acked-by: Benjamin Herrenschmidt b...@kernel.crashing.org -- Should I put that in the powerpc tree ?

Re: [PATCH 04/24] powerpc: check/return actual error on sysfs functions

2014-06-23 Thread Benjamin Herrenschmidt
On Tue, 2014-06-17 at 12:23 -0700, Greg KH wrote: On Tue, Jun 17, 2014 at 10:31:09PM +0800, Jeff Liu wrote: From: Jie Liu jeff@oracle.com Cc: Benjamin Herrenschmidt b...@kernel.crashing.org Cc: Paul Mackerras pau...@samba.org Signed-off-by: Jie Liu jeff@oracle.com ---

[PATCH] qe: move qe from arch/powerpc to drivers

2014-06-23 Thread Zhao Qiang
ls1 has qe and ls1 has arm cpu. move qe from arch/powerpc to drivers. Signed-off-by: Zhao Qiang b45...@freescale.com --- arch/powerpc/platforms/83xx/km83xx.c | 4 +-- arch/powerpc/platforms/83xx/misc.c | 2 +- arch/powerpc/platforms/83xx/mpc832x_mds.c |

Re: [PATCH] powerpc: module: fix TOC symbol CRC

2014-06-23 Thread Benjamin Herrenschmidt
On Thu, 2014-06-19 at 09:44 +1000, Anton Blanchard wrote: Hi Laurent, The commit 71ec7c55ed91 introduced the magic symbol .TOC. for ELFv2 ABI. This symbol is built manually and has no CRC value computed. A zero value is put in the CRC section to avoid modpost complaining about a missing

Re: [PATCH] powerpc: Fix build warning

2014-06-23 Thread Benjamin Herrenschmidt
On Fri, 2014-06-13 at 09:38 -0700, Guenter Roeck wrote: If compiled with W=1, the following warning is seen in powerpc builds. arch/powerpc/kernel/smp.c:750:18: warning: type qualifiers ignored on function return type static const int powerpc_smt_flags(void) ^ This

Re: [PATCH] powerpc: Fix build warning

2014-06-23 Thread Guenter Roeck
On 06/23/2014 09:35 PM, Benjamin Herrenschmidt wrote: On Fri, 2014-06-13 at 09:38 -0700, Guenter Roeck wrote: If compiled with W=1, the following warning is seen in powerpc builds. arch/powerpc/kernel/smp.c:750:18: warning: type qualifiers ignored on function return type static const

Re: [PATCH] powerpc: Fix build warning

2014-06-23 Thread Benjamin Herrenschmidt
On Mon, 2014-06-23 at 22:05 -0700, Guenter Roeck wrote: On 06/23/2014 09:35 PM, Benjamin Herrenschmidt wrote: On Fri, 2014-06-13 at 09:38 -0700, Guenter Roeck wrote: If compiled with W=1, the following warning is seen in powerpc builds. arch/powerpc/kernel/smp.c:750:18: warning: type