intel-xe.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] drm/xe/drm_ras: Move has_drm_ras check to drm_ras layer
@ 2026-08-03  8:08 Raag Jadav
  2026-08-03  9:03 ` Michal Wajdeczko
                   ` (8 more replies)
  0 siblings, 9 replies; 11+ messages in thread
From: Raag Jadav @ 2026-08-03  8:08 UTC (permalink / raw)
  To: intel-xe
  Cc: riana.tauro, michal.wajdeczko, matthew.d.roper, mallesh.koujalagi,
	Raag Jadav

has_drm_ras flag is meant to facilitate drm_ras feature. Move it to the
correct layer where it belogs.

Fixes: 63dfab5786ca ("drm/xe/xe_ras: Add drm_ras feature flag")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
---
 drivers/gpu/drm/xe/xe_drm_ras.c | 3 +++
 drivers/gpu/drm/xe/xe_ras.c     | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_drm_ras.c b/drivers/gpu/drm/xe/xe_drm_ras.c
index 4afa2ad98300..a23cfb49361b 100644
--- a/drivers/gpu/drm/xe/xe_drm_ras.c
+++ b/drivers/gpu/drm/xe/xe_drm_ras.c
@@ -233,6 +233,9 @@ int xe_drm_ras_init(struct xe_device *xe)
 	struct drm_ras_node *node;
 	int err;
 
+	if (!xe->info.has_drm_ras)
+		return 0;
+
 	node = drmm_kcalloc(&xe->drm, DRM_XE_RAS_ERR_SEV_MAX, sizeof(*node), GFP_KERNEL);
 	if (!node)
 		return -ENOMEM;
diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c
index 28123f08e513..f7af4da8172c 100644
--- a/drivers/gpu/drm/xe/xe_ras.c
+++ b/drivers/gpu/drm/xe/xe_ras.c
@@ -816,9 +816,6 @@ void xe_ras_init(struct xe_device *xe)
 {
 	int ret;
 
-	if (!xe->info.has_drm_ras)
-		return;
-
 	xe_drm_ras_init(xe);
 
 	if (!xe->info.has_sysctrl)
-- 
2.43.0


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

end of thread, other threads:[~2026-08-10 10:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-03  8:08 [PATCH v1] drm/xe/drm_ras: Move has_drm_ras check to drm_ras layer Raag Jadav
2026-08-03  9:03 ` Michal Wajdeczko
2026-08-03  9:42   ` Raag Jadav
2026-08-03 12:31 ` ✓ CI.KUnit: success for " Patchwork
2026-08-03 14:29 ` ✓ Xe.CI.FULL: " Patchwork
2026-08-04 10:23 ` ✓ CI.KUnit: " Patchwork
2026-08-05  5:10 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-08-05  6:23 ` ✓ CI.KUnit: success for drm/xe/drm_ras: Move has_drm_ras check to drm_ras layer (rev2) Patchwork
2026-08-05  7:18 ` ✗ Xe.CI.BAT: failure " Patchwork
2026-08-05 13:42 ` ✓ Xe.CI.FULL: success " Patchwork
2026-08-10 10:34 ` [PATCH v1] drm/xe/drm_ras: Move has_drm_ras check to drm_ras layer Tauro, Riana

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).