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

2014-06-22 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 betwee

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

2014-06-22 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

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

2014-06-22 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 02/17] pci/of: Match PCI VFs to dev-tree nodes dynamically

2014-06-22 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 f

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

2014-06-22 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 > Sub

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

2014-06-22 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 >--- > arch/powerpc/include/asm/machdep.h|1 + > arch/powerpc/kernel/pci-common.c |8 > arch/powe

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

2014-06-22 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 res

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

2014-06-22 Thread Gavin Shan
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 correct on some specific platform. > >For example on power

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

2014-06-22 Thread Gavin Shan
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 >--- > arch/powerpc/platforms/powernv/pci-ioda.c | 77 +

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

2014-06-22 Thread Gavin Shan
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 will be more meaningful and >easy to read. > >Signed-off-

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

2014-06-22 Thread Gavin Shan
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, this step was missed. > >This patch matches VFs' PCI devi

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

2014-06-22 Thread Gavin Shan
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 platform initialization before creating the VFs. > >Signed-off-b

[PATCH] powerpc: Remove ancient DEBUG_SIG code

2014-06-22 Thread Michael Ellerman
We have some compile-time disabled debug code in signal_xx.c. It's from some ancient time BG, almost certainly part of the original port, given the very similar code on other arches. The show_unhandled_signal logic, added in d0c3d534a438 (2.6.24) is cleaner and prints more useful information, so d

[PATCH] powerpc/kprobes: Fix jprobes on ABI v2 (LE)

2014-06-22 Thread Michael Ellerman
In commit 721aeaa9 "Build little endian ppc64 kernel with ABIv2", we missed some updates required in the kprobes code to make jprobes work when the kernel is built with ABI v2. Firstly update arch_deref_entry_point() to do the right thing. Now that we have added ppc_global_function_entry() we can

[PATCH v1 3/3] powerpc/powernv: Clear PAPR error injection registers

2014-06-22 Thread Gavin Shan
The frozen state on one specific PE is probably caused by error injection, which is done with help of PAPR error injection registers. According to the hardware spec, those registers should be cleared automatically after one-shot frozen PE. However, that's not always true, at least on P7IOC of Fireb

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

2014-06-22 Thread Gavin Shan
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: "ibm,open-errinjct": allocate token prior to doing error

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

2014-06-22 Thread Gavin Shan
The patch synchronizes firmware header file (opal.h) for PCI error injection. Signed-off-by: Gavin Shan --- arch/powerpc/include/asm/opal.h| 65 ++ arch/powerpc/platforms/powernv/opal-wrappers.S | 1 + 2 files changed, 66 insertions(+) diff --git a/arch/

[PATCH v1 0/3] Support PCI Error Injection

2014-06-22 Thread Gavin Shan
The series of patches supports PCI error injection as defined in PAPR spec. There are 3 RTAS calls related to it: "ibm,open-errinjct": Apply for token to do error injection "ibm,close-errinjct": Free the token assigned previously "ibm,errinjct": Do error injection For PCI errors, we need manupula

[PATCH] powerpc/kerenl: Enable EEH for IO accessors

2014-06-22 Thread Gavin Shan
In arch/powerpc/kernel/iomap.c, lots of IO reading accessors missed to check EEH error as Ben pointed. The patch fixes it. For the writing accessors, we change the called functions only for making them look similar to the reading counterparts. Suggested-by: Benjamin Herrenschmidt Signed-off-by: