Skip to content

Commit 5cc0753

Browse files
Boyz-Radeonalexdeucher
authored andcommitted
drm/amdgpu: add navy_flounder vcn firmware support
Add navy_flounder to vcn family Signed-off-by: Boyuan Zhang <[email protected]> Reviewed-by: Leo Liu <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 41e3b1c commit 5cc0753

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/gpu/drm/amd/amdgpu/amdgpu_vcn.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
#define FIRMWARE_NAVI14 "amdgpu/navi14_vcn.bin"
4444
#define FIRMWARE_NAVI12 "amdgpu/navi12_vcn.bin"
4545
#define FIRMWARE_SIENNA_CICHLID "amdgpu/sienna_cichlid_vcn.bin"
46+
#define FIRMWARE_NAVY_FLOUNDER "amdgpu/navy_flounder_vcn.bin"
4647

4748
MODULE_FIRMWARE(FIRMWARE_RAVEN);
4849
MODULE_FIRMWARE(FIRMWARE_PICASSO);
@@ -53,6 +54,7 @@ MODULE_FIRMWARE(FIRMWARE_NAVI10);
5354
MODULE_FIRMWARE(FIRMWARE_NAVI14);
5455
MODULE_FIRMWARE(FIRMWARE_NAVI12);
5556
MODULE_FIRMWARE(FIRMWARE_SIENNA_CICHLID);
57+
MODULE_FIRMWARE(FIRMWARE_NAVY_FLOUNDER);
5658

5759
static void amdgpu_vcn_idle_work_handler(struct work_struct *work);
5860

@@ -115,6 +117,12 @@ int amdgpu_vcn_sw_init(struct amdgpu_device *adev)
115117
(adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG))
116118
adev->vcn.indirect_sram = true;
117119
break;
120+
case CHIP_NAVY_FLOUNDER:
121+
fw_name = FIRMWARE_NAVY_FLOUNDER;
122+
if ((adev->firmware.load_type == AMDGPU_FW_LOAD_PSP) &&
123+
(adev->pg_flags & AMD_PG_SUPPORT_VCN_DPG))
124+
adev->vcn.indirect_sram = true;
125+
break;
118126
default:
119127
return -EINVAL;
120128
}

0 commit comments

Comments
 (0)