drm/amdgpu: use cpu to query utcl2 poison status
Subsystems (2)
PATCH 1/1 drm/amdgpu: use cpu to query utcl2 poison status
Use CPU to read registers in interrupt situation.
Signed-off-by Shikang Fan <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c | 2 +- drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c | 2 +- drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_0.c +1 -1
@@ -453,7 +453,7 @@ static bool gfxhub_v1_0_query_utcl2_poison_status(struct amdgpu_device *adev,return false; hub = &adev->vmhub[AMDGPU_GFXHUB (0 )]; - status =RREG32 (hub->vm_l2_pro_fault_status); + status =RREG32_NO_KIQ (hub->vm_l2_pro_fault_status);/* reset page fault status */ WREG32_P (hub->vm_l2_pro_fault_cntl,1 , ~1 );
drivers/gpu/drm/amd/amdgpu/gfxhub_v1_2.c +1 -1
@@ -627,7 +627,7 @@ static bool gfxhub_v1_2_query_utcl2_poison_status(struct amdgpu_device *adev, {u32 fed, status; - status =RREG32_SOC15 (GC ,GET_INST (GC , xcc_id), regVM_L2_PROTECTION_FAULT_STATUS); + status =RREG32_SOC15_NO_KIQ (GC ,GET_INST (GC , xcc_id), regVM_L2_PROTECTION_FAULT_STATUS); fed =REG_GET_FIELD (status,VM_L2_PROTECTION_FAULT_STATUS ,FED );if (!amdgpu_sriov_vf (adev)) {/* clear page fault status and address */
drivers/gpu/drm/amd/amdgpu/mmhub_v1_8.c +1 -1
@@ -564,7 +564,7 @@ static bool mmhub_v1_8_query_utcl2_poison_status(struct amdgpu_device *adev, {u32 fed, status; - status =RREG32_SOC15 (MMHUB , hub_inst, regVM_L2_PROTECTION_FAULT_STATUS); + status =RREG32_SOC15_NO_KIQ (MMHUB , hub_inst, regVM_L2_PROTECTION_FAULT_STATUS); fed =REG_GET_FIELD (status,VM_L2_PROTECTION_FAULT_STATUS ,FED );if (!amdgpu_sriov_vf (adev)) {/* clear page fault status and address */
Signature · 1 line
2.34.1