]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Request RP0 before loading firmware
authorVinay Belgaumkar <vinay.belgaumkar@intel.com>
Thu, 16 Dec 2021 23:30:22 +0000 (15:30 -0800)
committerJohn Harrison <John.C.Harrison@Intel.com>
Tue, 21 Dec 2021 19:24:55 +0000 (11:24 -0800)
commit34d16459f728b317136d82d9bc1dd1164acd5482
tree5cc9f5472c02425eff9963109aeec239466fe2e0
parentf8e6ebc0c38ad2619e80ce9097b928bf94af3a1d
drm/i915/guc: Request RP0 before loading firmware

By default, GT (and GuC) run at RPn. Requesting for RP0
before firmware load can speed up DMA and HuC auth as well.
In addition to writing to 0xA008, we also need to enable
swreq in 0xA024 so that Punit will pay heed to our request.

SLPC will restore the frequency back to RPn after initialization,
but we need to manually do that for the non-SLPC path.

We don't need a manual override in the SLPC disabled case, just
use the intel_rps_set function to ensure consistent RPS state.

Signed-off-by: Vinay Belgaumkar <vinay.belgaumkar@intel.com>
Reviewed-by: Sujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211216233022.21351-1-vinay.belgaumkar@intel.com
drivers/gpu/drm/i915/gt/intel_rps.c
drivers/gpu/drm/i915/gt/intel_rps.h
drivers/gpu/drm/i915/gt/uc/intel_uc.c
drivers/gpu/drm/i915/i915_reg.h