diff options
| author | Riana Tauro <riana.tauro@intel.com> | 2026-06-18 11:36:39 +0530 |
|---|---|---|
| committer | Riana Tauro <riana.tauro@intel.com> | 2026-06-22 10:27:30 +0530 |
| commit | 8a1f196b37bf14c7f8c6793d235e66adeef6c2c5 (patch) | |
| tree | 4a5e9bc4a1b11d908e39ddd79c681af5ff6ec29f /drivers/gpu/drm/xe/xe_ras.c | |
| parent | 2f02918ab20397aa5c6b03f46db6bd7024a0ce6a (diff) | |
| download | linux-next-8a1f196b37bf14c7f8c6793d235e66adeef6c2c5.tar.gz linux-next-8a1f196b37bf14c7f8c6793d235e66adeef6c2c5.zip | |
drm/xe: Move xe drm_ras initialization
Move xe drm_ras registration to RAS initialization flow and keep
hardware error initialization for processing errors reported
via irq.
Move soc remapper and system controller initialization
up in xe_device_probe as RAS initialization depends on both.
Cc: Anoop Vijay <anoop.c.vijay@intel.com>
Cc: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Raag Jadav <raag.jadav@intel.com>
Link: https://patch.msgid.link/20260618060633.2790109-13-riana.tauro@intel.com
Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_ras.c')
| -rw-r--r-- | drivers/gpu/drm/xe/xe_ras.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_ras.c b/drivers/gpu/drm/xe/xe_ras.c index a11ea841f9f1..71ee9eeb1896 100644 --- a/drivers/gpu/drm/xe/xe_ras.c +++ b/drivers/gpu/drm/xe/xe_ras.c @@ -4,6 +4,7 @@ */ #include "xe_device.h" +#include "xe_drm_ras.h" #include "xe_pm.h" #include "xe_printk.h" #include "xe_ras.h" @@ -268,3 +269,17 @@ int xe_ras_clear_counter(struct xe_device *xe, u8 severity, u8 component) return 0; } + +/** + * xe_ras_init - Initialize Xe RAS + * @xe: xe device instance + * + * Register drm_ras nodes + */ +void xe_ras_init(struct xe_device *xe) +{ + if (xe->info.platform != XE_PVC) + return; + + xe_drm_ras_init(xe); +} |
