From: Florian Fainelli <f.fainelli@gmail.com>
To: linux-mips@vger.kernel.org
Cc: Florian Fainelli <f.fainelli@gmail.com>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
Jonathan Corbet <corbet@lwn.net>,
Shuah Khan <skhan@linuxfoundation.org>,
Randy Dunlap <rdunlap@infradead.org>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
James Clark <james.clark@linaro.org>,
Thomas Gleixner <tglx@kernel.org>,
linux-doc@vger.kernel.org (open list:DOCUMENTATION),
linux-kernel@vger.kernel.org (open list),
linux-perf-users@vger.kernel.org (open list:PERFORMANCE EVENTS
SUBSYSTEM), "Maciej W. Rozycki" <macro@orcam.me.uk>
Subject: [PATCH v2 0/3] MIPS: SiByte: Add HW PMU support
Date: Fri, 13 Nov 2026 15:33:53 -0800 [thread overview]
Message-ID: <20261113233358.538698-1-f.fainelli@gmail.com> (raw)
This patch series resurrects the SiByte HW PMU support which used to be
supported with oprofile but was later removed.
Changes in v2:
• Preserve usercopy fault state during callchain unwinding. Save and
restore current->thread.cp0_baduaddr so faulting unwinder reads cannot
corrupt an interrupted usercopy’s recovery
• Balance PMU event initialization cleanup. Release resources exactly
once on initialization failure and install the destroy callback only on
success. Also check event type before rejecting unsupported attributes,
allowing unrelated events to fall back to another PMU
• Keep disabled PMU interrupts masked after EOI. Add an SB1 IRQ flow
wrapper that reapplies the mask when interrupt work disables the last
event; the generic CPU IRQ EOI would otherwise unmask IP7 again
• Fix a documentation heading underline in sb1-pmu.rst (Randy, sashiko)
Florian Fainelli (3):
MIPS: SiByte: Wire up the CPU interrupt controller
MIPS: perf: Add SB1 userspace callchain unwinding
MIPS: perf: Add SB1 and SB1A performance counter support
Documentation/arch/mips/index.rst | 1 +
Documentation/arch/mips/sb1-pmu.rst | 162 ++++++++++
arch/mips/include/asm/mach-sibyte/irq.h | 10 +
arch/mips/kernel/perf_event.c | 110 ++++++-
arch/mips/kernel/perf_event_mipsxx.c | 397 ++++++++++++++++++++++--
arch/mips/sibyte/bcm1480/irq.c | 7 +-
arch/mips/sibyte/sb1250/irq.c | 3 +
include/linux/cpuhotplug.h | 1 +
8 files changed, 666 insertions(+), 25 deletions(-)
create mode 100644 Documentation/arch/mips/sb1-pmu.rst
create mode 100644 arch/mips/include/asm/mach-sibyte/irq.h
--
2.53.0
next reply other threads:[~2026-11-13 23:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 23:33 Florian Fainelli [this message]
2026-11-13 23:33 ` [PATCH v2 1/3] MIPS: SiByte: Wire up the CPU interrupt controller Florian Fainelli
2026-11-13 23:33 ` [PATCH v2 2/3] MIPS: perf: Add SB1 userspace callchain unwinding Florian Fainelli
2026-11-13 23:33 ` [PATCH v2 3/3] MIPS: perf: Add SB1 and SB1A performance counter support Florian Fainelli
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=20261113233358.538698-1-f.fainelli@gmail.com \
--to=f.fainelli@gmail.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=corbet@lwn.net \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=jolsa@kernel.org \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=macro@orcam.me.uk \
--cc=mark.rutland@arm.com \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=rdunlap@infradead.org \
--cc=skhan@linuxfoundation.org \
--cc=tglx@kernel.org \
--cc=tsbogend@alpha.franken.de \
/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