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

apps: linux: generic: Use accessor functions for struct remoteproc_mem #563

Merged
merged 3 commits into from
Apr 5, 2024

Conversation

glneo
Copy link
Contributor

@glneo glneo commented Mar 13, 2024

The remoteproc_mem struct contents are internal to remoteproc. The struct should be accessed using the provided accessors, not directly. This is done in preperation of making this struct opaque to code outside of the remoteproc drivers.

Copy link
Collaborator

@arnopo arnopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you plan to propose an update for other applications that also abuse of the remoteproc_mem struct?

apps/system/linux/machine/generic/platform_info.c Outdated Show resolved Hide resolved
@glneo
Copy link
Contributor Author

glneo commented Mar 14, 2024

do you plan to propose anupdate for other application that also abuse of the remoteproc_mem struct?

Yes, here let me add a couple more to this series.

@glneo glneo force-pushed the apps-remoteproc-mem branch 2 times, most recently from b7b23c3 to e347711 Compare March 15, 2024 19:17
Copy link
Collaborator

@arnopo arnopo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor remarks , then LGTM but need ACK from AMD

apps/system/linux/machine/generic/platform_info.c Outdated Show resolved Hide resolved
apps/system/linux/machine/generic/platform_info.c Outdated Show resolved Hide resolved
The remoteproc_mem struct contents are internal to remoteproc. The struct
should be accessed using the provided accessors, not directly. This is
done in preparation of making this struct opaque to code outside of
the remoteproc drivers.

Signed-off-by: Andrew Davis <[email protected]>
The remoteproc_mem and rproc structs contents are internal to remoteproc.
These should be accessed using the provided accessors, not directly. This
is done in preparation of making these struct opaque to code outside of
the remoteproc drivers.

Signed-off-by: Andrew Davis <[email protected]>
The memory list is already initialized before this callback is called.
Remove this redundant initialization.

Signed-off-by: Andrew Davis <[email protected]>
Copy link
Contributor

@edmooring edmooring left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to go.

@arnopo arnopo added this to the Release V2024.04 milestone Apr 2, 2024
@arnopo
Copy link
Collaborator

arnopo commented Apr 2, 2024

@tanmays, @bentheredonethat
Is it ok for you?

@bentheredonethat
Copy link
Contributor

yes LGTM

@arnopo arnopo merged commit 9ddd85c into OpenAMP:main Apr 5, 2024
3 checks passed
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.

5 participants