[Intel-gfx] [PATCH 0/2] drm/i915: debugfs device parameters

Jani Nikula jani.nikula at intel.com
Thu Dec 5 15:43:39 UTC 2019


This is based on patches I sent over a year ago, adding device
parameters to debugfs.

This would be the first step, making the debugfs only an alternative
interface to the module parameters. The path forward would be:

* Add debugfs interface to parameters (this patch)

* Modify IGT to use this debugfs param interface if available, falling
  back to module param sysfs (for older kernels)

* Make module params read-only

* Make module params the initial values for really device specific
  parameters, i.e. duplicate the params struct in dev_priv and have the
  debugfs interface modify only that

* Start axing out unnecessary module parameters that can live in debugfs
  only

I tested this stuff way back when, this is an untested rebase for
comments.

BR,
Jani.



Jani Nikula (2):
  drm/i915/params: add i915 parameters to debugfs
  drm/i915/params: support bool values for int and uint params

 drivers/gpu/drm/i915/Makefile              |   5 +-
 drivers/gpu/drm/i915/i915_debugfs.c        |   4 +-
 drivers/gpu/drm/i915/i915_debugfs_params.c | 247 +++++++++++++++++++++
 drivers/gpu/drm/i915/i915_debugfs_params.h |  14 ++
 drivers/gpu/drm/i915/i915_params.c         |   2 +-
 drivers/gpu/drm/i915/i915_params.h         |  76 ++++---
 6 files changed, 308 insertions(+), 40 deletions(-)
 create mode 100644 drivers/gpu/drm/i915/i915_debugfs_params.c
 create mode 100644 drivers/gpu/drm/i915/i915_debugfs_params.h

-- 
2.20.1



More information about the Intel-gfx mailing list