]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe/configfs: Prepare to filter-out configfs attributes
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 2 Sep 2025 13:17:43 +0000 (15:17 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 4 Sep 2025 20:32:46 +0000 (22:32 +0200)
commitb076d321771204d4b711df99e904dc2efdc78856
tree203759d908097cefe7fd3c619b45558a21f6f798
parent079a5c83dbd23db7a6eed8f558cf75e264d8a17b
drm/xe/configfs: Prepare to filter-out configfs attributes

Implement empty ops.is_visible hook to allow filtering-out any not
supported attributes, as not all of them are applicable on all xe
platforms.

Since during creation of each new configfs directory we are looking
for xe device descriptor to validate that xe driver supports given
PCI device, store reference to that descriptor to allow later use
while doing attribute filtering.

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