Re: [PATCH kernel v9 22/32] powerpc/powernv: Implement multilevel TCE tables

2015-05-05 Thread David Gibson
On Fri, May 01, 2015 at 07:48:49PM +1000, Alexey Kardashevskiy wrote: On 04/29/2015 03:04 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:46PM +1000, Alexey Kardashevskiy wrote: TCE tables might get too big in case of 4K IOMMU pages and DDW enabled on huge guests (hundreds of GB of RAM)

Re: [PATCH kernel v9 28/32] powerpc/mmu: Add userspace-to-physical addresses translation cache

2015-05-05 Thread David Gibson
On Fri, May 01, 2015 at 09:26:48PM +1000, Alexey Kardashevskiy wrote: On 04/29/2015 05:01 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:52PM +1000, Alexey Kardashevskiy wrote: We are adding support for DMA memory pre-registration to be used in conjunction with VFIO. The idea is that

Re: [PATCH kernel v9 26/32] powerpc/iommu: Add userspace view of TCE table

2015-05-05 Thread David Gibson
On Fri, May 01, 2015 at 05:12:45PM +1000, Alexey Kardashevskiy wrote: On 05/01/2015 02:23 PM, David Gibson wrote: On Fri, May 01, 2015 at 02:01:17PM +1000, Alexey Kardashevskiy wrote: On 04/29/2015 04:31 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:50PM +1000, Alexey Kardashevskiy

Re: [PATCH 1/1] ata: select DW_DMAC in case of SATA_DWC

2015-05-05 Thread Julian Margetson
Thank you. this resolves the build issue . On 5/5/2015 5:14 AM, Andy Shevchenko wrote: Since sata_dwc_460ex.c was moved to generic DMA driver we have to ensure that user can still compile it. Fixes: 8b3444852a2b (sata_dwc_460ex: move to generic DMA driver) Signed-off-by: Andy Shevchenko

Re: [PATCH kernel v9 31/32] vfio: powerpc/spapr: Support multiple groups in one container if possible

2015-05-05 Thread David Gibson
On Fri, May 01, 2015 at 04:05:24PM +1000, Alexey Kardashevskiy wrote: On 05/01/2015 02:33 PM, David Gibson wrote: On Thu, Apr 30, 2015 at 07:33:09PM +1000, Alexey Kardashevskiy wrote: On 04/30/2015 05:22 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:55PM +1000, Alexey Kardashevskiy

Re: [PATCH kernel v9 29/32] vfio: powerpc/spapr: Register memory and define IOMMU v2

2015-05-05 Thread David Gibson
On Fri, May 01, 2015 at 04:27:47PM +1000, Alexey Kardashevskiy wrote: On 05/01/2015 03:23 PM, David Gibson wrote: On Fri, May 01, 2015 at 02:35:23PM +1000, Alexey Kardashevskiy wrote: On 04/30/2015 04:55 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:53PM +1000, Alexey Kardashevskiy

Re: [PATCH kernel v9 27/32] powerpc/iommu/ioda2: Add get_table_size() to calculate the size of future table

2015-05-05 Thread David Gibson
On Fri, May 01, 2015 at 04:53:08PM +1000, Alexey Kardashevskiy wrote: On 05/01/2015 03:12 PM, David Gibson wrote: On Fri, May 01, 2015 at 02:10:58PM +1000, Alexey Kardashevskiy wrote: On 04/29/2015 04:40 PM, David Gibson wrote: On Sat, Apr 25, 2015 at 10:14:51PM +1000, Alexey Kardashevskiy

Re: [PATCH 1/6] dump_stack: Support adding to the dump stack arch description

2015-05-05 Thread Michael Ellerman
On Tue, 2015-05-05 at 14:16 -0700, Andrew Morton wrote: On Tue, 5 May 2015 21:12:12 +1000 Michael Ellerman m...@ellerman.id.au wrote: Arch code can set a dump stack arch description string which is displayed with oops output to describe the hardware platform. It is useful to

Re: [PATCH] powerpc/pseries: hibernation/migration should honor topology update policy

