]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Sep 2018 07:46:53 +0000 (09:46 +0200)
commit0510985d146069b5746be841d5e51ac8183e2ed6
tree5923f1bc24541fa7168c8a8a00fb76389f70a022
parent8041b94f4eda1308ef90584f50e8a1cf6e2e6162
iommu/omap: Fix cache flushes on L2 table entries

[ 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>
drivers/iommu/omap-iommu.c