diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 0a6c8fd0d5544..2c6551dbfb565 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c @@ -789,7 +789,8 @@ static u32 gfx_v9_0_rlcg_rw(struct amdgpu_device *adev, u32 offset, u32 v, uint3 for (i = 0; i < retries; i++) { tmp = readl(scratch_reg1); - if (!(tmp & flag)) + //Check the address bits + if (!(tmp & 0xFFFFF)) break; udelay(10);