]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/amd: Do not set the D bit on AMD v2 table entries
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 30 Aug 2024 00:06:23 +0000 (21:06 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:29:07 +0000 (16:29 +0200)
commite109a01f3d56096755b17023759122aee149f2d9
tree7731af5e912575f509e13650d3fbae9418aa8b0c
parent9b97d6b08b7ffd9547329f5d290698a910c5913f
iommu/amd: Do not set the D bit on AMD v2 table entries

[ Upstream commit 2910a7fa1be090fc7637cef0b2e70bcd15bf5469 ]

The manual says that bit 6 is IGN for all Page-Table Base Address
pointers, don't set it.

Fixes: aaac38f61487 ("iommu/amd: Initial support for AMD IOMMU v2 page table")
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/14-v2-831cdc4d00f3+1a315-amd_iopgtbl_jgg@nvidia.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/amd/io_pgtable_v2.c