2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/iommu/amd
Alejandro Jimenez c5b0320bbf iommu/amd: Preserve default DTE fields when updating Host Page Table Root
When updating the page table root field on the DTE, avoid overwriting any
bits that are already set. The earlier call to make_clear_dte() writes
default values that all DTEs must have set (currently DTE[V]), and those
must be preserved.

Currently this doesn't cause problems since the page table root update is
the first field that is set after make_clear_dte() is called, and
DTE_FLAG_V is set again later along with the permission bits (IR/IW).
Remove this redundant assignment too.

Fixes: fd5dff9de4 ("iommu/amd: Modify set_dte_entry() to use 256-bit DTE helpers")
Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Reviewed-by: Dheeraj Kumar Srivastava <dheerajkumar.srivastava@amd.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20250106191413.3107140-1-alejandro.j.jimenez@oracle.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2025-02-28 12:18:00 +01:00
..
amd_iommu_types.h iommu/amd: Expicitly enable CNTRL.EPHEn bit in resume path 2025-02-14 09:11:58 +01:00
amd_iommu.h iommu/amd: Move the nid to pdom_setup_pgtable() 2025-01-17 08:59:31 +01:00
debugfs.c
init.c ARM: 2025-02-16 10:25:12 -08:00
io_pgtable_v2.c iommu/amd/pgtbl_v2: Take protection domain lock before invalidating TLB 2024-10-30 11:06:39 +01:00
io_pgtable.c iommu/amd: Fix corruption when mapping large pages from 0 2024-10-29 09:55:48 +01:00
iommu.c iommu/amd: Preserve default DTE fields when updating Host Page Table Root 2025-02-28 12:18:00 +01:00
Kconfig iommu/amd: Fix compilation error 2024-05-03 12:12:16 +02:00
Makefile iommu/amd: Initial SVA support for AMD IOMMU 2024-04-26 12:16:05 +02:00
pasid.c iommu/amd: Move the nid to pdom_setup_pgtable() 2025-01-17 08:59:31 +01:00
ppr.c iommu/amd: Fix Invalid wait context issue 2024-06-04 14:00:59 +02:00
quirks.c iommu/amd: Include PCI segment ID when initialize IOMMU 2022-07-07 09:37:51 +02:00