drm/amdgpu: Retire query/reseet_ras_error_status from gfx_v9_4_3
Subsystems (2)
PATCH 1/3 drm/amdgpu: Retire query/reseet_ras_error_status from gfx_v9_4_3
Not needed anymore.
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c | 114 ------------------------ 1 file changed, 114 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_4_3.c +0 -114
@@ -3882,32 +3882,6 @@ static void gfx_v9_4_3_inst_reset_ras_err_count(struct amdgpu_device *adev,mutex_unlock (&adev->grbm_idx_mutex); } -static void gfx_v9_4_3_inst_query_utc_err_status (struct amdgpu_device *adev, -int xcc_id) -{ -uint32_t data; - - data =RREG32_SOC15 (GC ,GET_INST (GC , xcc_id), regUTCL2_MEM_ECC_STATUS); -if (data) { -dev_warn (adev->dev,"GFX UTCL2 Mem Ecc Status: 0x%x!\n" , data); -WREG32_SOC15 (GC ,GET_INST (GC , xcc_id), regUTCL2_MEM_ECC_STATUS,0x3 ); - } - - data =RREG32_SOC15 (GC ,GET_INST (GC , xcc_id), regVML2_MEM_ECC_STATUS); -if (data) { -dev_warn (adev->dev,"GFX VML2 Mem Ecc Status: 0x%x!\n" , data); -WREG32_SOC15 (GC ,GET_INST (GC , xcc_id), regVML2_MEM_ECC_STATUS,0x3 ); - } - - data =RREG32_SOC15 (GC ,GET_INST (GC , xcc_id), - regVML2_WALKER_MEM_ECC_STATUS); -if (data) { -dev_warn (adev->dev,"GFX VML2 Walker Mem Ecc Status: 0x%x!\n" , data); -WREG32_SOC15 (GC ,GET_INST (GC , xcc_id), regVML2_WALKER_MEM_ECC_STATUS, -0x3 ); - } -} -static void gfx_v9_4_3_log_cu_timeout_status (struct amdgpu_device *adev,uint32_t status,int xcc_id) {
@@ -3950,82 +3924,6 @@ static void gfx_v9_4_3_log_cu_timeout_status(struct amdgpu_device *adev, } } -static void gfx_v9_4_3_inst_query_sq_timeout_status (struct amdgpu_device *adev, -int xcc_id) -{ -uint32_t se_idx, sh_idx, cu_idx; -uint32_t status; - -mutex_lock (&adev->grbm_idx_mutex); -for (se_idx =0 ; se_idx < adev->gfx.config.max_shader_engines; se_idx++) { -for (sh_idx =0 ; sh_idx < adev->gfx.config.max_sh_per_se; sh_idx++) { -for (cu_idx =0 ; cu_idx < adev->gfx.config.max_cu_per_sh; cu_idx++) { -gfx_v9_4_3_xcc_select_se_sh (adev, se_idx, sh_idx, - cu_idx, xcc_id); - status =RREG32_SOC15 (GC ,GET_INST (GC , xcc_id), - regSQ_TIMEOUT_STATUS); -if (status !=0 ) { -dev_info ( - adev->dev, -"GFX Watchdog Timeout: SE %d, SH %d, CU %d\n" , - se_idx, sh_idx, cu_idx); -gfx_v9_4_3_log_cu_timeout_status ( - adev, status, xcc_id); - } -/* clear old status */ -WREG32_SOC15 (GC ,GET_INST (GC , xcc_id), - regSQ_TIMEOUT_STATUS,0 ); - } - } - } -gfx_v9_4_3_xcc_select_se_sh (adev,0xffffffff ,0xffffffff ,0xffffffff , - xcc_id); -mutex_unlock (&adev->grbm_idx_mutex); -} - -static void gfx_v9_4_3_inst_query_ras_err_status (struct amdgpu_device *adev, -void *ras_error_status,int xcc_id) -{ -gfx_v9_4_3_inst_query_utc_err_status (adev, xcc_id); -gfx_v9_4_3_inst_query_sq_timeout_status (adev, xcc_id); -} - -static void gfx_v9_4_3_inst_reset_utc_err_status (struct amdgpu_device *adev, -int xcc_id) -{ -WREG32_SOC15 (GC ,GET_INST (GC , xcc_id), regUTCL2_MEM_ECC_STATUS,0x3 ); -WREG32_SOC15 (GC ,GET_INST (GC , xcc_id), regVML2_MEM_ECC_STATUS,0x3 ); -WREG32_SOC15 (GC ,GET_INST (GC , xcc_id), regVML2_WALKER_MEM_ECC_STATUS,0x3 ); -} - -static void gfx_v9_4_3_inst_reset_sq_timeout_status (struct amdgpu_device *adev, -int xcc_id) -{ -uint32_t se_idx, sh_idx, cu_idx; - -mutex_lock (&adev->grbm_idx_mutex); -for (se_idx =0 ; se_idx < adev->gfx.config.max_shader_engines; se_idx++) { -for (sh_idx =0 ; sh_idx < adev->gfx.config.max_sh_per_se; sh_idx++) { -for (cu_idx =0 ; cu_idx < adev->gfx.config.max_cu_per_sh; cu_idx++) { -gfx_v9_4_3_xcc_select_se_sh (adev, se_idx, sh_idx, - cu_idx, xcc_id); -WREG32_SOC15 (GC ,GET_INST (GC , xcc_id), - regSQ_TIMEOUT_STATUS,0 ); - } - } - } -gfx_v9_4_3_xcc_select_se_sh (adev,0xffffffff ,0xffffffff ,0xffffffff , - xcc_id); -mutex_unlock (&adev->grbm_idx_mutex); -} - -static void gfx_v9_4_3_inst_reset_ras_err_status (struct amdgpu_device *adev, -void *ras_error_status,int xcc_id) -{ -gfx_v9_4_3_inst_reset_utc_err_status (adev, xcc_id); -gfx_v9_4_3_inst_reset_sq_timeout_status (adev, xcc_id); -} -static void gfx_v9_4_3_inst_enable_watchdog_timer (struct amdgpu_device *adev,void *ras_error_status,int xcc_id) {
@@ -4067,16 +3965,6 @@ static void gfx_v9_4_3_reset_ras_error_count(struct amdgpu_device *adev)amdgpu_gfx_ras_error_func (adev,NULL , gfx_v9_4_3_inst_reset_ras_err_count); } -static void gfx_v9_4_3_query_ras_error_status (struct amdgpu_device *adev) -{ -amdgpu_gfx_ras_error_func (adev,NULL , gfx_v9_4_3_inst_query_ras_err_status); -} - -static void gfx_v9_4_3_reset_ras_error_status (struct amdgpu_device *adev) -{ -amdgpu_gfx_ras_error_func (adev,NULL , gfx_v9_4_3_inst_reset_ras_err_status); -} -static void gfx_v9_4_3_enable_watchdog_timer (struct amdgpu_device *adev) {amdgpu_gfx_ras_error_func (adev,NULL , gfx_v9_4_3_inst_enable_watchdog_timer);
@@ -4394,8 +4282,6 @@ struct amdgpu_xcp_ip_funcs gfx_v9_4_3_xcp_funcs = {struct amdgpu_ras_block_hw_ops gfx_v9_4_3_ras_ops = { .query_ras_error_count = &gfx_v9_4_3_query_ras_error_count, .reset_ras_error_count = &gfx_v9_4_3_reset_ras_error_count, - .query_ras_error_status = &gfx_v9_4_3_query_ras_error_status, - .reset_ras_error_status = &gfx_v9_4_3_reset_ras_error_status, };struct amdgpu_gfx_ras gfx_v9_4_3_ras = {
Signature · 1 line
2.17.1
PATCH 2/3 drm/amdgpu: Do not issue gpu reset from nbio v7_9 bif interrupt
In nbio v7_9, host driver should not issu gpu reset
--- drivers/gpu/drm/amd/amdgpu/nbio_v7_9.c | 5 ----- 1 file changed, 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/nbio_v7_9.c +0 -5
@@ -611,11 +611,6 @@ static void nbio_v7_9_handle_ras_controller_intr_no_bifring(struct amdgpu_devicedev_info (adev->dev,"RAS controller interrupt triggered " "by NBIF error\n" ); - -/* ras_controller_int is dedicated for nbif ras error, -* not the global interrupt for sync flood -*/ -amdgpu_ras_reset_gpu (adev); }amdgpu_ras_error_data_fini (&err_data);
Signature · 1 line
2.17.1
PATCH 3/3 drm/amdgpu: Update fw version for boot time error query
In reply to Hawking ZhangBoot time error query is not available till a10109
--- drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/psp_v13_0.c +1 -1
@@ -821,7 +821,7 @@ static int psp_v13_0_query_boot_status(struct psp_context *psp)if (amdgpu_ip_version (adev,MP0_HWIP ,0 ) !=IP_VERSION (13 ,0 ,6 ))return 0 ; -if (RREG32_SOC15 (MP0 ,0 , regMP0_SMN_C2PMSG_59) <0x00a10007 ) +if (RREG32_SOC15 (MP0 ,0 , regMP0_SMN_C2PMSG_59) <0x00a10109 )return 0 ;for_each_inst (i, inst_mask) {
Signature · 1 line
2.17.1
RE: [PATCH 3/3] drm/amdgpu: Update fw version for boot time error query
[AMD Official Use Only - General]
Best Regards,
Kevin
-----Original Message-----
From: Zhang, Hawking <[email protected]>
Sent: Monday, November 20, 2023 10:49 AM
To: [email protected]; Yang, Stanley <[email protected]>; Li, Candice <[email protected]>; Wang, Yang(Kevin) <[email protected]>
Cc: Zhang, Hawking <[email protected]>
Subject: [PATCH 3/3] drm/amdgpu: Update fw version for boot time error query
Boot time error query is not available till a10109
--- drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/psp_v13_0.c +1 -1
@@ -821,7 +821,7 @@ static int psp_v13_0_query_boot_status(struct psp_context *psp)if (amdgpu_ip_version (adev,MP0_HWIP ,0 ) !=IP_VERSION (13 ,0 ,6 ))return 0 ; -if (RREG32_SOC15 (MP0 ,0 , regMP0_SMN_C2PMSG_59) <0x00a10007 ) +if (RREG32_SOC15 (MP0 ,0 , regMP0_SMN_C2PMSG_59) <0x00a10109 )return 0 ;for_each_inst (i, inst_mask) {
--
2.17.1
RE: [PATCH 3/3] drm/amdgpu: Update fw version for boot time error query
In reply to Hawking Zhang[AMD Official Use Only - General]
The series is Reviewed-by: Stanley.Yang <[email protected]>
Regards,
Stanley
Quoted 36 lines
-----Original Message-----
From: Zhang, Hawking <[email protected]>
Sent: Monday, November 20, 2023 10:49 AM
To: [email protected]; Yang, Stanley <[email protected]>; Li, Candice <[email protected]>; Wang, Yang(Kevin) <[email protected]>
Cc: Zhang, Hawking <[email protected]>
Subject: [PATCH 3/3] drm/amdgpu: Update fw version for boot time error queryBoot time error query is not available till a10109
Signed-off-by Hawking Zhang <[email protected]>--- drivers/gpu/drm/amd/amdgpu/psp_v13_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/psp_v13_0.c +1
-1@@ -821,7 +821,7 @@ static int psp_v13_0_query_boot_status(struct psp_context *psp)if (amdgpu_ip_version (adev,MP0_HWIP ,0 ) !=IP_VERSION (13 ,0 ,6 ))return 0 ; -if (RREG32_SOC15 (MP0 ,0 , regMP0_SMN_C2PMSG_59) < 0x00a10007) +if (RREG32_SOC15 (MP0 ,0 , regMP0_SMN_C2PMSG_59) <0x00a10109 )return 0; for_each_inst(i, inst_mask) {--
2.17.1