Re: [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs

2021-02-26 Thread Greg KH
On Fri, Feb 26, 2021 at 08:59:50AM +0100, Thomas Zimmermann wrote: > Greg, do you have comments on this patch? I'll defer to Alan's comments so far, I would like to see that addressed. thanks, greg k-h ___ dri-devel mailing list

Re: [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs

2021-02-25 Thread Thomas Zimmermann
Greg, do you have comments on this patch? Am 24.02.21 um 10:23 schrieb Thomas Zimmermann: USB devices cannot perform DMA and hence have no dma_mask set in their device structure. Therefore importing dmabuf into a USB-based driver fails, which breaks joining and mirroring of display in X11. For

Re: [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs

2021-02-25 Thread Alan Stern
On Thu, Feb 25, 2021 at 09:23:05AM +0100, Takashi Iwai wrote: > On Thu, 25 Feb 2021 08:57:14 +0100, > Thomas Zimmermann wrote: > > > > Hi > > > > Am 24.02.21 um 16:21 schrieb Alan Stern: > > > On Wed, Feb 24, 2021 at 10:23:04AM +0100, Thomas Zimmermann wrote: > > >> USB devices cannot perform

Re: [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs

2021-02-25 Thread Pavel Machek
Hi! > USB devices cannot perform DMA and hence have no dma_mask set in their > device structure. Therefore importing dmabuf into a USB-based driver > fails, which breaks joining and mirroring of display in X11. > > For USB devices, pick the associated USB controller as attachment device. > This

Re: [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs

2021-02-25 Thread Daniel Vetter
On Wed, Feb 24, 2021 at 10:23 AM Thomas Zimmermann wrote: > > USB devices cannot perform DMA and hence have no dma_mask set in their > device structure. Therefore importing dmabuf into a USB-based driver > fails, which breaks joining and mirroring of display in X11. > > For USB devices, pick the

Re: [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs

2021-02-25 Thread Christian König
Am 24.02.21 um 10:23 schrieb Thomas Zimmermann: USB devices cannot perform DMA and hence have no dma_mask set in their device structure. Therefore importing dmabuf into a USB-based driver fails, which breaks joining and mirroring of display in X11. For USB devices, pick the associated USB

Re: [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs

2021-02-25 Thread Takashi Iwai
On Thu, 25 Feb 2021 08:57:14 +0100, Thomas Zimmermann wrote: > > Hi > > Am 24.02.21 um 16:21 schrieb Alan Stern: > > On Wed, Feb 24, 2021 at 10:23:04AM +0100, Thomas Zimmermann wrote: > >> USB devices cannot perform DMA and hence have no dma_mask set in their > >> device structure. Therefore

Re: [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs

2021-02-24 Thread Thomas Zimmermann
Hi Am 24.02.21 um 16:21 schrieb Alan Stern: On Wed, Feb 24, 2021 at 10:23:04AM +0100, Thomas Zimmermann wrote: USB devices cannot perform DMA and hence have no dma_mask set in their device structure. Therefore importing dmabuf into a USB-based driver fails, which breaks joining and mirroring

Re: [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs

2021-02-24 Thread Alan Stern
On Wed, Feb 24, 2021 at 10:23:04AM +0100, Thomas Zimmermann wrote: > USB devices cannot perform DMA and hence have no dma_mask set in their > device structure. Therefore importing dmabuf into a USB-based driver > fails, which breaks joining and mirroring of display in X11. > > For USB devices,

[PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs

2021-02-24 Thread Thomas Zimmermann
USB devices cannot perform DMA and hence have no dma_mask set in their device structure. Therefore importing dmabuf into a USB-based driver fails, which breaks joining and mirroring of display in X11. For USB devices, pick the associated USB controller as attachment device. This allows the DRM