drm/amdgpu: Enable software RAS in vcn v4_0_3
Subsystems (2)
PATCH 1/2 drm/amdgpu: Enable software RAS in vcn v4_0_3
Set VCN/JPEG RAS masks to enable software RAS for
VCN and JPEG.
Signed-off-by Hawking Zhang <[email protected]>
Reviewed-by Tao Zhou <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +3 -1
@@ -2606,7 +2606,9 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev)if (amdgpu_ip_version (adev,VCN_HWIP ,0 ) ==IP_VERSION (2 ,6 ,0 ) ||amdgpu_ip_version (adev,VCN_HWIP ,0 ) == -IP_VERSION (4 ,0 ,0 )) +IP_VERSION (4 ,0 ,0 ) || +amdgpu_ip_version (adev,VCN_HWIP ,0 ) == +IP_VERSION (4 ,0 ,3 )) adev->ras_hw_enabled |= (1 <<AMDGPU_RAS_BLOCK__VCN |1 <<AMDGPU_RAS_BLOCK__JPEG );else
Signature · 1 line
2.17.1
PATCH 2/2 drm/amdgpu: Add UVD_VCPU_INT_EN2 to dpg sram
Add RAS sepcifc programming to dpg sram.
Signed-off-by Hawking Zhang <[email protected]>
Reviewed-by Tao Zhou <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c +5 -0
@@ -1760,6 +1760,11 @@ static void vcn_v4_0_3_enable_ras(struct amdgpu_device *adev,SOC15_DPG_MODE_OFFSET (VCN ,0 , regVCN_RAS_CNTL), tmp, 0, indirect); + tmp =UVD_VCPU_INT_EN2__RASCNTL_VCPU_VCODEC_EN_MASK ; +WREG32_SOC15_DPG_MODE (inst_idx, +SOC15_DPG_MODE_OFFSET (VCN ,0 , regUVD_VCPU_INT_EN2), + tmp,0 , indirect); + tmp =UVD_SYS_INT_EN__RASCNTL_VCPU_VCODEC_EN_MASK ; WREG32_SOC15_DPG_MODE(inst_idx, SOC15_DPG_MODE_OFFSET(VCN, 0, regUVD_SYS_INT_EN),
Signature · 1 line
2.17.1