[PATCH v1 1/2] mmc: host: arasan: Add addition of-arasan quirks and IOMMU support for arasan SDHCI driver.

2015-01-27 Thread Suman Tripathi
Due to the fact that the existing of-arasan driver works with 32-bit platforms. This patch tweaks existing of-arasan driver to work with 64-bit platform using IOMMU translation. In addition it adds support for more quirks and quirks2 obtained from device tree inside the generic

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

2015-01-27 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-storm.dtsi | 43 ++ 1 file changed, 43 insertions(+) diff --git

Re: [PATCH v1 1/2] mmc: host: arasan: Add addition of-arasan quirks and IOMMU support for arasan SDHCI driver.

2015-01-27 Thread Arnd Bergmann
On Tuesday 27 January 2015 22:50:59 Suman Tripathi wrote: @@ -174,6 +176,13 @@ static int sdhci_arasan_probe(struct platform_device *pdev) pltfm_host-priv = sdhci_arasan; pltfm_host-clk = clk_xin; + ret = xgene_ahbc_iommu_attach_device(pdev-dev); + if (ret 0

Re: [PATCH v7 0/4] Add support for parametrized events

2015-01-27 Thread Jiri Olsa
On Mon, Jan 26, 2015 at 05:43:03PM -0800, Sukadev Bhattiprolu wrote: SNIP Cody P Schafer (6): perf: provide sysfs_show for struct perf_pmu_events_attr perf: add PMU_EVENT_ATTR_STRING() helper powerpc/perf/hv-24x7: parse catalog and populate sysfs with events

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

2015-01-27 Thread Arnd Bergmann
On Tuesday 27 January 2015 22:51:00 Suman Tripathi wrote: + sdhc0: sdhc@1c00 { + device_type = sdhc; + compatible = arasan,sdhci-8.9a; + reg = 0x0 0x1c00 0x0 0x100; + interrupts =

Re: [PATCH v2] powerpc/mpic: Add DT option to skip readback after EOI

2015-01-27 Thread Scott Wood
On Tue, 2015-01-27 at 15:19 +, Bogdan Purcareata wrote: The readback acts as a synchronization mechanism in handling external interrupts, making sure the core waits until EOI write completion. This is required in certain scenarios, such as when the MPIC communicates with a PCI device in

Re: [PATCH] powerpc/pseries: Avoid context switch in EEH reset if required

2015-01-27 Thread Brian King
On 01/26/2015 10:31 PM, Benjamin Herrenschmidt wrote: On Mon, 2015-01-26 at 17:36 -0600, Brian King wrote: To set some context, this function is only used by ipr for some old broken adapters. These are adapters that are not supported on p8, so will never show up under OPAL, only PowerVM. I'm

Re: [PATCH] powerpc/pseries: Avoid context switch in EEH reset if required

2015-01-27 Thread Benjamin Herrenschmidt
On Tue, 2015-01-27 at 16:58 -0600, Brian King wrote: I'd argue we are our own worst enemy here really. The new user is EEH code. I don't see a huge reason that code would need to use this exact same API. In fact, even with IPR and the existing call, how do you wait for the link to come

Re: [PATCH v3] powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64

2015-01-27 Thread Joonsoo Kim
2015-01-28 10:01 GMT+09:00 Michael Ellerman m...@ellerman.id.au: On Mon, 2015-01-26 at 13:22 -0600, Kim Phillips wrote: arch/powerpc has __kernel_map_pages implementations in mm/pgtable_32.c, and mm/hash_utils_64.c, of which the former is built for PPC32, and the latter for PPC64 machines with

Re: [PATCH v3] powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64

2015-01-27 Thread Michael Ellerman
On Mon, 2015-01-26 at 13:22 -0600, Kim Phillips wrote: arch/powerpc has __kernel_map_pages implementations in mm/pgtable_32.c, and mm/hash_utils_64.c, of which the former is built for PPC32, and the latter for PPC64 machines with PPC_STD_MMU. Fix arch/powerpc/Kconfig to not select

Re: [PATCH v7 0/4] Add support for parametrized events

2015-01-27 Thread Michael Ellerman
On Tue, 2015-01-27 at 11:02 +0100, Jiri Olsa wrote: On Mon, Jan 26, 2015 at 05:43:03PM -0800, Sukadev Bhattiprolu wrote: SNIP Cody P Schafer (6): perf: provide sysfs_show for struct perf_pmu_events_attr perf: add PMU_EVENT_ATTR_STRING() helper powerpc/perf/hv-24x7: parse

Re: [PATCH 0/4] defconfigs: cleanup obsolete MTD configs

2015-01-27 Thread Michael Ellerman
On Sat, 2015-01-24 at 22:54 +0200, Sam Protsenko wrote: That's news for me. I thought they are silently ignored. Do you have an example of such a warning? Not really. It was just assumption. It seems you are right, they are just ignored silently. But item 2 is still relevant and it was

[PATCH V2] cpuidle/powernv: Read target_residency value of idle states from DT if available

2015-01-27 Thread Preeti U Murthy
The device tree now exposes the residency values for different idle states. Read these values instead of calculating residency from the latency values. The values exposed in the DT are validated for optimal power efficiency. However to maintain compatibility with the older firmware code which

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

2015-01-27 Thread Suman Tripathi
Due to the fact that the existing of-arasan driver works with 32-bit platforms. This patch tweaks existing of-arasan driver to work with 64-bit X-Gene platform using IOMMU translation. v1 change: * Use the CONFIG_ARM64_DMA_HAS_IOMMU for dma-mapping. Signed-off-by: Suman Tripathi

Re: [PATCH] CXL: Fix device_node reference counting

2015-01-27 Thread Michael Ellerman
On Wed, 2015-01-28 at 16:53 +1100, Ian Munsie wrote: Excerpts from Michael Ellerman's message of 2015-01-28 16:04:40 +1100: I just wanted to check the status of this one? I can't see it in your tree and wanted to make sure you didn't simply miss it. It looked fishy, but I never got

Re: [PATCHv2 0/8] Fix perf probe issues on powerpc

2015-01-27 Thread Naveen N. Rao
On 2015/01/28 05:14PM, Michael Ellerman wrote: On Wed, 2015-01-28 at 11:12 +0530, Naveen N. Rao wrote: On 2014/12/15 08:20PM, Naveen N Rao wrote: This patchset fixes various issues with perf probe on powerpc across ABIv1 and ABIv2: - in the presence of DWARF debug-info, - in the

Re: [PATCHv2 0/8] Fix perf probe issues on powerpc

2015-01-27 Thread Michael Ellerman
On Wed, 2015-01-28 at 11:12 +0530, Naveen N. Rao wrote: On 2014/12/15 08:20PM, Naveen N Rao wrote: This patchset fixes various issues with perf probe on powerpc across ABIv1 and ABIv2: - in the presence of DWARF debug-info, - in the absence of DWARF, but with the symbol table, and -

Re: [PATCH] powerpc/mm: Add trace point for tracking hash pte fault

2015-01-27 Thread Michael Ellerman
On Wed, 2015-01-21 at 14:15 +0530, Aneesh Kumar K.V wrote: Michael Ellerman m...@ellerman.id.au writes: On Tue, 2015-01-20 at 17:05 +0530, Aneesh Kumar K.V wrote: This enables us to understand how many hash fault we are taking when running benchmarks. For ex: -bash-4.2# ./perf stat

AW: SPE Interrupt context (was how to make use of SPE instructions)

2015-01-27 Thread Markus Stockhausen
Von: Scott Wood [scottw...@freescale.com] Gesendet: Mittwoch, 28. Januar 2015 05:21 An: Markus Stockhausen Cc: Michael Ellerman; linuxppc-dev@lists.ozlabs.org; Herbert Xu Betreff: Re: SPE Interrupt context (was how to make use of SPE instructions) Hi Scott, thanks for your

Re: [PATCH] CXL: Fix device_node reference counting

2015-01-27 Thread Michael Ellerman
On Wed, 2015-01-28 at 15:02 +1100, Ian Munsie wrote: Excerpts from Ian Munsie's message of 2015-01-07 16:41:18 +1100: From: Ryan Grimm gr...@linux.vnet.ibm.com When unbinding and rebinding the driver on a system with a card in PHB0, this error condition is reached after a few

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

2015-01-27 Thread Suman Tripathi
Hi Arnd, On Tuesday 27 January 2015 22:51:00 Suman Tripathi wrote: + sdhc0: sdhc@1c00 { + device_type = sdhc; + compatible = arasan,sdhci-8.9a; + reg = 0x0 0x1c00 0x0 0x100; +

Re: [PATCHv2 0/8] Fix perf probe issues on powerpc

2015-01-27 Thread Naveen N. Rao
On 2014/12/15 08:20PM, Naveen N Rao wrote: This patchset fixes various issues with perf probe on powerpc across ABIv1 and ABIv2: - in the presence of DWARF debug-info, - in the absence of DWARF, but with the symbol table, and - in the absence of debug-info, but with kallsyms. Applies

Re: [PATCH] CXL: Fix device_node reference counting

2015-01-27 Thread Ian Munsie
Excerpts from Michael Ellerman's message of 2015-01-28 16:04:40 +1100: I just wanted to check the status of this one? I can't see it in your tree and wanted to make sure you didn't simply miss it. It looked fishy, but I never got around to replying. The second sentence in the explanation

[PATCH v2] powerpc/mpic: Add DT option to skip readback after EOI

2015-01-27 Thread Bogdan Purcareata
The readback acts as a synchronization mechanism in handling external interrupts, making sure the core waits until EOI write completion. This is required in certain scenarios, such as when the MPIC communicates with a PCI device in posted write mode. If the device uses legacy interrupts, and the

[PATCH 1/2] powerpc/lib: Makefile, consolidate obj-y sections

2015-01-27 Thread Michael Ellerman
Signed-off-by: Michael Ellerman m...@ellerman.id.au --- arch/powerpc/lib/Makefile | 7 +++ 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile index 5526156aae5f..31e1b34c0722 100644 --- a/arch/powerpc/lib/Makefile +++

[PATCH 2/2] powerpc/lib: Makefile, use obj64-y to consolidate 64-bit rules

2015-01-27 Thread Michael Ellerman
Signed-off-by: Michael Ellerman m...@ellerman.id.au --- arch/powerpc/lib/Makefile | 20 +--- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile index 31e1b34c0722..7902802a19a5 100644 --- a/arch/powerpc/lib/Makefile

Re: [PATCH] CXL: Fix device_node reference counting

2015-01-27 Thread Ian Munsie
Excerpts from Ian Munsie's message of 2015-01-07 16:41:18 +1100: From: Ryan Grimm gr...@linux.vnet.ibm.com When unbinding and rebinding the driver on a system with a card in PHB0, this error condition is reached after a few attempts: Hey mpe, I just wanted to check the status of this one? I

[PATCH] powerpc/powernv: Remove opal prefix from pr_xxx()s

2015-01-27 Thread Michael Ellerman
In commit c8742f85125d powerpc/powernv: Expose OPAL firmware symbol map I added pr_fmt() to opal.c. This left some existing pr_xxx()s with duplicate opal prefixes, eg: opal: opal: Found 0 interrupts reserved for OPAL Fix them all up. Also make the Not not found message a bit more verbose.

Re: SPE Interrupt context (was how to make use of SPE instructions)

2015-01-27 Thread Scott Wood
On Tue, 2015-01-27 at 05:09 +, Markus Stockhausen wrote: On Tue, 2015-01-20 at 14:53 +, Markus Stockhausen wrote: Von: Scott Wood [scottw...@freescale.com] Gesendet: Dienstag, 20. Januar 2015 08:38 An: Markus Stockhausen Cc: Michael Ellerman; linuxppc-dev@lists.ozlabs.org

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

2015-01-27 Thread Suman Tripathi
Hi Arnd, I added the iommus in the IOMMU AHBC patch. Anything wrong in that ? In the next version Also I will remove the IOMMU hacks from arasan driver On Wed, Jan 28, 2015 at 9:48 AM, Suman Tripathi stripa...@apm.com wrote: Hi Arnd, On Tuesday 27 January 2015 22:51:00 Suman Tripathi wrote:

Re: [V6,1/9] elf: Add new powerpc specifc core note sections

2015-01-27 Thread Michael Neuling
On Fri, 2015-01-23 at 08:44 +1100, Michael Neuling wrote: Inside transaction both running and check pointed values can be probed independently. Yep, that's the idea, although setting the running values won't change anything since the the translation is already doomed and will

Re: [PATCH v3] powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64

2015-01-27 Thread Andrew Morton
On Wed, 28 Jan 2015 10:33:59 +0900 Joonsoo Kim js1...@gmail.com wrote: 2015-01-28 10:01 GMT+09:00 Michael Ellerman m...@ellerman.id.au: On Mon, 2015-01-26 at 13:22 -0600, Kim Phillips wrote: arch/powerpc has __kernel_map_pages implementations in mm/pgtable_32.c, and mm/hash_utils_64.c, of

Re: [PATCH v3] powerpc/mm: fix undefined reference to `.__kernel_map_pages' on FSL PPC64

2015-01-27 Thread Michael Ellerman
On Tue, 2015-01-27 at 18:57 -0800, Andrew Morton wrote: On Wed, 28 Jan 2015 10:33:59 +0900 Joonsoo Kim js1...@gmail.com wrote: 2015-01-28 10:01 GMT+09:00 Michael Ellerman m...@ellerman.id.au: On Mon, 2015-01-26 at 13:22 -0600, Kim Phillips wrote: arch/powerpc has __kernel_map_pages

[PATCH] powerpc: Remove some unused functions

2015-01-27 Thread Michael Ellerman
Remove slice_set_psize() which is not used. It was added in 3a8247cc2c85 powerpc: Only demote individual slices rather than whole process but was never used. Remove vsx_assist_exception() which is not used. It was added in ce48b2100785 powerpc: Add VSX context save/restore, ptrace and signal