]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Skip applying copy engine fuses
authorLucas De Marchi <lucas.demarchi@intel.com>
Mon, 12 Sep 2022 16:19:38 +0000 (09:19 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 13 Sep 2022 22:31:08 +0000 (15:31 -0700)
commit0b3b93a08c61b1bc6c4518a536be5c2be0541c47
tree1792bb6c09f866ab4478efcefe7d6ccfbc7e20e5
parentdc1d4834024c7e79bc4454d1bb7b85d173d323f7
drm/i915: Skip applying copy engine fuses

Support for reading the fuses to check what are the Link Copy engines
was added in commit 52ab3d40b1da ("drm/i915/pvc: read fuses for link
copy engines"). However they were added unconditionally because the
FUSE3 register is present since graphics version 10.

However the bitfield with meml3 fuses only exists since graphics version
12. Moreover, Link Copy engines are currently only available in PVC.
Tying additional copy engines to the meml3 fuses is not correct for
other platforms.

Make sure there is a check for  `12.60 <= ver < 12.70`. Later platforms
may extend this function later if it's needed to fuse off copy engines.

Currently it's harmless as the Link Copy engines are still not exported:
info->engine_mask only has BCS0 set and the register is only read for
platforms that do have it.

Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>
Reviewed-by: Andrzej Hajda <andrzej.hajda@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220912-copy-engine-v1-1-ef92fd81758d@intel.com
drivers/gpu/drm/i915/gt/intel_engine_cs.c