acpica: Merge ACPICA 20260408Merge commit '69ae37302ee98839857791a261546e19d078cdb8'
acpica: Merge ACPICA 20251212Merge commit '5cab380e2a2644aaa920b93f1580a1cfc803a8de'
acpica: Merge ACPICA 20250807Merge commit '5bb60d44e94172a567412968545c82065695d871'
acpi_powerres: D3cold supportCherry-pick commit 0b76c0a from ACPICA (actypes: Distinguish betweenD3hot/cold, and default `ACPI_STATE_D3` to D3cold).The same distinction is made between `PCI_POWE
acpi_powerres: D3cold supportCherry-pick commit 0b76c0a from ACPICA (actypes: Distinguish betweenD3hot/cold, and default `ACPI_STATE_D3` to D3cold).The same distinction is made between `PCI_POWERSTATE_D3_HOT` and`PCI_POWERSTATE_D3_COLD`, as they're defined by ACPI (and are assertedto be the same).D3cold is essentially the same as D3hot except the power resources areturned off. Add support for D3cold to `acpi_pwr_switch_consumer`.`acpi_d_state_to_str` replaces the `printf("D%d", d_state)` pattern,allowing for "D3hot" and "D3cold" strings to be printed instead of just"D3".Reviewed by: markj, ziaee, mckusick (mentor)Approved by: markj, mckusick (mentor)Sponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D48384
show more ...
machine/stdarg.h -> sys/stdarg.hSwitch to using sys/stdarg.h for va_list type and va_* builtins.Make an attempt to insert the include in a sensible place. Wherestyle(9) was followed this is eas
machine/stdarg.h -> sys/stdarg.hSwitch to using sys/stdarg.h for va_list type and va_* builtins.Make an attempt to insert the include in a sensible place. Wherestyle(9) was followed this is easy, where it was ignored, aim for thefirst block of sys/*.h headers and don't get too fussy or try to fixother style bugs.Reviewed by: impExp-run by: antoine (PR 286274)Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
Import ACPICA 20250404(cherry picked from commit 97a7606d897edfa3089cb04eea70096a1f9cf734)
acpica: Import ACPICA 20241212
acpica: Merge ACPICA 20240927
acpica: Import ACPICA 20240827
acpica: Import ACPICA 20240321
acpica: Update the SPCR table to version 4cherry pick 1eeff52124a45d5cd887ba5687bbad0116e4d211 from acpica:SPCR: Update the SPCR table to version 4The Microsoft Serial Port Console Redirection
acpica: Update the SPCR table to version 4cherry pick 1eeff52124a45d5cd887ba5687bbad0116e4d211 from acpica:SPCR: Update the SPCR table to version 4The Microsoft Serial Port Console Redirection (SPCR) specificationrevision 1.09 comprises additional fields [1]. The newly added fieldsare:- RISC-V SBI- Precise Baud Rate- NamespaceStringLength- NamespaceStringOffset- NamespaceStringAdditionaly, this code will support up to SPCR revision 1.10, as itincludes only minor wording changes.[1] https://learn.microsoft.com/en-us/windows-hardware/drivers/serports/serial-port-console-redirection-tableSigned-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com>
acpica: Import ACPICA 20230628(cherry picked from commit ef3ba9d625927fd4592a8c071698a562821485bd)
acpica: Import ACPICA 20230331(cherry picked from commit 8e013e1e3b81740266738226667431cf5c28b17a)
acpica: Import ACPICA 20221020(cherry picked from commit a799bdd9d50e84cd6a36e8f1d2ac4301b2a6b374)
acpica: Import ACPICA 20220331(cherry picked from commit ca1c95cc699a25d891e62ef863c8268c93b35cf8)
Import ACPICA 20210930(cherry picked from commit c509b6ab0d7e5bafc5348b08653b8738bd40716e)
Fix acpica macros that subtract null pointersClang 13.0.0 produces a new -Werror warning about the ACPI_TO_INTEGER(p)and ACPI_OFFSET(d, f) macros in acpica's actypes.h: sys/contrib/dev/acpica
Fix acpica macros that subtract null pointersClang 13.0.0 produces a new -Werror warning about the ACPI_TO_INTEGER(p)and ACPI_OFFSET(d, f) macros in acpica's actypes.h: sys/contrib/dev/acpica/components/dispatcher/dsopcode.c:708:31: error: performing pointer subtraction with a null pointer has undefined behavior [-Werror,-Wnull-pointer-subtraction] ObjDesc->Region.Address = ACPI_PTR_TO_PHYSADDR (Table); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ sys/contrib/dev/acpica/include/actypes.h:664:41: note: expanded from macro 'ACPI_PTR_TO_PHYSADDR' #define ACPI_PTR_TO_PHYSADDR(i) ACPI_TO_INTEGER(i) ^~~~~~~~~~~~~~~~~~ sys/contrib/dev/acpica/include/actypes.h:661:41: note: expanded from macro 'ACPI_TO_INTEGER' #define ACPI_TO_INTEGER(p) ACPI_PTR_DIFF (p, (void *) 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ sys/contrib/dev/acpica/include/actypes.h:656:82: note: expanded from macro 'ACPI_PTR_DIFF' #define ACPI_PTR_DIFF(a, b) ((ACPI_SIZE) (ACPI_CAST_PTR (UINT8, (a)) - ACPI_CAST_PTR (UINT8, (b)))) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.This problem of undefined behavior was also reported to acpica by @cemin 2018: https://github.com/acpica/acpica/issues/407, but it seems therewas never any fix committed for it upstream.Instead fix these locally, for ACPI_TO_INTEGER by simply casting theincoming pointer to ACPI_SIZE (which corresponds roughly to uintptr_tand size_t), and for ACPI_OFFSET by reusing our __offsetof definitionfrom sys/cdefs.h.Reviewed by: emaste, kib, impMFC after: 3 daysDifferential Revision: https://reviews.freebsd.org/D31710
acpica: Import ACPICA 20210730(cherry picked from commit 34cfdff1f386b2d7bf0a8ea873acf604753991e6)
Import ACPICA 20210604(cherry picked from commit 395770967c3664ec744e63fa47acc19670d32f47)
Merge ACPICA 20210331.(cherry picked from commit 1e02e5b0ba8634758c128dcb43c67342c7219cd4)
acpica: Import ACPICA 20210105.(cherry picked from commit a61ec1492c58c40bd0d968794c380668c157e2ef)
acpica: Import ACPICA 20201217.(cherry picked from commit a4634ed7779f0905e3bfeb781e58d40a5bdf9bb7)
MFV: r367652Merge ACPICA 20201113.
MFV: r366539Merge ACPICA 20200925.
MFV: r363292Merge ACPICA 20200717.
123456