]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: Fix the configuration of GCR3 table root pointer
authorAdrian Huang <ahuang12@lenovo.com>
Fri, 14 Feb 2020 10:44:51 +0000 (18:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Apr 2020 08:36:42 +0000 (10:36 +0200)
commit17e23bfc533a1a6bd01843c35a3296fc9e601376
tree7a1a1e474facc4be7b4bc54b528ef475ee420df3
parentc092efaf0cffa69472fec96ec7d7e3dc8f66f7d2
iommu/amd: Fix the configuration of GCR3 table root pointer

[ Upstream commit 0df47da6115c9e8ffd06a86fa6fa98bdebe52b32 ]

The SPA of the GCR3 table root pointer[51:31] masks 20 bits. However,
this requires 21 bits (Please see the AMD IOMMU specification).
This leads to the potential failure when the bit 51 of SPA of
the GCR3 table root pointer is 1'.

Signed-off-by: Adrian Huang <ahuang12@lenovo.com>
Fixes: a0fbfcf660937 ("iommu/amd: Add support for IOMMUv2 domain mode")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/amd_iommu_types.h