Bug 237357 - Not resuming from suspend with IOMMU DMAR enabled
Summary: Not resuming from suspend with IOMMU DMAR enabled
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs mailing list
Depends on:
Reported: 2019-04-18 08:01 UTC by Greg V
Modified: 2019-12-29 17:48 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Greg V 2019-04-18 08:01:11 UTC
With hw.dmar.enable=1, this Haswell laptop doesn't wake up from S3, similar symptoms to what it was doing when the TPM was enabled: no reaction to lid open / power button press, power LED keeps blinking.
Comment 1 Greg V 2019-10-03 22:45:06 UTC
Same on a Kaby Lake laptop, I guess the dmar driver just doesn't handle suspend-resume correctly.
Comment 2 Greg V 2019-10-05 14:28:00 UTC
Actually, I recall vmm.ko also breaking suspend.

The only suspend method I see in sys/amd64/vmm is in AMD ivrs_drv.c.

sys/x86/iommu/intel_drv.c has suspend/resume methods but they're blank. That explains things.
Comment 3 Greg V 2019-12-29 17:48:16 UTC
( WIP code at https://reviews.freebsd.org/D22642 )