]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 332733:
authorjhb <jhb@FreeBSD.org>
Sat, 28 Apr 2018 00:16:54 +0000 (00:16 +0000)
committerjhb <jhb@FreeBSD.org>
Sat, 28 Apr 2018 00:16:54 +0000 (00:16 +0000)
commit4eb5299ec54a3c96263b1f11d21a9f58e712d59d
treeedb8103ce1845ac6db9b75e9fc60f8e5b0fb4f89
parent98598cf3f04eb78a3c59c5fa6f6a12c1d67be752
MFC 332733:
Workaround fixed I/O port resources encoded as I/O port ranges in _CRS.

ACPI I/O port descriptors use _MIN and _MAX fields to specify the set
of allowable base (start) addresses for an I/O port resource along with
a _LEN field specifying the length.  A fixed resource is supposed to be
encoded with _MIN == _MAX, but some buggy firmwares instead set _MAX to
the end of the fixed range.  Relocating I/O ranges only make sense in
_PRS (possible resource settings), not in _CRS (current resource settings),
so if an I/O port range with _MAX set set to the end of the range is
present in _CRS, treat it as a fixed I/O port resource starting at
_MIN.

PR: 224096
sys/dev/acpica/acpi_resource.c