Skip to content

RFC Default request/fence expiry + watchdog

Tvrtko Ursulin dri-devel intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6drm/i915: Individual request cancellationdrivers/gpu/drm/i915/gt/intel_engine_heartbeat.c drivers/gpu/drm/i915/gt/intel_execlists_submission.c drivers/gpu/drm/i915/i915_request.c +2 more+360 -62 replies
2/6drm/i915: Restrict sentinel requests furtherdrivers/gpu/drm/i915/gt/intel_execlists_submission.c+1 -10 replies
3/6drm/i915: Request watchdog infrastructuredrivers/gpu/drm/i915/gt/intel_context_types.h drivers/gpu/drm/i915/gt/intel_execlists_submission.h drivers/gpu/drm/i915/gt/intel_gt.c +5 more+99 -00 replies
4/6drm/i915: Allow userspace to configure the watchdogdrivers/gpu/drm/i915/gem/i915_gem_context.c drivers/gpu/drm/i915/gem/i915_gem_context_types.h drivers/gpu/drm/i915/gt/intel_context_param.h +1 more+75 -21 reply
5/6drm/i915: Fail too long user submissions by defaultdrivers/gpu/drm/i915/Kconfig.profile drivers/gpu/drm/i915/gem/i915_gem_context.c+48 -71 reply
6/6drm/i915: Allow configuring default request expiry via modparamdrivers/gpu/drm/i915/gem/i915_gem_context.c drivers/gpu/drm/i915/i915_params.c drivers/gpu/drm/i915/i915_params.h+11 -31 reply

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchDaniel Vetter
1/6
2/6
3/6
4/6
5/6
6/6A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC 0/6] Default request/fence expiry + watchdog

From: Tvrtko Ursulin <[email protected]>

"Watchdog" aka "restoring hangcheck" aka default request/fence expiry - first post of a somewhat controversial feature so may be somewhat rough in commit messages, commentary and implementation. So only RFC for now.

I parenthesise the "watchdog" becuase in classical sense watchdog would allow userspace to ping it and so remain alive.

I parenthesise "restoring hangcheck" because this series, contrary to the old hangcheck, is not looking at whether the workload is making any progress from the kernel side either. (Althoguh disclaimer my memory may be leaky - Daniel suspects old hangcheck had some stricter, more indiscriminatory, angles to it. But apart from being prone to both false negatives and false positives I can't remember that myself.)

Short version - ask is to fail any user submissions after a set time period. In this RFC that time is ten seconds.

Time counts from the moment user submission is "runnable" (implicit and explicit dependencies have been cleared) and keeps counting regardless of the GPU contetion caused by other users of the system. So semantics are really a bit weak but again, I understand this is really wanted by the DRM core.

As an attempt to compensate for this brutish nature, I proposed adding extendable configurability via a context param as part of the series. That could allow userspace to pick different semantics (always going more restrictive than the system default) and so implement interesting things like long desired media watchdog. Module trickyness of the implementation there.

Test-with: [email protected]
Cc: Daniel Vetter <[email protected]>

Chris Wilson (1):
drm/i915: Individual request cancellation

Tvrtko Ursulin (5):
drm/i915: Restrict sentinel requests further drm/i915: Request watchdog infrastructure
drm/i915: Allow userspace to configure the watchdog drm/i915: Fail too long user submissions by default drm/i915: Allow configuring default request expiry via modparam

 drivers/gpu/drm/i915/Kconfig.profile          |   8 +
 drivers/gpu/drm/i915/gem/i915_gem_context.c   |  92 ++++++
 .../gpu/drm/i915/gem/i915_gem_context_types.h |   4 +
 drivers/gpu/drm/i915/gt/intel_context_param.h |  11 +-
 drivers/gpu/drm/i915/gt/intel_context_types.h |   4 +
 .../gpu/drm/i915/gt/intel_engine_heartbeat.c  |   1 +
 .../drm/i915/gt/intel_execlists_submission.c  |  11 +-
 .../drm/i915/gt/intel_execlists_submission.h  |   2 +
 drivers/gpu/drm/i915/gt/intel_gt.c            |   3 +
 drivers/gpu/drm/i915/gt/intel_gt.h            |   2 +
 drivers/gpu/drm/i915/gt/intel_gt_requests.c   |  21 ++
 drivers/gpu/drm/i915/gt/intel_gt_types.h      |   7 +
 drivers/gpu/drm/i915/i915_params.c            |   5 +
 drivers/gpu/drm/i915/i915_params.h            |   1 +
 drivers/gpu/drm/i915/i915_request.c           | 129 +++++++-
 drivers/gpu/drm/i915/i915_request.h           |  12 +-
 drivers/gpu/drm/i915/selftests/i915_request.c | 275 ++++++++++++++++++
 include/uapi/drm/i915_drm.h                   |   5 +-
 18 files changed, 584 insertions(+), 9 deletions(-)
Signature · 6 lines
2.27.0

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx