[PATCH v4 09/15] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-08-15 Thread Lorenzo Pieralisi
is added to the kernel) to be used to define the platform devices names, init the IOMMUs, count their resources and finally initialize them. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Hanjun Guo <hanjun@linaro.org> Cc: Tomasz Nowicki <t...@semihalf.com

[PATCH v4 14/15] drivers: acpi: iort: add single mapping function

2016-08-15 Thread Lorenzo Pieralisi
a requester id, so it cannot be used for IORT named components. Add an interface to the IORT API to enable retrieval of id by allowing an indexed walk of the single mappings array for a given component, therefore completing the IORT mapping API. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.

[PATCH v4 11/15] drivers: iommu: arm-smmu-v3: enable ACPI driver initialization

2016-08-15 Thread Lorenzo Pieralisi
the driver and initialize the bus IOMMU operations accordingly. This patch changes the logic in arm-smmu-v3 init call to allow for it to be probed in ACPI systems. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Acked-by: Will Deacon <will.dea...@arm.com> Cc: Will Deac

[PATCH v4 04/15] drivers: acpi: iort: add support for IOMMU fwnode registration

2016-08-15 Thread Lorenzo Pieralisi
-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Hanjun Guo <hanjun@linaro.org> Cc: Tomasz Nowicki <t...@semihalf.com> Cc: "Rafael J. Wysocki" <r...@rjwysocki.net> --- drivers/acpi/arm64/iort.c | 65 +

[PATCH v4 10/15] drivers: iommu: arm-smmu-v3: split probe functions into DT/generic portions

2016-08-15 Thread Lorenzo Pieralisi
portions so that other FW interfaces (ie ACPI) can reuse the HW probing functions and skip the DT portion accordingly. This patch implements no functional change, only code reshuffling. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Acked-by: Will Deacon <will.dea...@ar

[PATCH v4 08/15] drivers: acpi: iort: add node match function

2016-08-15 Thread Lorenzo Pieralisi
if a given IORT node type is present or not in the ACPI table, providing an ACPI IORT equivalent for of_find_matching_node(). Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Hanjun Guo <hanjun@linaro.org> Cc: Tomasz Nowicki <t...@semihalf.com> Cc: &quo

[PATCH v4 05/15] drivers: platform: add fwnode base platform devices retrieval

2016-08-15 Thread Lorenzo Pieralisi
. The OF equivalent (eg of_find_device_by_node()) will reuse the newly introduced function when OF code will take care of setting up the device->fwnode value that is currently left dangling for platform devices instantiated out of device tree nodes. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.c

[PATCH v4 13/15] drivers: acpi: iort: replace rid map type with type mask

2016-08-15 Thread Lorenzo Pieralisi
node type. Upgrade the IORT iort_node_map_rid() API to work with a type mask instead of a single node type so that it can be used for mappings that span multiple components types (ie IOMMUs). Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Hanjun Guo <hanjun@linar

[PATCH v4 02/15] drivers: iommu: implement arch_{set/get}_iommu_fwspec API

2016-08-15 Thread Lorenzo Pieralisi
-end implementations. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Will Deacon <will.dea...@arm.com> Cc: Rob Herring <robh...@kernel.org> Cc: Robin Murphy <robin.mur...@arm.com> Cc: Joerg Roedel <j...@8bytes.org> Cc: "Rafael J. Wysocki" &l

[PATCH v4 03/15] drivers: acpi: iort: introduce linker section for IORT entries probing

2016-08-15 Thread Lorenzo Pieralisi
associated with the driver specific callback is matched. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Tomasz Nowicki <t...@semihalf.com> Cc: "Rafael J. Wysocki" <r...@rjwysocki.net> Cc: Marc Zyngier <marc.zyng...@arm.com> --- drivers/acpi/arm6

[PATCH v4 07/15] drivers: acpi: implement acpi_dma_configure

2016-08-15 Thread Lorenzo Pieralisi
case, but since arch_setup_dma_ops() is a NOP on all architectures but ARM/ARM64 this patch does not change the current kernel behaviour on them. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Acked-by: Bjorn Helgaas <bhelg...@google.com> [pci] Cc: Bjorn Helgaas <bhel

[PATCH v4 06/15] drivers: iommu: make iommu_fwspec OF agnostic

2016-08-15 Thread Lorenzo Pieralisi
an explicit arch dependency in its config entry. Current drivers using the iommu_fwspec for streamid translation are converted to the new iommu_fwspec API by simply converting the device_node to its fwnode_handle pointer. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com&

[PATCH v4 00/15] ACPI IORT ARM SMMU v3 support

2016-08-15 Thread Lorenzo Pieralisi
w/testing purposes here: git://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/linux.git acpi/iort-smmu-v4 Tested on FVP models for ARM SMMU v3 probing path. Lorenzo Pieralisi (15): drivers: iommu: add FWNODE_IOMMU fwnode type drivers: iommu: implement arch_{set/get}_iommu_fwspec API d

