Skip to content

lib/igt_power: Ensure RAPL reads on correct CPU

Sk Anirban igt-dev 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 0 repliesNew
  2. v12 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2lib/igt_power: Ensure RAPL reads on correct CPUlib/igt_perf.c lib/igt_perf.h lib/igt_power.c +1 more+67 -20 replies
2/2HAX: Add toggle-gt-c6 test to fast feedback listtests/intel-ci/xe.fast-feedback.testlist+1 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/2] lib/igt_power: Ensure RAPL reads on correct CPU

Adapt to kernel changes that require RAPL MSR reads to occur on the same CPU where the perf event was opened. Pin the thread to the target CPU before reading, then restore original affinity.

This fixes compatibility with kernel changes which enforces CPU matching for MSR-based RAPL operations.

KMD changes: https://gitlab.freedesktop.org/drm/tip/-/commit/1d6c915819f5b805c35487b6ce5923e31a28266b

v2: Cosmetic changes (Kamil)
Add description & debug info (Kamil)

Sk Anirban (2):
lib/igt_power: Ensure RAPL reads on correct CPU
HAX: Add toggle-gt-c6 test to fast feedback list

 lib/igt_perf.c                           | 43 ++++++++++++++++++++++++
 lib/igt_perf.h                           |  1 +
 lib/igt_power.c                          | 24 +++++++++++--
 lib/igt_power.h                          |  1 +
 tests/intel-ci/xe.fast-feedback.testlist |  1 +
 5 files changed, 68 insertions(+), 2 deletions(-)
Signature · 1 line
2.43.0