-
Notifications
You must be signed in to change notification settings - Fork 16
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
support RMI_RTT_UNMAP_UNPROTECTED #154
Conversation
rmm/monitor/src/rmi/rtt.rs
Outdated
listen!(mainloop, rmi::RTT_UNMAP_UNPROTECTED, |arg, _ret, rmm| { | ||
let rmi = rmm.rmi; | ||
let ipa = arg[1]; | ||
let _level = arg[2]; |
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.
Any reason to keep this variable...?
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.
Fixed. Thanks!
f8b7fed
to
31dcbae
Compare
FYI, |
rmm/monitor/src/rmi/rtt.rs
Outdated
|
||
let rd_granule = get_granule_if!(arg[0], GranuleState::RD)?; | ||
let rd = rd_granule.content::<Rd>(); | ||
let _ = rmi.unmap(rd.id(), ipa, GRANULE_SIZE); |
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.
How about changing the last line into rmi.unmap(rd.id(), ipa, GRANULE_SIZE)?;
for the error handling?
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.
Fixed. Thanks!
Signed-off-by: Jinbum Park <jinb.park@samsung.com>
31dcbae
to
646b6a1
Compare
ACS status with this PR,
The following tests have newly passed with this PR.
This result has been updated to #149 .