All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amdgpu: Add a filter condition to restrict the SW ras function to be registered only by asics whose hardware supports the ras function
@ 2022-01-12  7:48 yipechai
  2022-01-12  7:48 ` [PATCH 2/2] drm/amdgpu: No longer insert ras blocks into ras_list if it already exists in ras_list yipechai
  2022-01-12  8:27 ` [PATCH 1/2] drm/amdgpu: Add a filter condition to restrict the SW ras function to be registered only by asics whose hardware supports the ras function Zhou1, Tao
  0 siblings, 2 replies; 9+ messages in thread
From: yipechai @ 2022-01-12  7:48 UTC (permalink / raw)
  To: amd-gfx; +Cc: Tao.Zhou1, Hawking.Zhang, John.Clements, yipechai, yipechai

Add a filter condition to restrict the SW ras function to be registered only by asics whose hardware supports the ras function.

Signed-off-by: yipechai <YiPeng.Chai@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
index b1bedfd4febc..62be0b4909b3 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c
@@ -2754,7 +2754,7 @@ int amdgpu_ras_reset_gpu(struct amdgpu_device *adev)
 int amdgpu_ras_register_ras_block(struct amdgpu_device *adev,
 		struct amdgpu_ras_block_object* ras_block_obj)
 {
-	if (!adev || !ras_block_obj)
+	if (!adev || !amdgpu_ras_asic_supported(adev) || !ras_block_obj)
 		return -EINVAL;
 
 	INIT_LIST_HEAD(&ras_block_obj->node);
-- 
2.25.1


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

end of thread, other threads:[~2022-01-13 17:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-12  7:48 [PATCH 1/2] drm/amdgpu: Add a filter condition to restrict the SW ras function to be registered only by asics whose hardware supports the ras function yipechai
2022-01-12  7:48 ` [PATCH 2/2] drm/amdgpu: No longer insert ras blocks into ras_list if it already exists in ras_list yipechai
2022-01-12  8:36   ` Zhou1, Tao
2022-01-12  9:13     ` Chai, Thomas
2022-01-13 17:54     ` Alex Deucher
2022-01-12 16:39   ` Felix Kuehling
2022-01-13  2:34     ` Chai, Thomas
2022-01-12  8:27 ` [PATCH 1/2] drm/amdgpu: Add a filter condition to restrict the SW ras function to be registered only by asics whose hardware supports the ras function Zhou1, Tao
2022-01-12  9:10   ` Chai, Thomas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.