drm/amdgpu/discovery: enable soc21 common for GC 11.0.4
PATCH 1/19 drm/amdgpu/discovery: enable soc21 common for GC 11.0.4
Enable soc21 common for GC 11.0.4.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -1512,6 +1512,7 @@ static int amdgpu_discovery_set_common_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,2 ):case IP_VERSION (11 ,0 ,3 ): +case IP_VERSION (11 ,0 ,4 ):amdgpu_device_ip_block_add (adev, &soc21_common_ip_block);break ;default :
Signature · 1 line
2.37.3
PATCH 2/19 drm/amdgpu/discovery: enable gmc v11 for GC 11.0.4
Enable gmc (graphic memory controller) v11 for GC 11.0.4.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -1557,6 +1557,7 @@ static int amdgpu_discovery_set_gmc_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,2 ):case IP_VERSION (11 ,0 ,3 ): +case IP_VERSION (11 ,0 ,4 ):amdgpu_device_ip_block_add (adev, &gmc_v11_0_ip_block);break ;default :
Signature · 1 line
2.37.3
PATCH 3/19 drm/amdgpu/discovery: enable gfx v11 for GC 11.0.4
In reply to Yifan ZhangEnable gfx v11 for GC 11.0.4.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -1806,6 +1806,7 @@ static int amdgpu_discovery_set_gc_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,2 ):case IP_VERSION (11 ,0 ,3 ): +case IP_VERSION (11 ,0 ,4 ):amdgpu_device_ip_block_add (adev, &gfx_v11_0_ip_block);break ;default :
Signature · 1 line
2.37.3
PATCH 4/19 drm/amdgpu/discovery: enable mes support for GC v11.0.4
In reply to Yifan Zhangthis patch is to enable mes for GC 11.0.4.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -1970,6 +1970,7 @@ static int amdgpu_discovery_set_mes_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,2 ):case IP_VERSION (11 ,0 ,3 ): +case IP_VERSION (11 ,0 ,4 ):amdgpu_device_ip_block_add (adev, &mes_v11_0_ip_block); adev->enable_mes = true; adev->enable_mes_kiq = true;
Signature · 1 line
2.37.3
PATCH 5/19 drm/amdgpu/discovery: add PSP IP v13.0.11 support
In reply to Yifan ZhangFrom: Tim Huang <[email protected]>
Add PSP IP v13.0.11 ip discovery support.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -1643,6 +1643,7 @@ static int amdgpu_discovery_set_psp_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (13 ,0 ,7 ):case IP_VERSION (13 ,0 ,8 ):case IP_VERSION (13 ,0 ,10 ): +case IP_VERSION (13 ,0 ,11 ):amdgpu_device_ip_block_add (adev, &psp_v13_0_ip_block);break ;case IP_VERSION (13 ,0 ,4 ):
Signature · 1 line
2.37.3
PATCH 6/19 drm/amdgpu: set GC 11.0.4 family
In reply to Yifan Zhangthis patch is to set GC 11.0.4 family.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -2202,6 +2202,7 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev) adev->family =AMDGPU_FAMILY_GC_11_0_0 ;break ;case IP_VERSION (11 ,0 ,1 ): +case IP_VERSION (11 ,0 ,4 ): adev->family =AMDGPU_FAMILY_GC_11_0_1 ;break ;default :
Signature · 1 line
2.37.3
PATCH 7/19 drm/amdgpu/discovery: set the APU flag for GC 11.0.4
In reply to Yifan ZhangSet the APU flag appropriately for GC 11.0.4.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -2220,6 +2220,7 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (10 ,3 ,6 ):case IP_VERSION (10 ,3 ,7 ):case IP_VERSION (11 ,0 ,1 ): +case IP_VERSION (11 ,0 ,4 ): adev->flags |=AMD_IS_APU ;break ;default :
Signature · 1 line
2.37.3
PATCH 8/19 drm/amdgpu: add gfx support for GC 11.0.4
In reply to Yifan Zhangthis patch to add GC 11.0.4 gfx support to gfx11 implementation.
--- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +9 -1
@@ -77,6 +77,10 @@ MODULE_FIRMWARE("amdgpu/gc_11_0_3_pfp.bin");MODULE_FIRMWARE ("amdgpu/gc_11_0_3_me.bin" );MODULE_FIRMWARE ("amdgpu/gc_11_0_3_mec.bin" );MODULE_FIRMWARE ("amdgpu/gc_11_0_3_rlc.bin" ); +MODULE_FIRMWARE ("amdgpu/gc_11_0_4_pfp.bin" ); +MODULE_FIRMWARE ("amdgpu/gc_11_0_4_me.bin" ); +MODULE_FIRMWARE ("amdgpu/gc_11_0_4_mec.bin" ); +MODULE_FIRMWARE ("amdgpu/gc_11_0_4_rlc.bin" );static const struct soc15_reg_golden golden_settings_gc_11_0_1[] = {
@@ -262,6 +266,7 @@ static void gfx_v11_0_init_golden_registers(struct amdgpu_device *adev) {switch (adev->ip_versions[GC_HWIP ][0 ]) {case IP_VERSION (11 ,0 ,1 ): +case IP_VERSION (11 ,0 ,4 ):soc15_program_register_sequence (adev, golden_settings_gc_11_0_1, (const u32 )ARRAY_SIZE (golden_settings_gc_11_0_1));
@@ -855,6 +860,7 @@ static int gfx_v11_0_gpu_early_init(struct amdgpu_device *adev) adev->gfx.config.sc_earlyz_tile_fifo_size =0x4C0 ;break ;case IP_VERSION (11 ,0 ,1 ): +case IP_VERSION (11 ,0 ,4 ): adev->gfx.config.max_hw_contexts =8 ; adev->gfx.config.sc_prim_fifo_size_frontend =0x20 ; adev->gfx.config.sc_prim_fifo_size_backend =0x100 ;
@@ -1284,6 +1290,7 @@ static int gfx_v11_0_sw_init(void *handle)case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,2 ):case IP_VERSION (11 ,0 ,3 ): +case IP_VERSION (11 ,0 ,4 ): adev->gfx.me.num_me =1 ; adev->gfx.me.num_pipe_per_me =1 ; adev->gfx.me.num_queue_per_pipe =1 ;
@@ -2486,7 +2493,8 @@ static int gfx_v11_0_wait_for_rlc_autoload_complete(struct amdgpu_device *adev)for (i =0 ; i < adev->usec_timeout; i++) { cp_status =RREG32_SOC15 (GC ,0 , regCP_STAT); -if (adev->ip_versions[GC_HWIP ][0 ] ==IP_VERSION (11 ,0 ,1 )) +if (adev->ip_versions[GC_HWIP ][0 ] ==IP_VERSION (11 ,0 ,1 ) || + adev->ip_versions[GC_HWIP ][0 ] ==IP_VERSION (11 ,0 ,4 )) bootload_status =RREG32_SOC15 (GC ,0 , regRLC_RLCS_BOOTLOAD_STATUS_gc_11_0_1);else
Signature · 1 line
2.37.3
PATCH 9/19 drm/amdgpu: add soc21 common ip block support for GC 11.0.4
In reply to Yifan ZhangAdd common soc21 ip block support for GC 11.0.4.
--- drivers/gpu/drm/amd/amdgpu/soc21.c | 6 ++++++ 1 file changed, 6 insertions(+)
drivers/gpu/drm/amd/amdgpu/soc21.c +6 -0
@@ -644,6 +644,12 @@ static int soc21_common_early_init(void *handle)AMD_PG_SUPPORT_JPEG ; adev->external_rev_id = adev->rev_id +0x20 ;break ; +case IP_VERSION (11 ,0 ,4 ): + adev->cg_flags =0 ; + adev->pg_flags =0 ; + adev->external_rev_id = adev->rev_id +0x1 ; +break ; +default :/* FIXME: not supported yet */ return -EINVAL ;
Signature · 1 line
2.37.3
PATCH 10/19 drm/amdgpu: add gmc v11 support for GC 11.0.4
In reply to Yifan ZhangAdd gmc v11 support for GC 11.0.4.
--- drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/gmc_v11_0.c +1 -0
@@ -759,6 +759,7 @@ static int gmc_v11_0_sw_init(void *handle)case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,2 ):case IP_VERSION (11 ,0 ,3 ): +case IP_VERSION (11 ,0 ,4 ): adev->num_vmhubs =2 ;/* * To fulfill 4-level page support,
Signature · 1 line
2.37.3
PATCH 11/19 drm/amdkfd: add GC 11.0.4 KFD support
In reply to Yifan ZhangAdd initial support for GC 11.0.4 in KFD compute driver.
--- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 1 + drivers/gpu/drm/amd/amdkfd/kfd_device.c | 2 ++ 2 files changed, 3 insertions(+)
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +1 -0
@@ -1521,6 +1521,7 @@ int kfd_get_gpu_cache_info(struct kfd_dev *kdev, struct kfd_gpu_cache_info **pcacase IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,2 ):case IP_VERSION (11 ,0 ,3 ): +case IP_VERSION (11 ,0 ,4 ): num_of_cache_types =kfd_fill_gpu_cache_info_from_gfx_config (kdev, *pcache_info);break ;
drivers/gpu/drm/amd/amdkfd/kfd_device.c +2 -0
@@ -154,6 +154,7 @@ static void kfd_device_info_set_event_interrupt_class(struct kfd_dev *kfd)case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,2 ):case IP_VERSION (11 ,0 ,3 ): +case IP_VERSION (11 ,0 ,4 ): kfd->device_info.event_interrupt_class = &event_interrupt_class_v11;break ;default :
@@ -395,6 +396,7 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf) f2g = &gfx_v11_kfd2kgd;break ;case IP_VERSION (11 ,0 ,1 ): +case IP_VERSION (11 ,0 ,4 ): gfx_target_version =110003 ; f2g = &gfx_v11_kfd2kgd;break ;
Signature · 1 line
2.37.3
PATCH 12/19 drm/amdgpu/pm: enable swsmu for SMU IP v13.0.11
In reply to Yifan ZhangAdd the entry to set the ppt functions for SMU IP v13.0.11.
--- drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c +1 -0
@@ -585,6 +585,7 @@ static int smu_set_funcs(struct amdgpu_device *adev)yellow_carp_set_ppt_funcs (smu);break ;case IP_VERSION (13 ,0 ,4 ): +case IP_VERSION (13 ,0 ,11 ):smu_v13_0_4_set_ppt_funcs (smu);break ;case IP_VERSION (13 ,0 ,5 ):
Signature · 1 line
2.37.3
PATCH 13/19 drm/amdgpu: add smu 13 support for smu 13.0.11
In reply to Yifan Zhangthis patch to add smu 13 support for smu 13.0.11.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 2 ++ 2 files changed, 3 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -1694,6 +1694,7 @@ static int amdgpu_discovery_set_smu_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (13 ,0 ,7 ):case IP_VERSION (13 ,0 ,8 ):case IP_VERSION (13 ,0 ,10 ): +case IP_VERSION (13 ,0 ,11 ):amdgpu_device_ip_block_add (adev, &smu_v13_0_ip_block);break ;default :
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +2 -0
@@ -250,6 +250,7 @@ int smu_v13_0_check_fw_status(struct smu_context *smu)switch (adev->ip_versions[MP1_HWIP ][0 ]) {case IP_VERSION (13 ,0 ,4 ): +case IP_VERSION (13 ,0 ,11 ): mp1_fw_flags =RREG32_PCIE (MP1_Public | (smnMP1_V13_0_4_FIRMWARE_FLAGS &0xffffffff ));break ;
@@ -301,6 +302,7 @@ int smu_v13_0_check_fw_version(struct smu_context *smu) smu->smc_driver_if_version =SMU13_DRIVER_IF_VERSION_YELLOW_CARP ;break ;case IP_VERSION (13 ,0 ,4 ): +case IP_VERSION (13 ,0 ,11 ): smu->smc_driver_if_version =SMU13_DRIVER_IF_VERSION_SMU_V13_0_4 ;break ;case IP_VERSION (13 ,0 ,5 ):
Signature · 1 line
2.37.3
PATCH 14/19 drm/amdgpu/pm: add GFXOFF control IP version check for SMU IP v13.0.11
In reply to Yifan ZhangEnable the SMU IP v13.0.11 GFXOFF control
--- drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0.c +1 -0
@@ -843,6 +843,7 @@ int smu_v13_0_gfx_off_control(struct smu_context *smu, bool enable)case IP_VERSION (13 ,0 ,7 ):case IP_VERSION (13 ,0 ,8 ):case IP_VERSION (13 ,0 ,10 ): +case IP_VERSION (13 ,0 ,11 ):if (!(adev->pm.pp_feature &PP_GFXOFF_MASK ))return 0 ;if (enable)
Signature · 1 line
2.37.3
PATCH 15/19 drm/amdgpu/soc21: add mode2 asic reset for SMU IP v13.0.11
In reply to Yifan ZhangFrom: Tim Huang <[email protected]>
Set the default reset method to mode2 for SMU IP v13.0.11
--- drivers/gpu/drm/amd/amdgpu/soc21.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/soc21.c +1 -0
@@ -325,6 +325,7 @@ soc21_asic_reset_method(struct amdgpu_device *adev)case IP_VERSION (13 ,0 ,10 ):return AMD_RESET_METHOD_MODE1 ;case IP_VERSION (13 ,0 ,4 ): +case IP_VERSION (13 ,0 ,11 ):return AMD_RESET_METHOD_MODE2 ;default :if (amdgpu_dpm_is_baco_supported (adev))
Signature · 1 line
2.37.3
PATCH 16/19 drm/amdgpu/pm: use the specific mailbox registers only for SMU IP v13.0.4
In reply to Yifan ZhangFrom: Tim Huang <[email protected]>
The SMU IP v13.0.4 ppt interface is shared by IP v13.0.11, they use the different mailbox register offset. So use the specific mailbox registers offset for v13.0.4.
--- .../drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/pm/swsmu/smu13/smu_v13_0_4_ppt.c +14 -3
@@ -1026,6 +1026,15 @@ static const struct pptable_funcs smu_v13_0_4_ppt_funcs = { .set_gfx_power_up_by_imu = smu_v13_0_set_gfx_power_up_by_imu, }; +static void smu_v13_0_4_set_smu_mailbox_registers (struct smu_context *smu) +{ +struct amdgpu_device *adev = smu->adev; + + smu->param_reg =SOC15_REG_OFFSET (MP1 ,0 , mmMP1_SMN_C2PMSG_82); + smu->msg_reg =SOC15_REG_OFFSET (MP1 ,0 , mmMP1_SMN_C2PMSG_66); + smu->resp_reg =SOC15_REG_OFFSET (MP1 ,0 , mmMP1_SMN_C2PMSG_90); +} +void smu_v13_0_4_set_ppt_funcs (struct smu_context *smu) {struct amdgpu_device *adev = smu->adev;
@@ -1035,7 +1044,9 @@ void smu_v13_0_4_set_ppt_funcs(struct smu_context *smu) smu->feature_map = smu_v13_0_4_feature_mask_map; smu->table_map = smu_v13_0_4_table_map; smu->is_apu = true; - smu->param_reg =SOC15_REG_OFFSET (MP1 ,0 , mmMP1_SMN_C2PMSG_82); - smu->msg_reg =SOC15_REG_OFFSET (MP1 ,0 , mmMP1_SMN_C2PMSG_66); - smu->resp_reg =SOC15_REG_OFFSET (MP1 ,0 , mmMP1_SMN_C2PMSG_90); + +if (adev->ip_versions[MP1_HWIP ][0 ] ==IP_VERSION (13 ,0 ,4 )) +smu_v13_0_4_set_smu_mailbox_registers (smu); +else +smu_v13_0_set_smu_mailbox_registers (smu); }
Signature · 1 line
2.37.3
PATCH 17/19 drm/amdgpu/discovery: enable nbio support for NBIO v7.7.1
In reply to Yifan Zhangthis patch is to enable nbio support for NBIO v7.7.1.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +1 -0
@@ -2278,6 +2278,7 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev) adev->nbio.hdp_flush_reg = &nbio_v4_3_hdp_flush_reg;break ;case IP_VERSION (7 ,7 ,0 ): +case IP_VERSION (7 ,7 ,1 ): adev->nbio.funcs = &nbio_v7_7_funcs; adev->nbio.hdp_flush_reg = &nbio_v7_7_hdp_flush_reg;break ;
Signature · 1 line
2.37.3
PATCH 18/19 drm/amdgpu: Enable pg/cg flags on GC11_0_4 for VCN
In reply to Yifan ZhangFrom: Saleemkhan Jamadar <[email protected]>
This enable VCN PG, CG and JPEG PG, CG
--- drivers/gpu/drm/amd/amdgpu/soc21.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +5 -2
@@ -646,8 +646,11 @@ static int soc21_common_early_init(void *handle) adev->external_rev_id = adev->rev_id +0x20 ;break ;case IP_VERSION (11 ,0 ,4 ): - adev->cg_flags =0 ; - adev->pg_flags =0 ; + adev->cg_flags =AMD_CG_SUPPORT_VCN_MGCG | +AMD_CG_SUPPORT_JPEG_MGCG ; + adev->pg_flags =AMD_PG_SUPPORT_VCN | +AMD_PG_SUPPORT_GFX_PG | +AMD_PG_SUPPORT_JPEG ; adev->external_rev_id = adev->rev_id +0x1 ;break ;
Signature · 1 line
2.37.3
PATCH 19/19 drm/amdgpu: enable PSP IP v13.0.11 support
In reply to Yifan ZhangFrom: Tim Huang <[email protected]>
Enable PSP FW loading for PSP IP v13.0.11
--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 + drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 3 +++ 2 files changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1 -0
@@ -165,6 +165,7 @@ static int psp_early_init(void *handle)case IP_VERSION (13 ,0 ,5 ):case IP_VERSION (13 ,0 ,8 ):case IP_VERSION (13 ,0 ,10 ): +case IP_VERSION (13 ,0 ,11 ):psp_v13_0_set_psp_funcs (psp); psp->autoload_supported = true;break ;
drivers/gpu/drm/amd/amdgpu/psp_v13_0.c +3 -0
@@ -45,6 +45,8 @@ MODULE_FIRMWARE("amdgpu/psp_13_0_7_sos.bin");MODULE_FIRMWARE ("amdgpu/psp_13_0_7_ta.bin" );MODULE_FIRMWARE ("amdgpu/psp_13_0_10_sos.bin" );MODULE_FIRMWARE ("amdgpu/psp_13_0_10_ta.bin" ); +MODULE_FIRMWARE ("amdgpu/psp_13_0_11_toc.bin" ); +MODULE_FIRMWARE ("amdgpu/psp_13_0_11_ta.bin" );/* For large FW files the time to complete can be very long */ #define USBC_PD_POLLING_LIMIT_S 240
@@ -101,6 +103,7 @@ static int psp_v13_0_init_microcode(struct psp_context *psp)case IP_VERSION (13 ,0 ,3 ):case IP_VERSION (13 ,0 ,5 ):case IP_VERSION (13 ,0 ,8 ): +case IP_VERSION (13 ,0 ,11 ): err =psp_init_toc_microcode (psp, chip_name);if (err)return err;
Signature · 1 line
2.37.3
RE: [PATCH 19/19] drm/amdgpu: enable PSP IP v13.0.11 support
[AMD Official Use Only - General]
Series is
Quoted 58 lines
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Yifan Zhang
Sent: Tuesday, November 22, 2022 1:50 PM
To: [email protected]
Cc: Deucher, Alexander <[email protected]>; Huang, Tim <[email protected]>; Du, Xiaojian <[email protected]>; Zhang, Yifan <[email protected]>
Subject: [PATCH 19/19] drm/amdgpu: enable PSP IP v13.0.11 supportFrom: Tim Huang <[email protected]>
Enable PSP FW loading for PSP IP v13.0.11
Signed-off-by Tim Huang <[email protected]>Signed-off-by Yifan Zhang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c | 1 + drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 3 +++ 2 files changed, 4 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c +1
-0@@ -165,6 +165,7 @@ static int psp_early_init(void *handle)case IP_VERSION (13 ,0 ,5 ):case IP_VERSION (13 ,0 ,8 ):case IP_VERSION (13 ,0 ,10 ): +case IP_VERSION (13 ,0 ,11 ):psp_v13_0_set_psp_funcs (psp); psp->autoload_supported = true;break ;drivers/gpu/drm/amd/amdgpu/psp_v13_0.c +2
-0@@ -45,6 +45,8 @@ MODULE_FIRMWARE("amdgpu/psp_13_0_7_sos.bin");MODULE_FIRMWARE ("amdgpu/psp_13_0_7_ta.bin" );MODULE_FIRMWARE ("amdgpu/psp_13_0_10_sos.bin" );MODULE_FIRMWARE ("amdgpu/psp_13_0_10_ta.bin" ); +MODULE_FIRMWARE ("amdgpu/psp_13_0_11_toc.bin" ); +MODULE_FIRMWARE ("amdgpu/psp_13_0_11_ta.bin" ); /* For large FW files the time to complete can be very long */ #define
USBC_PD_POLLING_LIMIT_S240 @@ -101,6 +103,7 @@ static intpsp_v13_0_init_microcode(struct psp_context *psp)case IP_VERSION(13, 0, 3): case IP_VERSION(13, 0, 5): case IP_VERSION(13, 0, 8): + case IP_VERSION(13, 0, 11): err = psp_init_toc_microcode(psp, chip_name); if (err) return err;--
2.37.3