iommu: rockchip: Allocate tables from all available memory for IOMMU v2
authorJonas Karlman <jonas@kwiboo.se>
Sat, 17 Jun 2023 18:25:47 +0000 (18:25 +0000)
committerJoerg Roedel <jroedel@suse.de>
Fri, 14 Jul 2023 14:18:04 +0000 (16:18 +0200)
commit2a7e6400f72b9963cbaaac8a60ccc54d2b8c0541
treee4690396b4e0bd9ed738e34f145d189fb4560d65
parent6df63b7ebdaf5fcd75dceedf6967d0761e56eca1
iommu: rockchip: Allocate tables from all available memory for IOMMU v2

IOMMU v2 found in newer Rockchip SoCs, e.g. RK356x and RK3588, support
placing directory and page tables in up to 40-bit addressable physical
memory.

Remove the use of GFP_DMA32 flag for IOMMU v2 now that the physical
address to the directory table is correctly written to DTE_ADDR.

Signed-off-by: Jonas Karlman <jonas@kwiboo.se>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20230617182540.3091374-3-jonas@kwiboo.se
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c