OSDN Git Service

iommu/exynos: Workaround FLPD cache flush issues for SYSMMU v5
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 20 Mar 2017 09:17:57 +0000 (10:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:23:39 +0000 (14:23 +0100)
commit7171aa2680b2ff7c946c89ec36aa82a41f6fce55
tree9f0eaa4c7133b16c04f7e038b07718c925c50d57
parent0f0ac218057f9a08c28083c11dd315ff21686d22
iommu/exynos: Workaround FLPD cache flush issues for SYSMMU v5

[ Upstream commit cd37a296a9f890586665bb8974a8b17ee2f17d6d ]

For some unknown reasons, in some cases, FLPD cache invalidation doesn't
work properly with SYSMMU v5 controllers found in Exynos5433 SoCs. This
can be observed by a firmware crash during initialization phase of MFC
video decoder available in the mentioned SoCs when IOMMU support is
enabled. To workaround this issue perform a full TLB/FLPD invalidation
in case of replacing any first level page descriptors in case of SYSMMU v5.

Fixes: 740a01eee9ada ("iommu/exynos: Add support for v5 SYSMMU")
CC: stable@vger.kernel.org # v4.10+
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iommu/exynos-iommu.c