doc/wg/opentitan/notes/2020-04-30.md
Present:
Silvestrs: Why remove the "power of 2" check in the PMP implementation?
Alistair: That check is left over from the NAPOT implementation. With Top-of-Range now it is not longer needed.
Garret: ToR for OT will require 32 byte alignment.
Alistair: I think that is standards compliant.
Brad: Using that as a default is probably fine, even if not required. Not a huge overhead.
Phil: There might be alignment issues with memory protection more generally.
ARM has a standard, but some chips implemented their own version.
What is the outlook for PMP? Will we see a number of custom implementations?
Garret: I would expect that SiFive would stick the spec.
New RISC-V specs have been slow to be release, so I don't necessarily expect it to change any time soon.
Alistair: Probably won't see a lot of custom implementations. Instead, there may be spec extensions (like for the core) where peripherals like the PMP can be customized but still standards compliant.
Garret: Well, OT is looking to use a non-compliant version that has additional lock bits.
Phil: ARM you have to buy IP, presents a barrier.
Alistair: I think with RISC-V the trademark restriction would make it so a non-spec version couldn't be called "RISC-V".
Garret: But the PMP is optional, so it could be a RISC-V core without a PMP, and instead has an "OTPMP" which is different.
Garret: PMP currently too restrictive. Only 16 regions (8 effectively for ToR). Use 6 regions for secure boot, not enough remaining.
Alistair: What about the extended PMP spec?
Garret: Is that out?
What happens with the hardware diversity?
Brad: Probably have to just embrace it.
Garret: Tock abstractions help.
Brad: Tricky part is finding bugs twice.
Phil: With variations in hardware there isn't much we can do.