AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amd/ras: enable uniras via IP version check
@ 2026-03-31  3:03 Ce Sun
  0 siblings, 0 replies; 2+ messages in thread
From: Ce Sun @ 2026-03-31  3:03 UTC (permalink / raw)
  To: amd-gfx; +Cc: YiPeng.Chai, Hawking.Zhang, Ce Sun

enable uniras via IP version check

Signed-off-by: Ce Sun <cesun102@amd.com>
Reviewed-by: YiPeng Chai <YiPeng.Chai@amd.com>
---
 drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c b/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c
index 861b1f290475..f5416ffac9cd 100644
--- a/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c
+++ b/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c
@@ -290,8 +290,9 @@ static int amdgpu_ras_mgr_sw_init(struct amdgpu_ip_block *ip_block)
 	/* Disabled by default */
 	con->uniras_enabled = false;
 
-	/* Enabled only in debug mode */
-	if (adev->debug_enable_ras_aca) {
+	if (amdgpu_ip_version(adev, MP0_HWIP, 0) == IP_VERSION(13, 0, 14)) {
+		con->uniras_enabled = true;
+	} else if (adev->debug_enable_ras_aca) {
 		con->uniras_enabled = true;
 		RAS_DEV_INFO(adev, "Debug amdgpu uniras!");
 	}
-- 
2.34.1


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

* [PATCH] drm/amd/ras: enable uniras via IP version check
@ 2026-03-31  3:08 Ce Sun
  0 siblings, 0 replies; 2+ messages in thread
From: Ce Sun @ 2026-03-31  3:08 UTC (permalink / raw)
  To: amd-gfx; +Cc: Hawking.Zhang, Ce Sun, YiPeng Chai

enable uniras via IP version check

Signed-off-by: Ce Sun <cesun102@amd.com>
Reviewed-by: YiPeng Chai <YiPeng.Chai@amd.com>
---
 drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c b/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c
index 861b1f290475..f5416ffac9cd 100644
--- a/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c
+++ b/drivers/gpu/drm/amd/ras/ras_mgr/amdgpu_ras_mgr.c
@@ -290,8 +290,9 @@ static int amdgpu_ras_mgr_sw_init(struct amdgpu_ip_block *ip_block)
 	/* Disabled by default */
 	con->uniras_enabled = false;
 
-	/* Enabled only in debug mode */
-	if (adev->debug_enable_ras_aca) {
+	if (amdgpu_ip_version(adev, MP0_HWIP, 0) == IP_VERSION(13, 0, 14)) {
+		con->uniras_enabled = true;
+	} else if (adev->debug_enable_ras_aca) {
 		con->uniras_enabled = true;
 		RAS_DEV_INFO(adev, "Debug amdgpu uniras!");
 	}
-- 
2.34.1


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

end of thread, other threads:[~2026-03-31  3:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-31  3:08 [PATCH] drm/amd/ras: enable uniras via IP version check Ce Sun
  -- strict thread matches above, loose matches on Subject: below --
2026-03-31  3:03 Ce Sun

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