Revision a44092e326d403c7878018ba532369f84d31dbfa authored by Suravee Suthikulpanit on 20 January 2021, 13:50:02 UTC, committed by Joerg Roedel on 28 January 2021, 10:57:08 UTC
IOMMU Extended Feature Register (EFR) is used to communicate the supported features for each IOMMU to the IOMMU driver. This is normally read from the PCI MMIO register offset 0x30, and used by the iommu_feature() helper function. However, there are certain scenarios where the information is needed prior to PCI initialization, and the iommu_feature() function is used prematurely w/o warning. This has caused incorrect initialization of IOMMU. This is the case for the commit 6d39bdee238f ("iommu/amd: Enforce 4k mapping for certain IOMMU data structures") Since, the EFR is also available in the IVHD header, and is available to the driver prior to PCI initialization. Therefore, default to using the IVHD EFR instead. Fixes: 6d39bdee238f ("iommu/amd: Enforce 4k mapping for certain IOMMU data structures") Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com> Tested-by: Brijesh Singh <brijesh.singh@amd.com> Reviewed-by: Robert Richter <rrichter@amd.com> Link: https://lore.kernel.org/r/20210120135002.2682-1-suravee.suthikulpanit@amd.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 6ee1d74
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 4.8 KB |
Makefile | -rw-r--r-- | 874 bytes |
alarmtimer.c | -rw-r--r-- | 23.5 KB |
clockevents.c | -rw-r--r-- | 19.6 KB |
clocksource.c | -rw-r--r-- | 33.3 KB |
hrtimer.c | -rw-r--r-- | 60.8 KB |
itimer.c | -rw-r--r-- | 10.2 KB |
jiffies.c | -rw-r--r-- | 3.1 KB |
namespace.c | -rw-r--r-- | 10.5 KB |
ntp.c | -rw-r--r-- | 28.2 KB |
ntp_internal.h | -rw-r--r-- | 783 bytes |
posix-clock.c | -rw-r--r-- | 5.6 KB |
posix-cpu-timers.c | -rw-r--r-- | 42.4 KB |
posix-stubs.c | -rw-r--r-- | 5.5 KB |
posix-timers.c | -rw-r--r-- | 37.1 KB |
posix-timers.h | -rw-r--r-- | 1.9 KB |
sched_clock.c | -rw-r--r-- | 7.7 KB |
test_udelay.c | -rw-r--r-- | 3.7 KB |
tick-broadcast-hrtimer.c | -rw-r--r-- | 3.2 KB |
tick-broadcast.c | -rw-r--r-- | 27.3 KB |
tick-common.c | -rw-r--r-- | 14.7 KB |
tick-internal.h | -rw-r--r-- | 6.8 KB |
tick-legacy.c | -rw-r--r-- | 999 bytes |
tick-oneshot.c | -rw-r--r-- | 3.2 KB |
tick-sched.c | -rw-r--r-- | 36.6 KB |
tick-sched.h | -rw-r--r-- | 3.3 KB |
time.c | -rw-r--r-- | 22.9 KB |
timeconst.bc | -rw-r--r-- | 3.0 KB |
timeconv.c | -rw-r--r-- | 3.6 KB |
timecounter.c | -rw-r--r-- | 2.5 KB |
timekeeping.c | -rw-r--r-- | 69.5 KB |
timekeeping.h | -rw-r--r-- | 983 bytes |
timekeeping_debug.c | -rw-r--r-- | 1.3 KB |
timekeeping_internal.h | -rw-r--r-- | 921 bytes |
timer.c | -rw-r--r-- | 60.0 KB |
timer_list.c | -rw-r--r-- | 8.4 KB |
vsyscall.c | -rw-r--r-- | 4.9 KB |
Computing file changes ...