2015-05-05 Thread Nathan Fontenot
On 05/05/2015 12:53 PM, Tyrel Datwyler wrote: From: Tyrel Datwyler tyr...@linux.vnet.ibm.com The suspend call paths for hibernation and migration operations call stop_topology_update() and start_topology_update() respectively prior to suspending the LPAR and upon resume. Topology updating

Re: [RFC PATCH] mm/thp: Use new function to clear pmd before THP splitting

2015-05-05 Thread Kirill A. Shutemov
On Mon, May 04, 2015 at 10:59:16PM +0530, Aneesh Kumar K.V wrote: Archs like ppc64 require pte_t * to remain stable in some code path. They use local_irq_disable to prevent a parallel split. Generic code clear pmd instead of marking it _PAGE_SPLITTING in code path where we can afford to mark

Re: [PATCH v5 1/1] arm64: dts: Add the arasan sdhc nodes in apm-storm.dtsi.

2015-05-05 Thread Suman Tripathi
On Wed, May 6, 2015 at 1:11 AM, Rob Herring robherri...@gmail.com wrote: On Tue, May 5, 2015 at 4:17 AM, Suman Tripathi stripa...@apm.com wrote: This patch adds the arasan sdhc nodes to reuse the of-arasan driver for APM X-Gene SoC. Signed-off-by: Suman Tripathi stripa...@apm.com ---

[PATCH] powerpc: Enabling sys_kcmp for CRIU

2015-05-05 Thread Laurent Dufour
The commit 8170a83f15ee (powerpc: Wireup the kcmp syscall to sys_ni) has disabled the kcmp syscall for powerpc. This has been done due to the use of unsigned long parameters which may require a dedicated wrapper to handle 32bit process on top of 64bit kernel. However in the kcmp() case, the 2

Re: [PATCH 1/1] ata: select DW_DMAC in case of SATA_DWC

2015-05-05 Thread Tejun Heo
On Tue, May 05, 2015 at 12:14:03PM +0300, Andy Shevchenko wrote: Since sata_dwc_460ex.c was moved to generic DMA driver we have to ensure that user can still compile it. Fixes: 8b3444852a2b (sata_dwc_460ex: move to generic DMA driver) Signed-off-by: Andy Shevchenko

Re: [PATCH v2] mm: vmscan: do not throttle based on pfmemalloc reserves if node has no reclaimable pages

2015-05-05 Thread Nishanth Aravamudan
On 03.04.2015 [10:45:56 -0700], Nishanth Aravamudan wrote: On 03.04.2015 [09:57:35 +0200], Vlastimil Babka wrote: On 03/31/2015 11:48 AM, Michal Hocko wrote: On Fri 27-03-15 15:23:50, Nishanth Aravamudan wrote: On 27.03.2015 [13:17:59 -0700], Dave Hansen wrote: On 03/27/2015 12:28 PM,

[PATCH] drivers/tty/hvc/hvc_tile.c: properly return -EAGAIN

2015-05-05 Thread Chris Metcalf
We were returning zero if no bytes could be written to the Tilera hypervisor console device, but this causes the output to be truncated. By returning -EAGAIN the tty hvc driver will come back and try again, which gives the semantics we want, and avoids dropping console output. Signed-off-by:

Re: [PATCH kernel] commit 4fbdf9cb (lpfc: Fix for lun discovery issue with saturn adapter.)

2015-05-05 Thread James Smart
Reviewed-By: James Smart james.sm...@emulex.com Alexey, Sebastian, Yes - this section needs to be reverted. This patch is good. -- james s On 4/28/2015 4:26 AM, Alexey Kardashevskiy wrote: This reverts 4fbdf9cb is breaks LPFC on POWER7 machine, big endian kernel. This is the hardware

[PATCH 1/1] powerpc: mpc85xx: Add board support for ucp1020

2015-05-05 Thread Oleksandr G Zhadan
New QorIQ p1020 based board support from Arcturus Networks Inc. http://www.arcturusnetworks.com/products/ucp1020/ Signed-off-by: Michael Durrant mdurr...@arcturusnetworks.com Signed-off-by: Oleksandr G Zhadan ol...@arcturusnetworks.com --- Documentation/devicetree/bindings/pci/fsl,pci.txt |

