]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
iommu/rockchip: Fix physical address decoding
authorBenjamin Gaignard <benjamin.gaignard@collabora.com>
Mon, 12 Jul 2021 10:12:32 +0000 (12:12 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 14 Jul 2021 10:58:07 +0000 (12:58 +0200)
commitc987b65a574fad8b598d6f58f010d8f630327428
tree26a1e91c0f9616cad98424a8dff05e10a7885006
parent474dd1c6506411752a9b2f2233eec11f1733a099
iommu/rockchip: Fix physical address decoding

Restore bits 39 to 32 at correct position.
It reverses the operation done in rk_dma_addr_dte_v2().

Fixes: c55356c534aa ("iommu: rockchip: Add support for iommu v2")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Benjamin Gaignard <benjamin.gaignard@collabora.com>
Link: https://lore.kernel.org/r/20210712101232.318589-1-benjamin.gaignard@collabora.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/rockchip-iommu.c