mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
![]() AMD IOMMU requires 4k-aligned pages for the event log, the PPR log,
and the completion wait write-back regions. However, when allocating
the pages, they could be part of large mapping (e.g. 2M) page.
This causes #PF due to the SNP RMP hardware enforces the check based
on the page level for these data structures.
So, fix by calling set_memory_4k() on the allocated pages.
Fixes:
|
||
---|---|---|
.. | ||
amd_iommu.h | ||
amd_iommu_types.h | ||
debugfs.c | ||
init.c | ||
iommu.c | ||
iommu_v2.c | ||
Kconfig | ||
Makefile | ||
quirks.c |