RE: [PATCH 1/2] powerpc/qman: Change fsl,qman-channel-id to cell-index

2015-05-05 Thread Roy Pledge
Sorry for the slow reply. I don't believe this is correct - let me explain the rational why we had two properties in the QMan portal to begin with. The two properties in question are cell-index and fsl,qman-channel-id. The cell-index property is used in u-boot as an index for the software

Re: [PATCH v5 1/1] arm64: dts: Add the arasan sdhc nodes in apm-storm.dtsi.

2015-05-05 Thread Rob Herring
On Tue, May 5, 2015 at 4:17 AM, Suman Tripathi stripa...@apm.com wrote: This patch adds the arasan sdhc nodes to reuse the of-arasan driver for APM X-Gene SoC. Signed-off-by: Suman Tripathi stripa...@apm.com --- arch/arm64/boot/dts/apm/apm-mustang.dts | 4 +++

Re: [PATCH v3 1/6] cpufreq: poowernv: Handle throttling due to Pmax capping at chip level

2015-05-05 Thread Shilpasri G Bhat
Hi Preeti, On 05/05/2015 09:21 AM, Preeti U Murthy wrote: Hi Shilpa, On 05/04/2015 02:24 PM, Shilpasri G Bhat wrote: The On-Chip-Controller(OCC) can throttle cpu frequency by reducing the max allowed frequency for that chip if the chip exceeds its power or temperature limits. As Pmax

Re: [PATCH v3 4/6] cpufreq: powernv: Call throttle_check() on receiving OCC_THROTTLE

2015-05-05 Thread Shilpasri G Bhat
Hi Preeti, On 05/05/2015 09:30 AM, Preeti U Murthy wrote: Hi Shilpa, On 05/04/2015 02:24 PM, Shilpasri G Bhat wrote: Re-evaluate the chip's throttled state on recieving OCC_THROTTLE notification by executing *throttle_check() on any one of the cpu on the chip. This is a sanity check to

Re: [PATCH v3 1/6] cpufreq: poowernv: Handle throttling due to Pmax capping at chip level

2015-05-05 Thread Preeti U Murthy
On 05/05/2015 11:36 AM, Shilpasri G Bhat wrote: Hi Preeti, On 05/05/2015 09:21 AM, Preeti U Murthy wrote: Hi Shilpa, On 05/04/2015 02:24 PM, Shilpasri G Bhat wrote: The On-Chip-Controller(OCC) can throttle cpu frequency by reducing the max allowed frequency for that chip if the chip

Re: [PATCH v4 0/3] Add SDHCI support for APM X-Gene SoC using ARASAN SDHCI controller.

2015-05-05 Thread Ulf Hansson
On 5 May 2015 at 10:42, Suman Tripathi stripa...@apm.com wrote: On Tue, May 5, 2015 at 2:06 PM, Ulf Hansson ulf.hans...@linaro.org wrote: On 4 May 2015 at 15:39, Suman Tripathi stripa...@apm.com wrote: This patch adds the SDHCI support for APM X-Gene SoC using ARASAN SDHCI controller. v1

[PATCH v2 2/2] powerpc/powernv: Pull all HMI events before panic.

2015-05-05 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar mah...@linux.vnet.ibm.com In the event of unrecovered HMI the existing code panics as soon as it receives the first unrecovered HMI event. This makes host to report partial information about HMIs before panic. There may be more errors which would have caused the HMI and

Re: [PATCH v4 0/3] Add SDHCI support for APM X-Gene SoC using ARASAN SDHCI controller.

2015-05-05 Thread Suman Tripathi
On Tue, May 5, 2015 at 2:06 PM, Ulf Hansson ulf.hans...@linaro.org wrote: On 4 May 2015 at 15:39, Suman Tripathi stripa...@apm.com wrote: This patch adds the SDHCI support for APM X-Gene SoC using ARASAN SDHCI controller. v1 change: * Use the CONFIG_ARM64_DMA_HAS_IOMMU for dma-mapping.

