FreeBSD Bugzilla – Attachment 202488 Details for
Bug 235876
ACPI related commit r330113 broke Microsoft Hyper-V passthrough device on Generation 2 FreeBSD VM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
thunderx2_uart_workaround.patch
file_235876.txt (text/plain), 1.27 KB, created by
John Baldwin
on 2019-03-01 19:11:20 UTC
(
hide
)
Description:
thunderx2_uart_workaround.patch
Filename:
MIME Type:
Creator:
John Baldwin
Created:
2019-03-01 19:11:20 UTC
Size:
1.27 KB
patch
obsolete
>Index: acpi_resource.c >=================================================================== >--- acpi_resource.c (revision 343404) >+++ acpi_resource.c (working copy) >@@ -202,6 +202,7 @@ struct acpi_resource_context { > struct acpi_parse_resource_set *set; > device_t dev; > void *context; >+ bool ignore_producer_flag; > }; > > #ifdef ACPI_DEBUG_OUTPUT >@@ -385,7 +386,7 @@ acpi_parse_resource(ACPI_RESOURCE *res, void *cont > } > if (length <= 0) > break; >- if (res->Type == ACPI_RESOURCE_TYPE_EXTENDED_ADDRESS64 && >+ if (!arc->ignore_producer_flag && > res->Data.Address.ProducerConsumer != ACPI_CONSUMER) { > ACPI_DEBUG_PRINT((ACPI_DB_RESOURCES, > "ignored %s %s producer\n", name, >@@ -474,6 +475,12 @@ acpi_parse_resources(device_t dev, ACPI_HANDLE han > set->set_init(dev, arg, &arc.context); > arc.set = set; > arc.dev = dev; >+ arc.ignore_producer_flag = false; >+ >+ /* UARTs on ThunderX2 set ResourceProducer on memory resources. */ >+ if (acpi_MatchHid(handle, "ARMH0011") != ACPI_MATCHHID_NOMATCH) >+ arc.ignore_producer_flag = true; >+ > status = AcpiWalkResources(handle, "_CRS", acpi_parse_resource, &arc); > if (ACPI_FAILURE(status) && status != AE_NOT_FOUND) { > printf("can't fetch resources for %s - %s\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 235876
:
202178
|
202411
| 202488 |
202621