]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe/configfs: Block runtime attribute changes
authorLucas De Marchi <lucas.demarchi@intel.com>
Tue, 26 Aug 2025 15:32:11 +0000 (08:32 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Wed, 27 Aug 2025 18:33:03 +0000 (11:33 -0700)
commit2674f1ef29f46ae81464d0ac44b7824deb9de85c
treed1bc81acc7e3606214130aae2bc7abde256e9f10
parent95d0883ac8105717f59c2dcdc0d8b9150f13aa12
drm/xe/configfs: Block runtime attribute changes

Although it's possible to change the attributes in runtime, they have no
effect after the driver is already bound to the device. Check for that
and return -EBUSY in that case.

This should help users understand what's going on when the behavior is
not changing even if the value from the configfs is "right", but it got
to that state too late.

Reviewed-by: Riana Tauro <riana.tauro@intel.com>
Link: https://lore.kernel.org/r/20250826153210.3068808-2-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_configfs.c