Re: [PATCH] iommu/mediatek: Fix protect memory setting

2018-03-20 Thread Yong Wu
Hi Joerg, On Tue, 2018-03-20 at 13:57 -0500, Joerg Roedel wrote: > On Sun, Mar 18, 2018 at 09:52:54AM +0800, Yong Wu wrote: > > To avoid adding this complex macro or a new function, I put > > it in the code and backup its value in the suspend registers. > > Missing Signed-off-by. Signed-off-by

RE: [PATCH v5 2/7] vfio/type1: Check reserve region conflict and update iova list

2018-03-20 Thread Tian, Kevin
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Wednesday, March 21, 2018 6:38 AM > > On Mon, 19 Mar 2018 07:51:58 + > "Tian, Kevin" wrote: > > > > From: Shameer Kolothum > > > Sent: Friday, March 16, 2018 12:35 AM > > > > > > This retrieves the

RE: [PATCH v5 0/7] vfio/type1: Add support for valid iova list management

2018-03-20 Thread Tian, Kevin
> From: Alex Williamson [mailto:alex.william...@redhat.com] > Sent: Wednesday, March 21, 2018 6:55 AM > > On Mon, 19 Mar 2018 08:28:32 + > "Tian, Kevin" wrote: > > > > From: Shameer Kolothum > > > Sent: Friday, March 16, 2018 12:35 AM > > > > > > This series introduces

Re: [PATCH v5 2/7] vfio/type1: Check reserve region conflict and update iova list

2018-03-20 Thread Alex Williamson
On Mon, 19 Mar 2018 07:51:58 + "Tian, Kevin" wrote: > > From: Shameer Kolothum > > Sent: Friday, March 16, 2018 12:35 AM > > > > This retrieves the reserved regions associated with dev group and > > checks for conflicts with any existing dma mappings. Also update > >

Re: [PATCHv3] iommu/intel: Ratelimit each dmar fault printing

2018-03-20 Thread Dmitry Safonov via iommu
On Thu, 2018-03-15 at 16:28 +0100, Joerg Roedel wrote: > On Thu, Mar 15, 2018 at 02:42:00PM +, Dmitry Safonov wrote: > > But even with loop-limit we will need ratelimit each printk() > > *also*. > > Otherwise loop-limit will be based on time spent printing, not on > > anything else.. > > The

Re: [PATCH] iommu/mediatek: Fix protect memory setting

2018-03-20 Thread Joerg Roedel
On Sun, Mar 18, 2018 at 09:52:54AM +0800, Yong Wu wrote: > To avoid adding this complex macro or a new function, I put > it in the code and backup its value in the suspend registers. Missing Signed-off-by. > --- > drivers/iommu/mtk_iommu.c | 15 ++- > drivers/iommu/mtk_iommu.h | 1

Re: [PATCH 1/1] iommu/vt-d: Use real PASID for flush in caching mode

2018-03-20 Thread Joerg Roedel
On Fri, Mar 16, 2018 at 12:31:36PM +0800, Lu Baolu wrote: > If caching mode is supported, the hardware will cache > none-present or erroneous translation entries. Hence, > software should explicitly invalidate the PASID cache > after a PASID table entry becomes present. We should > issue such

Re: [PATCH 1/3] dt-bindings: iommu: ipmmu-vmsa: Add device tree support for r8a774[35]

2018-03-20 Thread Joerg Roedel
On Wed, Jan 24, 2018 at 03:42:00PM +, Biju Das wrote: > Document r8a774[35] specific compatible strings. The Renesas RZ/G1[ME] > (r8a774[35]) IPMMU are identical to the R-Car Gen2 family. > > Signed-off-by: Biju Das > Reviewed-by: Chris Paterson

Re: [PATCH v2 06/21] fpga: Remove depends on HAS_DMA in case of platform dependency

2018-03-20 Thread Alan Tull
On Tue, Mar 20, 2018 at 5:04 AM, Geert Uytterhoeven wrote: Hi Geert, > Hi Alan, > > On Mon, Mar 19, 2018 at 5:06 PM, Alan Tull wrote: >> On Fri, Mar 16, 2018 at 8:51 AM, Geert Uytterhoeven >> wrote: >> This essentially removes this

Re: [PATCH 12/14] dma-direct: handle the memory encryption bit in common code

2018-03-20 Thread Catalin Marinas
On Mon, Mar 19, 2018 at 08:49:30PM +0100, Christoph Hellwig wrote: > On Mon, Mar 19, 2018 at 06:01:41PM +, Catalin Marinas wrote: > > I don't particularly like maintaining an arm64-specific dma-direct.h > > either but arm64 seems to be the only architecture that needs to > > potentially force

