]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/configfs: Always return consistent max_vfs value
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Wed, 21 Jan 2026 21:42:14 +0000 (22:42 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 3 Feb 2026 11:02:05 +0000 (12:02 +0100)
commit0dfc7306b9600127afce5dbcb53389ca72237031
tree9b8721a8802770c4b0fc2e4e24085fd11eb75746
parent56dfa9fc39f0d03ca165f84382d088825f5e5404
drm/xe/configfs: Always return consistent max_vfs value

The max_vfs parameter used by the Xe driver has its default value
definition, but it could be altered by the module parameter or by
the device specific configfs attribute.

To avoid mistakes or code duplication, always rely on the configfs
helper (or stub), which will provide necessary fallback if needed.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Piotr Piórkowski <piotr.piorkowski@intel.com>
Acked-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patch.msgid.link/20260121214218.2817-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_configfs.c
drivers/gpu/drm/xe/xe_configfs.h
drivers/gpu/drm/xe/xe_sriov_pf.c