drm/i915/guc: Ensure multi-lrc fini breadcrumb math is correct
authorMatthew Brost <matthew.brost@intel.com>
Wed, 19 Jan 2022 21:06:39 +0000 (13:06 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Tue, 25 Jan 2022 18:43:24 +0000 (10:43 -0800)
commit85e97b1dd5d29b66a249406624734843b71c0a0c
treed155bcc22185cc3d0dd7046608c18e67807be5b0
parentff3aeb34deb24f40626c171ce1cfd447a2edafc8
drm/i915/guc: Ensure multi-lrc fini breadcrumb math is correct

Realized that the GuC multi-lrc fini breadcrumb emit code is very
delicate as the math this code does relies on functions it calls to emit
a certain number of DWs. Add a few GEM_BUG_ONs to assert the math is
correct.

v2:
  - Rebase + resend for CI
 (Checkpatch)
  - Fix blank line warning

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220119210639.33053-1-matthew.brost@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_submission.c