On platforms that have uncached-accelerate cache attribute, map it
to VM_MEMATTR_WRITE_COMBINING.
Details
Map JZ4780 framebuffer and fill it with zeroes in loops in different mode.
Observe write-combining outperform cached accesses by about ~2x and uncached
mapping by ~35x.
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
sys/mips/include/pmap.h | ||
---|---|---|
78 | Typo in reformatting. |
Do dot define VM_MEMATTR_WRITE_COMBINING as uncached as the fallback option, some userland tools expect VM_MEMATTR_WRITE_COMBINING and VM_MEMATTR_UNCACHEABLE be numerically different.
You can remove this comment & replace it with a newline to seperate the above from the 1.2 macro.