~vicamo/+git/ubuntu-kernel:bug-1933617/fix-adl-PMU-bad-hardware/oem-5.13

Last commit made on 2021-07-13
Get this branch:
git clone -b bug-1933617/fix-adl-PMU-bad-hardware/oem-5.13 https://git.launchpad.net/~vicamo/+git/ubuntu-kernel
Only You-Sheng Yang can upload to this branch. If you are You-Sheng Yang please log in for upload directions.

Branch merges

Branch information

Name:
bug-1933617/fix-adl-PMU-bad-hardware/oem-5.13
Repository:
lp:~vicamo/+git/ubuntu-kernel

Recent commits

317d659... by You-Sheng Yang

Bug 1933617: Fix ADL PMU broken hardware

a1dc225... by Kan Liang <email address hidden>

perf/x86/intel: Fix instructions:ppp support in Sapphire Rapids

BugLink: https://bugs.launchpad.net/bugs/1933617

Perf errors out when sampling instructions:ppp.

$ perf record -e instructions:ppp -- true
Error:
The sys_perf_event_open() syscall returned with 22 (Invalid argument)
for event (instructions:ppp).

The instruction PDIR is only available on the fixed counter 0. The event
constraint has been updated to fixed0_constraint in
icl_get_event_constraints(). The Sapphire Rapids codes unconditionally
error out for the event which is not available on the GP counter 0.

Make the instructions:ppp an exception.

Fixes: 61b985e3e775 ("perf/x86/intel: Add perf core PMU support for Sapphire Rapids")
Reported-by: Yasin, Ahmad <email address hidden>
Signed-off-by: Kan Liang <email address hidden>
Signed-off-by: Peter Zijlstra (Intel) <email address hidden>
Cc: <email address hidden>
Link: https://<email address hidden>
(cherry picked from commit 1d5c7880992a06679585e7e568cc679c0c5fd4f2)
Signed-off-by: You-Sheng Yang <email address hidden>

2c4e343... by Kan Liang <email address hidden>

perf/x86/intel: Add more events requires FRONTEND MSR on Sapphire Rapids

BugLink: https://bugs.launchpad.net/bugs/1933617

On Sapphire Rapids, there are two more events 0x40ad and 0x04c2 which
rely on the FRONTEND MSR. If the FRONTEND MSR is not set correctly, the
count value is not correct.

Update intel_spr_extra_regs[] to support them.

Fixes: 61b985e3e775 ("perf/x86/intel: Add perf core PMU support for Sapphire Rapids")
Signed-off-by: Kan Liang <email address hidden>
Signed-off-by: Peter Zijlstra (Intel) <email address hidden>
Cc: <email address hidden>
Link: https://<email address hidden>
(cherry picked from commit d18216fafecf2a3a7c2b97086892269d6ab3cd5e)
Signed-off-by: You-Sheng Yang <email address hidden>

6df68ff... by Kan Liang <email address hidden>

perf/x86/intel: Fix fixed counter check warning for some Alder Lake

BugLink: https://bugs.launchpad.net/bugs/1933617

For some Alder Lake machine, the below fixed counter check warning may be
triggered.

[ 2.010766] hw perf events fixed 5 > max(4), clipping!

Current perf unconditionally increases the number of the GP counters and
the fixed counters for a big core PMU on an Alder Lake system, because
the number enumerated in the CPUID only reflects the common counters.
The big core may has more counters. However, Alder Lake may have an
alternative configuration. With that configuration,
the X86_FEATURE_HYBRID_CPU is not set. The number of the GP counters and
fixed counters enumerated in the CPUID is accurate. Perf mistakenly
increases the number of counters. The warning is triggered.

Directly use the enumerated value on the system with the alternative
configuration.

Fixes: f83d2f91d259 ("perf/x86/intel: Add Alder Lake Hybrid support")
Reported-by: Jin Yao <email address hidden>
Signed-off-by: Kan Liang <email address hidden>
Signed-off-by: Peter Zijlstra (Intel) <email address hidden>
Cc: <email address hidden>
Link: https://<email address hidden>
(cherry picked from commit ee72a94ea4a6d8fa304a506859cd07ecdc0cf5c4)
Signed-off-by: You-Sheng Yang <email address hidden>

