* [PATCH] drm/amdgpu: enable Vangogh VCN indirect sram mode
@ 2022-11-30 0:02 Leo Liu
2022-11-30 0:07 ` James Zhu
0 siblings, 1 reply; 2+ messages in thread
From: Leo Liu @ 2022-11-30 0:02 UTC (permalink / raw)
To: amd-gfx; +Cc: James.Zhu, Leo Liu, richardqi.liang
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@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;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/amdgpu: enable Vangogh VCN indirect sram mode
2022-11-30 0:02 [PATCH] drm/amdgpu: enable Vangogh VCN indirect sram mode Leo Liu
@ 2022-11-30 0:07 ` James Zhu
0 siblings, 0 replies; 2+ messages in thread
From: James Zhu @ 2022-11-30 0:07 UTC (permalink / raw)
To: Leo Liu, amd-gfx; +Cc: James.Zhu, richardqi.liang
[-- Attachment #1: Type: text/plain, Size: 969 bytes --]
ThispatchisReviewed-by:JamesZhu<James.Zhu@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@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;
[-- Attachment #2: Type: text/html, Size: 1845 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-11-30 0:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-30 0:02 [PATCH] drm/amdgpu: enable Vangogh VCN indirect sram mode Leo Liu
2022-11-30 0:07 ` James Zhu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox