OpenCloudOS-Kernel/drivers/iommu/amd
Joerg Roedel 9b45a7738e iommu/amd: Fix loop timeout issue in iommu_ga_log_enable()
The polling loop for the register change in iommu_ga_log_enable() needs
to have a udelay() in it.  Otherwise the CPU might be faster than the
IOMMU hardware and wrongly trigger the WARN_ON() further down the code
stream. Use a 10us for udelay(), has there is some hardware where
activation of the GA log can take more than a 100ms.

A future optimization should move the activation check of the GA log
to the point where it gets used for the first time. But that is a
bigger change and not suitable for a fix.

Fixes: 8bda0cfbdc ("iommu/amd: Detect and initialize guest vAPIC log")
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20220204115537.3894-1-joro@8bytes.org
2022-02-04 12:57:26 +01:00
..
Kconfig iommu/amd: Prepare for generic IO page table framework 2021-01-28 16:51:17 +01:00
Makefile iommu/amd: Prepare for generic IO page table framework 2021-01-28 16:51:17 +01:00
amd_iommu.h iommu/amd: Tidy up DMA ops init 2021-06-07 14:51:33 +02:00
amd_iommu_types.h iommu/amd: Remove useless irq affinity notifier 2021-12-17 09:30:22 +01:00
debugfs.c
init.c iommu/amd: Fix loop timeout issue in iommu_ga_log_enable() 2022-02-04 12:57:26 +01:00
io_pgtable.c iommu/amd: Use put_pages_list 2021-12-20 09:03:05 +01:00
iommu.c IOMMU Updates for Linux v5.16: 2021-11-04 11:11:24 -07:00
iommu_v2.c iommu/amd: Clarify AMD IOMMUv2 initialization messages 2021-11-26 22:54:20 +01:00
quirks.c