]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Don't read SOFT_SCRATCH(15) on MMIO error
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 28 May 2018 17:16:18 +0000 (17:16 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 31 May 2018 18:22:49 +0000 (19:22 +0100)
commit39fcf2e94a0a8b089ac98c18e67aed69e9ef04a4
treec6f8cd976c0d4001a87c1957944cbc7eb5ad0d19
parent70d0790af171443f4518219a83bcae3bd826e5de
drm/i915/guc: Don't read SOFT_SCRATCH(15) on MMIO error

SOFT_SCRATCH(15) is used by GuC for sending MMIO GuC events to host and
those events are now handled by intel_guc_to_host_event_handler_mmio().

We should not try to read it on MMIO action error as 1) we may be using
different set of registers for GuC MMIO communication, and 2) GuC may
use CTB mechanism for sending events to host.

While here, upgrade error message to DRM_ERROR.

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180528171618.10436-1-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/intel_guc.c