freebsd-dev/sys/x86/iommu
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
..
intel_ctx.c dmar: Disable protected memory regions after initialization 2021-10-29 10:08:25 +02:00
intel_dmar.h dmar: Disable protected memory regions after initialization 2021-10-29 10:08:25 +02:00
intel_drv.c dmar: Disable PMR in driver attach routine 2022-04-20 09:40:28 +02:00
intel_fault.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
intel_idpgtbl.c DMAR: clean up warnings about write-only variables 2021-10-21 21:40:46 +03:00
intel_intrmap.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
intel_qi.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
intel_quirks.c Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
intel_reg.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
intel_utils.c dmar: Disable PMR in driver attach routine 2022-04-20 09:40:28 +02:00
iommu_intrmap.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00