[PATCH v4 01/15] drivers: iommu: add FWNODE_IOMMU fwnode type

2016-08-15 Thread Lorenzo Pieralisi
kernel layer that allows to allocate/free FWNODE_IOMMU fwnode_handle structures and associate them with IOMMU devices. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Joerg Roedel <j...@8bytes.org> Cc: "Rafael J. Wysocki" <r...@rjwysocki.net> ---

Re: [PATCH v8 00/15] ACPI platform MSI support and its example mbigen

2017-02-03 Thread Lorenzo Pieralisi
Hanjun, Sinan, On Wed, Jan 18, 2017 at 08:54:50PM +0800, Hanjun Guo wrote: > From: Hanjun Guo > > With platform msi support landed in the kernel, and the introduction > of IORT for GICv3 ITS (PCI MSI) and SMMU, the framework for platform msi > is ready, this patch set add

Re: [PATCH V12 1/3] ACPI: Generic GSI: Do not attempt to map non-GSI IRQs during bus scan

2017-02-03 Thread Lorenzo Pieralisi
Vega-Frias <agust...@codeaurora.org> > --- > drivers/acpi/resource.c | 18 +- > 1 file changed, 17 insertions(+), 1 deletion(-) Acked-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> > diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c >

Re: [PATCH v8 00/15] ACPI platform MSI support and its example mbigen

2017-02-06 Thread Lorenzo Pieralisi
On Sat, Feb 04, 2017 at 03:02:15PM +0800, Hanjun Guo wrote: > Hi Lorenzo, > > On 2017/2/4 2:36, Lorenzo Pieralisi wrote: > > Hanjun, Sinan, > > > > On Wed, Jan 18, 2017 at 08:54:50PM +0800, Hanjun Guo wrote: > >> From: Hanjun Guo <hanjun@linaro.org>

Re: [PATCH v2] ACPI/IORT: Fix iort_node_get_id() mapping entries indexing

2017-02-03 Thread Lorenzo Pieralisi
On Fri, Feb 03, 2017 at 10:20:29AM +0800, Hanjun Guo wrote: > On 01/10/2017 08:00 PM, Lorenzo Pieralisi wrote: > >Commit 618f535a6062 ("ACPI/IORT: Add single mapping function") > >introduced a function (iort_node_get_id()) to retrieve ids for IORT > >named componen

