Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When the PM feature is enabled, can PMLEN be set to 7 in sv48 mode? #1702

Open
chara811 opened this issue Oct 30, 2024 · 4 comments
Open

When the PM feature is enabled, can PMLEN be set to 7 in sv48 mode? #1702

chara811 opened this issue Oct 30, 2024 · 4 comments

Comments

@chara811
Copy link

Regarding sv48 mode, there is no clear restriction on setting PMLEN to 7 in the PM specification

@gfavor
Copy link
Collaborator

gfavor commented Oct 30, 2024

Yes. The PMM fields are WARL and nothing in the spec restricts which PMLEN values can be used with which translation modes.

@chara811
Copy link
Author

chara811 commented Nov 4, 2024

Does PM function support when *atp=sv39?

@chara811
Copy link
Author

chara811 commented Nov 4, 2024

The PM spec Section 3.5 describes configurations such as "PMLEN=7 and hgatp.MODE=sv57x4,PMLEN=16 and hgatp.MODE=sv57x4,"PMLEN=16 and hgatp.MODE=sv48x4." However, it does not list whether sv39x4 can be configured with PMLEN=16 or 7, and sv48x4 can be configured with PMLEN=7.Are these configurations that are not listed supported?

@gfavor
Copy link
Collaborator

gfavor commented Nov 4, 2024

That spec text does not limit support to the listed configs. That text is specifying when one would need to execute an HFENCE.GVMA when changing henvcfg.PMM (and implicitly is specifying when an HFENCE.GVMA is not necessary).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants