Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/acpica/dist Import acpica-2022-03-31



details:   https://anonhg.NetBSD.org/src/rev/c3f0368fa636
branches:  trunk
changeset: 369663:c3f0368fa636
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Aug 27 14:01:59 2022 +0000

description:
Import acpica-2022-03-31
----------------------------------------
31 March 2022. Summary of changes for version 20220331:

0) Global changes:

Update all copyright notices to the year 2022. This effects all source
modules, as well as utility signons.


1) ACPICA kernel-resident subsystem:

For the ASL Sleep() operator, issue a warning if the sleep value is
greater than 10 Milliseconds. Quick boottime is important, so warn about
sleeps greater than 10 ms. Distribution Linux kernels reach initrd in 350
ms, so excessive delays should be called out. 10 ms is chosen randomly,
but three of such delays would already make up ten percent of the
boottime.

Namespace: Avoid attempting to walk the Namespace if the Namespace does
not exist.

AML interpreter/iASL compiler: Add new Acpi 6.4 semantics for the
LoadTable and Load operators. DDB_HANDLE is gone, now loadtable returns a
pass/fail integer. Now load returns a pass/fail integer, as well as
storing the return value in an optional 2nd argument.

Headers: Use uintptr_t and offsetof() in Linux kernel builds. To avoid
"performing pointer subtraction with a null pointer has undefined
behavior" compiler warnings, use uintptr_t and offsetof() that are always
available during Linux kernel builds to define ACPI_UINTPTR_T and the
ACPI_TO_INTEGER() and ACPI_OFFSET() macros when building the ACPICA code
in the Linux kernel.

Added support for the Windows 11 _OSI string ("Windows 2021"). Submitted
by superm1.

executer/exsystem: Inform users about ACPI spec violation for the Stall()
operator. Values greater than 100 microseconds violate the ACPI
specification, so warn users about it. From the ACPI Specification
version 6.2 Errata A, 19.6.128 *Stall (Stall for a Short Time)*:
> The implementation of Stall is OS-specific, but must not relinquish
> control of the processor. Because of this, delays longer than 100
> microseconds must use Sleep instead of Stall.


2) iASL Compiler/Disassembler and ACPICA tools:

Data Table Compiler/Disassembler: Add support for the APMT table - ARM
Performance Monitoring Unit table. Submitted by @bwicaksononv.

Data Table Compiler/Disassembler: For MADT, add support for the OEM-
defined subtables (Types 0x80-0x7F).

Data Table Compiler: Fixed a problem with support for the SDEV table,
where a subtable Length was not computed correctly.

Data Table Compiler/Disassembler: Add/fix the CFMWS subtable to the CEDT
Acpi table support.

Data Table Compiler/Disassembler: Fix a compile issue with the CEDT and
add template. Submitted by MasterDrogo.

Data Table Compiler/Disassembler: NHLT Changes provided by Piotr Maziarz:
iASL/NHLT: Rename linux specific structures to DeviceInfo to improve
readability of the code.
iASL/NHLT: Fix parsing undocumented bytes at the end of Endpoint.
Undocumented bytes at the end of Endpoint Descriptor can be present
independently of Linux-specific structures. Their size can also vary.
iASL/NHLT: Treat TableTerminator as SpecificConfig. SpecificConfig has 4
bytes of size and then an amount of bytes specified by size. All of the
terminators that I've seen had a size equal to 4, but theoretically it
can vary.

iASL/AcpiExec: Use _exit instead of exit in signal handers (ctrl-C).

iASL: Remove a remark due to excessive output. Removed a remark for
duplicate Offset() operators, due to a user complaint.

