From: Thomas Hellstrom <thellstrom@vmware.com>
To: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"daniel.vetter@ffwll.ch" <daniel.vetter@ffwll.ch>
Cc: "daniel.vetter@intel.com" <daniel.vetter@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
Linux-graphics-maintainer <Linux-graphics-maintainer@vmware.com>
Subject: Re: [PATCH 10/15] drm/vmwgfx: Delete mmaping functions
Date: Mon, 18 Nov 2019 17:25:12 +0000 [thread overview]
Message-ID: <4949ad6873cf75db0622499f47fb849a5463bb13.camel@vmware.com> (raw)
In-Reply-To: <20191118103536.17675-11-daniel.vetter@ffwll.ch>
On Mon, 2019-11-18 at 11:35 +0100, Daniel Vetter wrote:
> No need for stubs, dma-buf.c takes care of that.
>
> Aside, not having a ->release callback smelled like refcounting leak
> somewhere. It will also score you a WARN_ON backtrace in dma-buf.c on
> every export. But then I found that ttm_device_object_init overwrites
> it. Overwriting const memory is not going to go down well in recent
> kernels.
It's actually taking a non-const copy and updating it. Not that that's
much better, but at least it won't crash due to writing to wp memory.
I'll add a backlog item to revisit this.
>
> One more aside: The (un)map_dma_buf can't ever be called because
> ->attach rejects everything. Might want to drop a BUG_ON(1) in there.
> Same for ->detach.
And this.
>
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
> Cc: Thomas Hellstrom <thellstrom@vmware.com>
> ---
>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Will you be taking this through drm-misc?
Thanks,
Thomas
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
WARNING: multiple messages have this Message-ID (diff)
From: Thomas Hellstrom <thellstrom@vmware.com>
To: "dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"daniel.vetter@ffwll.ch" <daniel.vetter@ffwll.ch>
Cc: "daniel.vetter@intel.com" <daniel.vetter@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>,
Linux-graphics-maintainer <Linux-graphics-maintainer@vmware.com>
Subject: Re: [PATCH 10/15] drm/vmwgfx: Delete mmaping functions
Date: Mon, 18 Nov 2019 17:25:12 +0000 [thread overview]
Message-ID: <4949ad6873cf75db0622499f47fb849a5463bb13.camel@vmware.com> (raw)
Message-ID: <20191118172512.Ro5Y-eM8r8yfIpAAcI_ZyiydRO0bvR_Pb06LBOyTmwA@z> (raw)
In-Reply-To: <20191118103536.17675-11-daniel.vetter@ffwll.ch>
On Mon, 2019-11-18 at 11:35 +0100, Daniel Vetter wrote:
> No need for stubs, dma-buf.c takes care of that.
>
> Aside, not having a ->release callback smelled like refcounting leak
> somewhere. It will also score you a WARN_ON backtrace in dma-buf.c on
> every export. But then I found that ttm_device_object_init overwrites
> it. Overwriting const memory is not going to go down well in recent
> kernels.
It's actually taking a non-const copy and updating it. Not that that's
much better, but at least it won't crash due to writing to wp memory.
I'll add a backlog item to revisit this.
>
> One more aside: The (un)map_dma_buf can't ever be called because
> ->attach rejects everything. Might want to drop a BUG_ON(1) in there.
> Same for ->detach.
And this.
>
> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
> Cc: VMware Graphics <linux-graphics-maintainer@vmware.com>
> Cc: Thomas Hellstrom <thellstrom@vmware.com>
> ---
>
Reviewed-by: Thomas Hellstrom <thellstrom@vmware.com>
Will you be taking this through drm-misc?
Thanks,
Thomas
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2019-11-18 17:25 UTC|newest]
Thread overview: 75+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-18 10:35 [PATCH 00/15] Retire dma_buf_k(un)map Daniel Vetter
2019-11-18 10:35 ` [PATCH 01/15] drm/tegra: Map cmdbuf once for reloc processing Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-25 9:58 ` Daniel Vetter
2019-11-25 9:58 ` Daniel Vetter
2019-11-25 10:47 ` Thierry Reding
2019-11-25 10:47 ` Thierry Reding
2019-11-25 11:02 ` Thierry Reding
2019-11-25 11:02 ` Thierry Reding
2019-11-18 10:35 ` [PATCH 02/15] drm/tegra: Delete host1x_bo_ops->k(un)map Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-25 11:04 ` Thierry Reding
2019-11-25 11:04 ` Thierry Reding
2019-11-18 10:35 ` [PATCH 03/15] drm/i915: Remove dma_buf_kmap selftest Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-18 12:58 ` Chris Wilson
2019-11-18 12:58 ` Chris Wilson
2019-11-18 10:35 ` [PATCH 04/15] staging/android/ion: delete dma_buf->kmap/unmap implemenation Daniel Vetter
2019-11-18 11:26 ` Greg KH
2019-11-18 11:26 ` Greg KH
2019-11-18 14:55 ` Laura Abbott
2019-11-18 10:35 ` [PATCH 05/15] drm/armada: Delete dma_buf->k(un)map implemenation Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-25 21:44 ` Daniel Vetter
2019-11-26 0:35 ` Russell King - ARM Linux admin
2019-11-26 8:33 ` Daniel Vetter
2019-11-26 8:33 ` Daniel Vetter
2019-11-18 10:35 ` [PATCH 06/15] drm/i915: Drop dma_buf->k(un)map Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-18 11:38 ` Christian König
2019-11-18 11:38 ` Christian König
2019-11-18 12:53 ` Chris Wilson
2019-11-18 12:53 ` Chris Wilson
2019-11-18 10:35 ` [PATCH 07/15] drm/omapdrm: " Daniel Vetter
2019-11-18 12:44 ` Tomi Valkeinen
2019-11-18 12:44 ` Tomi Valkeinen
2019-11-18 10:35 ` [PATCH 08/15] drm/tegra: Remove dma_buf->k(un)map Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-25 11:06 ` Thierry Reding
2019-11-18 10:35 ` [PATCH 09/15] dma-buf: Drop dma_buf_k(un)map Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-18 10:35 ` [PATCH 10/15] drm/vmwgfx: Delete mmaping functions Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-18 17:25 ` Thomas Hellstrom [this message]
2019-11-18 17:25 ` Thomas Hellstrom
2019-11-18 17:42 ` Daniel Vetter
2019-11-18 10:35 ` [PATCH 11/15] media/videobuf2: Drop dma_buf->k(un)map support Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-18 10:58 ` Marek Szyprowski
2019-11-18 10:58 ` Marek Szyprowski
2019-11-18 11:02 ` Hans Verkuil
2019-11-18 10:35 ` [PATCH 12/15] drm/tee_shm: Drop dma_buf_k(unmap) support Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-18 11:26 ` Greg Kroah-Hartman
2019-11-18 12:02 ` Jens Wiklander
2019-11-18 12:02 ` Jens Wiklander
2019-11-18 10:35 ` [PATCH 13/15] xen/gntdev-dmabuf: Ditch dummy map functions Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-18 10:50 ` [Xen-devel] " Oleksandr Andrushchenko
2019-11-18 10:50 ` Oleksandr Andrushchenko
2019-11-18 10:53 ` Jürgen Groß
2019-11-18 10:53 ` Jürgen Groß
2019-11-18 10:35 ` [PATCH 14/15] sample/vfio-mdev/mbocs: Remove dma_buf_k(un)map support Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-18 11:41 ` Gerd Hoffmann
2019-11-18 11:41 ` Gerd Hoffmann
2019-11-18 10:35 ` [PATCH 15/15] dma-buf: Remove kernel map/unmap hooks Daniel Vetter
2019-11-18 10:35 ` Daniel Vetter
2019-11-18 15:22 ` kbuild test robot
2019-11-18 15:22 ` kbuild test robot
2019-11-18 16:43 ` Daniel Vetter
2019-11-25 0:46 ` [kbuild-all] " Rong Chen
2019-11-26 10:54 ` Daniel Vetter
2019-11-18 15:58 ` [PATCH 00/15] Retire dma_buf_k(un)map Sumit Semwal
2019-11-18 15:58 ` Sumit Semwal
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=4949ad6873cf75db0622499f47fb849a5463bb13.camel@vmware.com \
--to=thellstrom@vmware.com \
--cc=Linux-graphics-maintainer@vmware.com \
--cc=daniel.vetter@ffwll.ch \
--cc=daniel.vetter@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox