Re: [RFC PATCH v4 7/7] powerpc/powernv/pci-ioda: Add IOMMU_CAP_INTR_REMAP for IODA host bridge

2016-03-18 Thread Yongji Xie
On 2016/3/17 0:32, Alex Williamson wrote: On Mon, 7 Mar 2016 15:48:38 +0800 Yongji Xie wrote: This patch adds IOMMU_CAP_INTR_REMAP for IODA host bridge so that we can mmap MSI-X table in vfio driver. Signed-off-by: Yongji Xie --- arch/powerpc/platforms/powernv/pci-ioda.c | 17 ++

Re: [PATCH next] cxl: Allow PSL timebase to not sync

2016-03-18 Thread Frederic Barrat
Le 15/03/2016 04:56, Michael Ellerman a écrit : And it just sounds like a big hack around broken hardware, which we'll have to carry for the foreseeable future. I discussed with Mikey about what would be acceptable here. There's basically no good solution. No matter how we workaround the issu

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-18 Thread Rob Clark
On Thu, Mar 17, 2016 at 4:22 PM, Joe Perches wrote: > On Thu, 2016-03-17 at 15:43 -0300, Gustavo Padovan wrote: >> 2016-03-17 Gustavo Padovan : >> > 2016-03-17 Joe Perches : >> > > On Thu, 2016-03-17 at 14:30 -0300, Gustavo Padovan wrote: >> > > > >> > > > This function had copies in 3 different f

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-18 Thread Rob Clark
On Thu, Mar 17, 2016 at 5:19 PM, Gustavo Padovan wrote: > 2016-03-17 Joe Perches : > >> On Thu, 2016-03-17 at 16:50 -0400, Rob Clark wrote: >> > On Thu, Mar 17, 2016 at 4:40 PM, Joe Perches wrote: >> [] >> > > It's a name that seems like it should be a straightforward >> > > cast of a kernel poin

[PATCH v2] powerpc: Fix incorrect PPC32 PAMU dependency

2016-03-18 Thread Andy Fleming
The Freescale PAMU can be enabled on both 32 and 64-bit Power chips. Commit 477ab7a19cec8409e4e2dd10e7348e4cac3c06e5 (iommu: Make more drivers depend on COMPILE_TEST) restricted PAMU to PPC32. PPC covers both. Signed-off-by: Andy Fleming --- v2: Implemented Michael Ellerman's suggestion to clean

[PATCH] cxl: Don't fail initialization if PSL timebase can't be synced

2016-03-18 Thread Frederic Barrat
Failure to synchronize the PSL timebase currently prevents the initialization of the cxl card, thus rendering the card useless. This is too extreme for a feature which is rarely used, if at all. This patch still tries to synchronize the PSL timebase when the card is initialized, but doesn't fail i

Re: [v6, 5/5] mmc: sdhci-of-esdhc: fix host version for T4240-R1.0-R2.0

2016-03-18 Thread Rob Herring
On Mon, Mar 14, 2016 at 05:45:43PM +, Scott Wood wrote: > On 03/14/2016 02:29 AM, Yangbo Lu wrote: > >> -Original Message- > >> From: Arnd Bergmann [mailto:a...@arndb.de] > >> Sent: Monday, March 14, 2016 6:26 AM > >> To: linuxppc-dev@lists.ozlabs.org > >> Cc: Yangbo Lu; devicet...@vger

Re: [PATCH v8 42/45] drivers/of: Rename unflatten_dt_node()

2016-03-18 Thread Gavin Shan
On Thu, Mar 17, 2016 at 08:31:16AM -0500, Rob Herring wrote: >On Mon, Mar 7, 2016 at 6:56 PM, Gavin Shan wrote: >> On Tue, Mar 01, 2016 at 08:40:12PM -0600, Rob Herring wrote: >>>On Thu, Feb 18, 2016 at 9:16 PM, Gavin Shan >>>wrote: On Wed, Feb 17, 2016 at 08:59:53AM -0600, Rob Herring wrot

Re: [v6, 3/5] dt: move guts devicetree doc out of powerpc directory

