Re: [PATCH v1 4/9] iommu/vt-d: Add bounce buffer API for domain map/unmap

2019-03-13 Thread Lu Baolu
Hi, On 3/14/19 12:10 AM, Christoph Hellwig wrote: On Wed, Mar 13, 2019 at 10:31:52AM +0800, Lu Baolu wrote: Hi again, On 3/13/19 10:04 AM, Lu Baolu wrote: Hi, On 3/13/19 12:38 AM, Christoph Hellwig wrote: On Tue, Mar 12, 2019 at 02:00:00PM +0800, Lu Baolu wrote: This adds the APIs for boun

Re: [Xen-devel] [PATCH] Revert "swiotlb: remove SWIOTLB_MAP_ERROR"

2019-03-13 Thread Arnd Bergmann
On Wed, Mar 13, 2019 at 7:33 PM Christoph Hellwig wrote: > On Fri, Mar 08, 2019 at 05:25:57PM +, Julien Grall wrote: > > In the common case, Dom0 also contains the PV backend drivers. Those > > drivers may directly use the guest buffer in the DMA request (so a copy is > > avoided). To avoid us

Re: [Xen-devel] [PATCH] Revert "swiotlb: remove SWIOTLB_MAP_ERROR"

2019-03-13 Thread Christoph Hellwig
On Fri, Mar 08, 2019 at 05:25:57PM +, Julien Grall wrote: > In the common case, Dom0 also contains the PV backend drivers. Those > drivers may directly use the guest buffer in the DMA request (so a copy is > avoided). To avoid using a bounce buffer too much, xen-swiotlb will find > the host

Re: [PATCH v2 1/5] drm/rockchip: fix fb references in async update

2019-03-13 Thread Helen Koike
On 3/13/19 6:58 AM, Michel Dänzer wrote: > On 2019-03-13 4:42 a.m., Tomasz Figa wrote: >> On Wed, Mar 13, 2019 at 12:52 AM Boris Brezillon >> wrote: >>> >>> On Tue, 12 Mar 2019 12:34:45 -0300 >>> Helen Koike wrote: >>> On 3/12/19 3:34 AM, Boris Brezillon wrote: > On Mon, 11 Mar 2019 23

Re: [PATCH v1 4/9] iommu/vt-d: Add bounce buffer API for domain map/unmap

2019-03-13 Thread Christoph Hellwig
On Wed, Mar 13, 2019 at 10:31:52AM +0800, Lu Baolu wrote: > Hi again, > > On 3/13/19 10:04 AM, Lu Baolu wrote: > > Hi, > > > > On 3/13/19 12:38 AM, Christoph Hellwig wrote: > > > On Tue, Mar 12, 2019 at 02:00:00PM +0800, Lu Baolu wrote: > > > > This adds the APIs for bounce buffer specified domai

Re: [PATCH v2 1/5] drm/rockchip: fix fb references in async update

2019-03-13 Thread Michel Dänzer
On 2019-03-13 4:42 a.m., Tomasz Figa wrote: > On Wed, Mar 13, 2019 at 12:52 AM Boris Brezillon > wrote: >> >> On Tue, 12 Mar 2019 12:34:45 -0300 >> Helen Koike wrote: >> >>> On 3/12/19 3:34 AM, Boris Brezillon wrote: On Mon, 11 Mar 2019 23:21:59 -0300 Helen Koike wrote: > In t

Re: [PATCH v6 12/22] memory: mtk-smi: Add gals support

2019-03-13 Thread Yong Wu
Hi Matthias, A gentle ping for all the smi part here. >From Joerg, your review is expected before he apply. Thanks in advance. On Sun, 2019-02-17 at 17:04 +0800, Yong Wu wrote: > In some SoCs like mt8183, SMI add GALS(Global Async Local Sync) module > which can help synchronize for the modules i

Re: [PATCH 04/13] iommu/mediatek: Add device_link between the consumer and the larb devices

2019-03-13 Thread Yong Wu
Hi Robin, sorry for reply so late. On Wed, 2019-02-27 at 19:30 +, Robin Murphy wrote: > On 01/01/2019 04:51, Yong Wu wrote: > > MediaTek IOMMU don't have its power-domain. all the consumer connect > > with smi-larb, then connect with smi-common. > > > > M4U > > | > >

Re: [PATCH 02/13] driver core: Remove the link if there is no driver with AUTO flag

2019-03-13 Thread Yong Wu
On Tue, 2019-03-12 at 16:17 -0700, Evan Green wrote: > On Tue, Mar 12, 2019 at 7:21 AM Matthias Brugger > wrote: > > > > > > > > On 05/03/2019 20:03, Evan Green wrote: > > > On Wed, Feb 27, 2019 at 6:33 AM Yong Wu wrote: > > >> > > >> On Mon, 2019-02-25 at 15:53 -0800, Evan Green wrote: > > >>>

[PATCH v2] iommu/amd: fix sg->dma_address for sg->offset bigger than PAGE_SIZE

2019-03-13 Thread Stanislaw Gruszka
Take into account that sg->offset can be bigger than PAGE_SIZE when setting segment sg->dma_address. Otherwise sg->dma_address will point at diffrent page, what makes DMA not possible with erros like this: xhci_hcd :38:00.3: AMD-Vi: Event logged [IO_PAGE_FAULT domain=0x address=0x00