diffstat:

 sys/external/bsd/acpica/dist/changes.txt                            |   78 ++++
 sys/external/bsd/acpica/dist/common/acfileio.c                      |    2 +-
 sys/external/bsd/acpica/dist/common/acgetline.c                     |    2 +-
 sys/external/bsd/acpica/dist/common/adfile.c                        |    2 +-
 sys/external/bsd/acpica/dist/common/adisasm.c                       |    2 +-
 sys/external/bsd/acpica/dist/common/adwalk.c                        |    2 +-
 sys/external/bsd/acpica/dist/common/ahids.c                         |    2 +-
 sys/external/bsd/acpica/dist/common/ahpredef.c                      |    2 +-
 sys/external/bsd/acpica/dist/common/ahtable.c                       |    2 +-
 sys/external/bsd/acpica/dist/common/ahuuids.c                       |    2 +-
 sys/external/bsd/acpica/dist/common/cmfsize.c                       |    2 +-
 sys/external/bsd/acpica/dist/common/dmextern.c                      |    2 +-
 sys/external/bsd/acpica/dist/common/dmrestag.c                      |    2 +-
 sys/external/bsd/acpica/dist/common/dmswitch.c                      |    2 +-
 sys/external/bsd/acpica/dist/common/dmtable.c                       |   21 +-
 sys/external/bsd/acpica/dist/common/dmtbdump1.c                     |  116 +++++-
 sys/external/bsd/acpica/dist/common/dmtbdump2.c                     |  183 +++++---
 sys/external/bsd/acpica/dist/common/dmtbdump3.c                     |    2 +-
 sys/external/bsd/acpica/dist/common/dmtbinfo1.c                     |   33 +-
 sys/external/bsd/acpica/dist/common/dmtbinfo2.c                     |   69 ++-
 sys/external/bsd/acpica/dist/common/dmtbinfo3.c                     |    2 +-
 sys/external/bsd/acpica/dist/common/getopt.c                        |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslallocate.c                 |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslascii.c                    |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslbtypes.c                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslcache.c                    |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslcodegen.c                  |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslcstyle.y                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/asldebug.c                    |    2 +-
 sys/external/bsd/acpica/dist/compiler/asldefine.h                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslexternal.c                 |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslfold.c                     |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslglobal.h                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslhelp.c                     |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslhelpers.y                  |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslhex.c                      |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslkeywords.y                 |    2 +-
 sys/external/bsd/acpica/dist/compiler/asllength.c                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/asllisting.c                  |    2 +-
 sys/external/bsd/acpica/dist/compiler/asllistsup.c                  |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslmain.c                     |    4 +-
 sys/external/bsd/acpica/dist/compiler/aslmap.c                      |    6 +-
 sys/external/bsd/acpica/dist/compiler/aslmapenter.c                 |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslmapoutput.c                |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslmaputils.c                 |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslmessages.c                 |    5 +-
 sys/external/bsd/acpica/dist/compiler/aslmessages.h                 |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslmethod.c                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslnamesp.c                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/asloffset.c                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/asloperands.c                 |    8 +-
 sys/external/bsd/acpica/dist/compiler/aslparseop.c                  |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslparser.y                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslpld.c                      |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslprimaries.y                |    4 +-
 sys/external/bsd/acpica/dist/compiler/aslprintf.c                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslprune.c                    |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslresource.c                 |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslresources.y                |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype1.c                 |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype1i.c                |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2.c                 |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2d.c                |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2e.c                |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2q.c                |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2s.c                |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslrestype2w.c                |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslrules.y                    |    8 +-
 sys/external/bsd/acpica/dist/compiler/aslstartup.c                  |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslstubs.c                    |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslsupport.y                  |    2 +-
 sys/external/bsd/acpica/dist/compiler/asltokens.y                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/asltransform.c                |    2 +-
 sys/external/bsd/acpica/dist/compiler/asltypes.h                    |    2 +-
 sys/external/bsd/acpica/dist/compiler/asltypes.y                    |    4 +-
 sys/external/bsd/acpica/dist/compiler/asluuid.c                     |    2 +-
 sys/external/bsd/acpica/dist/compiler/aslxrefout.c                  |    2 +-
 sys/external/bsd/acpica/dist/compiler/cvcompiler.c                  |    2 +-
 sys/external/bsd/acpica/dist/compiler/cvdisasm.c                    |    2 +-
 sys/external/bsd/acpica/dist/compiler/cvparser.c                    |    2 +-
 sys/external/bsd/acpica/dist/compiler/dtcompiler.h                  |    7 +-
 sys/external/bsd/acpica/dist/compiler/dtcompilerparser.l            |    2 +-
 sys/external/bsd/acpica/dist/compiler/dtexpress.c                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/dtio.c                        |    2 +-
 sys/external/bsd/acpica/dist/compiler/dtparser.l                    |    2 +-
 sys/external/bsd/acpica/dist/compiler/dttable1.c                    |  183 ++++++++-
 sys/external/bsd/acpica/dist/compiler/dttable2.c                    |   79 ++-
 sys/external/bsd/acpica/dist/compiler/dttemplate.c                  |    2 +-
 sys/external/bsd/acpica/dist/compiler/dttemplate.h                  |  112 ++++-
 sys/external/bsd/acpica/dist/compiler/preprocess.h                  |    2 +-
 sys/external/bsd/acpica/dist/compiler/prexpress.c                   |    2 +-
 sys/external/bsd/acpica/dist/compiler/prmacros.c                    |    2 +-
 sys/external/bsd/acpica/dist/compiler/prparser.l                    |    2 +-
 sys/external/bsd/acpica/dist/compiler/prscan.c                      |    2 +-
 sys/external/bsd/acpica/dist/debugger/dbconvert.c                   |    2 +-
 sys/external/bsd/acpica/dist/debugger/dbfileio.c                    |    2 +-
 sys/external/bsd/acpica/dist/debugger/dbhistry.c                    |    2 +-
 sys/external/bsd/acpica/dist/debugger/dbobject.c                    |    2 +-
 sys/external/bsd/acpica/dist/debugger/dbstats.c                     |    2 +-
 sys/external/bsd/acpica/dist/debugger/dbxface.c                     |    2 +-
 sys/external/bsd/acpica/dist/disassembler/dmdeferred.c              |    2 +-
 sys/external/bsd/acpica/dist/disassembler/dmnames.c                 |    2 +-
 sys/external/bsd/acpica/dist/disassembler/dmopcode.c                |    2 +-
 sys/external/bsd/acpica/dist/disassembler/dmresrcs.c                |    2 +-
 sys/external/bsd/acpica/dist/disassembler/dmutils.c                 |    2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsargs.c                    |    2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsdebug.c                   |    2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsfield.c                   |    2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsinit.c                    |    2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsmethod.c                  |    2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsmthdat.c                  |    2 +-
 sys/external/bsd/acpica/dist/dispatcher/dsobject.c                  |    2 +-
 sys/external/bsd/acpica/dist/dispatcher/dswexec.c                   |    4 +-
 sys/external/bsd/acpica/dist/dispatcher/dswload.c                   |    2 +-
 sys/external/bsd/acpica/dist/dispatcher/dswload2.c                  |    2 +-
 sys/external/bsd/acpica/dist/dispatcher/dswscope.c                  |    2 +-
 sys/external/bsd/acpica/dist/dispatcher/dswstate.c                  |    2 +-
 sys/external/bsd/acpica/dist/events/evevent.c                       |    2 +-
 sys/external/bsd/acpica/dist/events/evglock.c                       |    2 +-
 sys/external/bsd/acpica/dist/events/evgpe.c                         |    2 +-
 sys/external/bsd/acpica/dist/events/evgpeblk.c                      |    2 +-
 sys/external/bsd/acpica/dist/events/evgpeinit.c                     |    2 +-
 sys/external/bsd/acpica/dist/events/evgpeutil.c                     |    2 +-
 sys/external/bsd/acpica/dist/events/evhandler.c                     |    2 +-
 sys/external/bsd/acpica/dist/events/evmisc.c                        |    2 +-
 sys/external/bsd/acpica/dist/events/evsci.c                         |    2 +-
 sys/external/bsd/acpica/dist/events/evxfevnt.c                      |    2 +-
 sys/external/bsd/acpica/dist/events/evxfgpe.c                       |    2 +-
 sys/external/bsd/acpica/dist/events/evxfregn.c                      |    2 +-
 sys/external/bsd/acpica/dist/executer/exconcat.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/exconvrt.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/excreate.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/exfield.c                     |    2 +-
 sys/external/bsd/acpica/dist/executer/exfldio.c                     |    4 +-
 sys/external/bsd/acpica/dist/executer/exmisc.c                      |    2 +-
 sys/external/bsd/acpica/dist/executer/exmutex.c                     |    2 +-
 sys/external/bsd/acpica/dist/executer/exnames.c                     |    2 +-
 sys/external/bsd/acpica/dist/executer/exoparg1.c                    |   22 +-
 sys/external/bsd/acpica/dist/executer/exoparg2.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/exoparg3.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/exoparg6.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/exprep.c                      |    2 +-
 sys/external/bsd/acpica/dist/executer/exregion.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/exresnte.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/exresolv.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/exresop.c                     |    2 +-
 sys/external/bsd/acpica/dist/executer/exserial.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/exstore.c                     |    2 +-
 sys/external/bsd/acpica/dist/executer/exstoren.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/exstorob.c                    |    2 +-
 sys/external/bsd/acpica/dist/executer/exsystem.c                    |   41 +-
 sys/external/bsd/acpica/dist/executer/extrace.c                     |    2 +-
 sys/external/bsd/acpica/dist/executer/exutils.c                     |    2 +-
 sys/external/bsd/acpica/dist/hardware/hwacpi.c                      |    2 +-
 sys/external/bsd/acpica/dist/hardware/hwgpe.c                       |    2 +-
 sys/external/bsd/acpica/dist/hardware/hwpci.c                       |    2 +-
 sys/external/bsd/acpica/dist/hardware/hwtimer.c                     |    2 +-
 sys/external/bsd/acpica/dist/hardware/hwvalid.c                     |    2 +-
 sys/external/bsd/acpica/dist/hardware/hwxface.c                     |    2 +-
 sys/external/bsd/acpica/dist/include/acbuffer.h                     |    2 +-
 sys/external/bsd/acpica/dist/include/acclib.h                       |    2 +-
 sys/external/bsd/acpica/dist/include/accommon.h                     |    2 +-
 sys/external/bsd/acpica/dist/include/acconfig.h                     |    2 +-
 sys/external/bsd/acpica/dist/include/acconvert.h                    |    2 +-
 sys/external/bsd/acpica/dist/include/acdispat.h                     |    2 +-
 sys/external/bsd/acpica/dist/include/acevents.h                     |    2 +-
 sys/external/bsd/acpica/dist/include/achware.h                      |    2 +-
 sys/external/bsd/acpica/dist/include/acnames.h                      |    2 +-
 sys/external/bsd/acpica/dist/include/acobject.h                     |    2 +-
 sys/external/bsd/acpica/dist/include/acopcode.h                     |    2 +-
 sys/external/bsd/acpica/dist/include/acparser.h                     |    2 +-
 sys/external/bsd/acpica/dist/include/acpi.h                         |    2 +-
 sys/external/bsd/acpica/dist/include/acpredef.h                     |    2 +-
 sys/external/bsd/acpica/dist/include/acrestyp.h                     |    2 +-
 sys/external/bsd/acpica/dist/include/acstruct.h                     |    2 +-
 sys/external/bsd/acpica/dist/include/actbinfo.h                     |   14 +-
 sys/external/bsd/acpica/dist/include/actbl.h                        |    2 +-
 sys/external/bsd/acpica/dist/include/actbl2.h                       |  192 +++++++--
 sys/external/bsd/acpica/dist/include/actbl3.h                       |    2 +-
 sys/external/bsd/acpica/dist/include/acuuid.h                       |    2 +-
 sys/external/bsd/acpica/dist/include/amlcode.h                      |    2 +-
 sys/external/bsd/acpica/dist/include/platform/accygwin.h            |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acdragonfly.h         |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acdragonflyex.h       |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acefi.h               |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acefiex.h             |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acenv.h               |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acenvex.h             |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acfreebsd.h           |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acgccex.h             |    2 +-
 sys/external/bsd/acpica/dist/include/platform/achaiku.h             |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acintel.h             |    2 +-
 sys/external/bsd/acpica/dist/include/platform/aclinux.h             |    7 +-
 sys/external/bsd/acpica/dist/include/platform/aclinuxex.h           |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acmacosx.h            |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acmsvc.h              |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acmsvcex.h            |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acos2.h               |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acqnx.h               |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acwin.h               |    2 +-
 sys/external/bsd/acpica/dist/include/platform/acwin64.h             |    2 +-
 sys/external/bsd/acpica/dist/namespace/nsalloc.c                    |    2 +-
 sys/external/bsd/acpica/dist/namespace/nsarguments.c                |    2 +-
 sys/external/bsd/acpica/dist/namespace/nsconvert.c                  |    2 +-
 sys/external/bsd/acpica/dist/namespace/nsdumpdv.c                   |    2 +-
 sys/external/bsd/acpica/dist/namespace/nsload.c                     |    2 +-
 sys/external/bsd/acpica/dist/namespace/nsnames.c                    |    2 +-
 sys/external/bsd/acpica/dist/namespace/nsobject.c                   |    2 +-
 sys/external/bsd/acpica/dist/namespace/nsparse.c                    |    2 +-
 sys/external/bsd/acpica/dist/namespace/nspredef.c                   |    2 +-
 sys/external/bsd/acpica/dist/namespace/nsprepkg.c                   |    2 +-
 sys/external/bsd/acpica/dist/namespace/nsrepair.c                   |    2 +-
 sys/external/bsd/acpica/dist/namespace/nssearch.c                   |    2 +-
 sys/external/bsd/acpica/dist/namespace/nsutils.c                    |    2 +-
 sys/external/bsd/acpica/dist/namespace/nswalk.c                     |    6 +-
 sys/external/bsd/acpica/dist/namespace/nsxfobj.c                    |    2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/osbsdtbl.c  |    2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/osgendbg.c  |    2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/osunixdir.c |    2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/osunixmap.c |    2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/osunixxf.c  |    2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/oswindir.c  |    2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/oswintbl.c  |    2 +-
 sys/external/bsd/acpica/dist/os_specific/service_layers/oswinxf.c   |    2 +-
 sys/external/bsd/acpica/dist/parser/psargs.c                        |    2 +-
 sys/external/bsd/acpica/dist/parser/psloop.c                        |    2 +-
 sys/external/bsd/acpica/dist/parser/psobject.c                      |    2 +-
 sys/external/bsd/acpica/dist/parser/psparse.c                       |    2 +-
 sys/external/bsd/acpica/dist/parser/psscope.c                       |    2 +-
 sys/external/bsd/acpica/dist/parser/pstree.c                        |    2 +-
 sys/external/bsd/acpica/dist/parser/psutils.c                       |    2 +-
 sys/external/bsd/acpica/dist/parser/pswalk.c                        |    2 +-
 sys/external/bsd/acpica/dist/parser/psxface.c                       |    2 +-
 sys/external/bsd/acpica/dist/resources/rsaddr.c                     |    2 +-
 sys/external/bsd/acpica/dist/resources/rscalc.c                     |    2 +-
 sys/external/bsd/acpica/dist/resources/rscreate.c                   |    2 +-
 sys/external/bsd/acpica/dist/resources/rsinfo.c                     |    2 +-
 sys/external/bsd/acpica/dist/resources/rsio.c                       |    2 +-
 sys/external/bsd/acpica/dist/resources/rsirq.c                      |    2 +-
 sys/external/bsd/acpica/dist/resources/rslist.c                     |    2 +-
 sys/external/bsd/acpica/dist/resources/rsmemory.c                   |    2 +-
 sys/external/bsd/acpica/dist/resources/rsmisc.c                     |    2 +-
 sys/external/bsd/acpica/dist/resources/rsserial.c                   |    2 +-
 sys/external/bsd/acpica/dist/tables/tbfind.c                        |    2 +-
 sys/external/bsd/acpica/dist/tables/tbprint.c                       |    2 +-
 sys/external/bsd/acpica/dist/tools/acpibin/abcompare.c              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpibin/abmain.c                 |    2 +-
 sys/external/bsd/acpica/dist/tools/acpibin/acpibin.h                |    2 +-
 sys/external/bsd/acpica/dist/tools/acpidump/acpidump.h              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpidump/apdump.c                |    2 +-
 sys/external/bsd/acpica/dist/tools/acpidump/apmain.c                |    2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aecommon.h              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aeexception.c           |    6 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aeexec.c                |    2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aehandlers.c            |    2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aeinitfile.c            |    2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aeinstall.c             |    2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aemain.c                |    2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aeregion.c              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aetables.c              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aetables.h              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpiexec/aetests.c               |    2 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/acpihelp.h              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahaml.c                 |    2 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahamlops.c              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahasl.c                 |    2 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahaslkey.c              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahaslops.c              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahdecode.c              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahgrammar.c             |    2 +-
 sys/external/bsd/acpica/dist/tools/acpihelp/ahmain.c                |    2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/acpisrc.h                |    2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/ascase.c                 |    2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/asconvrt.c               |    4 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/asfile.c                 |    2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/asmain.c                 |    2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/asremove.c               |    2 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/astable.c                |   13 +-
 sys/external/bsd/acpica/dist/tools/acpisrc/asutils.c                |    2 +-
 sys/external/bsd/acpica/dist/tools/acpixtract/acpixtract.h          |    2 +-
 sys/external/bsd/acpica/dist/tools/acpixtract/axmain.c              |    2 +-
 sys/external/bsd/acpica/dist/tools/acpixtract/axutils.c             |    2 +-
 sys/external/bsd/acpica/dist/tools/efihello/efihello.c              |    2 +-
 sys/external/bsd/acpica/dist/tools/examples/examples.c              |    2 +-
 sys/external/bsd/acpica/dist/tools/examples/examples.h              |    2 +-
 sys/external/bsd/acpica/dist/tools/examples/exstubs.c               |    2 +-
 sys/external/bsd/acpica/dist/tools/examples/extables.c              |    2 +-
 sys/external/bsd/acpica/dist/utilities/utaddress.c                  |    2 +-
 sys/external/bsd/acpica/dist/utilities/utalloc.c                    |    2 +-
 sys/external/bsd/acpica/dist/utilities/utascii.c                    |    2 +-
 sys/external/bsd/acpica/dist/utilities/utbuffer.c                   |    2 +-
 sys/external/bsd/acpica/dist/utilities/utclib.c                     |    2 +-
 sys/external/bsd/acpica/dist/utilities/utcopy.c                     |    2 +-
 sys/external/bsd/acpica/dist/utilities/uterror.c                    |    2 +-
 sys/external/bsd/acpica/dist/utilities/utexcep.c                    |    2 +-
 sys/external/bsd/acpica/dist/utilities/uthex.c                      |    2 +-
 sys/external/bsd/acpica/dist/utilities/utids.c                      |    2 +-
 sys/external/bsd/acpica/dist/utilities/utinit.c                     |    2 +-
 sys/external/bsd/acpica/dist/utilities/utlock.c                     |    2 +-
 sys/external/bsd/acpica/dist/utilities/utmath.c                     |    2 +-
 sys/external/bsd/acpica/dist/utilities/utownerid.c                  |    2 +-
 sys/external/bsd/acpica/dist/utilities/utpredef.c                   |    2 +-
 sys/external/bsd/acpica/dist/utilities/utresdecode.c                |    2 +-
 sys/external/bsd/acpica/dist/utilities/utresrc.c                    |    2 +-
 sys/external/bsd/acpica/dist/utilities/utstate.c                    |    2 +-
 sys/external/bsd/acpica/dist/utilities/utstring.c                   |    2 +-
 sys/external/bsd/acpica/dist/utilities/utstrsuppt.c                 |    2 +-
 sys/external/bsd/acpica/dist/utilities/utstrtoul64.c                |    2 +-
 sys/external/bsd/acpica/dist/utilities/utxface.c                    |    2 +-
 sys/external/bsd/acpica/dist/utilities/utxfinit.c                   |    2 +-
 sys/external/bsd/acpica/dist/utilities/utxfmutex.c                  |    2 +-
 311 files changed, 1234 insertions(+), 565 deletions(-)

