RE: [PATCH] powerpc/dts: Update the core cluster PLL node(s)

2015-04-16 Thread igal.liber...@freescale.com
Regards, Igal Liberman. -Original Message- From: Wood Scott-B07421 Sent: Wednesday, April 15, 2015 8:15 PM To: Liberman Igal-B31950 Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc/dts: Update the core cluster PLL node(s) On Wed,

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

2015-04-16 Thread igal.liber...@freescale.com
Regards, Igal Liberman. -Original Message- From: Wood Scott-B07421 Sent: Wednesday, April 15, 2015 8:36 PM To: Liberman Igal-B31950 Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org Subject: Re: [v3] dt/bindings: qoriq-clock: Add binding for FMan clock mux On Tue,

Re: [PATCH kernel v8 17/31] powerpc/iommu/powernv: Release replaced TCE

2015-04-16 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:59PM +1000, Alexey Kardashevskiy wrote: At the moment writing new TCE value to the IOMMU table fails with EBUSY if there is a valid entry already. However PAPR specification allows the guest to write new TCE value without clearing it first. Another problem this

Re: [PATCH kernel v8 18/31] powerpc/powernv/ioda2: Rework iommu_table creation

2015-04-16 Thread David Gibson
On Fri, Apr 10, 2015 at 04:31:00PM +1000, Alexey Kardashevskiy wrote: This moves iommu_table creation to the beginning. This is a mechanical patch. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru --- arch/powerpc/platforms/powernv/pci-ioda.c | 34 --- 1

Re: [PATCH kernel v8 21/31] powerpc/iommu: Split iommu_free_table into 2 helpers

2015-04-16 Thread David Gibson
On Fri, Apr 10, 2015 at 04:31:03PM +1000, Alexey Kardashevskiy wrote: The iommu_free_table helper release memory it is using (the TCE table and @it_map) and release the iommu_table struct as well. We might not want the very last step as we store iommu_table in parent structures. Yeah, as I

Re: [PATCH kernel v8 19/31] powerpc/powernv/ioda2: Introduce pnv_pci_ioda2_create_table/pnc_pci_free_table

2015-04-16 Thread David Gibson
On Fri, Apr 10, 2015 at 04:31:01PM +1000, Alexey Kardashevskiy wrote: This is a part of moving TCE table allocation into an iommu_ops callback to support multiple IOMMU groups per one VFIO container. This enforce window size to be a power of two. This is a pretty mechanical patch. ???

Re: [PATCH kernel v8 14/31] vfio: powerpc/spapr: powerpc/powernv/ioda2: Rework IOMMU ownership control

2015-04-16 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:56PM +1000, Alexey Kardashevskiy wrote: At the moment the iommu_table struct has a set_bypass() which enables/ disables DMA bypass on IODA2 PHB. This is exposed to POWERPC IOMMU code which calls this callback when external IOMMU users such as VFIO are about to get

Re: [PATCH v2 2/2] leds/powernv: Add driver for PowerNV platform

2015-04-16 Thread Vasant Hegde
On 04/15/2015 06:42 PM, Jacek Anaszewski wrote: On 04/15/2015 12:15 PM, Vasant Hegde wrote: On 04/15/2015 02:12 PM, Jacek Anaszewski wrote: Hi Vasant, Hi Jacek, .../... I mean, we have to retain the state of LED across system reboot. Static variables are reinitialized on system reboot,

Re: [PATCH kernel v8 20/31] powerpc/powernv/ioda2: Introduce pnv_pci_ioda2_set_window

2015-04-16 Thread David Gibson
On Fri, Apr 10, 2015 at 04:31:02PM +1000, Alexey Kardashevskiy wrote: This is a part of moving DMA window programming to an iommu_ops callback. This is a mechanical patch. Signed-off-by: Alexey Kardashevskiy a...@ozlabs.ru Reviewed-by: David Gibson da...@gibson.dropbear.id.au -- David

Re: [PATCH kernel v8 12/31] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group

