FreeBSD Bugzilla – Attachment 188532 Details for
Bug 224096
[PATCH] acpi bus driver: support resource allocation for buggy _CRS entries where fixed I/O ranges are defined like relocatable ones
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch that adds call to bus_set_resource() for fixed I/O port ranges that wrongly have been defined as relocatable ones
acpi_resource.c.diff (text/plain), 939 bytes, created by
Harald Böhm
on 2017-12-04 21:20:41 UTC
(
hide
)
Description:
Patch that adds call to bus_set_resource() for fixed I/O port ranges that wrongly have been defined as relocatable ones
Filename:
MIME Type:
Creator:
Harald Böhm
Created:
2017-12-04 21:20:41 UTC
Size:
939 bytes
patch
obsolete
>--- sys/dev/acpica/acpi_resource.c 2017-12-04 21:19:40.375524000 +0100 >+++ sys/dev/acpica/acpi_resource.c.patch 2017-12-04 20:49:21.142485000 +0100 >@@ -35,6 +35,7 @@ > #include <sys/limits.h> > #include <sys/malloc.h> > #include <sys/module.h> >+#include <sys/reboot.h> > > #include <machine/bus.h> > #include <machine/resource.h> >@@ -525,6 +526,23 @@ > > if (cp == NULL) > return; >+ >+ /* >+ * XXX: Some BIOSes contain buggy _CRS entries where fixed I/O >+ * ranges are defined like relocatable ones. Therefore, we treat >+ * these just like fixed I/O ports, so device drivers may allocate >+ * them. >+ */ >+ if (high == (low + length)) { >+ if (boothowto & RB_VERBOSE) { >+ device_printf(dev, >+ "BIOS bug: _CRS has fixed I/O port range defined as relocatable\n"); >+ } >+ >+ bus_set_resource(dev, SYS_RES_IOPORT, cp->ar_nio++, low, length); >+ return; >+ } >+ > device_printf(dev, "I/O range not supported\n"); > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 224096
: 188532