Skip to content
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

Remove unsafe & ManuallyDrop about shared data structrues #145

Merged
merged 4 commits into from
Aug 11, 2023
Merged

Conversation

bitboom
Copy link
Collaborator

@bitboom bitboom commented Aug 10, 2023

This PR

  • removes unsafe & ManuallyDrop
  • adds tests for spec compliance

Unsafe & ManuallyDrop was introduced by union type. (the way of tf-rmm implement)
I change this by adding padding.


I will apply this way to other structures continuously

Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
@jinbpark
Copy link
Collaborator

Does it have something to do with ACS tests? (it seems not I guess)

@bitboom
Copy link
Collaborator Author

bitboom commented Aug 10, 2023

Does it have something to do with ACS tests? (it seems not I guess)

It is not related with ACS directly.

I am currently debugging below issue.
The first trial was checking structure offset.
It was not the problem but i thought that it needs refactoring and testing.


Current issue

I found that RMM reads dummy values (0xCFDFDFDF) with ACS tests.

  • Read failed with ACS: Params 0x88306000
  • Read succeed with TFTF: Params 0x88C01000

rmm/monitor/src/rmi/realm/params.rs Outdated Show resolved Hide resolved
rmm/monitor/src/rmi/rec/params.rs Show resolved Hide resolved
Signed-off-by: Sangwan Kwon <sangwan.kwon@samsung.com>
@bitboom bitboom merged commit 40dcfec into main Aug 11, 2023
5 checks passed
@bitboom bitboom deleted the m-drop branch August 11, 2023 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants