-
Notifications
You must be signed in to change notification settings - Fork 1.4k
arch/arm64: fix create page table err #17372
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
base: master
Are you sure you want to change the base?
Conversation
020cca4 to
898dc5e
Compare
jerpelea
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update commit title to
arch/arm64: fix create page table err
jerpelea
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please update the PR message to describe the change!
done |
neither commit title nor the PR message are updated ! |
linguini1
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lipengfei28 all of your recent PRs are entirely missing proper descriptions according to the contribution guidelines. Please re-review them here: https://github.com/apache/nuttx/blob/master/CONTRIBUTING.md
done |
898dc5e to
02c1935
Compare
done |
Did you read the guidelines? Once again, there is still text from the template remaining in your PR. On top of this, I don't understand your description. What are BlockDescriptors? What problem is this solving? I guess something to do with being able to use the full pci mmio address space, but that is not really clear from this PR. Please use full detail when describing your change and why it is necessary. The impact in this case should include "affects all arm64 devices" since you are touching MMU logic for the arm64 architecture. Particularly in the case when |
arm64 only PA_BITS=52 level 0 can be used as BlockDescriptors Signed-off-by: lipengfei28 <[email protected]>
02c1935 to
ae58134
Compare
This looks better. In the future, please format your PR descriptions with backticks (to make code blocks). It makes it much easier to read/understand.
Summary
fix arm64 platform create page table bug
arm64 pci mmio address space is 512G,
arm64 512G Block can not be used as lockDescriptors,
So the when PA_BITS !=52 level 0 can not be used as BlockDescriptors,
// 0x3000000 0x80 0x00 0x80 0x00 0x80 0x00
This address space, when create page table,
The original logic,only create one Block,size is 512G,
But arm64 platform, can not use 512G as a BlockDescriptors, Ths biggest Block is 1G,
so ,it need 512 BlockDescriptors,
qemu 9,or qemu 10, The original logic will crash when access that address space,this patch will fix the bug
Impact
Impact on arm64 arch
like qemu 9,or qemu 10, pcie 64bit MMIO space, The original logic will crash when access that address space.
Testing
At qemu 9,or qemu 10, The original logic
The patch will fix the crash
Result : no crash occurs.