]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6cc7f7b2f99f3d675c058173d3fe8d45a8e3269d
treed155bcc22185cc3d0dd7046608c18e67807be5b0
parent7a3f8f181b12ce524f4536e6676605181e4c6b11
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