There's no need to read the register, just use the default
value.

Assisted-by: Claude:claude-opus-4.6
Signed-off-by: Alex Deucher <[email protected]>
---
 drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c 
b/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
index 69cb89298a3e0..b3dbcb39d97dd 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v7_0.c
@@ -878,8 +878,7 @@ static int sdma_v7_0_mqd_init(struct amdgpu_device *adev, 
void *mqd,
        m->sdmax_rlcx_rb_rptr_addr_lo = lower_32_bits(wb_gpu_addr);
        m->sdmax_rlcx_rb_rptr_addr_hi = upper_32_bits(wb_gpu_addr);
 
-       m->sdmax_rlcx_ib_cntl = RREG32_SOC15_IP(GC, 
sdma_v7_0_get_reg_offset(adev, 0,
-                                                       
regSDMA0_QUEUE0_IB_CNTL));
+       m->sdmax_rlcx_ib_cntl = 0x00000100; //regSDMA0_QUEUE0_IB_CNTL_DEFAULT
 
        m->sdmax_rlcx_doorbell_offset =
                prop->doorbell_index << 
SDMA0_QUEUE0_DOORBELL_OFFSET__OFFSET__SHIFT;
-- 
2.54.0

Reply via email to