freebsd-dev/sys/x86
Kornel Duleba 06f659c39d dmar: Disable PMR in driver attach routine
Previously it was disabled right before translation was enabled.
This way the disable logic is still executed even when translation
is not be activated, e.g. with hw.iommu.dma=0 tunable set.
On some platforms we need to disable PMR in order for core dump to work.
At the same time it was observed that enabling translation has
a significant impact on network performance.
With this patch PMR can be disabled, with IOMMU translation not being
turned on by appending the following to the loader.conf:

hw.dmar.enable=1
hw.dmar.pmr.disable=1
hw.dmar.dma=0

Sponsored by: Stormshield
Obtained from: Semihalf
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D34907
2022-04-20 09:40:28 +02:00
..
acpica x86/madt: allow Xen guest to use x2APIC mode 2022-01-13 17:15:24 +01:00
bios smbios: Move smbios driver out from x86 machdep code 2021-02-23 21:17:09 +00:00
conf Retire synchronous PPP kernel driver sppp(4). 2021-10-22 11:41:36 -07:00
cpufreq powernow(4): Fix unused variable warnings by using the variables. 2022-04-06 16:45:28 -07:00
include Remove checks for <sys/cdefs.h> being included. 2022-04-12 10:06:18 -07:00
iommu dmar: Disable PMR in driver attach routine 2022-04-20 09:40:28 +02:00
isa i386: Fix the nodevice apic build 2022-04-08 11:47:52 -04:00
linux Drop "All rights reserved" from my copyright statements. 2021-07-20 10:05:50 +03:00
pci pci: add missing PCI id of Coffee Lake GPU 2021-12-17 23:18:31 +02:00
x86 Remove checks for __GNUCLIKE_ASM assuming it is always true. 2022-04-12 10:05:45 -07:00
xen xen(4): Fix a few typos in source code comments 2022-03-28 19:37:20 +02:00