[PATCH 1/1] ata: select DW_DMAC in case of SATA_DWC

2015-05-05 Thread Andy Shevchenko
Since sata_dwc_460ex.c was moved to generic DMA driver we have to ensure that user can still compile it. Fixes: 8b3444852a2b (sata_dwc_460ex: move to generic DMA driver) Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- drivers/ata/Kconfig | 1 + 1 file changed, 1 insertion(+)

[PATCH v5 0/1] Add SDHCI support for APM X-Gene SoC using ARASAN SDHCI controller.

2015-05-05 Thread Suman Tripathi
This patch adds the SDHCI support for APM X-Gene SoC using ARASAN SDHCI controller. v1 change: * Use the CONFIG_ARM64_DMA_HAS_IOMMU for dma-mapping. v2 change: * Drop the IOMMU support and switching to PIO mode for arasan. controller integrated inside APM X-Gene SoC. v3 change: * Change

[PATCH v5 1/1] arm64: dts: Add the arasan sdhc nodes in apm-storm.dtsi.

2015-05-05 Thread Suman Tripathi
This patch adds the arasan sdhc nodes to reuse the of-arasan driver for APM X-Gene SoC. Signed-off-by: Suman Tripathi stripa...@apm.com --- arch/arm64/boot/dts/apm/apm-mustang.dts | 4 +++ arch/arm64/boot/dts/apm/apm-storm.dtsi | 44 + 2 files changed, 48

[PATCH v2 1/2] powerpc/powernv: display reason for Malfunction Alert HMI.

2015-05-05 Thread Mahesh J Salgaonkar
From: Mahesh Salgaonkar mah...@linux.vnet.ibm.com The V2 version of HMI event now carries additional information for Malfunction Alert. It now contains error information about CORE and NX checkstop. This patch checks and displays the check stop reason before panic. Signed-off-by: Mahesh

Re: [PATCH v4 0/3] Add SDHCI support for APM X-Gene SoC using ARASAN SDHCI controller.

2015-05-05 Thread Ulf Hansson
On 4 May 2015 at 15:39, Suman Tripathi stripa...@apm.com wrote: This patch adds the SDHCI support for APM X-Gene SoC using ARASAN SDHCI controller. v1 change: * Use the CONFIG_ARM64_DMA_HAS_IOMMU for dma-mapping. v2 change: * Drop the IOMMU support and switching to PIO mode for arasan.

Re: [PATCH v3 4/6] cpufreq: powernv: Call throttle_check() on receiving OCC_THROTTLE

2015-05-05 Thread Preeti U Murthy
On 05/05/2015 12:03 PM, Shilpasri G Bhat wrote: Hi Preeti, On 05/05/2015 09:30 AM, Preeti U Murthy wrote: Hi Shilpa, On 05/04/2015 02:24 PM, Shilpasri G Bhat wrote: Re-evaluate the chip's throttled state on recieving OCC_THROTTLE notification by executing *throttle_check() on any one of

Re: [PATCH 1/2] powerpc/qman: Change fsl,qman-channel-id to cell-index

2015-05-05 Thread Scott Wood
On Tue, 2015-05-05 at 11:04 -0500, Pledge Roy-R01356 wrote: Sorry for the slow reply. I don't believe this is correct - let me explain the rational why we had two properties in the QMan portal to begin with. The two properties in question are cell-index and fsl,qman-channel-id. The

Re: [PATCH v3 6/6] cpufreq: powernv: Restore cpu frequency to policy-cur on unthrottling

2015-05-05 Thread Preeti U Murthy
On 05/04/2015 02:24 PM, Shilpasri G Bhat wrote: If frequency is throttled due to OCC reset then cpus will be in Psafe frequency, so restore the frequency on all cpus to policy-cur when OCCs are active again. And if frequency is throttled due to Pmax capping then restore the frequency of all

Re: [PATCH 1/2] sdhci-of-esdhc: Support 8BIT bus width.

