Skip to content

Commit 82132ec

Browse files
zming6666alexdeucher
authored andcommitted
drm/amdgpu: enable Vangogh VCN indirect sram mode
So that uses PSP to initialize HW. Fixes: 0c2c02b ("drm/amdgpu/vcn: add firmware support for dimgrey_cavefish") Signed-off-by: Leo Liu <[email protected]> Reviewed-by: James Zhu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 0422c34 commit 82132ec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
156156
break;
157157
case IP_VERSION(3, 0, 2):
158158
fw_name = FIRMWARE_VANGOGH;
159+
if ((adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) &&
160+
(adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG))
161+
adev->vcn.indirect_sram = true;
159162
break;
160163
case IP_VERSION(3, 0, 16):
161164
fw_name = FIRMWARE_DIMGREY_CAVEFISH;

0 commit comments

Comments
 (0)