From c0f136ee8d7e3d85a5ca2184b1c5fe73c0f819bc Mon Sep 17 00:00:00 2001 From: Boyuan Zhang Date: Thu, 26 Mar 2020 19:11:56 -0400 Subject: [PATCH] drm/amdgpu: set indirect sram mode for VCN3.0 Use indirect sram for secure DPG mode V2: update description. Signed-off-by: Boyuan Zhang Reviewed-by: James Zhu Reviewed-by: Alex Deucher Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c index fff77b6..15ff30c 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c @@ -111,6 +111,9 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev) break; case CHIP_SIENNA_CICHLID: fw_name = FIRMWARE_SIENNA_CICHLID; + if ((adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) && + (adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG)) + adev->vcn.indirect_sram = true; break; default: return -EINVAL; -- 2.7.4