]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6735f16b0fe5acf7443c22b89b9781c33f020fd9
treeea93a52b830aa2212d0cd917a862844e78892364
parente64bd333fc2209ad2f78c92892335d33e39c0b48
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