2016-03-18 Thread Arnd Bergmann
On Thursday 17 March 2016 12:06:40 Rob Herring wrote: > > diff --git a/Documentation/devicetree/bindings/powerpc/fsl/guts.txt > > b/Documentation/devicetree/bindings/soc/fsl/guts.txt > > similarity index 91% > > rename from Documentation/devicetree/bindings/powerpc/fsl/guts.txt > > rename to Docum

[PATCH v3] powerpc/pci: Assign fixed PHB number based on device-tree properties

2016-03-18 Thread Guilherme G. Piccoli
The domain/PHB field of PCI addresses has its value obtained from a global variable, incremented each time a new domain (represented by struct pci_controller) is added on the system. The domain addition process happens during boot or due to PCI device hotplug. As recent kernels are using predictab

Re: [PATCH next] cxl: Allow PSL timebase to not sync

2016-03-18 Thread Frederic Barrat
Ian, Miley, OK, I'm convinced. New version of the patch out shortly. Fred ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

[PATCH] cpufreq: powernv: Define per_cpu chip pointer to optimize hot-path

2016-03-18 Thread Shilpasri G Bhat
From: Michael Neuling "cpufreq: powernv: Remove cpu_to_chip_id() from hot-path" introduced 'core_to_chip_map' array to cache the chip-id of all cores. Replace this with per_cpu variable that stores the pointer to the chip-array. This removes the linear lookup and provides a neater and simpler sol

Re: [RFC PATCH v4 7/7] powerpc/powernv/pci-ioda: Add IOMMU_CAP_INTR_REMAP for IODA host bridge

2016-03-18 Thread Alex Williamson
On Mon, 7 Mar 2016 15:48:38 +0800 Yongji Xie wrote: > This patch adds IOMMU_CAP_INTR_REMAP for IODA host bridge so that > we can mmap MSI-X table in vfio driver. > > Signed-off-by: Yongji Xie > --- > arch/powerpc/platforms/powernv/pci-ioda.c | 17 + > 1 file changed, 17 inse

Re: [RFC PATCH v4 3/7] PCI: Ignore resource_alignment if PCI_PROBE_ONLY was set

2016-03-18 Thread Alex Williamson
On Mon, 7 Mar 2016 15:48:34 +0800 Yongji Xie wrote: > The resource_alignment will releases memory resources > allocated by firmware so that kernel can reassign new > resources later on. But this will cause the problem > that no resources can be allocated by kernel if > PCI_PROBE_ONLY was set, e.

Re: [PATCH v9 2/3] kernel.h: add to_user_ptr()

2016-03-18 Thread Joe Perches
On Thu, 2016-03-17 at 18:19 -0300, Gustavo Padovan wrote: > 2016-03-17 Joe Perches : > > On Thu, 2016-03-17 at 16:50 -0400, Rob Clark wrote: > > > On Thu, Mar 17, 2016 at 4:40 PM, Joe Perches wrote: > > [] > > > > It's a name that seems like it should be a straightforward > > > > cast of a kernel

Re: [v6, 2/5] soc: fsl: add GUTS driver for QorIQ platforms

2016-03-18 Thread Scott Wood
On 03/09/2016 04:18 AM, Yangbo Lu wrote: > +#ifdef CONFIG_FSL_GUTS > +u32 fsl_guts_get_svr(void); > +int fsl_guts_init(void); > +#endif Don't ifdef prototypes (when not providing a stub alternative). -Scott ___ Linuxppc-dev mailing list Linuxppc-dev@li

Re: [PATCH 2/3] swiotlb: prefix dma_to_phys and phys_to_dma functions

2016-03-18 Thread Robin Murphy
On 17/03/16 22:02, Sinan Kaya wrote: Prefixing dma_to_phys and phys_to_dma API with swiotlb so that they are no longer part of the DMA API. These APIs do not exist on all architectures and breaks compatibility. In preparation for the clean up, also make the ARCH implementation known by defining

Re: [v3,1/8] powerpc: Create a helper for getting the kernel toc value

2016-03-18 Thread Petr Mladek
On Thu 2016-03-17 16:59:28, Torsten Duwe wrote: > On Thu, Mar 17, 2016 at 10:58:42AM +1100, Balbir Singh wrote: > > > > To be honest I think my v6 works well, but I don't have complete confidence > > due to the lack of proper testing. livepatch samples plus some others I > > wrote > > and I one P

Re: [PATCH v8 3/6] cpufreq: powernv: Remove cpu_to_chip_id() from hot-path

