-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
ace: mm: tlb: Ignore unmapping error in driver initalization #78612
base: main
Are you sure you want to change the base?
Conversation
f414f7b
cb2c3eb
to
f414f7b
Compare
f414f7b
to
7b88686
Compare
@softwarecki you need to re-add your now reverted 311ddf9 too, right? Without it this PR doesn't really work? |
7b88686
to
dcf1f12
Compare
Added previously reverted commit from #78227 |
Thanks for adding a SOF PR. Since it has failed some tests, let me mark this PR "DNM" for now, feel free to remove the label once those failures are fixed |
The sys_mm_drv_unmap_region_initial function is responsible for unmapping all unused virtual memory during tlb driver initialization. Most addresses will not have a mapped page. Ignore the error code indicating unmapped memory that will occur when trying to unmap. Signed-off-by: Adrian Warecki <[email protected]>
Before unmapping a memory page, the cache is flushed. If the given memory page is not mapped, this operation ends with a cpu exception on the ptl platform. Add check if tlb translation is active before flushing. Signed-off-by: Adrian Warecki <[email protected]>
dcf1f12
to
eba0eb7
Compare
The sys_mm_drv_unmap_region_initial function is responsible for unmapping all unused virtual memory during tlb driver initialization. Most addresses will not have a mapped page. Ignore the error code indicating unmapped memory that will occur when trying to unmap.
Fix for issue detected in: #78479