Re: [PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings

2018-03-20 Thread Geert Uytterhoeven
On Tue, Mar 20, 2018 at 7:48 AM, Magnus Damm wrote: > From: Magnus Damm > > Update the IPMMU DT binding documentation to include the r8a77965 compat > string for the IPMMU devices included in the R-Car M3-N SoC. > > Signed-off-by: Magnus Damm

Re: use generic dma-direct and swiotlb code for x86 V3

2018-03-20 Thread Konrad Rzeszutek Wilk
On Tue, Mar 20, 2018, 5:03 AM Ingo Molnar wrote: > > * Christoph Hellwig wrote: > > > On Tue, Mar 20, 2018 at 09:37:51AM +0100, Ingo Molnar wrote: > > > > git://git.infradead.org/users/hch/misc.git dma-direct-x86 > > > > > > Btw., what's the upstreaming route for

Re: [PATCH v2 10/21] lightnvm: Remove depends on HAS_DMA in case of platform dependency

2018-03-20 Thread Geert Uytterhoeven
Hi Madalin-cristian, On Mon, Mar 19, 2018 at 6:27 AM, Madalin-cristian Bucur wrote: >> -Original Message- >> From: netdev-ow...@vger.kernel.org [mailto:netdev-ow...@vger.kernel.org] >> On Behalf Of Geert Uytterhoeven >> Remove dependencies on HAS_DMA where a

Re: [PATCH v2 00/21] Allow compile-testing NO_DMA (drivers)

2018-03-20 Thread Wolfram Sang
> To play it safe, you want to postpone the subsystem patches until the core > part has landed upstream. I will rebase and resubmit after v4.17-rc1. Thanks for the heads up. I'll wait for the rebased patch then and apply it after rc1 for 4.17. signature.asc Description: PGP signature

Re: [PATCH v2 14/21] mtd: Remove depends on HAS_DMA in case of platform dependency

2018-03-20 Thread Geert Uytterhoeven
Hi Boris, On Sun, Mar 18, 2018 at 11:04 PM, Boris Brezillon wrote: > On Fri, 16 Mar 2018 14:51:47 +0100 > Geert Uytterhoeven wrote: > >> Remove dependencies on HAS_DMA where a Kconfig symbol depends on another >> symbol that implies HAS_DMA,

Re: [PATCH v2 06/21] fpga: Remove depends on HAS_DMA in case of platform dependency

2018-03-20 Thread Geert Uytterhoeven
Hi Alan, On Mon, Mar 19, 2018 at 5:06 PM, Alan Tull wrote: > On Fri, Mar 16, 2018 at 8:51 AM, Geert Uytterhoeven > wrote: > This essentially removes this commit > > commit 1c8cb409491403036919dd1c6b45013dc8835a44 > Author: Sudip Mukherjee

Re: [PATCH v2 00/21] Allow compile-testing NO_DMA (drivers)

2018-03-20 Thread Geert Uytterhoeven
Hi Wolfram, On Fri, Mar 16, 2018 at 10:23 PM, Wolfram Sang wrote: >> To avoid allmodconfig/allyesconfig regressions on NO_DMA=y platforms, >> this (drivers) series should be applied after the previous (core) >> series (but not many people may notice/care ;-) > > I still don't

Re: [PATCH v9 3/5] iommu/arm-smmu: Invoke pm_runtime during probe, add/remove device

2018-03-20 Thread Vivek Gautam
Hi Robin, On 3/14/2018 11:16 PM, Robin Murphy wrote: On 13/03/18 08:55, Vivek Gautam wrote: From: Sricharan R The smmu device probe/remove and add/remove master device callbacks gets called when the smmu is not linked to its master, that is without the context of

Re: use generic dma-direct and swiotlb code for x86 V3

2018-03-20 Thread Ingo Molnar
* Christoph Hellwig wrote: > On Tue, Mar 20, 2018 at 09:37:51AM +0100, Ingo Molnar wrote: > > > git://git.infradead.org/users/hch/misc.git dma-direct-x86 > > > > Btw., what's the upstreaming route for these patches? > > > > While it's a multi-arch series it's all pretty x86-heavy

Re: use generic dma-direct and swiotlb code for x86 V3

2018-03-20 Thread Christoph Hellwig
On Tue, Mar 20, 2018 at 09:37:51AM +0100, Ingo Molnar wrote: > > git://git.infradead.org/users/hch/misc.git dma-direct-x86 > > Btw., what's the upstreaming route for these patches? > > While it's a multi-arch series it's all pretty x86-heavy as well so we can > host it > in -tip (in

Re: use generic dma-direct and swiotlb code for x86 V3

2018-03-20 Thread Ingo Molnar
* Christoph Hellwig wrote: > On Mon, Mar 19, 2018 at 11:27:37AM -0400, Konrad Rzeszutek Wilk wrote: > > On Mon, Mar 19, 2018 at 11:38:12AM +0100, Christoph Hellwig wrote: > > > Hi all, > > > > > > this series switches the x86 code the the dma-direct implementation > > > for direct

Re: [PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings

2018-03-20 Thread Laurent Pinchart
Hi Magnus, Thank you for the patch. On Tuesday, 20 March 2018 08:48:11 EET Magnus Damm wrote: > From: Magnus Damm > > Update the IPMMU DT binding documentation to include the r8a77965 compat > string for the IPMMU devices included in the R-Car M3-N SoC. > >

Re: [PATCH v9 1/5] driver core: Find an existing link between two devices

2018-03-20 Thread Vivek Gautam
Hi Lukasz, On 3/14/2018 5:57 PM, Lukas Wunner wrote: On Wed, Mar 14, 2018 at 12:14:15PM +, Robin Murphy wrote: On Wed, Mar 14, 2018 at 8:12 PM, Rafael J. Wysocki wrote: On Tuesday, March 13, 2018 12:23:34 PM CET Tomasz Figa wrote: On Tue, Mar 13, 2018 at 7:34 PM,

[PATCH] iommu/ipmmu-vmsa: Document R-Car M3-N IPMMU DT bindings

2018-03-20 Thread Magnus Damm
From: Magnus Damm Update the IPMMU DT binding documentation to include the r8a77965 compat string for the IPMMU devices included in the R-Car M3-N SoC. Signed-off-by: Magnus Damm ---