6d39bdee23
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:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
amd_iommu.h | ||
amd_iommu_types.h | ||
debugfs.c | ||
init.c | ||
iommu.c | ||
iommu_v2.c | ||
quirks.c |