drm/amdgpu/gfx10: avoid MMIO access when setting gfx MQD priority
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu/gfx10: avoid MMIO access when setting gfx MQD priority
There's no need to read back the register from MMIO. Just use the default and adjust as needed. This avoids any possible access during gfxoff.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +3 -1
@@ -187,6 +187,8 @@#define mmRLC_SPARE_INT_0_Sienna_Cichlid 0x4ca5#define mmRLC_SPARE_INT_0_Sienna_Cichlid_BASE_IDX 1 +#define mmCP_GFX_HQD_QUEUE_PRIORITY_DEFAULT 0x00000000 +MODULE_FIRMWARE ("amdgpu/navi10_ce.bin" );MODULE_FIRMWARE ("amdgpu/navi10_pfp.bin" );MODULE_FIRMWARE ("amdgpu/navi10_me.bin" );
@@ -6630,7 +6632,7 @@ static void gfx_v10_0_gfx_mqd_set_priority(struct amdgpu_device *adev,if (prop->hqd_queue_priority ==AMDGPU_GFX_QUEUE_PRIORITY_MAXIMUM ) priority =1 ; - tmp =RREG32_SOC15 (GC ,0 , mmCP_GFX_HQD_QUEUE_PRIORITY); + tmp = mmCP_GFX_HQD_QUEUE_PRIORITY_DEFAULT; tmp =REG_SET_FIELD (tmp,CP_GFX_HQD_QUEUE_PRIORITY ,PRIORITY_LEVEL , priority); mqd->cp_gfx_hqd_queue_priority = tmp; }
Signature · 1 line
2.56.0