[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231004161652.3082-1-Arvind.Yadav@amd.com>
Date: Wed, 4 Oct 2023 21:46:50 +0530
From: Arvind Yadav <Arvind.Yadav@....com>
To: <Christian.Koenig@....com>, <alexander.deucher@....com>,
<shashank.sharma@....com>, <Felix.Kuehling@....com>,
<Mukul.Joshi@....com>, <Xinhui.Pan@....com>, <airlied@...il.com>,
<daniel@...ll.ch>
CC: <amd-gfx@...ts.freedesktop.org>, <dri-devel@...ts.freedesktop.org>,
<linux-kernel@...r.kernel.org>, Arvind Yadav <Arvind.Yadav@....com>
Subject: [PATCH v3 0/2] 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.
Arvind Yadav (2):
drm/amdgpu: Adding db_size to get doorbell absolute offset
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 | 6 +++++-
drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c | 13 +++++++++++--
.../gpu/drm/amd/amdkfd/kfd_process_queue_manager.c | 4 +++-
5 files changed, 31 insertions(+), 10 deletions(-)
--
2.34.1
Powered by blists - more mailing lists