Re: [PATCH V12 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-02-03 Thread Lorenzo Pieralisi
4 files changed, 220 insertions(+), 1 deletion(-) > rename drivers/acpi/{gsi.c => irq.c} (31%) Acked-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> > diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile > index 9ed0878..a391bbc 100644 > --- a/driv

Re: [PATCH v8 00/15] ACPI platform MSI support and its example mbigen

2017-02-03 Thread Lorenzo Pieralisi
On Fri, Feb 03, 2017 at 10:57:44AM -0500, Sinan Kaya wrote: > On 2/3/2017 10:49 AM, Marc Zyngier wrote: > >> Patches 13-15 are specific for MBIGEN. 00-12 are for the base > >> functionality. > > Is that to support SMMUv3's own MSI generation? It would be helpful if > > you explained why you want

Re: [PATCH V11 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-26 Thread Lorenzo Pieralisi
On Thu, Jan 26, 2017 at 11:43:43AM +0100, Rafael J. Wysocki wrote: > On Thursday, January 26, 2017 10:15:21 AM Lorenzo Pieralisi wrote: > > On Thu, Jan 26, 2017 at 03:01:18AM +0200, Andy Shevchenko wrote: > > > On Fri, Jan 20, 2017 at 4:34 AM, Agustin Vega-Frias > > &g

Re: [PATCH 0/7] Implement generic regulator constraints parsing for ACPI and OF

2017-01-25 Thread Lorenzo Pieralisi
ugh standard ACPI methods we should request changes to the specifications, enabling regulator control with ACPI through DT bindings is just a recipe for disaster. What's the best course of action should and can be debated, in the interim on the series: NAKed-by: Lorenzo Pieralisi <lorenzo.pieral..

Re: [PATCH V11 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-26 Thread Lorenzo Pieralisi
On Thu, Jan 26, 2017 at 03:01:18AM +0200, Andy Shevchenko wrote: > On Fri, Jan 20, 2017 at 4:34 AM, Agustin Vega-Frias > wrote: > > ACPI extended IRQ resources may contain a ResourceSource to specify > > an alternate interrupt controller. Introduce acpi_irq_get and use it

Re: [PATCH V11 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-20 Thread Lorenzo Pieralisi
On Thu, Jan 19, 2017 at 09:34:19PM -0500, Agustin Vega-Frias wrote: > ACPI extended IRQ resources may contain a ResourceSource to specify > an alternate interrupt controller. Introduce acpi_irq_get and use it > to implement ResourceSource/IRQ domain mapping. > > The new API is similar to

Re: [PATCH 0/7] Implement generic regulator constraints parsing for ACPI and OF

2017-01-25 Thread Lorenzo Pieralisi
On Wed, Jan 25, 2017 at 06:29:55PM +, Mark Brown wrote: > On Wed, Jan 25, 2017 at 06:23:20PM +, Mark Rutland wrote: > > On Wed, Jan 25, 2017 at 08:56:42AM -0800, Furquan Shaikh wrote: > > > > That is the reason why the recent change to add ACPI support to fixed > > > regulators was done >

Re: [PATCH V10 2/3] ACPI: Add support for ResourceSource/IRQ domain mapping

2017-01-19 Thread Lorenzo Pieralisi
On Wed, Jan 18, 2017 at 09:45:56PM +0200, Andy Shevchenko wrote: [...] > > +/** > > + * acpi_irq_get - Look for the ACPI IRQ resource with the given index and > > + *use it to initialize the given Linux IRQ resource. > > + * @handle ACPI device handle > > + * @index ACPI IRQ

Re: [PATCH v7 15/15] irqchip: mbigen: Add ACPI support

2017-01-16 Thread Lorenzo Pieralisi
On Sat, Jan 14, 2017 at 10:56:54AM +0800, Hanjun Guo wrote: > Hi Lorenzo, > > On 2017/1/13 18:21, Lorenzo Pieralisi wrote: > > On Wed, Jan 11, 2017 at 11:06:39PM +0800, Hanjun Guo wrote: > >> With the preparation of platform msi support and interrupt producer > >>

Re: [PATCH v7 09/15] ACPI: platform-msi: retrieve dev id from IORT

2017-01-16 Thread Lorenzo Pieralisi
On Sat, Jan 14, 2017 at 12:28:35PM +0800, Hanjun Guo wrote: > Hi Lorenzo, > > On 2017/1/13 20:11, Lorenzo Pieralisi wrote: > > On Wed, Jan 11, 2017 at 11:06:33PM +0800, Hanjun Guo wrote: > >> For devices connecting to ITS, it needs dev id to identify itself, and > &g

Re: [PATCH v7 15/15] irqchip: mbigen: Add ACPI support

2017-01-16 Thread Lorenzo Pieralisi
On Mon, Jan 16, 2017 at 10:23:16PM +0800, Hanjun Guo wrote: > Hi Lorenzo, > > On 2017/1/16 19:38, Lorenzo Pieralisi wrote: > > On Sat, Jan 14, 2017 at 10:56:54AM +0800, Hanjun Guo wrote: > >> Hi Lorenzo, > >> > >> On 2017/1/13 18:21, Lorenzo Pieralisi

Re: [PATCH V9 0/3] irqchip: qcom: Add IRQ combiner driver

2017-01-16 Thread Lorenzo Pieralisi
On Mon, Jan 16, 2017 at 10:41:26PM +0800, Hanjun Guo wrote: > On 2017/1/16 22:14, Marc Zyngier wrote: > > On 16/01/17 14:07, Agustin Vega-Frias wrote: > >> Hi Rafael, > >> > >> On 2017-01-03 16:56, Rafael J. Wysocki wrote: > >>> On Tue, Jan 3, 2017 at 4:19 PM, Agustin Vega-Frias > >>>

[PATCH 1/2] drivers: acpi: fix typo in ACPI_DECLARE_PROBE_ENTRY macro

2016-08-16 Thread Lorenzo Pieralisi
ROBE_ENTRY() macro so that it can actually be used if needed. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Fixes: e647b532275b ("ACPI: Add early device probing infrastructure") Cc: "Rafael J. Wysocki" <r...@rjwysocki.net> Cc: Marc Zyngier <marc.z

[PATCH 2/2] drivers: acpi: replace acpi_probe_lock spinlock with mutex

2016-08-16 Thread Lorenzo Pieralisi
d to sleep the acpi_probe_lock spinlock can be replaced with a mutex; this fixes the issue whilst still guaranteeing mutual exclusion. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Fixes: e647b532275b ("ACPI: Add early device probing infrastructure") Cc: Tomasz Nowicki <t..

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-02-28 Thread Lorenzo Pieralisi
Arnd, all, On Mon, Feb 27, 2017 at 03:14:18PM +, Lorenzo Pieralisi wrote: > The introduction of the pci_remap_cfgspace() interface allows > PCI host controller drivers to map PCI config space through a > dedicated kernel interface. Current PCI host controller drivers > use the d

Re: [PATCH 13/20] PCI: iproc-platform: update PCI config space remap function

2017-02-28 Thread Lorenzo Pieralisi
Hi Ray, On Mon, Feb 27, 2017 at 01:21:39PM -0800, Ray Jui wrote: > Hi Lorenzo, > > On 2/27/2017 7:14 AM, Lorenzo Pieralisi wrote: > > PCI configuration space should be mapped with a memory region type that > > generates on the CPU host bus non-posted write transations.

Re: [PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-03-02 Thread Lorenzo Pieralisi
Hi Andy, On Thu, Mar 02, 2017 at 01:54:42AM +0200, Andy Shevchenko wrote: > On Mon, Feb 27, 2017 at 5:14 PM, Lorenzo Pieralisi > <lorenzo.pieral...@arm.com> wrote: > > The introduction of the pci_remap_cfgspace() interface allows > > PCI host controller drivers to map

[PATCH 00/20] PCI: fix config and I/O Address space memory mappings

2017-02-27 Thread Lorenzo Pieralisi
;thierry.red...@gmail.com> Cc: Michal Simek <michal.si...@xilinx.com> Cc: Stanimir Varbanov <svarba...@mm-sol.com> Cc: Zhou Wang <wangzh...@hisilicon.com> Cc: Roy Zang <tie-fei.z...@freescale.com> Lorenzo Pieralisi (20): PCI: remove __weak tag from pci_remap_

[PATCH 19/20] PCI: layerscape: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

[PATCH 17/20] PCI: xgene: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

[PATCH 11/20] PCI: rockchip: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

[PATCH 01/20] PCI: remove __weak tag from pci_remap_iospace()

2017-02-27 Thread Lorenzo Pieralisi
since the same functionality can be achieved by customizing per-arch the corresponding functionality. Remove the __weak symbol from pci_remap_iospace(). Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Arnd Bergmann <a...@arndb.de> Cc: Bjorn Helgaas <bhel

[PATCH 13/20] PCI: iproc-platform: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

[PATCH 04/20] ARM64: implement pci_remap_cfgspace() interface

2017-02-27 Thread Lorenzo Pieralisi
nce manual recommendations. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Will Deacon <will.dea...@arm.com> Cc: Catalin Marinas <catalin.mari...@arm.com> --- arch/arm64/include/asm/io.h | 10 ++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/i

[PATCH 12/20] PCI: qcom: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

[PATCH 03/20] asm-generic/io.h: add PCI config space remap interface

2017-02-27 Thread Lorenzo Pieralisi
ut still allowing architectures on which ioremap_nocache() results in posted write transactions to override the function call with an arch specific implementation that complies with the PCI specifications for configuration transactions. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@ar

[PATCH 07/20] PCI: implement Devres interface to map PCI config space

2017-02-27 Thread Lorenzo Pieralisi
() so that PCI host controller drivers can make use of them to map PCI configuration space regions. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Jonathan Corbet <cor...@lwn.net> Cc: Bjorn Helgaas <bhelg...@google.com> --- Documentation/driver-model/devres.txt |

[PATCH 10/20] PCI: spear13xx: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generate on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

[PATCH 02/20] PCI: fix pci_remap_iospace() remap attribute

2017-02-27 Thread Lorenzo Pieralisi
the prot ioremap_page_range() parameter in pci_remap_iospace() to pgprot_noncached to ensure that the virtual mapping backing I/O Address Space guarantee non-posted write transactions issued when addressing I/O Address Space through the MMIO mapping. Signed-off-by: Lorenzo Pieralisi <lorenzo.pie

[PATCH 20/20] PCI: keystone-dw: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

[PATCH 14/20] PCI: hisi: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

[PATCH 16/20] PCI: armada8k: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

[PATCH 05/20] ARM: implement pci_remap_cfgspace() interface

2017-02-27 Thread Lorenzo Pieralisi
ment an ARM specific pci_remap_cfgspace() interface that allows to map PCI config memory regions with MT_UNCACHED memory type (ie strongly ordered - non-posted writes), providing a remap function that complies with PCI specifications for config space transactions. Signed-off-by: Lorenzo Piera

[PATCH 06/20] PCI: ECAM: use pci_remap_cfgspace() to map config region

2017-02-27 Thread Lorenzo Pieralisi
guarantee that non-posted writes transactions are issued for memory writes within the ECAM memory mapped address region. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Bjorn Helgaas <bhelg...@google.com> --- drivers/pci/ecam.c | 5 +++-- 1 file changed, 3 inse

[PATCH 09/20] PCI: xilinx-nwl: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

[PATCH 08/20] PCI: xilinx: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

[PATCH 18/20] PCI: tegra: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Bjorn Helgaas <bhelg...@google.com> Cc: Thierry Reding <thierry.red...@gmail.com> --- drivers/pci/host/pci-tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/host/pci-tegra.c b/drivers/pci/host

[PATCH 15/20] PCI: designware: update PCI config space remap function

2017-02-27 Thread Lorenzo Pieralisi
PCI configuration space should be mapped with a memory region type that generates on the CPU host bus non-posted write transations. Update the driver to use the devm_pci_remap_cfg* interface to make sure the correct memory mappings for PCI configuration space are used. Signed-off-by: Lorenzo

Re: [RFC PATCH V5 1/5] PCI: Embed pci_ecam_ops in pci_config_window structure

2016-09-02 Thread Lorenzo Pieralisi
On Thu, Sep 01, 2016 at 01:23:45PM -0500, Bjorn Helgaas wrote: > On Mon, Aug 08, 2016 at 03:05:37PM +0200, Tomasz Nowicki wrote: > > pci_config_window keeps pointer to pci_ecam_ops and every time > > we want to deallocate pci_config_window (pci_ecam_free()) we need to make > > sure to free

Re: [PATCH v4 05/15] drivers: platform: add fwnode base platform devices retrieval

2016-09-05 Thread Lorenzo Pieralisi
On Mon, Sep 05, 2016 at 09:19:43PM +0800, Hanjun Guo wrote: > On 2016/8/15 23:23, Lorenzo Pieralisi wrote: > >The platform device kernel API does not provide functions to > >retrieve a platform device through the corresponding struct > >device fwnode pointer. > &

Re: [UPDATE PATCH V10 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-09-08 Thread Lorenzo Pieralisi
DT table. > > Signed-off-by: Tomasz Nowicki <t...@semihalf.com> > Reviewed-by: Hanjun Guo <hanjun@linaro.org> > Reviewed-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> > --- > drivers/acpi/Kconfig| 4 + > drivers/acpi/Makefile | 2 + &

Re: [PATCH V8 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-08-31 Thread Lorenzo Pieralisi
Hi Rafael, On Thu, Aug 18, 2016 at 08:25:20AM +0200, Tomasz Nowicki wrote: > On 12.08.2016 18:33, Lorenzo Pieralisi wrote: > >Hi Tomasz, > > > >On Thu, Aug 11, 2016 at 12:06:31PM +0200, Tomasz Nowicki wrote: > >>IORT shows representation of IO topology for ARM based

[PATCH v5 08/14] drivers: iommu: arm-smmu-v3: split probe functions into DT/generic portions

2016-09-09 Thread Lorenzo Pieralisi
portions so that other FW interfaces (ie ACPI) can reuse the HW probing functions and skip the DT portion accordingly. This patch implements no functional change, only code reshuffling. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Acked-by: Will Deacon <will.dea...@ar

[PATCH v5 11/14] drivers: iommu: arm-smmu: add IORT configuration

2016-09-09 Thread Lorenzo Pieralisi
functions to the IORT kernel layer for the ARM SMMU components, so that the ARM SMMU driver can initialize its respective platform device by relying on the IORT kernel infrastructure and by adding a corresponding ACPI device early probe section entry. Signed-off-by: Lorenzo Pieralisi

[PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-09 Thread Lorenzo Pieralisi
is added to the kernel) to be used to define the platform devices names, init the IOMMUs, count their resources and finally initialize them. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Hanjun Guo <hanjun@linaro.org> Cc: Tomasz Nowicki <t...@semihalf.com

[PATCH v5 03/14] drivers: acpi: iort: introduce linker section for IORT entries probing

2016-09-09 Thread Lorenzo Pieralisi
associated with the driver specific callback is matched. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Reviewed-by: Hanjun Guo <hanjun@linaro.org> Cc: Tomasz Nowicki <t...@semihalf.com> Cc: "Rafael J. Wysocki" <r...@rjwysocki.net> Cc: Marc Zyngier <marc.

[PATCH v5 05/14] drivers: iommu: make iommu_fwspec OF agnostic

2016-09-09 Thread Lorenzo Pieralisi
an explicit arch dependency in its config entry. Current drivers using the iommu_fwspec for streamid translation are converted to the new iommu_fwspec API by simply converting the device_node to its fwnode_handle pointer. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com&

[PATCH v5 01/14] drivers: iommu: add FWNODE_IOMMU fwnode type

2016-09-09 Thread Lorenzo Pieralisi
kernel layer that allows to allocate/free FWNODE_IOMMU fwnode_handle structures and associate them with IOMMU devices. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Reviewed-by: Hanjun Guo <hanjun@linaro.org> Cc: Joerg Roedel <j...@8bytes.org> Cc: &quo

[PATCH v5 10/14] drivers: iommu: arm-smmu: split probe functions into DT/generic portions

2016-09-09 Thread Lorenzo Pieralisi
so that other FW interfaces (ie ACPI) can reuse the HW probing functions and skip the DT portion accordingly. This patch implements no functional change, only code reshuffling. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Will Deacon <will.dea...@arm.com> Cc: Hanjun

[PATCH v5 04/14] drivers: acpi: iort: add support for IOMMU fwnode registration

2016-09-09 Thread Lorenzo Pieralisi
-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Reviewed-by: Hanjun Guo <hanjun@linaro.org> Cc: Hanjun Guo <hanjun@linaro.org> Cc: Tomasz Nowicki <t...@semihalf.com> Cc: "Rafael J. Wysocki" <r...@rjwysocki.net

[PATCH v5 12/14] drivers: acpi: iort: replace rid map type with type mask

2016-09-09 Thread Lorenzo Pieralisi
node type. Upgrade the IORT iort_node_map_rid() API to work with a type mask instead of a single node type so that it can be used for mappings that span multiple components types (ie IOMMUs). Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Hanjun Guo <hanjun@linar

[PATCH v5 13/14] drivers: acpi: iort: add single mapping function

2016-09-09 Thread Lorenzo Pieralisi
a requester id, so it cannot be used for IORT named components. Add an interface to the IORT API to enable retrieval of id by allowing an indexed walk of the single mappings array for a given component, therefore completing the IORT mapping API. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.

[PATCH v5 14/14] drivers: acpi: iort: introduce iort_iommu_configure

2016-09-09 Thread Lorenzo Pieralisi
-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Hanjun Guo <hanjun@linaro.org> Cc: Tomasz Nowicki <t...@semihalf.com> Cc: "Rafael J. Wysocki" <r...@rjwysocki.net> --- drivers/acpi/arm64/iort.c | 96 +++ drivers/ac

[PATCH v5 02/14] drivers: iommu: implement arch_{set/get}_iommu_fwspec API

2016-09-09 Thread Lorenzo Pieralisi
-end implementations. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Cc: Will Deacon <will.dea...@arm.com> Cc: Rob Herring <robh...@kernel.org> Cc: Robin Murphy <robin.mur...@arm.com> Cc: Joerg Roedel <j...@8bytes.org> Cc: "Rafael J. Wysocki" &l

[PATCH v5 06/14] drivers: acpi: implement acpi_dma_configure

2016-09-09 Thread Lorenzo Pieralisi
case, but since arch_setup_dma_ops() is a NOP on all architectures but ARM/ARM64 this patch does not change the current kernel behaviour on them. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Acked-by: Bjorn Helgaas <bhelg...@google.com> [pci] Cc: Bjorn Helgaas <bhel

[PATCH v5 09/14] drivers: iommu: arm-smmu-v3: add IORT configuration

2016-09-09 Thread Lorenzo Pieralisi
configuration functions to the IORT kernel layer for the ARM SMMU v3 components, so that the ARM SMMU v3 driver can initialize its respective platform device by relying on the IORT kernel infrastructure and by adding a corresponding ACPI device early probe section entry. Signed-off-by: Lorenzo Pieralisi

[PATCH v5 00/14] ACPI IORT ARM SMMU support

2016-09-09 Thread Lorenzo Pieralisi
view/testing purposes here: git://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/linux.git acpi/iort-smmu-v5 Tested on Juno and FVP models for ARM SMMU v1 and v3 probing path. Lorenzo Pieralisi (14): drivers: iommu: add FWNODE_IOMMU fwnode type drivers: iommu: implement arch_{set/get}_iommu_

Re: [PATCH v5 06/14] drivers: acpi: implement acpi_dma_configure

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 03:41:06PM +0100, Robin Murphy wrote: > On 09/09/16 15:23, Lorenzo Pieralisi wrote: > > On DT based systems, the of_dma_configure() API implements DMA > > configuration for a given device. On ACPI systems an API equivalent to > > of_dma_configure() is

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 04:25:55PM +0100, Robin Murphy wrote: [...] > > +/** > > + * iort_add_smmu_platform_device() - Allocate a platform device for SMMU > > + * @fwnode: IORT node associated fwnode handle > > + * @node: Pointer to SMMU ACPI IORT node > > + * > > + * Returns: 0 on success, <0

Re: [PATCH V6 2/5] PCI/ACPI: Check platform specific ECAM quirks

2016-09-14 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 07:38:39PM +0800, Dongdong Liu wrote: > Hi Tomasz > > ?? 2016/9/13 14:32, Tomasz Nowicki : > >Hi Liu, > > > >On 13.09.2016 04:36, Dongdong Liu wrote: > >>Hi Tomasz > >> > >>?? 2016/9/10 3:24, Tomasz Nowicki : > >>>Some platforms may not be fully compliant with

Re: [PATCH] usb: dwc3: host: inherit dma configuration from parent dev

2016-09-14 Thread Lorenzo Pieralisi
On Wed, Sep 07, 2016 at 01:47:22PM +0300, Felipe Balbi wrote: > > Hi, > > Robin Murphy writes: > > On 07/09/16 10:55, Peter Chen wrote: > > [...] > >>> Regarding the DMA configuration that you mention in ci_hdrc_add_device(), > >>> I think we should replace > >>> > >>>

Re: [PATCH v5 05/14] drivers: iommu: make iommu_fwspec OF agnostic

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 02:38:35PM +0100, Robin Murphy wrote: > > static int arm_smmu_match_node(struct device *dev, void *data) > > { > > - return dev->of_node == data; > > + struct fwnode_handle *fwnode; > > + > > + fwnode = dev->of_node ? >of_node->fwnode : dev->fwnode; > > + > > +

Re: [PATCH] of/platform: Initialise dev->fwnode appropriately

2016-09-16 Thread Lorenzo Pieralisi
On Thu, Sep 15, 2016 at 08:36:57AM -0500, Rob Herring wrote: > On Wed, Sep 14, 2016 at 04:01:24PM +0100, Robin Murphy wrote: > > Whilst we're some of the way towards a universal firmware property > > interface, drivers which deal with both OF and ACPI probing end up > > having to do things like

Re: [PATCH V10 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-09-09 Thread Lorenzo Pieralisi
On Fri, Sep 09, 2016 at 11:09:40AM +0800, Dennis Chen wrote: > Hi Tomasz, > > On Tue, Sep 06, 2016 at 11:08:51AM +0200, Tomasz Nowicki wrote: > [...] > > +static int iort_id_map(struct acpi_iort_id_mapping *map, u8 type, u32 > > rid_in, > > + u32 *rid_out) > > +{ > > + /*

Re: [UPDATE PATCH V10 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-09-09 Thread Lorenzo Pieralisi
placed under drivers/acpi/arm64/ new directory due to its > ARM64 specific nature. The code there is considered only for ARM64. > The long term plan is to keep all ARM64 specific tables support > in this place e.g. GTDT table. > > Signed-off-by: Tomasz Nowicki <t...@semihalf.com

Re: [PATCH v5 07/14] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-09-13 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 04:15:31PM +0800, Hanjun Guo wrote: [...] > >>+static acpi_status __init iort_match_iommu_callback(struct > >>acpi_iort_node *node, > >>+void *context) > >>+{ > >>+int ret; > >>+struct fwnode_handle *fwnode; > >>+ > >>+fwnode =

Re: [PATCH v5 01/14] drivers: iommu: add FWNODE_IOMMU fwnode type

2016-09-29 Thread Lorenzo Pieralisi
Hi Rafael, On Fri, Sep 09, 2016 at 03:23:30PM +0100, Lorenzo Pieralisi wrote: > On systems booting with a device tree, every struct device is > associated with a struct device_node, that represents its DT > representation. The device node can be used in generic kernel > cont

Re: [PATCH v5 01/14] drivers: iommu: add FWNODE_IOMMU fwnode type

2016-09-30 Thread Lorenzo Pieralisi
On Thu, Sep 29, 2016 at 10:59:40PM +0200, Rafael J. Wysocki wrote: > On Thursday, September 29, 2016 03:15:20 PM Lorenzo Pieralisi wrote: > > Hi Rafael, > > > > On Fri, Sep 09, 2016 at 03:23:30PM +0100, Lorenzo Pieralisi wrote: > > > On systems booting with a de

[PATCH] MAINTAINERS: Add ARM64-specific ACPI maintainers entry

2016-10-05 Thread Lorenzo Pieralisi
that is specific to ARM64 architecture. Add the ARM64-specific ACPI maintainers entry in MAINTAINERS for the newly created subdirectory and respective code content. Lorenzo Pieralisi will be in charge of submitting and managing the pull requests on behalf of all maintainers listed. Signed-off

Re: [PATCH V6 3/5] PCI: thunder-pem: Allow to probe PEM-specific register range for ACPI case

2016-09-21 Thread Lorenzo Pieralisi
On Tue, Sep 20, 2016 at 02:17:44PM -0500, Bjorn Helgaas wrote: > On Tue, Sep 20, 2016 at 04:09:25PM +0100, Ard Biesheuvel wrote: [...] > > None of these platforms can be fixed entirely in software, and given > > that we will not be adding quirks for new broken hardware, we should > > ask

Re: [PATCH V6 2/5] PCI/ACPI: Check platform specific ECAM quirks

2016-09-15 Thread Lorenzo Pieralisi
On Tue, Sep 13, 2016 at 07:38:39PM +0800, Dongdong Liu wrote: [...] > Our host bridge is non ECAM only for the RC bus config space; > for any other bus underneath the root bus we support ECAM access. > > RC config resource with hardcode as DEFINE_RES_MEM(0xb007, SZ_4K), > EP config resource

Re: [PATCH V6 3/5] PCI: thunder-pem: Allow to probe PEM-specific register range for ACPI case

2016-09-23 Thread Lorenzo Pieralisi
[+ Zhang Rui] On Thu, Sep 22, 2016 at 05:10:42PM -0500, Bjorn Helgaas wrote: > On Thu, Sep 22, 2016 at 01:31:01PM -0500, Bjorn Helgaas wrote: > > On Thu, Sep 22, 2016 at 01:44:46PM +0100, Lorenzo Pieralisi wrote: > > > On Thu, Sep 22, 2016 at 11:10:13AM +, Gabriele Paoloni

Re: [PATCH V6 3/5] PCI: thunder-pem: Allow to probe PEM-specific register range for ACPI case

2016-09-22 Thread Lorenzo Pieralisi
On Wed, Sep 21, 2016 at 01:04:57PM -0500, Bjorn Helgaas wrote: > On Wed, Sep 21, 2016 at 03:05:49PM +0100, Lorenzo Pieralisi wrote: > > On Tue, Sep 20, 2016 at 02:17:44PM -0500, Bjorn Helgaas wrote: > > > On Tue, Sep 20, 2016 at 04:09:25PM +0100, Ar

Re: [PATCH V6 3/5] PCI: thunder-pem: Allow to probe PEM-specific register range for ACPI case

2016-09-22 Thread Lorenzo Pieralisi
On Thu, Sep 22, 2016 at 11:10:13AM +, Gabriele Paoloni wrote: > Hi Lorenzo, Bjorn > > > -Original Message- > > From: Lorenzo Pieralisi [mailto:lorenzo.pieral...@arm.com] > > Sent: 22 September 2016 10:50 > > To: Bjorn Helgaas > > Cc: Ard Bie

Re: [PATCH V8 1/8] ACPI: I/O Remapping Table (IORT) initial support

2016-08-18 Thread Lorenzo Pieralisi
On Thu, Aug 18, 2016 at 06:55:50PM +0800, Dennis Chen wrote: [...] > > +static struct acpi_iort_node * > > +iort_scan_node(enum acpi_iort_node_type type, > > + iort_find_node_callback callback, void *context) > > +{ > > + struct acpi_iort_node *iort_node, *iort_end; > > + struct

Re: [PATCH v4 09/15] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-08-18 Thread Lorenzo Pieralisi
On Thu, Aug 18, 2016 at 06:50:07PM +0800, Dennis Chen wrote: [...] > > +static void __init iort_smmu_init(void) > > +{ > > + struct acpi_iort_node *iort_node, *iort_end; > > + struct acpi_table_iort *iort; > > + struct fwnode_handle *fwnode; > > + int i, ret; > > + > > + /* > > +*

Re: [PATCH 1/2] arm64: kernel: Add SMC Session ID to results

2016-08-23 Thread Lorenzo Pieralisi
On Mon, Aug 22, 2016 at 05:38:31PM -0700, Stephen Boyd wrote: > On 08/22, Will Deacon wrote: > > On Mon, Aug 22, 2016 at 09:02:46AM -0500, Andy Gross wrote: > > > On Mon, Aug 22, 2016 at 02:43:14PM +0100, Will Deacon wrote: > > > > On Sat, Aug 20, 2016 at 12:51:13AM -0500, Andy Gross wrote: > > >

Re: [PATCH 1/2] arm64: kernel: Add SMC Session ID to results

2016-08-23 Thread Lorenzo Pieralisi
On Mon, Aug 22, 2016 at 05:38:31PM -0700, Stephen Boyd wrote: [...] > This all comes about because the firmware generates a session id > for the SMC call and jams it in x6. The assembly on the > non-secure side is written with a tight loop around the smc > instruction so that when the return

Re: [PATCH v4 01/15] drivers: iommu: add FWNODE_IOMMU fwnode type

2016-08-23 Thread Lorenzo Pieralisi
Hi Rafael, On Mon, Aug 15, 2016 at 04:23:26PM +0100, Lorenzo Pieralisi wrote: > On systems booting with a device tree, every struct device is > associated with a struct device_node, that represents its DT > representation. The device node can be used in generic kernel > cont

Re: [PATCH v6 09/16] drivers: acpi: iort: add support for ARM SMMU platform devices creation

2016-10-28 Thread Lorenzo Pieralisi
On Tue, Oct 18, 2016 at 05:04:07PM +0100, Lorenzo Pieralisi wrote: > In ARM ACPI systems, IOMMU components are specified through static > IORT table entries. In order to create platform devices for the > corresponding ARM SMMU components, IORT kernel code should be made > able to pars

[PATCH v7 14/16] drivers: acpi: iort: replace rid map type with type mask

2016-11-09 Thread Lorenzo Pieralisi
node type. Upgrade the IORT iort_node_map_rid() API to work with a type mask instead of a single node type so that it can be used for mappings that span multiple components types (ie IOMMUs). Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.com> Tested-by: Hanjun Guo <hanjun@l

[PATCH v7 15/16] drivers: acpi: iort: add single mapping function

2016-11-09 Thread Lorenzo Pieralisi
a requester id, so it cannot be used for IORT named components. Add an interface to the IORT API to enable retrieval of id by allowing an indexed walk of the single mappings array for a given component, therefore completing the IORT mapping API. Signed-off-by: Lorenzo Pieralisi <lorenzo.pieral...@arm.

<    2   3   4   5   6   7   8   9   10   11   >