]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Expose preempt reset timeout via sysfs
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Feb 2020 13:17:15 +0000 (13:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 28 Feb 2020 22:03:46 +0000 (22:03 +0000)
commit619cd54ed14822d3d98e35b63e0378f81f7270f6
treed358edbe0fd333e37bfcb3d895bd564ee7406e06
parent192ca2be761b59bf988e53b6e9b26dda1ceb6880
drm/i915/gt: Expose preempt reset timeout via sysfs

After initialising a preemption request, we give the current resident a
small amount of time to vacate the GPU. The preemption request is for a
higher priority context and should be immediate to maintain high
quality of service (and avoid priority inversion). However, the
preemption granularity of the GPU can be quite coarse and so we need a
compromise.

The preempt timeout can be adjusted per-engine using,

/sys/class/drm/card?/engine/*/preempt_timeout_ms

and can be disabled by setting it to 0.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Steve Carbonari <steven.carbonari@intel.com>
Tested-by: Steve Carbonari <steven.carbonari@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200228131716.3243616-6-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/Kconfig.profile
drivers/gpu/drm/i915/gt/sysfs_engines.c