5dffe60... by Timo Aaltonen

UBUNTU: Ubuntu-oem-5.13-5.13.0-1007.7

Signed-off-by: Timo Aaltonen <email address hidden>

d2b2efa... by Timo Aaltonen

UBUNTU: link-to-tracker: update tracking bug

BugLink: https://bugs.launchpad.net/bugs/1934979
Properties: no-test-build
Signed-off-by: Timo Aaltonen <email address hidden>

f91e123... by David Box

UBUNTU: SAUCE: platform/x86: intel_pmc_core: Add GBE Package C10 fix for Alder Lake PCH

BugLink: https://bugs.launchpad.net/bugs/1934660

Alder PCH uses the same Gigabit Ethernet (GBE) device as Tiger Lake PCH
which cannot achieve PC10 without ignoring the PMC GBE LTR. Add this
work around for Alder Lake PCH as well.

Signed-off-by: David E. Box <email address hidden>
(cherry picked from
https://patchwork.kernel.org/project/platform-driver-x86/patch/bb897d898c060da4bc20d3d866193c53c6fd4ee1<email address hidden>/)
Signed-off-by: You-Sheng Yang <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>

0725fd5... by Gayatri Kammela <email address hidden>

UBUNTU: SAUCE: platform/x86: intel_pmc_core: Add Alder Lake low power mode support for pmc_core

BugLink: https://bugs.launchpad.net/bugs/1934660

Alder Lake has 14 status registers that are memory mapped. These
registers show the status of the low power mode requirements. The
registers are latched on every C10 entry or exit and on every s0ix.y
entry/exit. Accessing these registers is useful for debugging any low
power related activities.

Thus, add debugfs entry to access low power mode status registers.

Cc: Srinivas Pandruvada <email address hidden>
Cc: Andy Shevchenko <email address hidden>
Cc: David Box <email address hidden>
Signed-off-by: Gayatri Kammela <email address hidden>
(cherry picked from
https://patchwork.kernel.org/project/platform-driver-x86/patch/f31f15ec9c1e6ee72bb8525c64878d222e1fa09e<email address hidden>/)
Signed-off-by: You-Sheng Yang <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>

145208a... by Gayatri Kammela <email address hidden>

UBUNTU: SAUCE: platform/x86: intel_pmc_core: Add Latency Tolerance Reporting (LTR) support to Alder Lake

BugLink: https://bugs.launchpad.net/bugs/1934660

Add support to show the Latency Tolerance Reporting for the IPs on
the Alder Lake PCH as reported by the PMC. This LTR support on
Alder Lake is slightly different from the Cannon lake PCH that is being
reused by all platforms till Tiger Lake.

Cc: Srinivas Pandruvada <email address hidden>
Cc: Andy Shevchenko <email address hidden>
Cc: David Box <email address hidden>
Signed-off-by: Gayatri Kammela <email address hidden>
(cherry picked from
https://patchwork.kernel.org/project/platform-driver-x86/patch/0b1409212c2f84aa807e5315955c8e74903d031a<email address hidden>/)
Signed-off-by: You-Sheng Yang <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>

ced6622... by Gayatri Kammela <email address hidden>

UBUNTU: SAUCE: platform/x86: intel_pmc_core: Add Alderlake support to pmc_core driver

BugLink: https://bugs.launchpad.net/bugs/1934660

Add Alder Lake client and mobile support to pmc_core driver.

Cc: Srinivas Pandruvada <email address hidden>
Cc: Andy Shevchenko <email address hidden>
Cc: David Box <email address hidden>
Signed-off-by: Gayatri Kammela <email address hidden>
(cherry picked from
https://patchwork.kernel.org/project/platform-driver-x86/patch/8080c997627d2a1fd8a701e8d8d09c69c8df381d<email address hidden>/)
Signed-off-by: You-Sheng Yang <email address hidden>
Signed-off-by: Timo Aaltonen <email address hidden>