All of lore.kernel.org
 help / color / mirror / Atom feed
* [Intel-gfx] [PATCH 0/2] drm/i915: debugfs device parameters
@ 2019-12-05 15:43 Jani Nikula
  2019-12-05 15:43 ` [Intel-gfx] [PATCH 1/2] drm/i915/params: add i915 parameters to debugfs Jani Nikula
                   ` (5 more replies)
  0 siblings, 6 replies; 15+ messages in thread
From: Jani Nikula @ 2019-12-05 15:43 UTC (permalink / raw)
  To: intel-gfx; +Cc: jani.nikula

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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-01-15 13:20 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-05 15:43 [Intel-gfx] [PATCH 0/2] drm/i915: debugfs device parameters Jani Nikula
2019-12-05 15:43 ` [Intel-gfx] [PATCH 1/2] drm/i915/params: add i915 parameters to debugfs Jani Nikula
2019-12-05 17:19   ` Tvrtko Ursulin
2019-12-09  9:53     ` Jani Nikula
2020-01-08 14:45   ` Chris Wilson
2020-01-08 15:07     ` Jani Nikula
2020-01-15 10:04   ` Chris Wilson
2020-01-15 10:39     ` Jani Nikula
2020-01-15 13:12       ` Jani Nikula
2019-12-05 15:43 ` [Intel-gfx] [PATCH 2/2] drm/i915/params: support bool values for int and uint params Jani Nikula
2020-01-15 10:05   ` Chris Wilson
2019-12-05 17:24 ` [Intel-gfx] ✗ Fi.CI.CHECKPATCH: warning for drm/i915: debugfs device parameters Patchwork
2019-12-05 17:26 ` [Intel-gfx] ✗ Fi.CI.SPARSE: " Patchwork
2019-12-05 17:56 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2019-12-05 23:06 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.