linux/drivers/iommu/amd
Suravee Suthikulpanit c69d89aff3 iommu/amd: Use 4K page for completion wait write-back semaphore
IOMMU SNP support requires the completion wait write-back semaphore to be
implemented using a 4K-aligned page, where the page address is to be
programmed into the newly introduced MMIO base/range registers.

This new scheme uses a per-iommu atomic variable to store the current
semaphore value, which is incremented for every completion wait command.

Since this new scheme is also compatible with non-SNP mode,
generalize the driver to use 4K page for completion-wait semaphore in
both modes.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Cc: Brijesh Singh <brijesh.singh@amd.com>
Link: https://lore.kernel.org/r/20200923121347.25365-2-suravee.suthikulpanit@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
2020-09-24 12:46:40 +02:00
..
amd_iommu_types.h iommu/amd: Use 4K page for completion wait write-back semaphore 2020-09-24 12:46:40 +02:00
amd_iommu.h iommu/amd: Add missing function prototypes to fix -Wmissing-prototypes 2020-09-04 10:42:15 +02:00
debugfs.c
init.c iommu/amd: Use 4K page for completion wait write-back semaphore 2020-09-24 12:46:40 +02:00
iommu_v2.c mm: do page fault accounting in handle_mm_fault 2020-08-12 10:58:02 -07:00
iommu.c iommu/amd: Use 4K page for completion wait write-back semaphore 2020-09-24 12:46:40 +02:00
Kconfig iommu/amd: Move Kconfig and Makefile bits down into amd directory 2020-07-29 14:15:36 +02:00
Makefile iommu/amd: Move Kconfig and Makefile bits down into amd directory 2020-07-29 14:15:36 +02:00
quirks.c