AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] drm/amdgpu: Apply poison mode check to GFX IP only
@ 2023-07-03  8:55 Hawking Zhang
  2023-07-03  8:55 ` [PATCH 2/3] drm/amdgpu: Remove gfx v11_0_3 ras_late_init call Hawking Zhang
  2023-07-03  8:55 ` [PATCH 3/3] drm/amdgpu: Issue ras enable_feature for gfx ip only Hawking Zhang
  0 siblings, 2 replies; 4+ messages in thread
From: Hawking Zhang @ 2023-07-03  8:55 UTC (permalink / raw)
  To: amd-gfx, Tao Zhou, Stanley Yang, Thomas Chai, Candice Li; +Cc: Hawking Zhang

For GFX IP that only supports poison consumption, GFX
RAS won't be marked as enabled. i.e., hardware doesn't
support gfx sram ecc. But driver still needs to issue
firmware to enable poison consumption mode for GFX IP.
In such case, check poison mode and treat GFX IP as
RAS capable IP block.

Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index 041112c7fbbd..8524365761b6 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -3150,6 +3150,7 @@ int amdgpu_ras_is_supported(struct amdgpu_device *adev,
 	 * that the ras block supports ras function.
 	 */
 	if (!ret &&
+	    block == AMDGPU_RAS_BLOCK__GFX &&
 	    amdgpu_ras_is_poison_mode_supported(adev) &&
 	    amdgpu_ras_get_ras_block(adev, block, 0))
 		ret = 1;
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-07-04  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-03  8:55 [PATCH 1/3] drm/amdgpu: Apply poison mode check to GFX IP only Hawking Zhang
2023-07-03  8:55 ` [PATCH 2/3] drm/amdgpu: Remove gfx v11_0_3 ras_late_init call Hawking Zhang
2023-07-03  8:55 ` [PATCH 3/3] drm/amdgpu: Issue ras enable_feature for gfx ip only Hawking Zhang
2023-07-04  4:00   ` Zhou1, Tao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox