drm/xe/drm_ras: Move has_drm_ras check to drm_ras layer

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

Fixes: 63dfab5786 ("drm/xe/xe_ras: Add drm_ras feature flag")
Signed-off-by: Raag Jadav <raag.jadav@intel.com>
Reviewed-by: Riana Tauro <riana.tauro@intel.com>
Link: https://patch.msgid.link/20260810124101.105832-1-raag.jadav@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
(cherry picked from commit 9f15135fe2dd9cff3caccab2f6ff4df86804b3c2)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
Raag Jadav 2026-08-10 18:11:01 +05:30 committed by Rodrigo Vivi
parent 3799dc5d77
commit f3c0140332
No known key found for this signature in database
GPG Key ID: FA625F640EEB13CA
2 changed files with 3 additions and 3 deletions

View File

@ -199,6 +199,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;

View File

@ -681,9 +681,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)