]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dmar: Disable protected memory regions after initialization
authorKornel Duleba <mindal@semihalf.com>
Thu, 21 Oct 2021 14:02:26 +0000 (16:02 +0200)
committerWojciech Macek <wma@FreeBSD.org>
Fri, 29 Oct 2021 08:08:25 +0000 (10:08 +0200)
commit06e6ca6dd3508866b584942a6a40739e09453cc6
tree8bafcb24f23fb318c9c8e8e6e6a928d9deab10ae
parent3c02da8096b142ef243da8da667c3a5a7d591105
dmar: Disable protected memory regions after initialization

Some BIOSes protect memory region they reside in by using DMAR to
prevent devices from doing any DMA transactions to that part of RAM.
AMI refers to this as "DMA Control Guarantee".
Disable the protection when address translation is enabled.
I stumbled upon this while investigation a failing coredump on a device
which has this feature enabled.

Sponsored by: Stormshield
Obtained from: Semihalf
Reviewed by: kib
Differential revision: https://reviews.freebsd.org/D32591
sys/x86/iommu/intel_ctx.c
sys/x86/iommu/intel_dmar.h
sys/x86/iommu/intel_drv.c
sys/x86/iommu/intel_utils.c