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)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 20 Sep 2023 14:55:37 +0000 (10:55 -0400)
commitc524cd40e8a2a1a36f4898eaf2024beefeb815f3
treed4b09b90f0ab07a8b27f91d709759786e0b657eb
parentf17cc0f11fa18c06b4938c20f0244620199af0b0
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
(cherry picked from commit 4485bd519f5d6d620a29d0547ff3c982bdeeb468)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/gt/intel_engine_cs.c
drivers/gpu/drm/i915/gt/intel_execlists_submission.c