public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 0/1] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8
@ 2023-10-05 17:20 Arvind Yadav
  2023-10-05 17:20 ` [PATCH v4 1/1] drm/amdkfd: get doorbell's absolute offset based on the db_size Arvind Yadav
  0 siblings, 1 reply; 3+ messages in thread
From: Arvind Yadav @ 2023-10-05 17:20 UTC (permalink / raw)
  To: Christian.Koenig, alexander.deucher, shashank.sharma,
	Felix.Kuehling, Mukul.Joshi, Xinhui.Pan, airlied, daniel
  Cc: amd-gfx, dri-devel, linux-kernel, Arvind Yadav

On older chips, the absolute doorbell offset within
the doorbell page is based on the queue ID.
KFD is using queue ID and doorbell size to get an
absolute doorbell offset in userspace.

Here, adding db_size in byte to find the doorbell's
absolute offset for both 32-bit and 64-bit doorbell sizes.
So that doorbell offset will be aligned based on the doorbell
size.

v2:
- Addressed the review comment from Felix.

v3:
- Adding doorbell_size as parameter to get db absolute offset.  

v4:
  Squash the two patches into one.

Arvind Yadav (1):
  drm/amdkfd: get doorbell's absolute offset based on the db_size

 drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h        |  5 +++--
 drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell_mgr.c    | 13 +++++++++----
 .../gpu/drm/amd/amdkfd/kfd_device_queue_manager.c   |  3 ++-
 drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c           | 10 ++++++++--
 .../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c  |  3 ++-
 5 files changed, 24 insertions(+), 10 deletions(-)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-05 19:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-05 17:20 [PATCH v4 0/1] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8 Arvind Yadav
2023-10-05 17:20 ` [PATCH v4 1/1] drm/amdkfd: get doorbell's absolute offset based on the db_size Arvind Yadav
2023-10-05 19:48   ` Felix Kuehling

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox