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 memory domain restriction on system RAM for memory partitions on MMU devices #29382

Closed
andrewboie opened this issue Oct 20, 2020 · 0 comments · Fixed by #29411
Closed
Assignees
Labels
area: Memory Protection Enhancement Changes/Updates/Additions to existing features

Comments

@andrewboie
Copy link
Contributor

Is your enhancement proposal related to a problem? Please describe.
MMU devices have a documented restriction that k_mem_partitions must be within system RAM bounds in order to be programmed into a memory domain.

This is overly restrictive. We should allow k_mem_partition to be installed for any mapped memory address, including virtual mappings from z_mem_map().

The immediate use-case is allowing for user-mode drivers that can be granted access to MMIO regions.

Describe the solution you'd like
Documentation removed that memory domain partitions can only be SRAM address ranges.
x86 implementation updated to support this.
TBD: can we provide a generic test?

@andrewboie andrewboie added the Enhancement Changes/Updates/Additions to existing features label Oct 20, 2020
@andrewboie andrewboie self-assigned this Oct 20, 2020
@andrewboie andrewboie changed the title remove memory domain restriction on system RAM for memory partitions remove memory domain restriction on system RAM for memory partitions on MMU devices Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Memory Protection Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant