On 5/1/24 4:01 AM, Tomasz Jeznach wrote:
Introduce device context allocation and device directory tree management including capabilities discovery sequence, as described in Chapter 2.1 of the RISC-V IOMMU Architecture Specification. Device directory mode will be auto detected using DDTP WARL property, using highest mode supported by the driver and hardware. If none supported can be configured, driver will fall back to global pass-through. First level DDTP page can be located in I/O (detected using DDTP WARL) and system memory. Only simple identity and release (blocking) protection domains are supported by this implementation. Co-developed-by: Nick Kossifidis<mick@xxxxxxxxxxxx> Signed-off-by: Nick Kossifidis<mick@xxxxxxxxxxxx> Signed-off-by: Tomasz Jeznach<tjeznach@xxxxxxxxxxxx>
Reviewed-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx> Best regards, baolu