Skip to contentSkip to conversation

drm/amdgpu: enable Vangogh VCN indirect sram mode

PATCH In review Leo Liu 2 participants 2 messages Nov 30, 2022

Subsystems (2)
lore
Share & tools
lore

Leo Liu

author
#0 lore raw

PATCH 1/1 drm/amdgpu: enable Vangogh VCN indirect sram mode

So that uses PSP to initialize HW.

Fixes 0c2c02b6 (drm/amdgpu/vcn: add firmware support for dimgrey_cavefish)
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 3 +++
 1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +3 -0
index c448c1bdf84d..72fa14ff862f 100644
@@ -156,6 +156,9 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
 		break;
 	case IP_VERSION(3, 0, 2):
 		fw_name = FIRMWARE_VANGOGH;
+		if ((adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) &&
+		    (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG))
+			adev->vcn.indirect_sram = true;
 		break;
 	case IP_VERSION(3, 0, 16):
 		fw_name = FIRMWARE_DIMGREY_CAVEFISH;
Signature · 1 line
2.25.1
#1 lore raw
ThispatchisReviewed-by JamesZhu<[email protected]>
Quoted 23 lines · Leo Liu

So that uses PSP to initialize HW.

Fixes 0c2c02b6 (drm/amdgpu/vcn: add firmware support for dimgrey_cavefish)
---
  drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 3 +++
  1 file changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +3 -0
index c448c1bdf84d..72fa14ff862f 100644
@@ -156,6 +156,9 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
  		break;
  	case IP_VERSION(3, 0, 2):
  		fw_name = FIRMWARE_VANGOGH;
+		if ((adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) &&
+		    (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG))
+			adev->vcn.indirect_sram = true;
  		break;
  	case IP_VERSION(3, 0, 16):
  		fw_name = FIRMWARE_DIMGREY_CAVEFISH;