drm/i915/lmem: Fail driver init if LMEM training failed
authorMatt Roper <matthew.d.roper@intel.com>
Tue, 20 Apr 2021 13:18:42 +0000 (14:18 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Wed, 21 Apr 2021 11:06:53 +0000 (12:06 +0100)
commitc256af0d6c1846db9af357a913b277b566ca3797
treeea93a52b830aa2212d0cd917a862844e78892364
parent0c1a77cbdafb0e1874a42284479f3d6023b91f90
drm/i915/lmem: Fail driver init if LMEM training failed

Boot firmware performs memory training and health assessment during
startup.  If the memory training fails, the firmware will consider the
GPU unusable and will instruct the punit to keep the GT powered down.
If this happens, our driver will be unable to communicate with the GT
(all GT registers will read back as 0, forcewake requests will timeout,
etc.) so we should abort driver initialization if this happens.  We can
confirm that LMEM was initialized successfully via sgunit register
GU_CNTL.

Bspec: 53111
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Cc: Caz Yokoyama <Caz.Yokoyama@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210420131842.164163-5-matthew.auld@intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_uncore.c