Timeout DMAR commands.
authorkib <kib@FreeBSD.org>
Mon, 27 Mar 2017 07:06:45 +0000 (07:06 +0000)
committerkib <kib@FreeBSD.org>
Mon, 27 Mar 2017 07:06:45 +0000 (07:06 +0000)
commitf3a84dabad781d62cb276b45a9b18148be184c88
tree5263a48e0ce2bd43291e01000d7fb445e1c4ffbc
parent742f9efd6b1c6885d63b20ac0f3c87ee069f9628
Timeout DMAR commands.

Implement timeouts for register-based DMAR commands.  Tunable/sysctl
hw.dmar.timeout specifies the timeout in nanoseconds, set it to zero
to allow infinite wait.  Default is 1ms.

Runtime modification of the sysctl is not safe, it is allowed for
debugging.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/x86/iommu/intel_dmar.h
sys/x86/iommu/intel_drv.c
sys/x86/iommu/intel_qi.c
sys/x86/iommu/intel_utils.c