From 81bd03d4eaef3b673da9fa75d037354d2ce32b64 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 9 Oct 2023 02:23:51 +0000 Subject: [PATCH] i915/pmu: Move execlist stats initialization to execlist specific setup From Umesh Nerlige Ramappa 987a7f5311ba1fd4ccf3637c09e6424741aacd01 in linux-6.1.y/6.1.56 c524cd40e8a2a1a36f4898eaf2024beefeb815f3 in mainline linux --- sys/dev/pci/drm/i915/gt/intel_engine_cs.c | 1 - sys/dev/pci/drm/i915/gt/intel_execlists_submission.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/pci/drm/i915/gt/intel_engine_cs.c b/sys/dev/pci/drm/i915/gt/intel_engine_cs.c index c8ae8682156..1b601836f6d 100644 --- a/sys/dev/pci/drm/i915/gt/intel_engine_cs.c +++ b/sys/dev/pci/drm/i915/gt/intel_engine_cs.c @@ -541,7 +541,6 @@ static int intel_engine_setup(struct intel_gt *gt, enum intel_engine_id id, DRIVER_CAPS(i915)->has_logical_contexts = true; ewma__engine_latency_init(&engine->latency); - seqcount_init(&engine->stats.execlists.lock); ATOMIC_INIT_NOTIFIER_HEAD(&engine->context_status_notifier); diff --git a/sys/dev/pci/drm/i915/gt/intel_execlists_submission.c b/sys/dev/pci/drm/i915/gt/intel_execlists_submission.c index c93b715c2ae..558a5f1bb89 100644 --- a/sys/dev/pci/drm/i915/gt/intel_execlists_submission.c +++ b/sys/dev/pci/drm/i915/gt/intel_execlists_submission.c @@ -3558,6 +3558,8 @@ int intel_execlists_submission_setup(struct intel_engine_cs *engine) logical_ring_default_vfuncs(engine); logical_ring_default_irqs(engine); + seqcount_init(&engine->stats.execlists.lock); + if (engine->flags & I915_ENGINE_HAS_RCS_REG_STATE) rcs_submission_override(engine); -- 2.20.1