2015-05-05 Thread Arnd Bergmann
On Monday 04 May 2015 21:17:27 Joakim Tjernlund wrote: On Mon, 2015-05-04 at 19:31 +0200, Arnd Bergmann wrote: On Monday 04 May 2015 18:31:31 Joakim Tjernlund wrote: @@ -252,6 +260,8 @@ static void esdhc_of_platform_init(struct sdhci_host *host) if (vvn VENDOR_V_22)

RE: [v3] dt/bindings: qoriq-clock: Add binding for FMan clock mux

2015-05-05 Thread igal.liber...@freescale.com
Regards, Igal Liberman. -Original Message- From: Wood Scott-B07421 Sent: Saturday, May 02, 2015 2:43 AM To: Liberman Igal-B31950 Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Tang Yuantian-B29983 Subject: Re: [v3] dt/bindings: qoriq-clock: Add binding for FMan

Re: [v3] dt/bindings: qoriq-clock: Add binding for FMan clock mux

2015-05-05 Thread Scott Wood
On Tue, 2015-05-05 at 16:02 -0500, Liberman Igal-B31950 wrote: Regards, Igal Liberman. -Original Message- From: Wood Scott-B07421 Sent: Saturday, May 02, 2015 2:43 AM To: Liberman Igal-B31950 Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org; Tang

Re: [PATCH kernel] commit 4fbdf9cb (lpfc: Fix for lun discovery issue with saturn adapter.)

2015-05-05 Thread Sebastian Herbszt
James Smart wrote: Reviewed-By: James Smart james.sm...@emulex.com Alexey, Sebastian, Yes - this section needs to be reverted. This patch is good. -- james s Reviewed-by: Sebastian Herbszt herb...@gmx.de Sebastian ___ Linuxppc-dev

Re: [PATCH 1/6] dump_stack: Support adding to the dump stack arch description

2015-05-05 Thread Andrew Morton
On Tue, 5 May 2015 21:12:12 +1000 Michael Ellerman m...@ellerman.id.au wrote: Arch code can set a dump stack arch description string which is displayed with oops output to describe the hardware platform. It is useful to initialise this as early as possible, so that an early oops will have

[PATCH 1/6] dump_stack: Support adding to the dump stack arch description

2015-05-05 Thread Michael Ellerman
Arch code can set a dump stack arch description string which is displayed with oops output to describe the hardware platform. It is useful to initialise this as early as possible, so that an early oops will have the hardware description. However in practice we discover the hardware platform in

[PATCH 2/6] powerpc: Add cpu name to dump stack arch description

2015-05-05 Thread Michael Ellerman
As soon as we know the name of the cpu we're on, add it to the dump stack arch description, which is printed in case of an oops. Signed-off-by: Michael Ellerman m...@ellerman.id.au --- arch/powerpc/kernel/cputable.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 3/6] powerpc: Add device-tree model to dump stack arch description

2015-05-05 Thread Michael Ellerman
As soon as we know the model of the machine we're on, add it to the dump stack arch description, which is printed in case of an oops. Signed-off-by: Michael Ellerman m...@ellerman.id.au --- arch/powerpc/kernel/prom.c | 20 1 file changed, 20 insertions(+) diff --git

[PATCH 4/6] powerpc: Add ppc_md.name to dump stack arch description

2015-05-05 Thread Michael Ellerman
As soon as we know the name of the machine description we're using, add it to the dump stack arch description, which is printed in case of an oops. Signed-off-by: Michael Ellerman m...@ellerman.id.au --- arch/powerpc/kernel/setup-common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git

[PATCH 5/6] powerpc/powernv: Add opal details to dump stack arch description

2015-05-05 Thread Michael Ellerman
Once we have unflattened the device tree we can easily grab these opal version details and add them to dump stack arch description, which is printed in case of an oops. Signed-off-by: Michael Ellerman m...@ellerman.id.au --- arch/powerpc/platforms/powernv/setup.c | 26 ++

[PATCH 6/6] powerpc/pseries: Add firmware details to dump stack arch description

2015-05-05 Thread Michael Ellerman
Once we have unflattened the device tree we can easily grab these firmware version details and add them to dump stack arch description, which is printed in case of an oops. Currently /hypervisor only exists on KVM, so if we don't find that look for something that suggests we're on phyp and if so