From db3d8338bacbfc734d246eaccfbe5b19ad81d7d4 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 28 Feb 2020 13:17:15 +0000 Subject: 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 Reviewed-by: Steve Carbonari Tested-by: Steve Carbonari Link: https://patchwork.freedesktop.org/patch/msgid/20200228131716.3243616-6-chris@chris-wilson.co.uk --- drivers/gpu/drm/i915/Kconfig.profile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'drivers/gpu/drm/i915/Kconfig.profile') diff --git a/drivers/gpu/drm/i915/Kconfig.profile b/drivers/gpu/drm/i915/Kconfig.profile index 5f4ec3aec1d2..1f4e98a8532f 100644 --- a/drivers/gpu/drm/i915/Kconfig.profile +++ b/drivers/gpu/drm/i915/Kconfig.profile @@ -33,6 +33,9 @@ config DRM_I915_PREEMPT_TIMEOUT expires, the HW will be reset to allow the more important context to execute. + This is adjustable via + /sys/class/drm/card?/engine/*/preempt_timeout_ms + May be 0 to disable the timeout. config DRM_I915_MAX_REQUEST_BUSYWAIT -- cgit v1.2.3