Skip to contentSkip to conversation

drm/amdgpu: disable GPU RAS bad page feature for specific ASIC

PATCH In review Tao Zhou 3 participants 5 messages Sep 10, 2024 – Sep 11, 2024

Subsystems (2)
lore
Share & tools
lore

Tao Zhou

author
#0 lore raw

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
index dbfc41ddc3c7..ebe3e8f01fe2 100644
@@ -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
Reviewed-by Reviewed-by on v1 1/1
#1 lore raw

[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
index dbfc41ddc3c7..ebe3e8f01fe2 100644
@@ -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

Reviewed-by on v1 1/1
#2 lore raw
In reply to Tao Zhou
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 to amdgpu_ras_check_supported

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
index dbfc41ddc3c7..ebe3e8f01fe2 100644
@@ -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)
#3 lore raw

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 to amdgpu_ras_check_supported

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
index dbfc41ddc3c7..ebe3e8f01fe2 100644
@@ -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)
author
#4 lore raw

[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 ASIC

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 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 to amdgpu_ras_check_supported

Thanks,
Lijo

Quoted 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
index dbfc41ddc3c7..ebe3e8f01fe2 100644
@@ -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)