Patch to uio_pruss to add sysfs entry for DDR sync #40
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The uio_pruss driver allocates and exposes a block of DDR memory that is available for use by the PRU. If the PRU writes to this memory the change may not be immediately visible in linux userspace due to caching.
This patch adds a sysfs entry to the uio_pruss driver which provides a way for linux userspace to request the memory be synchronized using the kernel's dma_sync_* API.
Writing anything to the sync_ddr sysfs entry will trigger a sync.