aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib/dev/acpica
Commit message (Collapse)AuthorAgeFilesLines
* acpica: Merge ACPICA 20251212Jung-uk Kim2025-12-1932-156/+1106
|\ | | | | | | Merge commit '5cab380e2a2644aaa920b93f1580a1cfc803a8de'
* | acpica: Fix build of acpidb(8) on i386John Baldwin2025-08-261-1/+1
| | | | | | | | Fixes: b5daf675efc7 ("acpica: Merge ACPICA 20250807")
* | acpica: Merge ACPICA 20250807Jung-uk Kim2025-08-2128-85/+280
|\| | | | | | | Merge commit '5bb60d44e94172a567412968545c82065695d871'
* | acpi_powerres: D3cold supportAymeric Wibo2025-08-081-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry-pick commit 0b76c0a from ACPICA (actypes: Distinguish between D3hot/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 asserted to be the same). D3cold is essentially the same as D3hot except the power resources are turned 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 Foundation Differential Revision: https://reviews.freebsd.org/D48384
* | machine/stdarg.h -> sys/stdarg.hBrooks Davis2025-06-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Switch to using sys/stdarg.h for va_list type and va_* builtins. Make an attempt to insert the include in a sensible place. Where style(9) was followed this is easy, where it was ignored, aim for the first block of sys/*.h headers and don't get too fussy or try to fix other style bugs. Reviewed by: imp Exp-run by: antoine (PR 286274) Pull Request: https://github.com/freebsd/freebsd-src/pull/1595
* | Import ACPICA 20250404Jung-uk Kim2025-04-11359-458/+2658
| | | | | | | | (cherry picked from commit 97a7606d897edfa3089cb04eea70096a1f9cf734)
* | acpica: Import ACPICA 20241212Jung-uk Kim2025-01-039-44/+65
|\|
* | acpica: Merge ACPICA 20240927Jung-uk Kim2025-01-033-2/+15
|\|
* | acpica: Import ACPICA 20240827Jung-uk Kim2025-01-0355-256/+1548
|\|
* | acpica: Import ACPICA 20240321Jung-uk Kim2025-01-03358-2049/+1152
|\|
* | acpica: Update the SPCR table to version 4Sia Jee Heng2024-10-113-9/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cherry pick 1eeff52124a45d5cd887ba5687bbad0116e4d211 from acpica: SPCR: Update the SPCR table to version 4 The Microsoft Serial Port Console Redirection (SPCR) specification revision 1.09 comprises additional fields [1]. The newly added fields are: - RISC-V SBI - Precise Baud Rate - NamespaceStringLength - NamespaceStringOffset - NamespaceString Additionaly, this code will support up to SPCR revision 1.10, as it includes only minor wording changes. [1] https://learn.microsoft.com/en-us/windows-hardware/drivers/serports/serial-port-console-redirection-table Signed-off-by: Sia Jee Heng <jeeheng.sia@starfivetech.com>
* | acpica: Fix my mismergeWarner Losh2024-02-071-1/+0
| | | | | | | | | | | | | | | | I merged in the limits.h include. I should have resolved this by deleting it (since we have no easy way to 'fix' it with compat headers). GENERIC doesn't bring in the debugger, but LINT does... Sponsored by: Netflix
* | acpica: Create merge commit against vendor branchWarner Losh2024-02-051-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge tracking branch 'vendor/acpica' for vendor/acpica/20230628, and resolve conflicts. This deletes files that we've deleted since the last merge (during SVN times it seems) so future merges don't bring them up. It resolves conflicts in several files that we have modified (but we can likely fix the build system so we don't have to modify them since it's almost all headers) and one ifndef kernel that could be solved with an empty #define. It also deletes new files in the platform directory that are similar to prior non-freebsd platform files we've deleted. The net delta: +1 line. Sponsored by: Netflix
* | acpica: Import ACPICA 20230628Jung-uk Kim2024-01-3138-96/+651
| | | | | | | | (cherry picked from commit ef3ba9d625927fd4592a8c071698a562821485bd)
* | acpica: Import ACPICA 20230331Jung-uk Kim2024-01-31359-557/+2837
| | | | | | | | (cherry picked from commit 8e013e1e3b81740266738226667431cf5c28b17a)
* | acpica: Fix the botched mergeJung-uk Kim2022-10-282-200/+0
| | | | | | | | Fixes: 9a4bc5208fad acpica: Import ACPICA 20221020
* | acpica: Import ACPICA 20221020Jung-uk Kim2022-10-2852-284/+2121
| | | | | | | | (cherry picked from commit a799bdd9d50e84cd6a36e8f1d2ac4301b2a6b374)
* | ACPICA: Revert an upstream patch to appease useless warningsJung-uk Kim2022-06-141-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | This patch removes warnings messages like the following added in ACPICA 20220331: ACPI Warning: Firmware issue: Excessive sleep time (0xxx ms > 10 ms) in ACPI Control Method (20220331/exsystem-347) Note the original author of this patch wants to back it out: https://github.com/acpica/acpica/pull/780
* | acpica: Drop a local patch in favor of an upstream patchJung-uk Kim2022-04-151-3/+1
| | | | | | | | | | | | Use ACPI_ERROR() instead of fprintf(). https://github.com/acpica/acpica/pull/768
* | acpica: Import ACPICA 20220331Jung-uk Kim2022-04-01357-771/+2760
| | | | | | | | (cherry picked from commit ca1c95cc699a25d891e62ef863c8268c93b35cf8)
* | Import ACPICA 20210930Jung-uk Kim2021-10-0123-71/+1005
| | | | | | | | (cherry picked from commit c509b6ab0d7e5bafc5348b08653b8738bd40716e)
* | Fix acpica macros that subtract null pointersDimitry Andric2021-08-301-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang 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 @cem in 2018: https://github.com/acpica/acpica/issues/407, but it seems there was never any fix committed for it upstream. Instead fix these locally, for ACPI_TO_INTEGER by simply casting the incoming pointer to ACPI_SIZE (which corresponds roughly to uintptr_t and size_t), and for ACPI_OFFSET by reusing our __offsetof definition from sys/cdefs.h. Reviewed by: emaste, kib, imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D31710
* | acpica: Import ACPICA 20210730Jung-uk Kim2021-07-3125-29/+1242
| | | | | | | | (cherry picked from commit 34cfdff1f386b2d7bf0a8ea873acf604753991e6)
* | Import ACPICA 20210604Jung-uk Kim2021-06-0533-237/+1645
| | | | | | | | (cherry picked from commit 395770967c3664ec744e63fa47acc19670d32f47)
* | ACPICA: Fix build with options ACPI_DEBUGJung-uk Kim2021-04-021-0/+2
| |
* | Merge ACPICA 20210331.Jung-uk Kim2021-04-0170-480/+2757
| | | | | | | | (cherry picked from commit 1e02e5b0ba8634758c128dcb43c67342c7219cd4)
* | acpica: Import ACPICA 20210105.Jung-uk Kim2021-01-30357-669/+379
| | | | | | | | (cherry picked from commit a61ec1492c58c40bd0d968794c380668c157e2ef)
* | acpica: Import ACPICA 20201217.Jung-uk Kim2021-01-3029-40/+95
| | | | | | | | (cherry picked from commit a4634ed7779f0905e3bfeb781e58d40a5bdf9bb7)
* | MFV: r367652Jung-uk Kim2020-11-1319-99/+311
|\| | | | | | | | | | | | | Merge ACPICA 20201113. Notes: svn path=/head/; revision=367654
* | MFV: r366539Jung-uk Kim2020-10-0933-108/+516
|\| | | | | | | | | | | | | Merge ACPICA 20200925. Notes: svn path=/head/; revision=366562
* | MFV: r363292Jung-uk Kim2020-07-1811-19/+80
|\| | | | | | | | | | | | | Merge ACPICA 20200717. Notes: svn path=/head/; revision=363300
* | MFV: r361597Jung-uk Kim2020-05-2811-18/+97
|\| | | | | | | | | | | | | Import ACPICA 20200528. Notes: svn path=/head/; revision=361600
* | MFV: r360512Jung-uk Kim2020-05-0117-74/+307
|\| | | | | | | | | | | | | Merge ACPICA 20200430. Notes: svn path=/head/; revision=360517
* | Merge ACPICA 20200326.Jung-uk Kim2020-03-2738-85/+511
|\| | | | | | | Notes: svn path=/head/; revision=359346
* | MFV: r357927Jung-uk Kim2020-02-1532-205/+875
|\| | | | | | | | | | | | | Merge ACPICA 20200214. Notes: svn path=/head/; revision=357959
* | MFV: r356607Jung-uk Kim2020-01-10355-373/+503
|\| | | | | | | | | | | | | Import ACPICA 20200110. Notes: svn path=/head/; revision=356618
* | MFV: r355716Jung-uk Kim2019-12-1328-101/+401
|\| | | | | | | | | | | | | Merge ACPICA 20191213. Notes: svn path=/head/; revision=355739
* | Merge ACPICA 20191018.Jung-uk Kim2019-10-19101-404/+1809
|\| | | | | | | Notes: svn path=/head/; revision=353764
* | MFV: r351091Jung-uk Kim2019-08-1527-341/+249
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the reported boot failures and revert r350510. Note this commit is effectively merging ACPICA 20190703 again and applying an upstream patch. https://github.com/acpica/acpica/commit/73f6372 Tested by: scottl Notes: svn path=/head/; revision=351095
* | Enable ACPICA mutex debugging in INVARIANTS case.Jung-uk Kim2019-08-151-0/+4
| | | | | | | | | | | | | | This lets us detect lock order reversal in ACPICA code to avoid deadlock. Notes: svn path=/head/; revision=351081
* | Revert r349863 (ACPICA 20190703).Jung-uk Kim2019-08-0127-247/+341
| | | | | | | | | | | | | | | | | | This commit caused boot failures on some systems. Requested by: scottl Notes: svn path=/head/; revision=350510
* | MFV: r349861Jung-uk Kim2019-07-0927-341/+247
|\| | | | | | | | | | | | | Import ACPICA 20190703. Notes: svn path=/head/; revision=349863
* | MFV: r347413Jung-uk Kim2019-05-0917-76/+375
|\| | | | | | | | | | | | | Import ACPICA 20190509. Notes: svn path=/head/; revision=347415
* | MFV: r345969Jung-uk Kim2019-04-0628-280/+986
|\| | | | | | | | | | | | | Import ACPICA 20190405. Notes: svn path=/head/; revision=345980
* | Merge ACPICA 20190329.Jung-uk Kim2019-03-2962-174/+268
|\| | | | | | | Notes: svn path=/head/; revision=345713
* | MFV: r344447Jung-uk Kim2019-02-211-1/+1
|\| | | | | | | | | | | | | Fix missing comma in array declaration. Notes: svn path=/head/; revision=344448
* | MFV: r344395Jung-uk Kim2019-02-2082-539/+745
|\| | | | | | | | | | | | | Import ACPICA 20190215. Notes: svn path=/head/; revision=344398
* | MFV: r342867Jung-uk Kim2019-01-09355-373/+470
|\| | | | | | | | | | | | | Merge ACPICA 20190108. Notes: svn path=/head/; revision=342869
* | MFV: r342049Jung-uk Kim2018-12-1440-130/+352
|\| | | | | | | | | | | | | Merge ACPICA 20181213. Notes: svn path=/head/; revision=342056
* | MFV: r339981Jung-uk Kim2018-11-0226-108/+493
|\| | | | | | | | | | | | | Merge ACPICA 20181031. Notes: svn path=/head/; revision=340090