beagleboard / kernel

Kernel for the beagleboard.org boards
172 stars 159 forks source link

Patch to uio_pruss to add sysfs entry for DDR sync #40

Closed cmicali closed 11 years ago

cmicali commented 11 years ago

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 dmasync* API.

Writing anything to the sync_ddr sysfs entry will trigger a sync.