Skip to content

drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8

Arvind Yadav amd-gfx dri-devel lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 1 replyIn review
  2. v32 patches 2 repliesSuperseded
  3. v21 patch 5 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch4 repliesSuperseded

Changes in v4 from the cover letter

Squash the two patches into one.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1drm/amdkfd: get doorbell's absolute offset based on the db_sizedrivers/gpu/drm/amd/amdgpu/amdgpu_doorbell.h drivers/gpu/drm/amd/amdgpu/amdgpu_doorbell_mgr.c drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c +2 more+24 -101 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchFelix Kuehling
1/1R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/1] drm/amdkfd: Fix unaligned doorbell absolute offset for gfx8

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(-)
Signature · 1 line
2.34.1