Skip to content

Commit f2176d7

Browse files
Hawking Zhangalexdeucher
authored andcommitted
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]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 089dbf6 commit f2176d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

drivers/gpu/drm/amd/amdgpu/vcn_v4_0_3.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,6 +1760,11 @@ static void vcn_v4_0_3_enable_ras(struct amdgpu_device *adev,
17601760
SOC15_DPG_MODE_OFFSET(VCN, 0, regVCN_RAS_CNTL),
17611761
tmp, 0, indirect);
17621762

1763+
tmp = UVD_VCPU_INT_EN2__RASCNTL_VCPU_VCODEC_EN_MASK;
1764+
WREG32_SOC15_DPG_MODE(inst_idx,
1765+
SOC15_DPG_MODE_OFFSET(VCN, 0, regUVD_VCPU_INT_EN2),
1766+
tmp, 0, indirect);
1767+
17631768
tmp = UVD_SYS_INT_EN__RASCNTL_VCPU_VCODEC_EN_MASK;
17641769
WREG32_SOC15_DPG_MODE(inst_idx,
17651770
SOC15_DPG_MODE_OFFSET(VCN, 0, regUVD_SYS_INT_EN),

0 commit comments

Comments
 (0)