android_kernel_samsung_a7y1.../drivers/iommu
Yonghyun Hwang 4fdf1d76e2 iommu/vt-d: Fix a bug in intel_iommu_iova_to_phys() for huge page
commit 77a1bce84bba01f3f143d77127b72e872b573795 upstream.

intel_iommu_iova_to_phys() has a bug when it translates an IOVA for a huge
page onto its corresponding physical address. This commit fixes the bug by
accomodating the level of page entry for the IOVA and adds IOVA's lower
address to the physical address.

Cc: <stable@vger.kernel.org>
Acked-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: Yonghyun Hwang <yonghyun@google.com>
Fixes: 3871794642579 ("VT-d: Changes to support KVM")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 14:11:46 +02:00
..
amd_iommu_init.c iommu/amd: Make iommu_disable safer 2020-04-07 13:42:24 +02:00
amd_iommu_proto.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
amd_iommu_types.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
amd_iommu_v2.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
amd_iommu.c iommu/amd: Wait for completion of IOTLB flush in attach_device 2020-04-07 13:43:24 +02:00
arm-smmu-v3.c iommu/arm-smmu-v3: Use WRITE_ONCE() when changing validity of an STE 2020-04-07 13:56:53 +02:00
arm-smmu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dma-iommu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
dmar.c iommu/vt-d: dmar: replace WARN_TAINT with pr_warn + add_taint 2020-04-07 14:11:44 +02:00
exynos-iommu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
exynos-iommu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
exynos-iovmm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fsl_pamu_domain.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fsl_pamu_domain.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fsl_pamu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fsl_pamu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
intel_irq_remapping.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
intel-iommu.c iommu/vt-d: Fix a bug in intel_iommu_iova_to_phys() for huge page 2020-04-07 14:11:46 +02:00
intel-svm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
io-pgtable-arm.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
io-pgtable.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
io-pgtable.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iommu-sysfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iommu-traces.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
iommu.c iommu: Use right function to get group for device 2020-04-07 13:42:05 +02:00
iova.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ipmmu-vmsa.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq_remapping.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
irq_remapping.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msm_iommu_dev.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msm_iommu_hw-8xxx.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msm_iommu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
msm_iommu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
of_iommu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
omap-iommu-debug.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
omap-iommu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
omap-iommu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
omap-iopgtable.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rockchip-iommu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
s390-iommu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
shmobile-iommu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
shmobile-ipmmu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
shmobile-ipmmu.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tegra-gart.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
tegra-smmu.c iommu/tegra-smmu: Fix page tables in > 4 GiB memory 2020-04-07 13:22:44 +02:00