Commit 0377b088 authored by Xiaojie Yuan's avatar Xiaojie Yuan Committed by Alex Deucher

drm/amdgpu/vcn: enable indirect DPG SRAM mode for navi14

Enable VCN dynamic powergating for navi14.
Signed-off-by: default avatarXiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: default avatarLeo Liu <leo.liu@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e017bb80
...@@ -84,6 +84,9 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev) ...@@ -84,6 +84,9 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
break; break;
case CHIP_NAVI14: case CHIP_NAVI14:
fw_name = FIRMWARE_NAVI14; fw_name = FIRMWARE_NAVI14;
if ((adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) &&
(adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG))
adev->vcn.indirect_sram = true;
break; break;
default: default:
return -EINVAL; return -EINVAL;
......
...@@ -589,7 +589,8 @@ static int nv_common_early_init(void *handle) ...@@ -589,7 +589,8 @@ static int nv_common_early_init(void *handle)
AMD_CG_SUPPORT_VCN_MGCG | AMD_CG_SUPPORT_VCN_MGCG |
AMD_CG_SUPPORT_BIF_MGCG | AMD_CG_SUPPORT_BIF_MGCG |
AMD_CG_SUPPORT_BIF_LS; AMD_CG_SUPPORT_BIF_LS;
adev->pg_flags = AMD_PG_SUPPORT_VCN; adev->pg_flags = AMD_PG_SUPPORT_VCN |
AMD_PG_SUPPORT_VCN_DPG;
adev->external_rev_id = adev->rev_id + 0x1; /* ??? */ adev->external_rev_id = adev->rev_id + 0x1; /* ??? */
break; break;
default: default:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment