]> Gentwo Git Trees - linux/.git/commit
drm/xe/configfs: Don't expose survivability_mode if not applicable
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 2 Sep 2025 13:17:44 +0000 (15:17 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 4 Sep 2025 20:33:51 +0000 (22:33 +0200)
commit3088f485dea2e98c8acb07495759363c5ae546bd
treeb0a630f8a006c27e9c8b81d2b7c1b4e206274250
parentb076d321771204d4b711df99e904dc2efdc78856
drm/xe/configfs: Don't expose survivability_mode if not applicable

The survivability_mode attribute is applicable only for DGFX and
platforms newer than BATTLEMAGE. Use .is_visible() hook to hide
this attribute when above conditions are not met. Remove code that
was trying to fix such configuration during the runtime.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Stuart Summers <stuart.summers@intel.com>
Link: https://lore.kernel.org/r/20250902131744.5076-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_configfs.c
drivers/gpu/drm/xe/xe_configfs.h
drivers/gpu/drm/xe/xe_survivability_mode.c