]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Show per-engine default property values in sysfs
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 May 2020 06:29:05 +0000 (07:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 May 2020 07:25:05 +0000 (08:25 +0100)
commit7a0ba6b43bc0b0078df5504393fd3966a5c7e808
tree9cbdcd5cf8a8c3547628ee560107a4b462ad9138
parent18e4af04d2183e99e6808f55dcef30f66ac0b155
drm/i915: Show per-engine default property values in sysfs

By providing the default values configured into the kernel via sysfs, it
is much more convenient for userspace to restore those sane defaults, or
at least know what are considered good baseline. This is useful, for
example, to cleanup after any failed userspace prior to commencing new
jobs.

/sys/class/drm/card0/engine/rcs0/
├── capabilities
├── class
├── .defaults
│   ├── heartbeat_interval_ms
│   ├── max_busywait_duration_ns
│   ├── preempt_timeout_ms
│   ├── stop_timeout_ms
│   └── timeslice_duration_ms
├── heartbeat_interval_ms
├── instance
├── known_capabilities
├── max_busywait_duration_ns
├── mmio_base
├── name
├── preempt_timeout_ms
├── stop_timeout_ms
└── timeslice_duration_ms

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Maciej Patelczyk <maciej.patelczyk@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200514062905.28668-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_engine_types.h
drivers/gpu/drm/i915/gt/sysfs_engines.c