From: Thomas Zimmermann <tzimmermann@suse.de>
To: alexander.deucher@amd.com, christian.koenig@amd.com,
Xinhui.Pan@amd.com, airlied@gmail.com, daniel@ffwll.ch,
felix.kuehling@amd.com
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
Thomas Zimmermann <tzimmermann@suse.de>
Subject: [RFC PATCH 0/2] drm/amdgpu: Convert to ttm_bo_vmap()
Date: Thu, 20 Jun 2024 16:44:39 +0200 [thread overview]
Message-ID: <20240620145238.25295-1-tzimmermann@suse.de> (raw)
Convert amdgpu to use ttm_bo_vmap() instead of ttm_bo_kmap(). The
latter is deprecated. Passing ttm_bo_vmap()'s locking validation
requires to remove the implicit unmap from the BO release path.
Smoke-tested with an Radeon RX 460.
There's similar patchset for xe at [1], which requires additional
changes.
[1] https://lore.kernel.org/dri-devel/20240614133556.11378-1-tzimmermann@suse.de/
Thomas Zimmermann (2):
drm/amdgpu: Unmap BO memory before calling amdgpu_bo_unref()
drm/amdgpu: Convert to ttm_bo_vmap() et al
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 25 ++++++++++++++--------
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 4 +++-
2 files changed, 19 insertions(+), 10 deletions(-)
--
2.45.2
next reply other threads:[~2024-06-20 14:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-20 14:44 Thomas Zimmermann [this message]
2024-06-20 14:44 ` [PATCH 1/2] drm/amdgpu: Unmap BO memory before calling amdgpu_bo_unref() Thomas Zimmermann
2024-06-20 15:50 ` Christian König
2024-06-21 7:32 ` Thomas Zimmermann
2024-06-21 8:21 ` Christian König
2024-06-20 14:44 ` [PATCH 2/2] drm/amdgpu: Convert to ttm_bo_vmap() et al Thomas Zimmermann
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=20240620145238.25295-1-tzimmermann@suse.de \
--to=tzimmermann@suse.de \
--cc=Xinhui.Pan@amd.com \
--cc=airlied@gmail.com \
--cc=alexander.deucher@amd.com \
--cc=amd-gfx@lists.freedesktop.org \
--cc=christian.koenig@amd.com \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=felix.kuehling@amd.com \
/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