🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #761

[Bug 296001] hwpmc: panic: [amd,526] pmc6,cpu15: Starting active PMC "K8-L3-0"

#761
From: 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
Technical Details
Message-ID: <bug-296001-227-nxvetRdHgH@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
References: <bug-296001-227@https.bugs.freebsd.org/bugzilla/>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 296001] hwpmc: panic: [amd,526] pmc6,cpu15: Starting active PMC
 "K8-L3-0"
Date: Thu, 26 Nov 2026 14:26:31 +0000
Organization: Newsgate at muc.de e.V.
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-296001-227-nxvetRdHgH@https.bugs.freebsd.org/bugzilla/>
References: <bug-296001-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="91079"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1795703191;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:
	 in-reply-to:in-reply-to:references:references;
	bh=+W2KM8yu4Xjd6oq4+W/+ApsJy2rQ422hlWljFeMS2zs=;
	b=fOj6mKWwlTOxcoQq2oyvn94s25Jgry5qibYr/FNxiCxiMbRMAvsZsD0JBdDUfdZSwdN68r
	BMWpUcTaTEVf3pwfrRHbqYsr/Rouqab8vQzpkzCQC0da4dzLdUDhqrzTeDBMRjf3eGfNuX
	XGa8Lzwfsey+3HtnDoiD5lD13cLziawgizA+XftA1t9/tnpZRfez4tTMlyETkZl40dcSr3
	FXg5ECnX+kl7yS+Is21r5d94o16SWAEvkgi8k+wTgjkP4QIXHITKRZirINfY+RDVH8n3+4
	KjwIW28VZskqA8WZHo30RV1SO/TNAm0jTE7tHPby14PaDxGNtdHV1ggRQbCrBw==
X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f
In-Reply-To: <bug-296001-227@https.bugs.freebsd.org/bugzilla/>
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes