All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel@ucw.cz>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: airlied@linux.ie, gregkh@linuxfoundation.org,
	dri-devel@lists.freedesktop.org, Christoph Hellwig <hch@lst.de>,
	hdegoede@redhat.com, stern@rowland.harvard.edu,
	stable@vger.kernel.org, sean@poorly.run,
	christian.koenig@amd.com
Subject: Re: [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs
Date: Thu, 25 Feb 2021 10:47:04 +0100	[thread overview]
Message-ID: <20210225094704.GA4967@amd> (raw)
In-Reply-To: <20210224092304.29932-1-tzimmermann@suse.de>


[-- Attachment #1.1: Type: text/plain, Size: 892 bytes --]

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 allows the DRM import helpers to perform the DMA setup. If the DMA
> controller does not support DMA transfers, we're out of luck and cannot
> import. Our current USB-based DRM drivers don't use DMA, so the actual
> DMA device is not important.
> 
> Drivers should use DRM_GEM_SHMEM_DROVER_OPS_USB to initialize their
> instance of struct drm_driver.
> 
> Tested by joining/mirroring displays of udl and radeon un der
> Gnome/X11.

Thanks for doing this.

Tested-by: Pavel Machek <pavel@ucw.cz>

Best regards,
								Pavel
-- 
http://www.livejournal.com/~pavelmachek

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

WARNING: multiple messages have this Message-ID (diff)
From: Pavel Machek <pavel@ucw.cz>
To: Thomas Zimmermann <tzimmermann@suse.de>
Cc: daniel@ffwll.ch, airlied@linux.ie,
	maarten.lankhorst@linux.intel.com, mripard@kernel.org,
	sumit.semwal@linaro.org, christian.koenig@amd.com,
	gregkh@linuxfoundation.org, hdegoede@redhat.com, sean@poorly.run,
	noralf@tronnes.org, stern@rowland.harvard.edu,
	stable@vger.kernel.org, dri-devel@lists.freedesktop.org,
	Christoph Hellwig <hch@lst.de>
Subject: Re: [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs
Date: Thu, 25 Feb 2021 10:47:04 +0100	[thread overview]
Message-ID: <20210225094704.GA4967@amd> (raw)
In-Reply-To: <20210224092304.29932-1-tzimmermann@suse.de>

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

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 allows the DRM import helpers to perform the DMA setup. If the DMA
> controller does not support DMA transfers, we're out of luck and cannot
> import. Our current USB-based DRM drivers don't use DMA, so the actual
> DMA device is not important.
> 
> Drivers should use DRM_GEM_SHMEM_DROVER_OPS_USB to initialize their
> instance of struct drm_driver.
> 
> Tested by joining/mirroring displays of udl and radeon un der
> Gnome/X11.

Thanks for doing this.

Tested-by: Pavel Machek <pavel@ucw.cz>

Best regards,
								Pavel
-- 
http://www.livejournal.com/~pavelmachek

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

  parent reply	other threads:[~2021-02-25  9:47 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-24  9:23 [PATCH v4] drm: Use USB controller's DMA mask when importing dmabufs Thomas Zimmermann
2021-02-24  9:23 ` Thomas Zimmermann
2021-02-24 15:21 ` Alan Stern
2021-02-24 15:21   ` Alan Stern
2021-02-25  7:57   ` Thomas Zimmermann
2021-02-25  7:57     ` Thomas Zimmermann
2021-02-25  8:23     ` Takashi Iwai
2021-02-25  8:23       ` Takashi Iwai
2021-02-25 16:18       ` Alan Stern
2021-02-25 16:18         ` Alan Stern
2021-02-25  9:19 ` Christian König
2021-02-25  9:19   ` Christian König
2021-02-25  9:36 ` Daniel Vetter
2021-02-25  9:36   ` Daniel Vetter
2021-02-25  9:47 ` Pavel Machek [this message]
2021-02-25  9:47   ` Pavel Machek
2021-02-26  7:59 ` Thomas Zimmermann
2021-02-26  7:59   ` Thomas Zimmermann
2021-02-26  8:10   ` Greg KH
2021-02-26  8:10     ` Greg KH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210225094704.GA4967@amd \
    --to=pavel@ucw.cz \
    --cc=airlied@linux.ie \
    --cc=christian.koenig@amd.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=hch@lst.de \
    --cc=hdegoede@redhat.com \
    --cc=sean@poorly.run \
    --cc=stable@vger.kernel.org \
    --cc=stern@rowland.harvard.edu \
    --cc=tzimmermann@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.