[PATCH] drm/amdgpu: enable Vangogh VCN indirect sram mode

James Zhu jamesz at amd.com
Wed Nov 30 00:07:36 UTC 2022


ThispatchisReviewed-by:JamesZhu<James.Zhu at amd.com>

On 2022-11-29 19:02, Leo Liu wrote:
> So that uses PSP to initialize HW.
>
> Fixes: 0c2c02b6 (drm/amdgpu/vcn: add firmware support for dimgrey_cavefish)
>
> Signed-off-by: Leo Liu<leo.liu at amd.com>
> ---
>   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 c448c1bdf84d..72fa14ff862f 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c
> @@ -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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/amd-gfx/attachments/20221129/5654da29/attachment.htm>


More information about the amd-gfx mailing list