]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Add configfs to enable survivability mode
authorRiana Tauro <riana.tauro@intel.com>
Mon, 7 Apr 2025 05:14:11 +0000 (10:44 +0530)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 9 Apr 2025 05:23:59 +0000 (22:23 -0700)
commit16280ded45fba1216d1d4c6acfc20c2d5b45ef50
treea73ac4f8e2516b6142984b5ff42a448e6d67efdb
parent1e1981b16bb1bbe2fafa57ed439b45cb5b34e32d
drm/xe: Add configfs to enable survivability mode

Registers a configfs subsystem called 'xe' that creates a
directory in the mounted configfs directory (/sys/kernel/config)
Userspace can then create the device that has to be configured
under the xe directory

mkdir /sys/kernel/config/xe/0000:03:00.0

The device created will have the following attributes to be
configured

/sys/kernel/config/xe/
.. 0000:03:00.0/
... survivability_mode

v2: fix kernel-doc
    fix return value (Lucas)

v3: fix kernel-doc (Lucas)

Signed-off-by: Riana Tauro <riana.tauro@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://lore.kernel.org/r/20250407051414.1651616-2-riana.tauro@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Documentation/gpu/xe/index.rst
Documentation/gpu/xe/xe_configfs.rst [new file with mode: 0644]
drivers/gpu/drm/xe/Makefile
drivers/gpu/drm/xe/xe_configfs.c [new file with mode: 0644]
drivers/gpu/drm/xe/xe_configfs.h [new file with mode: 0644]
drivers/gpu/drm/xe/xe_module.c