Repository navigation
feat: describe all raw PMU events of the C908 in the k230 device tree - #44
Merged
wangjianxin-canaan merged 1 commit intoOct 1, 2026
Conversation
The raw-event-to-mhpmcounters property only listed a subset of the performance monitoring events supported by the XuanTie C908 core, so the remaining events could not be used through the SBI PMU extension. Replace it with a complete list based on Table 14.6 of the XuanTie C908 user manual. Each of the 165 defined events (0x01-0xb4) gets its own entry with a full select mask, mapped to mhpmcounter3-31. Indices the manual marks as "Not defined" are omitted, so they are rejected rather than programmed into a counter. Closes kendryte#43
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.
PR Description
Enable using all raw performance monitoring events that the k230/ C908 supports.
Details
The raw-event-to-mhpmcounters property only listed a subset of the performance monitoring events supported by the XuanTie C908 core, so the remaining events could not be used through the SBI PMU extension.
Replace it with a complete list based on Table 14.6 of the XuanTie C908 user manual. Each of the 165 defined events (0x01-0xb4) gets its own entry with a full select mask, mapped to mhpmcounter3-31. Indices the manual marks as "Not defined" are omitted, so they are rejected rather than programmed into a counter.
Related Issues
Closes #43