]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC 332733:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 28 Apr 2018 00:16:54 +0000 (00:16 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 28 Apr 2018 00:16:54 +0000 (00:16 +0000)
commitb3e56cf36e19d8f10e0cf3d4b99da80602b168d0
tree907dafee4222007c990f32262f953c8f17993d85
parent66f2b6b0a2bdab62ff01c8610b9f0f2c3dcb4807
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

git-svn-id: svn://svn.freebsd.org/base/stable/10@333080 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/acpica/acpi_resource.c