2016-03-18 Thread Michael Neuling
On Sat, 2016-03-19 at 09:37 +1100, Benjamin Herrenschmidt wrote: > On Fri, 2016-03-18 at 15:04 +1100, Michael Neuling wrote: > > > > static int nr_chips; > > +static DEFINE_PER_CPU(unsigned int, chip_id); > > > > /* > > * Note: The set of pstates consists of contiguous integers, the > > @@ -

Re: [PATCH 1/3] powerpc/powernv: Move CHECK_HMI_INTERRUPT to exception-64s header

2016-03-18 Thread Paul Mackerras
On Mon, Feb 29, 2016 at 05:52:58PM +0530, Shreyas B. Prabhu wrote: > CHECK_HMI_INTERRUPT is used to check for HMI's in reset vector. Move > the macro to a common location (exception-64s.h) > This patch does not change any functionality. Comments below... > diff --git a/arch/powerpc/include/asm/ex

Re: Freescale P5020 cpu will be kvm-pr?

2016-03-18 Thread luigi burdo
hi scott, i will send the logs for sure will be more understendable compared my self learned english. > Il giorno 17 mar 2016, alle ore 04:47, Scott Wood ha > scritto: > >> On Wed, 2016-03-16 at 07:24 +0100, luigi burdo wrote: >> hi Scott, >> the P5020 mmu is signed by the kernel no book3e fo

Re: [RFC PATCH v4 6/7] vfio-pci: Allow to mmap MSI-X table if IOMMU_CAP_INTR_REMAP was set

2016-03-18 Thread Alex Williamson
[cc+ Eric, Will] On Mon, 7 Mar 2016 15:48:37 +0800 Yongji Xie wrote: > Current vfio-pci implementation disallows to mmap MSI-X > table in case that user get to touch this directly. > > But we should allow to mmap these MSI-X tables if IOMMU > supports interrupt remapping which can ensure that

Re: [PATCH v8 3/6] cpufreq: powernv: Remove cpu_to_chip_id() from hot-path

2016-03-18 Thread Michael Neuling
On Wed, 2016-02-03 at 01:11 +0530, Shilpasri G Bhat wrote: > cpu_to_chip_id() does a DT walk through to find out the chip id by > taking a contended device tree lock. This adds an unnecessary overhead > in a hot path. So instead of calling cpu_to_chip_id() everytime cache > the chip ids for all co

Re: [PATCH v2] powerpc/pci: Assign fixed PHB number based on device-tree properties

2016-03-18 Thread Guilherme G. Piccoli
Thanks very much for the comments Gavin! I agree with all of them, will rework the patch and send a new version. Cheers, Guilherme ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev

Re: [PATCH v8 3/6] cpufreq: powernv: Remove cpu_to_chip_id() from hot-path

2016-03-18 Thread Benjamin Herrenschmidt
On Fri, 2016-03-18 at 15:04 +1100, Michael Neuling wrote: > >  static int nr_chips; > +static DEFINE_PER_CPU(unsigned int, chip_id); >   >  /* >   * Note: The set of pstates consists of contiguous integers, the > @@ -317,9 +318,7 @@ static void powernv_cpufreq_throttle_check(void > *data) >   >   

Re: [PATCH kernel] KVM: PPC: Create a virtual-mode only TCE table handlers

2016-03-18 Thread Paolo Bonzini
On 18/03/2016 10:16, Paul Mackerras wrote: > On Fri, Mar 18, 2016 at 01:50:42PM +1100, Alexey Kardashevskiy wrote: >> Upcoming in-kernel VFIO acceleration needs different handling in real >> and virtual modes which makes it hard to support both modes in >> the same handler. >> >> This creates a c

Re: [PATCH 2/3] powerpc/powernv: Encapsulate idle preparation steps in a macro

2016-03-18 Thread Paul Mackerras
On Fri, Mar 18, 2016 at 08:23:24PM +0530, Shreyas B Prabhu wrote: > Hi Paul, > > On 03/17/2016 04:45 PM, Paul Mackerras wrote: > > On Mon, Feb 29, 2016 at 05:52:59PM +0530, Shreyas B. Prabhu wrote: > >> Before entering any idle state which can result in a state loss > >> we currently save the cont