-
Couldn't load subscription status.
- Fork 317
RTL fixes for VM_CBO #1521
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
RTL fixes for VM_CBO #1521
Conversation
|
PreUpdateDA portion looks good to me. |
|
The changes in hptw.sv look correct to me. This is the correct way to generate a store/load page/access fault caused by a hardware page table walk. However, are the changes to the MMU redundant?
This does the same as Otherwise this looks great. |
|
The change in
During the page table walk we're getting a PMAStoreAmoAccessFaultM from pmachecker. SelRegions[0] & AccessRWXC seems to be the cause of the bug. During a page table walk, the physical address changes to 0x10 during
During other store & load operations ReadAccessM, WriteAccessM & ExecuteAccessF are controlled by hptw and are only high during
That's why in that line in However, I don't think that this is the right approach to make that fix. This might suppress some other desired StoreAccessFaults. I'll try to implement a better way do this. |
|
@rosethompson do you agree with this change? Tell me if anything is unclear. |
|
I have moved this logic |
|
I understand what is wrong. The PMA and PMP checkers should not be getting CMO accesses while walking the page table. For load, store, and amo accesses, SelHPTW overrides the CPU's requested access (PreLSURWM) at line 327. However, we are missing this mux for CMOpM. You'll need to add the similar CMOpM mux to drive CMOpM='0 when SelHPTW = 1. |
Done. |
|
Does this fix the problem and resolve the issue?
… On Oct 21, 2025, at 1:07 PM, Muhammad Zain ***@***.***> wrote:
Zain2050
left a comment
(openhwgroup/cvw#1521)
<#1521 (comment)>
You'll need to add the similar CMOpM mux to drive CMOpM='0 when SelHPTW = 1.
Done.
—
Reply to this email directly, view it on GitHub <#1521 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AR4AA354CJ7YZPQ6XM4JKI33Y2G67AVCNFSM6AAAAACGES3ZIGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTIMRZGM4DCNBTGY>.
You are receiving this because your review was requested.
|
|
Yes, it does. The previous changes had also resolved the problem & fixed the mismatches but this is a cleaner way to do it. |
Closes Issue #1496