From: "Liang, Kan" <kan.liang@linux.intel.com>
To: Yiwei Yang <yangyiwei2000@gmail.com>, linux-kernel@vger.kernel.org
Cc: linux-perf-users@vger.kernel.org, hpa@zytor.com, bp@alien8.de,
tglx@linutronix.de, adrian.hunter@intel.com, irogers@google.com,
jolsa@kernel.org, alexander.shishkin@linux.intel.com,
mark.rutland@arm.com, namhyung@kernel.org, acme@kernel.org,
mingo@redhat.com, peterz@infradead.org,
Yiwei Yang <victoryang00@ucsc.edu>
Subject: Re: [PATCH] Add support for pebs fmt6(Lunar Lake)
Date: Thu, 2 Jan 2025 13:51:25 -0500 [thread overview]
Message-ID: <987bd15e-c392-48c1-ade2-057fb4b45978@linux.intel.com> (raw)
In-Reply-To: <20241226085605.43208-1-victoryang00@ucsc.edu>
On 2024-12-26 3:56 a.m., Yiwei Yang wrote:
> Signed-off-by: Yiwei Yang <victoryang00@ucsc.edu>
>
> Lunar lake's pebs is not kernel ready. in dmesg I found
>
> victoryang00@victoryang00-ASUS-Zenbook-S-14-UX5406SA-UX5406SA:~$ sudo dmesg|grep PMU
> [sudo] password for victoryang00:
> [ 0.107418] Performance Events: XSAVE Architectural LBR, no PEBS fmt6+, AnyThread deprecated, Lunarlake Hybrid events, 32-deep LBR, full-width counters, Intel PMU driver.
> [ 0.107418] core: cpu_core PMU driver:
> [ 0.107418] NMI watchdog: Enabled. Permanently consumes one hw-PMU counter.
> [ 0.007380] core: cpu_atom PMU driver:
> [ 2.802582] RAPL PMU: API unit is 2^-32 Joules, 4 fixed counters, 655360 ms ovfl timer
> [ 2.802585] RAPL PMU: hw unit of domain pp0-core 2^-14 Joules
> [ 2.802586] RAPL PMU: hw unit of domain package 2^-14 Joules
> [ 2.802587] RAPL PMU: hw unit of domain dram 2^-14 Joules
> [ 2.802587] RAPL PMU: hw unit of domain pp1-gpu 2^-14 Joules
>
> But lunar lake has the pebs extension in lscpu
>
> Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge m
> ca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 s
> s ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc
> art arch_perfmon pebs bts rep_good nopl xtopology nons
> top_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq
> dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma c
> x16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt t
> sc_deadline_timer aes xsave avx f16c rdrand lahf_lm ab
> m 3dnowprefetch cpuid_fault epb ssbd ibrs ibpb stibp i
> brs_enhanced tpr_shadow flexpriority ept vpid ept_ad f
> sgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid rd
> t_a rdseed adx smap clflushopt clwb intel_pt sha_ni xs
> aveopt xsavec xgetbv1 xsaves split_lock_detect avx_vnn
> i lam wbnoinvd dtherm ida arat pln pts hwp hwp_notify
> hwp_act_window hwp_epp hwp_pkg_req hfi vnmi umip pku o
> spke waitpkg gfni vaes vpclmulqdq rdpid bus_lock_detec
> t movdiri movdir64b fsrm md_clear serialize pconfig ar
> ch_lbr ibt flush_l1d arch_capabilities
>
>
> But I found implementation [1] and [2].
>
> The code in the kernel seems not updated [3].
>
> [1] https://github.com/search?q=repo%3Atorvalds%2Flinux%20MSR_IA32_PMC_V6_FX0_CTR&type=code
> [2] https://lwn.net/ml/all/20240625182256.291914-9-kan.liang@linux.intel.com/
> [3] https://elixir.bootlin.com/linux/v6.13-rc3/source/arch/x86/events/intel/ds.c#L2480
>
Thanks for the report. The fix has been merged into the tip branch.
https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=b8c3a2502a205321fe66c356f4b70cabd8e1a5fc
Thanks,
Kan
next prev parent reply other threads:[~2025-01-02 18:51 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-26 8:56 [PATCH] Add support for pebs fmt6(Lunar Lake) Yiwei Yang
2025-01-02 18:51 ` Liang, Kan [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-12-26 8:52 Yiwei Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=987bd15e-c392-48c1-ade2-057fb4b45978@linux.intel.com \
--to=kan.liang@linux.intel.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=bp@alien8.de \
--cc=hpa@zytor.com \
--cc=irogers@google.com \
--cc=jolsa@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=victoryang00@ucsc.edu \
--cc=yangyiwei2000@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox