Re: [V2, 2/2] media: i2c: Add DW9768 VCM driver

2019-10-08 Thread Tomasz Figa
Hi Dongchun, On Thu, Sep 5, 2019 at 4:22 PM wrote: > > From: Dongchun Zhu > > This patch adds a V4L2 sub-device driver for DW9768 lens voice coil, > and provides control to set the desired focus. > > The DW9768 is a 10 bit DAC with 100mA output current sink capability > from Dongwoon, designed

[PATCH 0/3] AMD IOMMU Changes for NTB

2019-10-08 Thread Logan Gunthorpe
Hi, Please find the following patches which help support Non-Transparent-Bridge (NTB) devices on AMD platforms with the IOMMU enabled. The first patch implements dma_map_resource() correctly with the AMD IOMMU. This is required for correct functioning of ntb_transport which uses that interface.

[PATCH 1/3] iommu/amd: Implement dma_[un]map_resource()

2019-10-08 Thread Logan Gunthorpe
From: Kit Chow Currently the Intel IOMMU uses the default dma_[un]map_resource() implementations does nothing and simply returns the physical address unmodified. However, this doesn't create the IOVA entries necessary for addresses mapped this way to work when the IOMMU is enabled. Thus, when

[PATCH 3/3] iommu/amd: Support multiple PCI DMA aliases in IRQ Remapping

2019-10-08 Thread Logan Gunthorpe
Non-Transparent Bridge (NTB) devices (among others) may have many DMA aliases seeing the hardware will send requests with different device ids depending on their origin across the bridged hardware. See commit ad281ecf1c7d ("PCI: Add DMA alias quirk for Microsemi Switchtec NTB") for more

[PATCH 2/3] iommu/amd: Support multiple PCI DMA aliases in device table

2019-10-08 Thread Logan Gunthorpe
Non-Transparent Bridge (NTB) devices (among others) may have many DMA aliases seeing the hardware will send requests with different device ids depending on their origin across the bridged hardware. See commit ad281ecf1c7d ("PCI: Add DMA alias quirk for Microsemi Switchtec NTB") for more

Re: [PATCH v3 6/6] iommu/amd: Switch to use acpi_dev_hid_uid_match()

2019-10-08 Thread Jerry Snitselaar
On Tue Oct 01 19, Andy Shevchenko wrote: Since we have a generic helper, drop custom implementation in the driver. Signed-off-by: Andy Shevchenko Reviewed-by: Mika Westerberg --- drivers/iommu/amd_iommu.c | 30 +- 1 file changed, 5 insertions(+), 25 deletions(-)

Re: [PATCH] iommu/rockchip: Don't loop until failure to count interrupts

2019-10-08 Thread Enric Balletbo Serra
Hi Heiko, Missatge de Heiko Stübner del dia dt., 8 d’oct. 2019 a les 19:58: > > Hi Enric, > > Am Dienstag, 8. Oktober 2019, 15:58:43 CEST schrieb Enric Balletbo i Serra: > > As platform_get_irq() now prints an error when the interrupt does not > > exist, counting interrupts by looping until

Re: [PATCH] iommu/rockchip: Don't loop until failure to count interrupts

2019-10-08 Thread Heiko Stübner
Hi Enric, Am Dienstag, 8. Oktober 2019, 15:58:43 CEST schrieb Enric Balletbo i Serra: > As platform_get_irq() now prints an error when the interrupt does not > exist, counting interrupts by looping until failure causes the printing > of scary messages like: > > rk_iommu ff924000.iommu: IRQ

[PATCH] iommu/rockchip: Don't loop until failure to count interrupts

2019-10-08 Thread Enric Balletbo i Serra
As platform_get_irq() now prints an error when the interrupt does not exist, counting interrupts by looping until failure causes the printing of scary messages like: rk_iommu ff924000.iommu: IRQ index 1 not found rk_iommu ff914000.iommu: IRQ index 1 not found rk_iommu ff903f00.iommu: IRQ index

Re: [PATCH v2 6/6] iommu/amd: Switch to use acpi_dev_hid_uid_match()

2019-10-08 Thread Andy Shevchenko
On Mon, Oct 07, 2019 at 05:28:48PM +0200, Joerg Roedel wrote: > On Tue, Sep 24, 2019 at 10:37:39PM +0300, Andy Shevchenko wrote: > > Since we have a generic helper, drop custom implementation in the driver. > > > > Signed-off-by: Andy Shevchenko > > --- > > drivers/iommu/amd_iommu.c | 30

Re: [PATCH v4 3/4] vfio: zpci: defining the VFIO headers

2019-10-08 Thread Cornelia Huck
On Fri, 20 Sep 2019 11:14:28 -0400 Matthew Rosato wrote: > On 9/20/19 10:02 AM, Cornelia Huck wrote: > > On Thu, 19 Sep 2019 16:55:57 -0400 > > Matthew Rosato wrote: > > > >> On 9/19/19 11:20 AM, Cornelia Huck wrote: > >>> On Fri, 6 Sep 2019 20:13:50 -0400 > >>> Matthew Rosato wrote: >

Re: [PATCH v6 0/5] iommu/amd: Convert the AMD iommu driver to the dma-iommu api

2019-10-08 Thread Joerg Roedel
On Sun, Sep 08, 2019 at 09:56:36AM -0700, Tom Murphy wrote: > Convert the AMD iommu driver to the dma-iommu api. Remove the iova > handling and reserve region code from the AMD iommu driver. Applied, thanks. Note that it will not show up in linux-next before -rc3.

Re: [GIT PULL] iommu/arm-smmu: Fixes for 5.4-rc2

2019-10-08 Thread Joerg Roedel
On Wed, Oct 02, 2019 at 02:12:59PM +0100, Will Deacon wrote: > The following changes since commit 54ecb8f7028c5eb3d740bb82b0f1d90f2df63c5c: > > Linux 5.4-rc1 (2019-09-30 10:35:40 -0700) > > are available in the Git repository at: > >

Re: [PATCH] iommu/mediatek: Move the tlb_sync into tlb_flush

2019-10-08 Thread Yong Wu
On Mon, 2019-09-30 at 13:09 +0100, Will Deacon wrote: > On Mon, Sep 30, 2019 at 01:42:22PM +0800, Yong Wu wrote: > > The commit 4d689b619445 ("iommu/io-pgtable-arm-v7s: Convert to IOMMU API > > TLB sync") help move the tlb_sync of unmap from v7s into the iommu > > framework. It helps add a new

Re: [PATCH] iommu/mediatek: Move the tlb_sync into tlb_flush

2019-10-08 Thread Yong Wu
Hi Tomasz, Sorry for reply late. On Wed, 2019-10-02 at 14:18 +0900, Tomasz Figa wrote: > Hi Yong, > > On Mon, Sep 30, 2019 at 2:42 PM Yong Wu wrote: > > > > The commit 4d689b619445 ("iommu/io-pgtable-arm-v7s: Convert to IOMMU API > > TLB sync") help move the tlb_sync of unmap from v7s into the

Re: [PATCH] iommu/mediatek: Move the tlb_sync into tlb_flush

2019-10-08 Thread Yong Wu
On Wed, 2019-10-02 at 11:35 +0100, Robin Murphy wrote: > On 02/10/2019 06:18, Tomasz Figa wrote: > > Hi Yong, > > > > On Mon, Sep 30, 2019 at 2:42 PM Yong Wu wrote: > >> > >> The commit 4d689b619445 ("iommu/io-pgtable-arm-v7s: Convert to IOMMU API > >> TLB sync") help move the tlb_sync of unmap