-
Notifications
You must be signed in to change notification settings - Fork 4
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
Questions about SRCMD table format 2 #13
Comments
|
|
This is meeting minutes of the last IOPMP TG meeting: https://github.com/riscv-admin/iopmp/blob/main/meeting-minutes/2024-1107-IOPMP-meeting-minutes.pdf The slides on page 5~7 shows the relationship between input RRID and MDs. |
Page 7 of the slide shows that an RRID selects all the MDs and all entries. I want to confirm the meaning of “all entries” here. I have 2 understandings.
Please help clarify which understanding is the intent of the Spec. Thank you very much. |
Both are not accurate. |
The SRCMD table format 2 is added in the lastest IOPMP spec, which adds register SRCMD_PERM(m) and SRCMD_PERMH(m) to give extra check for transactions. I met two questions when tried to understand the format 2.
The SRCMD table format 2 is indexed by MD, but how to determine if the RRID is associated with each MD is not clear. For example, assume SRCMD_PERM(0) and SRCMD_PERMH(0) are both all 0, then for MD0, the r/w/x permission for RRID 0~31 are all 0, but it cannot be found that which RRID is related with MD0. Therefore, we cannot find the related IOPMP entries for RRIDs. However, we still need IOPMP entries to check the transaction.
Since the SRCMD_PERM and SRCMD_PERMH are both 32 bits, and one RRID needs 2 bits in SRCMD_PREM and SRCMD_PERMH to represent the r/w/x permissions, as a result, only (32+32)/2 = 32 RRIDs can be supported for SRCMD table format 2. Is it an expected behavior?
The text was updated successfully, but these errors were encountered: