Skip to content
  • Lorenzo Pieralisi's avatar
    ACPI/IORT: Introduce iort_iommu_configure · 643b8e4d
    Lorenzo Pieralisi authored
    
    
    DT based systems have a generic kernel API to configure IOMMUs
    for devices (ie of_iommu_configure()).
    
    On ARM based ACPI systems, the of_iommu_configure() equivalent can
    be implemented atop ACPI IORT kernel API, with the corresponding
    functions to map device identifiers to IOMMUs and retrieve the
    corresponding IOMMU operations necessary for DMA operations set-up.
    
    By relying on the iommu_fwspec generic kernel infrastructure,
    implement the IORT based IOMMU configuration for ARM ACPI systems
    and hook it up in the ACPI kernel layer that implements DMA
    configuration for a device.
    
    Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
    Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> [ACPI core]
    Reviewed-by: default avatarTomasz Nowicki <tn@semihalf.com>
    Tested-by: default avatarHanjun Guo <hanjun.guo@linaro.org>
    Tested-by: default avatarTomasz Nowicki <tn@semihalf.com>
    Cc: Hanjun Guo <hanjun.guo@linaro.org>
    Cc: Tomasz Nowicki <tn@semihalf.com>
    Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    643b8e4d