]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
i915/pmu: Move execlist stats initialization to execlist specific setup
authorUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Tue, 12 Sep 2023 21:22:47 +0000 (14:22 -0700)
committerUmesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Fri, 15 Sep 2023 16:29:01 +0000 (09:29 -0700)
commit4485bd519f5d6d620a29d0547ff3c982bdeeb468
tree4a48246f261f1f181f45188b64ab1a91b0fe2cf9
parent98fa06e44e3a773f41935323ed1dae7012819b70
i915/pmu: Move execlist stats initialization to execlist specific setup

engine->stats is a union of execlist and guc stat objects. When execlist
specific fields are initialized, the initial state of guc stats is
affected. This results in bad busyness values when using GuC mode. Move
the execlist initialization from common code to execlist specific code.

Fixes: 77cdd054dd2c ("drm/i915/pmu: Connect engine busyness stats from GuC to pmu")
Signed-off-by: Umesh Nerlige Ramappa <umesh.nerlige.ramappa@intel.com>
Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230912212247.1828681-1-umesh.nerlige.ramappa@intel.com
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_execlists_submission.c