]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iommu/amd: Modify clear_dte_entry() to avoid in-place update
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Mon, 18 Nov 2024 05:49:35 +0000 (05:49 +0000)
committerJoerg Roedel <jroedel@suse.de>
Wed, 18 Dec 2024 08:37:42 +0000 (09:37 +0100)
commit66ea3f96ae2b02cf543f3373b67aa6b8c6794926
treed034dfe0d6de84d01e29b4c9910f7a3757fe4022
parenta2ce608a1eb65c2af99c58b63eae557165a0da87
iommu/amd: Modify clear_dte_entry() to avoid in-place update

By reusing the make_clear_dte() and update_dte256().

Also, there is no need to set TV bit for non-SNP system when clearing DTE
for blocked domain, and no longer need to apply erratum 63 in clear_dte()
since it is already stored in struct ivhd_dte_flags and apply in
set_dte_entry().

Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Link: https://lore.kernel.org/r/20241118054937.5203-8-suravee.suthikulpanit@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd/iommu.c