Re: [PATCH v3 5/7] iommu/riscv: Device directory management.

From: Baolu Lu
Date: Wed May 01 2024 - 22:07:58 EST


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