diffs (truncated from 5793 to 300 lines):

diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/changes.txt
--- a/sys/external/bsd/acpica/dist/changes.txt  Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/changes.txt  Sat Aug 27 14:01:59 2022 +0000
@@ -1,4 +1,82 @@
 ----------------------------------------
+31 March 2022. Summary of changes for version 20220331:
+
+0) Global changes:
+
+Update all copyright notices to the year 2022. This effects all source 
+modules, as well as utility signons.
+
+
+1) ACPICA kernel-resident subsystem:
+
+For the ASL Sleep() operator, issue a warning if the sleep value is 
+greater than 10 Milliseconds. Quick boottime is important, so warn about 
+sleeps greater than 10 ms. Distribution Linux kernels reach initrd in 350 
+ms, so excessive delays should be called out. 10 ms is chosen randomly, 
+but three of such delays would already make up ten percent of the 
+boottime.
+
+Namespace: Avoid attempting to walk the Namespace if the Namespace does 
+not exist.
+
+AML interpreter/iASL compiler: Add new Acpi 6.4 semantics for the 
+LoadTable and Load operators. DDB_HANDLE is gone, now loadtable returns a 
+pass/fail integer. Now load returns a pass/fail integer, as well as 
+storing the return value in an optional 2nd argument.
+
+Headers: Use uintptr_t and offsetof() in Linux kernel builds. To avoid 
+"performing pointer subtraction with a null pointer has undefined 
+behavior" compiler warnings, use uintptr_t and offsetof() that are always 
+available during Linux kernel builds to define ACPI_UINTPTR_T and the 
+ACPI_TO_INTEGER() and ACPI_OFFSET() macros when building the ACPICA code 
+in the Linux kernel.
+
+Added support for the Windows 11 _OSI string ("Windows 2021"). Submitted 
+by superm1.
+
+executer/exsystem: Inform users about ACPI spec violation for the Stall() 
+operator. Values greater than 100 microseconds violate the ACPI 
+specification, so warn users about it. From the ACPI Specification 
+version 6.2 Errata A, 19.6.128 *Stall (Stall for a Short Time)*:
+> The implementation of Stall is OS-specific, but must not relinquish
+> control of the processor. Because of this, delays longer than 100
+> microseconds must use Sleep instead of Stall.
+
+
+2) iASL Compiler/Disassembler and ACPICA tools:
+
+Data Table Compiler/Disassembler: Add support for the APMT table - ARM 
+Performance Monitoring Unit table. Submitted by @bwicaksononv.
+
+Data Table Compiler/Disassembler: For MADT, add support for the OEM-
+defined subtables (Types 0x80-0x7F).
+
+Data Table Compiler: Fixed a problem with support for the SDEV table, 
+where a subtable Length was not computed correctly.
+
+Data Table Compiler/Disassembler: Add/fix the CFMWS subtable to the CEDT 
+Acpi table support.
+
+Data Table Compiler/Disassembler: Fix a compile issue with the CEDT and 
+add template. Submitted by MasterDrogo.
+
+Data Table Compiler/Disassembler: NHLT Changes provided by Piotr Maziarz:
+iASL/NHLT: Rename linux specific structures to DeviceInfo to improve 
+readability of the code.
+iASL/NHLT: Fix parsing undocumented bytes at the end of Endpoint. 
+Undocumented bytes at the end of Endpoint Descriptor can be present 
+independently of Linux-specific structures. Their size can also vary.
+iASL/NHLT: Treat TableTerminator as SpecificConfig. SpecificConfig has 4 
+bytes of size and then an amount of bytes specified by size. All of the 
+terminators that I've seen had a size equal to 4, but theoretically it 
+can vary.
+
+iASL/AcpiExec: Use _exit instead of exit in signal handers (ctrl-C).
+
+iASL: Remove a remark due to excessive output. Removed a remark for 
+duplicate Offset() operators, due to a user complaint.
+
+----------------------------------------
 17 December 2021. Summary of changes for version 20211217:
 
 1) ACPICA kernel-resident subsystem:
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/acfileio.c
--- a/sys/external/bsd/acpica/dist/common/acfileio.c    Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/acfileio.c    Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/acgetline.c
--- a/sys/external/bsd/acpica/dist/common/acgetline.c   Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/acgetline.c   Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/adfile.c
--- a/sys/external/bsd/acpica/dist/common/adfile.c      Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/adfile.c      Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/adisasm.c
--- a/sys/external/bsd/acpica/dist/common/adisasm.c     Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/adisasm.c     Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/adwalk.c
--- a/sys/external/bsd/acpica/dist/common/adwalk.c      Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/adwalk.c      Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/ahids.c
--- a/sys/external/bsd/acpica/dist/common/ahids.c       Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/ahids.c       Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/ahpredef.c
--- a/sys/external/bsd/acpica/dist/common/ahpredef.c    Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/ahpredef.c    Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/ahtable.c
--- a/sys/external/bsd/acpica/dist/common/ahtable.c     Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/ahtable.c     Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/ahuuids.c
--- a/sys/external/bsd/acpica/dist/common/ahuuids.c     Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/ahuuids.c     Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/cmfsize.c
--- a/sys/external/bsd/acpica/dist/common/cmfsize.c     Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/cmfsize.c     Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/dmextern.c
--- a/sys/external/bsd/acpica/dist/common/dmextern.c    Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/dmextern.c    Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/dmrestag.c
--- a/sys/external/bsd/acpica/dist/common/dmrestag.c    Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/dmrestag.c    Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/dmswitch.c
--- a/sys/external/bsd/acpica/dist/common/dmswitch.c    Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/dmswitch.c    Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
diff -r ccbd13048be8 -r c3f0368fa636 sys/external/bsd/acpica/dist/common/dmtable.c
--- a/sys/external/bsd/acpica/dist/common/dmtable.c     Sat Aug 27 12:55:34 2022 +0000
+++ b/sys/external/bsd/acpica/dist/common/dmtable.c     Sat Aug 27 14:01:59 2022 +0000
@@ -5,7 +5,7 @@
  *****************************************************************************/
 
 /*
- * Copyright (C) 2000 - 2021, Intel Corp.
+ * Copyright (C) 2000 - 2022, Intel Corp.
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -140,6 +140,7 @@
     "Root Port ATS Capability",
     "Remapping Hardware Static Affinity",
     "ACPI Namespace Device Declaration",
+    "SoC Integrated Address Translation Cache",
     "Unknown Subtable Type"         /* Reserved */
 };
 
