aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorLikun Gao <Likun.Gao@amd.com>2025-06-05 10:36:07 +0800
committerAlex Deucher <alexander.deucher@amd.com>2025-12-10 17:35:07 -0500
commitd0b6c5f226a0477c047c48d6914bf7dc6096acf7 (patch)
tree4fc4e7119b78c51f2d822546cfe9dfc6c00cffaa /drivers/gpu/drm/amd/amdgpu
parent77385a2dc18a3fb6353df9a9c002755e41ff9b6b (diff)
drm/amdgpu: disable graphics doorbell range for gfx v12_1
Disable doorbell range for graphics engine on gfx v12_1. Signed-off-by: Likun Gao <Likun.Gao@amd.com> Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
index b6932073ff72..876cd9be1914 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v12_1.c
@@ -1998,6 +1998,10 @@ static void gfx_v12_1_xcc_kiq_setting(struct amdgpu_ring *ring,
static void gfx_v12_1_xcc_cp_set_doorbell_range(struct amdgpu_device *adev,
int xcc_id)
{
+ /* disable gfx engine doorbell range */
+ WREG32_SOC15(GC, GET_INST(GC, xcc_id), regCP_RB_DOORBELL_RANGE_LOWER, 0);
+ WREG32_SOC15(GC, GET_INST(GC, xcc_id), regCP_RB_DOORBELL_RANGE_UPPER, 0);
+
/* set compute engine doorbell range */
WREG32_SOC15(GC, GET_INST(GC, xcc_id), regCP_MEC_DOORBELL_RANGE_LOWER,
((adev->doorbell_index.kiq +