Two alternatives for architecture extension to specify address/page-based memory types
Greg Favor
To all the system software people on the tech-unixplatformspec and software email lists:
Option #1 - VA/Page-Based Attributes
This approach utilizes 2-3 bits in page table entries to specify a memory type for the page (roughly corresponding to the above x86 and ARMv8 memory types). This approach is similar to the approach supported by x86 and ARMv8, and presumably would directly mesh with existing Linux support for this type of approach.
Option #2 - Physical Address-Based Attributes
This approach uses the top 2-3 bits of a 64-bit PA (physical address) to specify a memory type for that address value. This approach applies equally whether MMU address translation is On or Off (where Off corresponds to RISC-V M-mode and Bare translation modes). When translation is On, these bits
likely
(like above) would occupy extra bits in page table entries. When translation is Off, the high bits of the 64-bit address calculation result are used.
While there are some small pros and cons with these two approaches, I'll hold off from coloring people's feedback. (and thanks in advance for that feedback).
Greg