2015-04-16 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:54PM +1000, Alexey Kardashevskiy wrote: Modern IBM POWERPC systems support multiple (currently two) TCE tables per IOMMU group (a.k.a. PE). This adds a iommu_table_group container for TCE tables. Right now just one table is supported. Signed-off-by: Alexey

Re: [PATCH kernel v8 15/31] powerpc/iommu: Fix IOMMU ownership control functions

2015-04-16 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:57PM +1000, Alexey Kardashevskiy wrote: This adds missing locks in iommu_take_ownership()/ iommu_release_ownership(). This marks all pages busy in iommu_table::it_map in order to catch errors if there is an attempt to use this table while ownership over it is

Re: [PATCH kernel v8 13/31] vfio: powerpc/spapr: powerpc/iommu: Rework IOMMU ownership control

2015-04-16 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:55PM +1000, Alexey Kardashevskiy wrote: This replaces iommu_take_ownership()/iommu_release_ownership() calls with the callback calls and it is up to the platform code to call iommu_take_ownership()/iommu_release_ownership() if needed. I think this commit message

Re: [PATCH kernel v8 16/31] powerpc/powernv/ioda/ioda2: Rework tce_build()/tce_free()

2015-04-16 Thread David Gibson
On Fri, Apr 10, 2015 at 04:30:58PM +1000, Alexey Kardashevskiy wrote: The pnv_pci_ioda_tce_invalidate() helper invalidates TCE cache. It is supposed to be called on IODA1/2 and not called on p5ioc2. It receives start and end host addresses of TCE table. This approach makes it possible to get

[git pull] Please pull mpe/linux.git powerpc-4.1-1 tag

