Skip to content

Commit 2910a7f

Browse files
jgunthorpejoergroedel
authored andcommitted
iommu/amd: Do not set the D bit on AMD v2 table entries
The manual says that bit 6 is IGN for all Page-Table Base Address pointers, don't set it. Fixes: aaac38f ("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>
1 parent 7e51586 commit 2910a7f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/iommu/amd/io_pgtable_v2.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ static inline u64 set_pgtable_attr(u64 *page)
5151
u64 prot;
5252

5353
prot = IOMMU_PAGE_PRESENT | IOMMU_PAGE_RW | IOMMU_PAGE_USER;
54-
prot |= IOMMU_PAGE_ACCESS | IOMMU_PAGE_DIRTY;
54+
prot |= IOMMU_PAGE_ACCESS;
5555

5656
return (iommu_virt_to_phys(page) | prot);
5757
}

0 commit comments

Comments
 (0)