Searched hist:"9 abe2ac834851a7d0b0756e295cf7a292c45ca53" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/iommu/ |
H A D | io-pgtable-arm.c | diff 9abe2ac834851a7d0b0756e295cf7a292c45ca53 Fri Nov 19 21:13:43 CST 2021 Hector Martin <marcan@marcan.st> iommu/io-pgtable-arm: Fix table descriptor paddr formatting
Table descriptors were being installed without properly formatting the address using paddr_to_iopte, which does not match up with the iopte_deref in __arm_lpae_map. This is incorrect for the LPAE pte format, as it does not handle the high bits properly.
This was found on Apple T6000 DARTs, which require a new pte format (different shift); adding support for that to paddr_to_iopte/iopte_to_paddr caused it to break badly, as even <48-bit addresses would end up incorrect in that case.
Fixes: 6c89928ff7a0 ("iommu/io-pgtable-arm: Support 52-bit physical address") Acked-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Hector Martin <marcan@marcan.st> Link: https://lore.kernel.org/r/20211120031343.88034-1-marcan@marcan.st Signed-off-by: Joerg Roedel <jroedel@suse.de>
|