]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe: Normalize default param values
authorLucas De Marchi <lucas.demarchi@intel.com>
Thu, 26 Jun 2025 21:25:53 +0000 (14:25 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 11 Jul 2025 19:56:38 +0000 (12:56 -0700)
commit7b6db1731a642be2ac89168d6aa9be6383796844
tree2fa77d8f9c178d69d2c5b346a28adae9d532db43
parent81e139db6900503a2e68009764054fad128fbf95
drm/xe: Normalize default param values

Document xe module params with the default values following a similar
strategy for all of them:

1) Define a DEFAULT_* macro with the default value. When the
   value can't be directly stringified, also define a *_STR
   variant
2) Use __stringify() or the _STR variant to make sure the
   default value shows up in the param description

This allows us to show the correct default according to the
configuration. max_vfs for example was wrongly documented for
CONFIG_DRM_XE_DEBUG and svm_notifier_size didn't have its default
documented.

Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://lore.kernel.org/r/20250626-guc-log-level-v3-1-c3ed8b452e91@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_module.c