[Intel-gfx] [PATCH 0/3] Engine busyness v2
John.C.Harrison at Intel.com
John.C.Harrison at Intel.com
Fri Sep 22 22:25:07 UTC 2023
From: John Harrison <John.C.Harrison at Intel.com>
The latest GuC implements a new and improved scheme for tracking
engine busyness. So make use of it.
Note that this change comes along with a new set of PMU counters. The
old counters have a fundamental problem that they are defined in terms
of wall time but the sampling is now all done by the GPU in terms of
clock ticks. This leads to issues with timebase conversion, some of
which are non-trivial.
For existing platforms, the old counters will still be updated by the
new scheme and will still suffer all the same issues. For newer
platforms (MTL onwards), the old counters are no longer supported.
Instead, there is a new set of tick based counters. These include the
actual busyness count per engine plus a total ticks count. The
intention is that they should be queried as an atomic pair and used
together to determine a busyness percentage. No assumptions may be made
about tick frequencies or relations to wall time.
Test-with: 20230922215233.2438200-1-umesh.nerlige.ramappa at intel.com
Signed-off-by: John Harrison <John.C.Harrison at Intel.com>
John Harrison (1):
drm/i915/guc: Support new and improved engine busyness
Umesh Nerlige Ramappa (2):
drm/i915/mtl: Add a PMU counter for total active ticks
drm/i915/mtl: Add counters for engine busyness ticks
drivers/gpu/drm/i915/gt/intel_engine.h | 1 +
drivers/gpu/drm/i915/gt/intel_engine_cs.c | 16 +
drivers/gpu/drm/i915/gt/intel_engine_types.h | 16 +-
drivers/gpu/drm/i915/gt/intel_engine_user.c | 1 +
.../gpu/drm/i915/gt/uc/abi/guc_actions_abi.h | 4 +-
drivers/gpu/drm/i915/gt/uc/intel_guc.h | 82 ++--
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.c | 55 ++-
drivers/gpu/drm/i915/gt/uc/intel_guc_ads.h | 9 +-
drivers/gpu/drm/i915/gt/uc/intel_guc_fwif.h | 23 +-
.../gpu/drm/i915/gt/uc/intel_guc_submission.c | 460 ++++++++++++++----
.../gpu/drm/i915/gt/uc/intel_guc_submission.h | 1 +
drivers/gpu/drm/i915/i915_pmu.c | 31 +-
drivers/gpu/drm/i915/i915_pmu.h | 2 +-
include/uapi/drm/i915_drm.h | 15 +-
14 files changed, 570 insertions(+), 146 deletions(-)
--
2.41.0
More information about the Intel-gfx
mailing list