]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/configfs: Only allow configurations for supported devices
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Thu, 31 Jul 2025 19:33:38 +0000 (21:33 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 5 Aug 2025 19:30:48 +0000 (12:30 -0700)
commitb4687422c322e5afc0f5d9425b29080c06dc17b9
tree8a5cf02debb74690035165d6a843813e15b9803e
parent737a72d7e0231123ae3f1578845d9a23b6d02a60
drm/xe/configfs: Only allow configurations for supported devices

Since we already lookup for the real PCI device before we allow
to create its directory config, we might also check if the found
device matches our driver PCI ID list. This will prevent creation
of the directory configs for the unsupported devices.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250731193339.179829-11-michal.wajdeczko@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_configfs.c