drm/amdgpu: add GC 11.5.1 to GC 11.5.0 family
Subsystems (3)
Alex Deucher
maintainerPATCH 1/9 drm/amdgpu: add GC 11.5.1 to GC 11.5.0 family
From: Yifan Zhang <[email protected]>
This patch to add GC 11.5.1 to GC 11.5.0 family.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c +2 -0
@@ -2462,6 +2462,7 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev) adev->family =AMDGPU_FAMILY_GC_11_0_1 ;break ;case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ): adev->family =AMDGPU_FAMILY_GC_11_5_0 ;break ;default :
@@ -2481,6 +2482,7 @@ int amdgpu_discovery_set_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,4 ):case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ): adev->flags |=AMD_IS_APU ;break ;default :
Signature · 1 line
2.42.0
Alex Deucher
maintainerPATCH 2/9 drm/amdgpu: add firmware for GC 11.5.1
From: Yifan Zhang <[email protected]>
This patch is to add firmware for GC 11.5.1
--- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +4 -0
@@ -89,6 +89,10 @@ MODULE_FIRMWARE("amdgpu/gc_11_5_0_pfp.bin");MODULE_FIRMWARE ("amdgpu/gc_11_5_0_me.bin" );MODULE_FIRMWARE ("amdgpu/gc_11_5_0_mec.bin" );MODULE_FIRMWARE ("amdgpu/gc_11_5_0_rlc.bin" ); +MODULE_FIRMWARE ("amdgpu/gc_11_5_1_pfp.bin" ); +MODULE_FIRMWARE ("amdgpu/gc_11_5_1_me.bin" ); +MODULE_FIRMWARE ("amdgpu/gc_11_5_1_mec.bin" ); +MODULE_FIRMWARE ("amdgpu/gc_11_5_1_rlc.bin" );static const struct soc15_reg_golden golden_settings_gc_11_0[] = {SOC15_REG_GOLDEN_VALUE (GC ,0 , regTCP_CNTL,0x20000000 ,0x20000000 )
Signature · 1 line
2.42.0
Alex Deucher
maintainerPATCH 3/9 drm/amdgpu: add imu firmware support for GC 11.5.1
In reply to Alex DeucherFrom: Yifan Zhang <[email protected]>
This patch is to add imu firmware support for GC 11.5.1
--- drivers/gpu/drm/amd/amdgpu/imu_v11_0.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/amd/amdgpu/imu_v11_0.c +1 -0
@@ -37,6 +37,7 @@ MODULE_FIRMWARE("amdgpu/gc_11_0_2_imu.bin");MODULE_FIRMWARE ("amdgpu/gc_11_0_3_imu.bin" );MODULE_FIRMWARE ("amdgpu/gc_11_0_4_imu.bin" );MODULE_FIRMWARE ("amdgpu/gc_11_5_0_imu.bin" ); +MODULE_FIRMWARE ("amdgpu/gc_11_5_1_imu.bin" );static int imu_v11_0_init_microcode (struct amdgpu_device *adev) {
Signature · 1 line
2.42.0
Alex Deucher
maintainerPATCH 4/9 drm/amdgpu: add mes firmware support for GC 11.5.1
In reply to Alex DeucherFrom: Yifan Zhang <[email protected]>
This patch to add MES PIPE0 and PIPE1 firmware support for gc_11_5_1.
--- drivers/gpu/drm/amd/amdgpu/mes_v11_0.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/gpu/drm/amd/amdgpu/mes_v11_0.c +2 -0
@@ -49,6 +49,8 @@ MODULE_FIRMWARE("amdgpu/gc_11_0_4_mes_2.bin");MODULE_FIRMWARE ("amdgpu/gc_11_0_4_mes1.bin" );MODULE_FIRMWARE ("amdgpu/gc_11_5_0_mes_2.bin" );MODULE_FIRMWARE ("amdgpu/gc_11_5_0_mes1.bin" ); +MODULE_FIRMWARE ("amdgpu/gc_11_5_1_mes_2.bin" ); +MODULE_FIRMWARE ("amdgpu/gc_11_5_1_mes1.bin" );static int mes_v11_0_hw_fini (void *handle);
Signature · 1 line
2.42.0
Alex Deucher
maintainerPATCH 5/9 drm/amdgpu: initialize gfx11.5.1
In reply to Alex DeucherFrom: Yifan Zhang <[email protected]>
Initalize gfx 11.5.0 and set gfx hw configuration.
v2: squash in CG, PG, GFXOFF fixes (Alex)
--- drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/gfx_v11_0.c +7 -1
@@ -911,6 +911,7 @@ static int gfx_v11_0_gpu_early_init(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,4 ):case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ): 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 ;
@@ -1350,6 +1351,7 @@ static int gfx_v11_0_sw_init(void *handle)case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,4 ):case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ): adev->gfx.me.num_me =1 ; adev->gfx.me.num_pipe_per_me =1 ; adev->gfx.me.num_queue_per_pipe =1 ;
@@ -2592,7 +2594,8 @@ static int gfx_v11_0_wait_for_rlc_autoload_complete(struct amdgpu_device *adev) IP_VERSION(11, 0, 1) || amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(11, 0, 4) || - amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(11, 5, 0)) + amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(11, 5, 0) || + amdgpu_ip_version(adev, GC_HWIP, 0) == IP_VERSION(11, 5, 1)) bootload_status =RREG32_SOC15 (GC ,0 , regRLC_RLCS_BOOTLOAD_STATUS_gc_11_0_1); else
@@ -5086,6 +5089,7 @@ static void gfx_v11_cntl_power_gating(struct amdgpu_device *adev, bool enable)case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,4 ):case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ):WREG32_SOC15 (GC ,0 , regRLC_PG_DELAY_3,RLC_PG_DELAY_3_DEFAULT_GC_11_0_1 );break ;default :
@@ -5121,6 +5125,7 @@ static int gfx_v11_0_set_powergating_state(void *handle,case IP_VERSION (11 ,0 ,1 ):case IP_VERSION (11 ,0 ,4 ):case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ):if (!enable)amdgpu_gfx_off_ctrl (adev, false);
@@ -5152,6 +5157,7 @@ static int gfx_v11_0_set_clockgating_state(void *handle,case IP_VERSION (11 ,0 ,3 ):case IP_VERSION (11 ,0 ,4 ):case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ):gfx_v11_0_update_gfx_clock_gating (adev, state ==AMD_CG_STATE_GATE );break ;
Signature · 1 line
2.42.0
Alex Deucher
maintainerPATCH 6/9 drm/amdgpu: enable CGPG for GFX ip v11.5.1
In reply to Alex DeucherFrom: Tim Huang <[email protected]>
Enable CGPG support for GFX ip v11.5.1
--- drivers/gpu/drm/amd/amdgpu/soc21.c | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/soc21.c +21 -2
@@ -718,8 +718,27 @@ static int soc21_common_early_init(void *handle) adev->external_rev_id = adev->rev_id +0x1 ;break ;case IP_VERSION (11 ,5 ,1 ): - adev->cg_flags =0 ; - adev->pg_flags =0 ; + adev->cg_flags = +AMD_CG_SUPPORT_GFX_CGCG | +AMD_CG_SUPPORT_GFX_CGLS | +AMD_CG_SUPPORT_GFX_MGCG | +AMD_CG_SUPPORT_GFX_FGCG | +AMD_CG_SUPPORT_REPEATER_FGCG | +AMD_CG_SUPPORT_GFX_PERF_CLK | +AMD_CG_SUPPORT_GFX_3D_CGCG | +AMD_CG_SUPPORT_GFX_3D_CGLS | +AMD_CG_SUPPORT_MC_MGCG | +AMD_CG_SUPPORT_MC_LS | +AMD_CG_SUPPORT_HDP_LS | +AMD_CG_SUPPORT_HDP_DS | +AMD_CG_SUPPORT_HDP_SD | +AMD_CG_SUPPORT_ATHUB_MGCG | +AMD_CG_SUPPORT_ATHUB_LS | +AMD_CG_SUPPORT_IH_CG | +AMD_CG_SUPPORT_BIF_MGCG | +AMD_CG_SUPPORT_BIF_LS ; + adev->pg_flags = +AMD_PG_SUPPORT_GFX_PG ; adev->external_rev_id = adev->rev_id +0xc1 ;break ;default :
Signature · 1 line
2.42.0
Alex Deucher
maintainerPATCH 7/9 drm/amdkfd: add KFD support for GC 11.5.1
In reply to Alex DeucherFrom: Yifan Zhang <[email protected]>
Enable KFD for GC 11.5.1.
--- drivers/gpu/drm/amd/amdkfd/kfd_crat.c | 1 + drivers/gpu/drm/amd/amdkfd/kfd_device.c | 7 +++++++ 2 files changed, 8 insertions(+)
drivers/gpu/drm/amd/amdkfd/kfd_crat.c +1 -0
@@ -1676,6 +1676,7 @@ int kfd_get_gpu_cache_info(struct kfd_node *kdev, struct kfd_gpu_cache_info **pccase IP_VERSION (11 ,0 ,3 ):case IP_VERSION (11 ,0 ,4 ):case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ): num_of_cache_types =kfd_fill_gpu_cache_info_from_gfx_config (kdev->kfd, *pcache_info);break ;
drivers/gpu/drm/amd/amdkfd/kfd_device.c +7 -0
@@ -96,6 +96,7 @@ static void kfd_device_info_set_sdma_info(struct kfd_dev *kfd)case IP_VERSION (6 ,0 ,2 ):case IP_VERSION (6 ,0 ,3 ):case IP_VERSION (6 ,1 ,0 ): +case IP_VERSION (6 ,1 ,1 ): kfd->device_info.num_sdma_queues_per_engine =8 ;break ;default :
@@ -113,6 +114,7 @@ static void kfd_device_info_set_sdma_info(struct kfd_dev *kfd)case IP_VERSION (6 ,0 ,2 ):case IP_VERSION (6 ,0 ,3 ):case IP_VERSION (6 ,1 ,0 ): +case IP_VERSION (6 ,1 ,1 ):/* Reserve 1 for paging and 1 for gfx */ kfd->device_info.num_reserved_sdma_queues_per_engine =2 ;/* BIT(0)=engine-0 queue-0; BIT(1)=engine-1 queue-0; BIT(2)=engine-0 queue-1; ... */
@@ -165,6 +167,7 @@ static void kfd_device_info_set_event_interrupt_class(struct kfd_dev *kfd)case IP_VERSION (11 ,0 ,3 ):case IP_VERSION (11 ,0 ,4 ):case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ): kfd->device_info.event_interrupt_class = &event_interrupt_class_v11;break ;default :
@@ -420,6 +423,10 @@ struct kfd_dev *kgd2kfd_probe(struct amdgpu_device *adev, bool vf) gfx_target_version =110500 ; f2g = &gfx_v11_kfd2kgd;break ; +case IP_VERSION (11 ,5 ,1 ): + gfx_target_version =110501 ; + f2g = &gfx_v11_kfd2kgd; +break ;default :break ; }
Signature · 1 line
2.42.0
Alex Deucher
maintainerPATCH 8/9 drm/amdgpu: add GC 11.5.1 discovery support
In reply to Alex DeucherFrom: Yifan Zhang <[email protected]>
This patch to add GC 11.5.1 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
@@ -2005,6 +2005,7 @@ static int amdgpu_discovery_set_gc_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,3 ):case IP_VERSION (11 ,0 ,4 ):case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ):amdgpu_device_ip_block_add (adev, &gfx_v11_0_ip_block);break ;default :
Signature · 1 line
2.42.0
Alex Deucher
maintainerPATCH 9/9 drm/amdgpu: enable MES discovery for GC 11.5.1
In reply to Alex DeucherFrom: Yifan Zhang <[email protected]>
This patch to enable MES for GC 11.5.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
@@ -2185,6 +2185,7 @@ static int amdgpu_discovery_set_mes_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,3 ):case IP_VERSION (11 ,0 ,4 ):case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ):amdgpu_device_ip_block_add (adev, &mes_v11_0_ip_block); adev->enable_mes = true; adev->enable_mes_kiq = true;
Signature · 1 line
2.42.0
RE: [PATCH 9/9] drm/amdgpu: enable MES discovery for GC 11.5.1
[AMD Official Use Only - General]
Reviewed by shaoyun.liu <[email protected]>
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Thursday, February 15, 2024 3:40 PM
To: [email protected]
Cc: Zhang, Yifan <[email protected]>; Deucher, Alexander <[email protected]>
Subject: [PATCH 9/9] drm/amdgpu: enable MES discovery for GC 11.5.1
From: Yifan Zhang <[email protected]>
This patch to enable MES for GC 11.5.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
@@ -2185,6 +2185,7 @@ static int amdgpu_discovery_set_mes_ip_blocks(struct amdgpu_device *adev)case IP_VERSION (11 ,0 ,3 ):case IP_VERSION (11 ,0 ,4 ):case IP_VERSION (11 ,5 ,0 ): +case IP_VERSION (11 ,5 ,1 ):amdgpu_device_ip_block_add (adev, &mes_v11_0_ip_block); adev->enable_mes = true; adev->enable_mes_kiq = true;
--
2.42.0