HomeFreeBSD

dmar: Disable protected memory regions after initialization

Description

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

Details

Provenance
kdAuthored on Oct 21 2021, 2:02 PM
wmaCommitted on Oct 29 2021, 8:08 AM
Reviewer
kib
Differential Revision
D32591: dmar: Disable memory protection after initialization
Parents
rG3c02da8096b1: dmar: Don't try to reserve PCI regions for non-existing devices
Branches
Unknown
Tags
Unknown