🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
1 messages
1 total messages Started by bugzilla-noreply Thu, 26 Nov 2026 14:26
[Bug 296001] hwpmc: panic: [amd,526] pmc6,cpu15: Starting active PMC "K8-L3-0"
#761
Author: bugzilla-noreply
Date: Thu, 26 Nov 2026 14:26
49 lines
3877 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296001

--- Comment #4 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=9462179a2e7dd483c8593edd761e211e65476838

commit 9462179a2e7dd483c8593edd761e211e65476838
Author:     Osvaldo Janeri Filho <ojanerif@amd.com>
AuthorDate: 2026-11-26 14:24:03 +0000
Commit:     Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2026-11-26 14:25:44 +0000

    hwpmc_amd: Allow only system counting on L3, DF and UMC counters

    These counters are shared by several CPUs, a CCX in the case of L3.  A
    process-mode PMC is loaded on every CPU that runs a target thread, so
    two CPUs can program the same counter.  Without PerfMonV2, an INVARIANTS
    kernel then panics with "Starting active PMC"; otherwise the counts are
    wrong.  No privilege is needed: on Zen 1-3, "pmcstat -P LLC_MISSES" is
    enough.  System sampling is accepted too, but no interrupt handler
    checks these counters.

    Refuse every mode but PMC_MODE_SC, as the RAPL, PERF and TSC classes do.
    Two system-mode PMCs on CPUs that share a counter can still conflict;
    that is left to userland, as before.

    PR:             296001
    Reported by:    asomers
    Reviewed by:    mhorne
    Sponsored by:   Advanced Micro Devices, Inc.
    Signed-off-by:  Osvaldo Janeri Filho <ojanerif@amd.com>
    Differential Revision:  https://reviews.freebsd.org/D61949

 sys/dev/hwpmc/hwpmc_amd.c             | 10 ++++
 tests/sys/pmc/amd/pmc_rowalloc_test.c | 97 +++++++++++++++++++++++++++++++++++
 2 files changed, 107 insertions(+)

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads