drm/amdgpu: disable GPU RAS bad page feature for specific ASIC
Subsystems (2)
PATCH 1/1 drm/amdgpu: disable GPU RAS bad page feature for specific ASIC
The feature is not applicable to specific app platform.
v2: update the disablement condition and commit description
v3: move the setting to amdgpu_ras_check_supported
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +5 -0
@@ -3483,6 +3483,11 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev)/* aca is disabled by default */ adev->aca.is_enabled = false; + +/* bad page feature is not applicable to specific app platform */ +if (adev->gmc.is_app_apu && +amdgpu_ip_version (adev,UMC_HWIP ,0 ) ==IP_VERSION (12 ,0 ,0 )) + amdgpu_bad_page_threshold =0 ; }static void amdgpu_ras_counte_dw (struct work_struct *work)
Signature · 1 line
2.34.1
[AMD Official Use Only - AMD Internal Distribution Only]
Regards,
Hawking
-----Original Message-----
From: Zhou1, Tao <[email protected]>
Sent: Tuesday, September 10, 2024 16:38
To: [email protected]
Cc: Zhou1, Tao <[email protected]>; Zhang, Hawking <[email protected]>
Subject: [PATCH] drm/amdgpu: disable GPU RAS bad page feature for specific ASIC
The feature is not applicable to specific app platform.
v2: update the disablement condition and commit description
v3: move the setting to amdgpu_ras_check_supported
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 5 +++++ 1 file changed, 5 insertions(+)
drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +5 -0
@@ -3483,6 +3483,11 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev)/* aca is disabled by default */ adev->aca.is_enabled = false; + +/* bad page feature is not applicable to specific app platform */ +if (adev->gmc.is_app_apu && +amdgpu_ip_version (adev,UMC_HWIP ,0 ) ==IP_VERSION (12 ,0 ,0 )) + amdgpu_bad_page_threshold =0 ; }static void amdgpu_ras_counte_dw (struct work_struct *work)
--
2.34.1
Quoted 7 lines · Tao Zhou
The feature is not applicable to specific app platform.
v2: update the disablement condition and commit description
v3: move the setting toamdgpu_ras_check_supportedSigned-off-by Tao Zhou <[email protected]>Reviewed-by Hawking Zhang <[email protected]>
Thanks,
Lijo
Quoted 20 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +5
-0@@ -3483,6 +3483,11 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev)/* aca is disabled by default */ adev->aca.is_enabled = false; + +/* bad page feature is not applicable to specific app platform */ +if (adev->gmc.is_app_apu && +amdgpu_ip_version (adev,UMC_HWIP ,0 ) ==IP_VERSION (12 ,0 ,0 )) + amdgpu_bad_page_threshold =0 ; }static void amdgpu_ras_counte_dw (struct work_struct *work)
On a second thought, this may be made more generic by just checking APU flag - holds true for any APU in general.
Thanks,
Lijo
Quoted 36 lines · Lijo
Quoted 7 lines · Tao Zhou
The feature is not applicable to specific app platform.
v2: update the disablement condition and commit description
v3: move the setting toamdgpu_ras_check_supportedSigned-off-by Tao Zhou <[email protected]>Reviewed-by Hawking Zhang <[email protected]>Reviewed-by Lijo Lazar <[email protected]>Thanks,
LijoQuoted 20 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +5
-0@@ -3483,6 +3483,11 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev)/* aca is disabled by default */ adev->aca.is_enabled = false; + +/* bad page feature is not applicable to specific app platform */ +if (adev->gmc.is_app_apu && +amdgpu_ip_version (adev,UMC_HWIP ,0 ) ==IP_VERSION (12 ,0 ,0 )) + amdgpu_bad_page_threshold =0 ; }static void amdgpu_ras_counte_dw (struct work_struct *work)
[AMD Official Use Only - AMD Internal Distribution Only]
It's not true, the feature on gpu side is ASIC specific even for APU.
Regards,
Tao
Quoted 54 lines
-----Original Message-----
From: Lazar, Lijo <[email protected]>
Sent: Tuesday, September 10, 2024 9:58 PM
To: Zhou1, Tao <[email protected]>; [email protected]
Cc: Zhang, Hawking <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: disable GPU RAS bad page feature for specific ASICOn a second thought, this may be made more generic by just checking APU flag - holds true for any APU in general.
Thanks,
LijoQuoted 38 lines · Lijo
Quoted 7 lines · Tao Zhou
The feature is not applicable to specific app platform.
v2: update the disablement condition and commit description
v3: move the setting toamdgpu_ras_check_supportedSigned-off-by Tao Zhou <[email protected]>Reviewed-by Hawking Zhang <[email protected]>Reviewed-by Lijo Lazar <[email protected]>Thanks,
LijoQuoted 22 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 5 +++++ 1 file changed, 5 insertions(+)drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +5
-0@@ -3483,6 +3483,11 @@ static void amdgpu_ras_check_supported(struct amdgpu_device *adev)/* aca is disabled by default */ adev->aca.is_enabled = false; + +/* bad page feature is not applicable to specific app platform */ +if (adev->gmc.is_app_apu && +amdgpu_ip_version (adev,UMC_HWIP ,0 ) ==IP_VERSION (12 ,0 ,0 )) + amdgpu_bad_page_threshold =0 ; }static void
amdgpu_ras_counte_dw(struct work_struct *work)