Repository navigation
hv: write CNTHCTL_EL2 after counter redirection - #624
Merged
svenpeter42 merged 1 commit intoJul 15, 2026
Merged
Conversation
svenpeter42
requested changes
Jul 14, 2026
Member
There was a problem hiding this comment.
The fix seems correct but the reason needs to be adjusted: the CNTHCTL write has to be done after the counter redirection is configured and visible. I'd also add a comment before the isb to explain why it's there. That also explains why this only happens on M3+
georgc4
force-pushed
the
hv-m3-secondary-cnthctl-sync
branch
from
July 14, 2026 15:45
44dc597 to
5a77a1b
Compare
Member
|
please rebase to a single commit and drop the weird original explanation altogether |
georgc4
force-pushed
the
hv-m3-secondary-cnthctl-sync
branch
from
July 14, 2026 17:03
5a77a1b to
448061c
Compare
Contributor
Author
|
Squashed commits and retitled PR |
Member
|
LGTM now, just needs a rebase on the current main |
georgc4
force-pushed
the
hv-m3-secondary-cnthctl-sync
branch
from
July 14, 2026 18:07
448061c to
98e87d2
Compare
Contributor
Author
|
Rebased |
jannau
reviewed
Jul 14, 2026
georgc4
force-pushed
the
hv-m3-secondary-cnthctl-sync
branch
from
July 14, 2026 21:31
98e87d2 to
a3f49bb
Compare
Contributor
Author
|
Added the space after the comment |
Signed-off-by: Carlos Georges <cg3527@columbia.edu> Signed-off-by: Georges, Carlos <carlos.georges@intel.com>
georgc4
force-pushed
the
hv-m3-secondary-cnthctl-sync
branch
from
July 14, 2026 21:33
a3f49bb to
2b0f584
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.
Write
CNTHCTL_EL2only after the secondary CPU's counter-redirection is configured. This only happens on M3+ because only these SOCs do counter redirection.