]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/params: add i915 parameters to debugfs
authorJani Nikula <jani.nikula@intel.com>
Thu, 5 Dec 2019 15:43:40 +0000 (17:43 +0200)
committerJani Nikula <jani.nikula@intel.com>
Wed, 15 Jan 2020 13:10:16 +0000 (15:10 +0200)
commitc43c5a8818d4c399e38f636495fb02a8ff8a029a
tree8e3c1cf75e2e9cb435b2715bbedbeb114efe4f4e
parentf22fd334890e0e24305aaa7249ff56baba082eca
drm/i915/params: add i915 parameters to debugfs

Add a debugfs subdirectory i915_params with all the i915 module
parameters. This is a first step, with lots of boilerplate, and not much
benefit yet.

This will result in a new device specific debugfs directory at
/sys/kernel/debug/dri/<N>/i915_params duplicating the module specific
sysfs directory at /sys/module/i915/parameters/. Going forward, all
users of the parameters should use the debugfs, with the module
parameters being phased out.

Add debugfs permissions to I915_PARAMS_FOR_EACH(). This duplicates the
mode with module parameter sysfs, but the goal is to make the module
parameters read-only initial values for device specific parameters.

0 mode will bypass debugfs creation. Use it for verbose_state_checks
which will need special attention in follow-up work.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/600101c8433e7caf9303663fc85a9972fa1f05e7.1575560168.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/i915_debugfs.c
drivers/gpu/drm/i915/i915_debugfs_params.c [new file with mode: 0644]
drivers/gpu/drm/i915/i915_debugfs_params.h [new file with mode: 0644]
drivers/gpu/drm/i915/i915_params.c
drivers/gpu/drm/i915/i915_params.h