From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: dri-devel@lists.freedesktop.org
Cc: "Alex Deucher" <alexander.deucher@amd.com>,
intel-gfx@lists.freedesktop.org, "Pan,
Xinhui" <Xinhui.Pan@amd.com>,
"Christian König" <christian.koenig@amd.com>
Subject: [Intel-gfx] [RFC PATCH 0/3] drm/helpers: Make the suballocation manager drm generic.
Date: Fri, 4 Feb 2022 18:48:06 +0100 [thread overview]
Message-ID: <20220204174809.3366967-1-maarten.lankhorst@linux.intel.com> (raw)
The suballocation manager itself is not dependent on any implementation detail,
and can be made generic. I want to potentially use it inside i915, as it looks
like a clean implementation to do so. :)
Looking for feedback and some testing, as I don't have a amdgpu/radeon myself.
Only compile tested so far, so some stupid bugs may remain.
Maarten Lankhorst (3):
drm: Extract amdgpu_sa.c as a generic suballocation helper
drm/amd: Convert amdgpu to use suballocation helper.
drm/radeon: Use the drm suballocation manager implementation.
drivers/gpu/drm/Makefile | 4 +-
drivers/gpu/drm/amd/amdgpu/amdgpu.h | 29 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c | 5 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_object.h | 21 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c | 320 +---------------
drivers/gpu/drm/drm_suballoc.c | 424 +++++++++++++++++++++
drivers/gpu/drm/radeon/radeon.h | 55 +--
drivers/gpu/drm/radeon/radeon_ib.c | 10 +-
drivers/gpu/drm/radeon/radeon_object.h | 23 +-
drivers/gpu/drm/radeon/radeon_sa.c | 314 ++-------------
drivers/gpu/drm/radeon/radeon_semaphore.c | 6 +-
include/drm/drm_suballoc.h | 78 ++++
12 files changed, 595 insertions(+), 694 deletions(-)
create mode 100644 drivers/gpu/drm/drm_suballoc.c
create mode 100644 include/drm/drm_suballoc.h
--
2.34.1
next reply other threads:[~2022-02-04 17:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-04 17:48 Maarten Lankhorst [this message]
2022-02-04 17:48 ` [Intel-gfx] [RFC PATCH 1/3] drm: Extract amdgpu_sa.c as a generic suballocation helper Maarten Lankhorst
2022-02-04 18:29 ` Christian König
2022-02-04 19:38 ` Thomas Zimmermann
2022-02-07 11:18 ` Maarten Lankhorst
2022-02-08 7:21 ` Christian König
2022-02-04 17:48 ` [Intel-gfx] [RFC PATCH 2/3] drm/amd: Convert amdgpu to use " Maarten Lankhorst
2022-02-04 17:48 ` [Intel-gfx] [RFC PATCH 3/3] drm/radeon: Use the drm suballocation manager implementation Maarten Lankhorst
2022-02-04 19:13 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/helpers: Make the suballocation manager drm generic Patchwork
2022-02-04 19:14 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2022-02-04 19:47 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2022-02-04 21:04 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
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=20220204174809.3366967-1-maarten.lankhorst@linux.intel.com \
--to=maarten.lankhorst@linux.intel.com \
--cc=Xinhui.Pan@amd.com \
--cc=alexander.deucher@amd.com \
--cc=christian.koenig@amd.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