]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Don't GEM_BUG_ON on corrupted G2H CTB
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 17 Jan 2020 08:20:35 +0000 (08:20 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Jan 2020 14:00:45 +0000 (14:00 +0000)
commit1add5096f36c8e842475c8c2b0ef22a3edf2fdf1
treeac07ee13511e009ba71883655981b8a64c9bf676
parentbb1e114d397029b83f50d2958d88aaf7b6137be0
drm/i915/guc: Don't GEM_BUG_ON on corrupted G2H CTB

We should never BUG_ON on any corruption in CTB descriptor as
data there can be also modified by the GuC. Instead we can
use flag "is_in_error" to indicate that we will not process
any further messages over this CTB (until reset). While here
move descriptor error reporting to the function that actually
touches that descriptor.

Note that unexpected content of the specific CT messages, that
still complies with generic CT message format, shall not trigger
disabling whole CTB, as that might just indicate new unsupported
message types.

v2: drop redundant message (Daniele)

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200117082039.65644-2-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/gt/uc/intel_guc_ct.c