]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
iommu/omap: Fix cache flushes on L2 table entries
authorRalf Goebel <ralf.goebel@imago-technologies.com>
Mon, 6 Aug 2018 15:00:36 +0000 (17:00 +0200)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:46:42 +0000 (19:46 -0600)
commitf1969e59441c4bb98d59aab063bc9048116a3643
tree71f18936ea1009b0f36019ecd828fbb77ffe23f3
parenta0cb584a3425f5f23f296d2033ce10c4e92fb061
iommu/omap: Fix cache flushes on L2 table entries

BugLink: https://bugs.launchpad.net/bugs/1835972
[ Upstream commit 04c532a1cdc7e423656c07937aa4b5c1c2b064f9 ]

The base address used for DMA operations on the second-level table
did incorrectly include the offset for the table entry. The offset
was then added again which lead to incorrect behavior.

Operations on the L1 table are not affected.

The calculation of the base address is changed to point to the
beginning of the L2 table.

Fixes: bfee0cf0ee1d ("iommu/omap: Use DMA-API for performing cache flushes")
Acked-by: Suman Anna <s-anna@ti.com>
Signed-off-by: Ralf Goebel <ralf.goebel@imago-technologies.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
drivers/iommu/omap-iommu.c