cppc: advertise optional fast-channel doorbell (follow-up to autonomous mode) - #119
Open
icosta-sifive wants to merge 1 commit into
Open
cppc: advertise optional fast-channel doorbell (follow-up to autonomous mode)#119icosta-sifive wants to merge 1 commit into
icosta-sifive wants to merge 1 commit into
Conversation
Contributor
Author
|
@vlsunil FYI |
icosta-sifive
marked this pull request as ready for review
August 31, 2026 08:35
icosta-sifive
force-pushed
the
dev/icosta/cppc_doorbell
branch
from
August 31, 2026 17:58
f3d4f8e to
cebb0da
Compare
The CPPC GET_FAST_CHANNEL_REGION service defines an optional doorbell (FLAGS[0] support, FLAGS[2:1] width, and the doorbell address plus write value in response words 6-8) that lets the application processor signal the platform microcontroller after updating its Perf Request fast-channel, instead of relying on polling. librpmi previously hardcoded these fields to zero, so a platform could never advertise a doorbell. Add an optional doorbell descriptor (struct rpmi_cppc_fastchan_doorbell) embedded in struct rpmi_cppc_regs, mirroring how the performance service group carries its doorbell in static platform data. When RPMI_CPPC_FST_CHN_DB_SUPP is set, GET_FAST_CHANNEL_REGION reports the doorbell; otherwise the response is unchanged. The create() signature is not modified. librpmi only advertises the doorbell; raising the doorbell interrupt and invoking rpmi_context_process_group_events() from the handler remains a platform responsibility. Add tests for doorbell advertisement in passive and autonomous mode, and S-mode access to GET_FAST_CHANNEL_REGION. Signed-off-by: Ivo Costa <ivo.costa@sifive.com>
icosta-sifive
force-pushed
the
dev/icosta/cppc_doorbell
branch
from
August 31, 2026 18:00
cebb0da to
c66846d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a follow-up to the previous PR that added CPPC autonomous mode. While wiring up
GET_FAST_CHANNEL_REGIONfor autonomous mode, one commit was forgotten. The optional fast-channel doorbell that the same service advertise, this PR fills that gap.Until now librpmi hardcoded these fields to zero, so even with the rest of the fast-channel path in place a platform had no way to advertise a doorbell.
The doorbell lets the application processor signal the platform microcontroller
after updating its Perf Request fast-channel, instead of relying on polling. It
is described by:
librpmi was still hardcoding these fields to zero, so a platform could never advertise a doorbell even though the rest of the fast-channel path was in place.
Tests
Added test coverage for:
FLAGS[4:3]+ doorbell bits)GET_FAST_CHANNEL_REGION