2015-04-16 Thread Michael Ellerman
Hi Linus, Please pull powerpc updates for 4.1: The following changes since commit 06e5801b8cb3fc057d88cb4dc03c0b64b2744cda: Linux 4.0-rc4 (2015-03-15 17:38:20 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux.git tags/powerpc-4.1-1 for

Re: [PATCH v2 2/2] leds/powernv: Add driver for PowerNV platform

2015-04-16 Thread Jacek Anaszewski
Hi Vasant, On 04/16/2015 08:52 AM, Vasant Hegde wrote: On 04/15/2015 06:42 PM, Jacek Anaszewski wrote: On 04/15/2015 12:15 PM, Vasant Hegde wrote: On 04/15/2015 02:12 PM, Jacek Anaszewski wrote: Hi Vasant, Hi Jacek, .../... I mean, we have to retain the state of LED across system

Re: [PATCH v2 2/2] leds/powernv: Add driver for PowerNV platform

2015-04-16 Thread Vasant Hegde
On 04/16/2015 02:21 PM, Jacek Anaszewski wrote: Hi Vasant, On 04/16/2015 08:52 AM, Vasant Hegde wrote: On 04/15/2015 06:42 PM, Jacek Anaszewski wrote: On 04/15/2015 12:15 PM, Vasant Hegde wrote: On 04/15/2015 02:12 PM, Jacek Anaszewski wrote: Hi Vasant, Hi Jacek, .../... I mean, we

[PATCH] powerpc/4xx: Fix return value check in hsta_msi_probe()

2015-04-16 Thread weiyj_lk
From: Wei Yongjun yongjun_...@trendmicro.com.cn In case of error, the functions platform_get_resource() and kmalloc() returns NULL not ERR_PTR(). The IS_ERR() test in the return value check should be replaced with NULL test. Signed-off-by: Wei Yongjun yongjun_...@trendmicro.com.cn ---

[PATCH] kvm: powerpc: Fix ppc64_defconfig + PPC_POWERNV=n build error

2015-04-16 Thread Shreyas B. Prabhu
kvm_no_guest function calls power7_wakeup_loss to put the thread into the deepest supported idle state. power7_wakeup_loss is defined in arch/powerpc/kernel/idle_power7.S, which is compiled only when PPC_P7_NAP=y. And PPC_P7_NAP is selected when PPC_POWERNV=y. Hence in cases where PPC_POWERNV=n

Re: [PATCH v2 2/2] leds/powernv: Add driver for PowerNV platform

2015-04-16 Thread Jacek Anaszewski
On 04/16/2015 12:26 PM, Vasant Hegde wrote: On 04/16/2015 02:21 PM, Jacek Anaszewski wrote: Hi Vasant, On 04/16/2015 08:52 AM, Vasant Hegde wrote: On 04/15/2015 06:42 PM, Jacek Anaszewski wrote: On 04/15/2015 12:15 PM, Vasant Hegde wrote: On 04/15/2015 02:12 PM, Jacek Anaszewski wrote: Hi

[PATCH 2/2] sound: ppc: keywest: drop using attach adapter

2015-04-16 Thread Wolfram Sang
As we now have deferred probing, we can use a custom mechanism and finally get rid of the legacy interface from the i2c core. Signed-off-by: Wolfram Sang w...@the-dreams.de --- sound/ppc/keywest.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git

[PATCH 0/2] i2c: rework last users of 2.4 style attach_adapter

2015-04-16 Thread Wolfram Sang
The attach_adapter mechanism of the I2C framework is deprecated for years. There are two users left; drivers for old Macintosh computers. I got the idea of replacing this mechanism with a custom one with the help of deferred probing. Because I don't have the hardware, I modified the windtunnel

[PATCH] powerpc/dts: Fix incorrect clock-names property

2015-04-16 Thread Igal . Liberman
From: Igal Liberman igal.liber...@freescale.com Signed-off-by: Igal Liberman igal.liber...@freescale.com --- arch/powerpc/boot/dts/fsl/t2081si-post.dtsi |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/boot/dts/fsl/t2081si-post.dtsi

[v4] clk: qoriq: Add support for the FMan clock

2015-04-16 Thread Igal . Liberman
From: Igal Liberman igal.liber...@freescale.com This patch depends on the following patches: https://patchwork.ozlabs.org/patch/461151/ https://patchwork.ozlabs.org/patch/461155/ This patche is described by the following binding document update:

[PATCH] powerpc/dts: Move pll0/1-div4 index

2015-04-16 Thread Igal . Liberman
From: Igal Liberman igal.liber...@freescale.com This patch updates pll0/1-div4 index to '3'. Originally it was '2'. The following patch adds pll0/1-div3 option: https://patchwork.ozlabs.org/patch/461151/ After this patch, index '2' becomes pll0/1-div3. This patch based on top of the

[v3] dt/bindings: fsl/guts: Added global-utilities compatibles

2015-04-16 Thread Igal . Liberman
From: Igal Liberman igal.liber...@freescale.com v3 - Addressed Scott's feedback: Added fsl,chip-guts v2 - Addressed Scott's feedback Signed-off-by: Igal Liberman igal.liber...@freescale.com --- .../devicetree/bindings/powerpc/fsl/guts.txt |5 + 1 file changed, 5

Re: [PATCH kernel v8 12/31] powerpc/spapr: vfio: Switch from iommu_table to new iommu_table_group

2015-04-16 Thread Alexey Kardashevskiy
On 04/16/2015 03:55 PM, David Gibson wrote: On Fri, Apr 10, 2015 at 04:30:54PM +1000, Alexey Kardashevskiy wrote: Modern IBM POWERPC systems support multiple (currently two) TCE tables per IOMMU group (a.k.a. PE). This adds a iommu_table_group container for TCE tables. Right now just one table

Re: [PATCH kernel v8 21/31] powerpc/iommu: Split iommu_free_table into 2 helpers

2015-04-16 Thread Alexey Kardashevskiy
On 04/16/2015 04:46 PM, David Gibson wrote: On Fri, Apr 10, 2015 at 04:31:03PM +1000, Alexey Kardashevskiy wrote: The iommu_free_table helper release memory it is using (the TCE table and @it_map) and release the iommu_table struct as well. We might not want the very last step as we store

RE: new way of writing defconfigs for freescale's powerpc platforms

2015-04-16 Thread Lijun Pan
-Original Message- From: Wood Scott-B07421 Sent: Thursday, April 09, 2015 5:31 PM To: Pan Lijun-B44306 Cc: linuxppc-...@ozlabs.org; Schmitt Richard-B43082 Subject: Re: new way of writing defconfigs for freescale's powerpc platforms On Thu, 2015-04-09 at 16:52 -0500, Pan

Re: new way of writing defconfigs for freescale's powerpc platforms

2015-04-16 Thread Bob Cochran
On 04/16/2015 12:44 AM, Bob Cochran wrote: On 04/09/2015 06:31 PM, Scott Wood wrote: On Thu, 2015-04-09 at 16:52 -0500, Pan Lijun-B44306 wrote: Hi Maintainers, We have a proposal for writing the defconfigs for freescale's powperpc platforms in a new way. Can you take a look and provide some

[PATCH 1/2] macintosh: therm_windtunnel: drop using attach adapter

2015-04-16 Thread Wolfram Sang
As we now have deferred probing, we can use a custom mechanism and finally get rid of the legacy interface from the i2c core. Signed-off-by: Wolfram Sang w...@the-dreams.de --- drivers/macintosh/therm_windtunnel.c | 25 +++-- 1 file changed, 23 insertions(+), 2 deletions(-)

Re: [PATCH v2 1/5] perf: Add a flags parameter to pmu txn interfaces

2015-04-16 Thread Sukadev Bhattiprolu
Peter Zijlstra [pet...@infradead.org] wrote: | On Tue, Apr 07, 2015 at 05:34:55PM -0700, Sukadev Bhattiprolu wrote: | diff --git a/include/linux/perf_event.h b/include/linux/perf_event.h | index 2b62198..4dc3d70 100644 | --- a/include/linux/perf_event.h | +++ b/include/linux/perf_event.h | @@

Re: 'perf upgrade' (was: Re: [PATCH v9 00/11] Add support for JSON event files.)

2015-04-16 Thread Sukadev Bhattiprolu
Ingo Molnar [mi...@kernel.org] wrote: Meant to Cc Tom Huynh as they had a related patchset a few months ago. | | * Michael Ellerman m...@ellerman.id.au wrote: | | On Tue, 2015-04-14 at 10:55 +0200, Ingo Molnar wrote: | * Sukadev Bhattiprolu suka...@linux.vnet.ibm.com wrote: | |This

Re: 'perf upgrade' (was: Re: [PATCH v9 00/11] Add support for JSON event files.)

2015-04-16 Thread Sukadev Bhattiprolu
| | * Michael Ellerman m...@ellerman.id.au wrote: | | We just merged a patch series that was first sent in 2013. Some | things take time to get right. | | The first attempt to get symbolic event name support into perf was | sent in 2010, that's FIVE years ago [1]. | | kgdb took even

Re: [PATCH v2 4/5] perf: Define PMU_TXN_READ interface

2015-04-16 Thread Sukadev Bhattiprolu
Peter Zijlstra [pet...@infradead.org] wrote: | On Tue, Apr 07, 2015 at 05:34:58PM -0700, Sukadev Bhattiprolu wrote: | diff --git a/kernel/events/core.c b/kernel/events/core.c | index 1ac99d1..a001582 100644 | --- a/kernel/events/core.c | +++ b/kernel/events/core.c | @@ -3644,6 +3644,33 @@

Re: [PATCH v10 0/3] Generic IOMMU pooled allocator

2015-04-16 Thread David Miller
From: Sowmini Varadhan sowmini.varad...@oracle.com Date: Thu, 9 Apr 2015 15:33:29 -0400 Investigation of network performance on Sparc shows a high degree of locking contention in the IOMMU allocator, and it was noticed that the PowerPC code has a better locking model. This patch series

Re: Old regression with MTD devices disappearing from a Kurobox HD/HG

2015-04-16 Thread Rogério Brito
Hi, Scott. On Apr 16 2015, Scott Wood wrote: On Thu, 2015-04-16 at 21:01 -0300, Rogério Brito wrote: On Apr 16 2015, Scott Wood wrote: On Thu, 2015-04-16 at 19:55 -0300, Rogério Brito wrote: Is there any proper way for me to discover what device name the kernel uses? I have tried

Re: [PATCH] powerpc/dts: Move pll0/1-div4 index

2015-04-16 Thread Scott Wood
On Thu, 2015-04-16 at 15:08 +0300, Igal.Liberman wrote: From: Igal Liberman igal.liber...@freescale.com This patch updates pll0/1-div4 index to '3'. Originally it was '2'. The following patch adds pll0/1-div3 option: https://patchwork.ozlabs.org/patch/461151/ After this patch,

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

2015-04-16 Thread Scott Wood
On Thu, 2015-04-16 at 01:11 -0500, Liberman Igal-B31950 wrote: Regards, Igal Liberman. -Original Message- From: Wood Scott-B07421 Sent: Wednesday, April 15, 2015 8:36 PM To: Liberman Igal-B31950 Cc: devicet...@vger.kernel.org; linuxppc-dev@lists.ozlabs.org Subject: Re:

Re: new way of writing defconfigs for freescale's powerpc platforms

2015-04-16 Thread Michael Ellerman
On Thu, 2015-04-09 at 21:52 +, Lijun Pan wrote: Hi Maintainers, We have a proposal for writing the defconfigs for freescale's powperpc platforms in a new way. Can you take a look and provide some feedback? You know currently we have mpc85xx_defconfig, corenet32_defconfig,

Re: Old regression with MTD devices disappearing from a Kurobox HD/HG

2015-04-16 Thread Rogério Brito
Dear Scott. On Apr 16 2015, Scott Wood wrote: On Thu, 2015-04-16 at 19:55 -0300, Rogério Brito wrote: Is there any proper way for me to discover what device name the kernel uses? I have tried the following command lines without success: 1 -

Re: Old regression with MTD devices disappearing from a Kurobox HD/HG

2015-04-16 Thread Scott Wood
On Thu, 2015-04-16 at 21:01 -0300, Rogério Brito wrote: Dear Scott. On Apr 16 2015, Scott Wood wrote: On Thu, 2015-04-16 at 19:55 -0300, Rogério Brito wrote: Is there any proper way for me to discover what device name the kernel uses? I have tried the following command lines without

Re: Old regression with MTD devices disappearing from a Kurobox HD/HG

2015-04-16 Thread Rogério Brito
Hi, Scott and others. On Apr 09 2015, Rogério Brito wrote: On Apr 09 2015, Scott Wood wrote: On Thu, 2015-04-09 at 18:54 -0300, Rogério Brito wrote: mtdparts=myflash:4096k(allflash),3072k(firmimg),448k@3072k(bootcode),64k@3520k(status),512k@3584k(conf) What is myflash? You

Re: Old regression with MTD devices disappearing from a Kurobox HD/HG

2015-04-16 Thread Scott Wood
On Thu, 2015-04-16 at 19:55 -0300, Rogério Brito wrote: Hi, Scott and others. On Apr 09 2015, Rogério Brito wrote: On Apr 09 2015, Scott Wood wrote: On Thu, 2015-04-09 at 18:54 -0300, Rogério Brito wrote:

Re: new way of writing defconfigs for freescale's powerpc platforms

2015-04-16 Thread Scott Wood
On Fri, 2015-04-17 at 10:54 +1000, Michael Ellerman wrote: On Thu, 2015-04-09 at 21:52 +, Lijun Pan wrote: Hi Maintainers, We have a proposal for writing the defconfigs for freescale's powperpc platforms in a new way. Can you take a look and provide some feedback? You know

Re: new way of writing defconfigs for freescale's powerpc platforms

2015-04-16 Thread Scott Wood
On Thu, 2015-04-16 at 00:44 -0400, Bob Cochran wrote: As you probably know, Freescale makes use of the Yocto Project build system for its SDK and submits patches to the SDK at a public meta-fsl-ppc repo at http://git.yoctoproject.org/cgit/cgit.cgi/meta-fsl-ppc/ I have seen some kernel