Skip to content

perf/x86/intel/uncore: Bug fixes and cleanups

Zide Chen linux-perf-users lkml stable 5 versions – Applied

Status from this message: The following commit has been merged into the perf/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 1 replyApplied
  2. v2 posting 3/30 of 7 patches 0 repliesSuperseded
  3. v2 posting 2/37 patches 16 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v2 posting 1/30 of 7 patches1 replySuperseded
v16 patches7 repliesSuperseded

Changes in v3 from the cover letter

- Protect uncore_discovery_pci() with cpus_read_lock(). (Sashiko)
- Add Fixes tag for patch 4/7 and 7/7.
- Add the missing '---' in patch 5.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/7perf/x86/intel/uncore: Fix discovery unit lookup for multi-die systemsarch/x86/events/intel/uncore_discovery.c+2 -20 replies
2/7perf/x86/intel/uncore: Guard against invalid box control addressarch/x86/events/intel/uncore_discovery.c+24 -90 replies
3/7perf/x86/intel/uncore: Fix PCI device refcount leak in UPI discoveryarch/x86/events/intel/uncore_snbep.c+3 -30 replies
4/7perf/x86/intel/uncore: Defer ADL global PMON enable to enable_box()arch/x86/events/intel/uncore_snb.c+0 -70 replies
5/7perf/x86/intel/uncore: Move die_to_cpu() to uncore.carch/x86/events/intel/uncore.c arch/x86/events/intel/uncore.h arch/x86/events/intel/uncore_snbep.c+23 -200 replies
6/7perf/x86/intel/uncore: Fix uncore_die_to_cpu() for offline diesarch/x86/events/intel/uncore.c arch/x86/events/intel/uncore_snbep.c+8 -30 replies
7/7perf/x86/intel/uncore: Implement global init callback for GNR uncorearch/x86/events/intel/uncore.c arch/x86/events/intel/uncore.h arch/x86/events/intel/uncore_discovery.c+18 -60 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDapeng Mi
SeriesR-b
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH V3 0/7] perf/x86/intel/uncore: Bug fixes and cleanups

This series includes bug fixes and cleanups for the Intel uncore PMU driver.

- Patch 1 fixes a theoretical bug in discovery unit lookup on multi-die systems.
- Patch 2 guards against an invalid box control address.
- Patch 3 fixes a PCI device refcount leak in UPI topology discovery.
- Patch 4 works around a hardware issue on Raptor Cove CPUs.
- Patches 5-7 implement a global MSR init callback for GNR/GRR/SRF/CWF uncore.

Changes in v3:
- Protect uncore_discovery_pci() with cpus_read_lock(). (Sashiko)
- Add Fixes tag for patch 4/7 and 7/7.
- Add the missing '---' in patch 5.

Changes in v2:
- Add patch 2 to guard against invalid box control address (Sashiko)
- Remove WARN_ON_ONCE() from patch 1
- Move cpus_read_{lock,unlock}() out of uncore_die_to_cpu() (Sashiko)

Zide Chen (7):
perf/x86/intel/uncore: Fix discovery unit lookup for multi-die systems perf/x86/intel/uncore: Guard against invalid box control address perf/x86/intel/uncore: Fix PCI device refcount leak in UPI discovery perf/x86/intel/uncore: Defer ADL global PMON enable to enable_box() perf/x86/intel/uncore: Move die_to_cpu() to uncore.c perf/x86/intel/uncore: Fix uncore_die_to_cpu() for offline dies perf/x86/intel/uncore: Implement global init callback for GNR uncore

 arch/x86/events/intel/uncore.c           | 32 ++++++++++++++++-
 arch/x86/events/intel/uncore.h           |  3 +-
 arch/x86/events/intel/uncore_discovery.c | 46 ++++++++++++++++--------
 arch/x86/events/intel/uncore_snb.c       |  7 ----
 arch/x86/events/intel/uncore_snbep.c     | 36 +++++++------------
 5 files changed, 76 insertions(+), 48 deletions(-)
Signature · 1 line
2.54.0