• Chris Wilson's avatar
    drm/i915: Show per-engine default property values in sysfs · 7a0ba6b4
    Chris Wilson authored
    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: default avatarChris Wilson <chris@chris-wilson.co.uk>
    Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
    Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
    Reviewed-by: default avatarMaciej Patelczyk <maciej.patelczyk@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20200514062905.28668-1-chris@chris-wilson.co.uk
    7a0ba6b4
intel_engine_cs.c 44.5 KB