drm/i915/mcr: Hold forcewake and MCR lock over PPAT setup
authorMatt Roper <matthew.d.roper@intel.com>
Wed, 30 Nov 2022 15:58:52 +0000 (07:58 -0800)
committerMatt Roper <matthew.d.roper@intel.com>
Thu, 1 Dec 2022 20:58:31 +0000 (12:58 -0800)
commit70b612084586402d39aabf7d76c605914cc3c2b6
tree5a431044af5f66c1ce11a8807647129b4e7f968a
parente3995e08a39a41691742b380023a0d480247afb0
drm/i915/mcr: Hold forcewake and MCR lock over PPAT setup

PPAT setup involves a series of multicast writes.  This can be optimized
slightly be acquiring forcewake and the steering lock just once for the
entire sequence.

v2:
 - We should use FW_REG_WRITE instead of FW_REG_READ.  (Bala)

Suggested-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20221130155852.19601-1-matthew.d.roper@intel.com
drivers/gpu/drm/i915/gt/intel_gtt.c