@@ -294,7 +295,8 @@
     "Generic Interrupt Redistributor",  /* ACPI_MADT_GENERIC_REDISTRIBUTOR */
     "Generic Interrupt Translator",     /* ACPI_MADT_GENERIC_TRANSLATOR */
     "Mutiprocessor Wakeup",             /* ACPI_MADT_TYPE_MULTIPROC_WAKEUP */
-    "Unknown Subtable Type"             /* Reserved */
+    "Unknown Subtable Type",            /* Reserved */
+    "Types 80-FF are used for OEM data" /* Reserved for OEM data */
 };
 
 static const char           *AcpiDmNfitSubnames[] =
@@ -542,6 +544,7 @@
 {
     {ACPI_SIG_AEST, NULL,                   AcpiDmDumpAest, DtCompileAest,  TemplateAest},
     {ACPI_SIG_AGDI, AcpiDmTableInfoAgdi,    NULL,           NULL,           TemplateAgdi},
+    {ACPI_SIG_APMT, NULL,                   AcpiDmDumpApmt, DtCompileApmt,  TemplateApmt},
     {ACPI_SIG_ASF,  NULL,                   AcpiDmDumpAsf,  DtCompileAsf,   TemplateAsf},
     {ACPI_SIG_BDAT, AcpiDmTableInfoBdat,    NULL,           NULL,           TemplateBdat},
     {ACPI_SIG_BERT, AcpiDmTableInfoBert,    NULL,           NULL,           TemplateBert},
@@ -1253,7 +1256,12 @@
             AcpiOsPrintf ("%1.1X\n", (*Target >> 2) & 0x03);
             break;
 
-        case ACPI_DMT_FLAGS4:
+        case ACPI_DMT_FLAGS8_2:
+
+            AcpiOsPrintf ("%2.2X\n", (*Target >> 2) & 0xFF);
+            break;
+
+       case ACPI_DMT_FLAGS4:
 
             AcpiOsPrintf ("%1.1X\n", (*Target >> 4) & 0x03);
             break;
@@ -1742,11 +1750,14 @@
             /* MADT subtable types */
 
             Temp8 = *Target;
-            if (Temp8 > ACPI_MADT_TYPE_RESERVED)
+            if ((Temp8 >= ACPI_MADT_TYPE_RESERVED) && (Temp8 < ACPI_MADT_TYPE_OEM_RESERVED))




Home | Main Index | Thread Index | Old Index