summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/gt/intel_engine_cs.c
diff options
context:
space:
mode:
authorJohn Harrison <John.C.Harrison@Intel.com>2022-10-06 14:38:12 -0700
committerJohn Harrison <John.C.Harrison@Intel.com>2022-10-24 12:12:36 -0700
commit47daf84a8bfbc0ff7342b75fa2175591b64ef8d7 (patch)
tree88bd6cbabc73e3fa645594379b827f243ebd40bb /drivers/gpu/drm/i915/gt/intel_engine_cs.c
parentc3bd49cd9a1043b963331e7fd874b380bed3f2bd (diff)
downloadlinux-47daf84a8bfbc0ff7342b75fa2175591b64ef8d7.tar.gz
linux-47daf84a8bfbc0ff7342b75fa2175591b64ef8d7.tar.bz2
linux-47daf84a8bfbc0ff7342b75fa2175591b64ef8d7.zip
drm/i915: Make the heartbeat play nice with long pre-emption timeouts
Compute workloads are inherently not pre-emptible for long periods on current hardware. As a workaround for this, the pre-emption timeout for compute capable engines was disabled. This is undesirable with GuC submission as it prevents per engine reset of hung contexts. Hence the next patch will re-enable the timeout but bumped up by an order of magnitude. However, the heartbeat might not respect that. Depending upon current activity, a pre-emption to the heartbeat pulse might not even be attempted until the last heartbeat period. Which means that only one period is granted for the pre-emption to occur. With the aforesaid bump, the pre-emption timeout could be significantly larger than this heartbeat period. So adjust the heartbeat code to take the pre-emption timeout into account. When it reaches the final (high priority) period, it now ensures the delay before hitting reset is bigger than the pre-emption timeout. v2: Fix for selftests which adjust the heartbeat period manually. v3: Add FIXME comment about selftests. Add extra FIXME comment and drm_notices when setting heartbeat to a non-default value (review feedback from Tvrtko) Signed-off-by: John Harrison <John.C.Harrison@Intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20221006213813.1563435-4-John.C.Harrison@Intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/gt/intel_engine_cs.c')
0 files changed, 0 insertions, 0 deletions