summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update version to 20210930R09_30_21Robert Moore2021-09-301-1/+1
| | | | Version 20210930.
* Logfile: Changes for version 20210930Robert Moore2021-09-301-0/+50
| | | | Version 20210930.
* NFIT table: fix indentations in actbl2.hRobert Moore2021-09-301-14/+14
| | | | actbl2.h.
* Revert "Headers: Avoid NULL pointer arithmetic"Robert Moore2021-09-301-2/+2
| | | | | | | This reverts commit 0084a2ede3ed9d6382552de1d340d489c080b192. Did not work on gcc 4.4.5. failed on offsetof.
* Merge branch 'master' of ssh://ssh.github.com/acpica/acpicaRobert Moore2021-09-304-11/+14
|\
| * Merge pull request #716 from rafaeljw/hardwareRobert Moore2021-09-294-11/+14
| |\ | | | | | | Hardware: Avoid evaluating methods too early during system resume
| | * Hardware: Avoid evaluating methods too early during system resumeRafael J. Wysocki2021-09-294-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During wakeup from system-wide sleep states, AcpiGetSleepTypeData() is called and it tries to get memory from the OS in order to evaluate a control method, but if KFENCE is enabled in the Linux kernel, the memory allocation attempt causes an IRQ work to be queued and a self-IPI to be sent to the CPU running the code which requires the memory controller to be ready, so if that happens too early in the wakeup path, it doesn't work. Prevent that from taking place by calling AcpiGetSleepTypeData() for S0 upfront, when preparing to enter a given sleep state, and saving the data obtained by it for later use during system wakeup. BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=214271 Reported-by: Reik Keutterling <spielkind@gmail.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
* | | iASL table disassembler: Added disassembly support for the NHLT ACPI table.Robert Moore2021-09-309-8/+894
|/ / | | | | | | | | | | Note: support for Vendor-defined microphone arrays and SNR extensions are not supported at this time -- mostly due to a lack of example tables. Actual compiler support for NHLT is forthcoming.
* | Merge pull request #715 from rafaeljw/headersRobert Moore2021-09-291-2/+2
|\ \ | | | | | | Headers: Avoid NULL pointer arithmetic
| * | Headers: Avoid NULL pointer arithmeticArnd Bergmann2021-09-291-2/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some very old macros for doing an open-coded offsetof() and cast between pointer and integer in ACPI headers. clang-14 now complains about these: drivers/acpi/acpica/tbfadt.c:86:3: error: performing pointer subtraction with a null pointer has undefined behavior [-Werror,-Wnull-pointer-subtraction] ACPI_FADT_OFFSET(pm_timer_block), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/acpi/actbl.h:376:47: note: expanded from macro 'ACPI_FADT_OFFSET' #define ACPI_FADT_OFFSET(f) (u16) ACPI_OFFSET (struct acpi_table_fadt, f) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/acpi/actypes.h:511:41: note: expanded from macro 'ACPI_OFFSET' #define ACPI_OFFSET(d, f) ACPI_PTR_DIFF (&(((d *) 0)->f), (void *) 0) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/acpi/actypes.h:505:79: note: expanded from macro 'ACPI_PTR_DIFF' #define ACPI_PTR_DIFF(a, b) ((acpi_size) (ACPI_CAST_PTR (u8, (a)) - ACPI_CAST_PTR (u8, (b)))) ^ ~~~~~~~~~~~~~~~~~~~~~~~ Convert them to the modern equivalents. Signed-off-by: Arnd Bergmann <arnd@arndb.de> [ rjw: Linux kernel patch conversion into the upstream ACPICA format ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
* | Updated the check for usage of _CRS, _DIS, _PRS, and _SRS objectsRobert Moore2021-09-291-44/+26
|/ | | | | | | | New/latest rules: Under a Device Object: 1) If _PRS is present, must have _CRS and _SRS 2) If _SRS is present, must have _PRS (_PRS requires _CRS and _SRS) 3) If _DIS is present, must have _SRS (_SRS requires _PRS, _PRS requires _CRS and _SRS) 4) If _SRS is present, probably should have a _DIS (Remark only)
* Merge pull request #710 from AlisonSchofield/srat-genericportRobert Moore2021-09-236-11/+39
|\ | | | | FOR ACPICA: ACPI 6.4 SRAT: add Generic Port Affinity type
| * FOR ACPICA: ACPI 6.4 SRAT: add Generic Port Affinity typeAlison Schofield2021-08-206-11/+39
| | | | | | | | | | | | | | | | Add a new subtable type for SRAT Generic Port Affinity. It uses the same subtable structure as the existing Generic Initiator Affinity type. Signed-off-by: Alison Schofield <alison.schofield@intel.com>
* | Merge pull request #711 from ColinIanKing/masterRobert Moore2021-09-231-1/+1
|\ \ | | | | | | Dispatcher: clean up incorrect identation
| * | Dispatcher: clean up incorrect identationColin Ian King2021-09-031-1/+1
| |/ | | | | | | | | | | | | There is an assignment statement where the indentation is one level too deep. Remove 4 spaces to clean this up. Signed-off-by: Colin Ian King <colin.king@canonical.com>
* | Merge pull request #708 from superm1/add-online-capableRobert Moore2021-09-231-0/+1
|\ \ | | | | | | Add the flag for online capable in the MADT
| * | Add the flag for online capable in the MADTMario Limonciello2021-08-161-0/+1
| | | | | | | | | | | | This was introduced starting with ACPI 6.3.
* | | Update legal info for the ACPICA documentsRobert Moore2021-09-144-0/+0
| |/ |/| | | | | Clarify distribution rights.
* | Merge pull request #709 from superm1/windows-10-2004Robert Moore2021-08-192-0/+2
|\ \ | |/ |/| Add support for Windows 2020 _OSI string
| * Add support for Windows 2020 _OSI stringMario Limonciello2021-08-182-0/+2
|/ | | | See: https://github.com/MicrosoftDocs/windows-driver-docs/commit/5164e24985e78ef4870d7a5801a5336104f36366
* Merge pull request #706 from ColinIanKing/masterRobert Moore2021-08-061-1/+1
|\ | | | | preprocess.h: fix spelling mistake in comment
| * preprocess.h: fix spelling mistake in commentColin Ian King2021-08-041-1/+1
|/ | | | | | Preprocesor -> Preprocessor Signed-off-by: Colin Ian King <colin.king@canonical.com>
* Update version to 20210730R07_30_21Robert Moore2021-07-301-1/+1
| | | | Version 20210730.
* Logfile: Changes for version 20210730Robert Moore2021-07-301-0/+42
| | | | Version 20210730.
* Remove aslcompiler.pdf from the binary tarRobert Moore2021-07-291-1/+0
| | | | | | | This was the only documentation in the verious tarballs. Since each documentation file is directly available on the website, it seems to be overkill to include this file in the binary tarball.
* Update check for use of _CRS, _DIS, _PRS, and _SRS:Robert Moore2021-07-281-20/+24
| | | | | | | | | * 1) If _DIS is present, must have a _CRS, _PRS, and _SRS * 2) If _PRS is present, must have a _CRS and _SRS * 3) If _SRS is present, must have a _CRS and _PRS Change of rules developed with the help of the ASWG (ACPI specificatoin working group).
* iasl: Check usage of _CRS, _DIS, _PRS, and _SRS objects (July 2021).Robert Moore2021-07-221-2/+77
| | | | | | | | | + * + * Under the Device Object: + * + * 1) If _DIS is present, must have a _CRS and _SRS + * 2) If _PRS is present, must have a _CRS, _DIS, and _SRS + * 3) If _SRS is present, must have a _CRS and _DIS
* AcpiHelp: Cleanup output for list of supported tablesRobert Moore2021-07-222-4/+6
| | | | Output cleanup.
* Add method name "_DIS"Robert Moore2021-07-221-0/+1
| | | | For use with aslmethod.c.
* Fix for: Bug 1543 - Potential infinite loop in AcpiDmDumpViot()Robert Moore2021-07-151-1/+1
| | | | | Reported by: Colin Ian King
* iASL: Fix for WPBT table with no command-line argumentsRobert Moore2021-07-149-17/+43
| | | | | Handle the case where the Command-line Arguments table field does not exist.
* Merge pull request #705 from Semihalf/dbg2_subtypes_updateRobert Moore2021-07-141-1/+14
|\ | | | | Headers: Add new DBG2 Serial Port Subtypes
| * Headers: Add new DBG2 Serial Port SubtypesMarcin Wojtas2021-07-141-1/+14
|/ | | | | | | | The Microsoft Debug Port Table 2 (DBG2) specification revision September 21, 2020 comprises additional Serial Port Subtypes [1]. Reflect that in the actbl1.h header file. [1] https://docs.microsoft.com/en-us/windows-hardware/drivers/bringup/acpi-debug-port-table
* Macros should not use a trailing semicolon.Robert Moore2021-07-131-1/+1
| | | | Signed-off-by: Huilong Deng <denghuilong@cdjrlc.com>
* Fix an if statementRobert Moore2021-07-091-1/+1
| | | | (add parens).
* Merge pull request #701 from SchmErik/prmt-module-headerRobert Moore2021-07-012-0/+8
|\ | | | | Add PRMT module header to facilitate parsing
| * Add PRMT module header to facilitate parsingErik Kaneda2021-06-092-0/+8
| | | | | | | | | | | | | | | | | | This structure is used in to parse PRMT in other Operating Systems that relies on using subtable headers in order to parse ACPI tables. Although the PRMT doesn't have "subtables" it has a list of module information structures that act as subtables. Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
* | iASL: Add support for the AEST table (data compiler)Robert Moore2021-07-0115-3/+1047
| | | | | | | | Includes support in the table compiler and the disassembler.
* | acpisrc: add new symbols for the AEST tableRobert Moore2021-07-011-0/+14
|/ | | | Add new symbols for linux conversion.
* Update version to 20210604R06_04_21Robert Moore2021-06-041-1/+1
| | | | Version 20210604.
* Logfile: Changes for version 20210604Robert Moore2021-06-041-0/+42
| | | | Version 20210604.
* Merge pull request #699 from SchmErik/disasm-decodeRobert Moore2021-06-011-0/+2
|\ | | | | Disassembler: add missing strings to decode subtable types
| * Disassembler: add missing strings to decode subtable typesErik Kaneda2021-06-011-0/+2
|/ | | | Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
* Merge pull request #696 from SchmErik/prm-opregionRobert Moore2021-05-259-50/+89
|\ | | | | Add support for PlatformRtMechanism OperationRegion handler
| * Add support for PlatformRtMechanism OperationRegion handlerErik Kaneda2021-05-259-50/+89
|/ | | | | | | | | | Writing a buffer to a PlatformRtMechanism fieldunit invokes a bidirectional transaction. The input buffer contains 26 bytes containing 9 bytes of status, a command byte and a 16-byte UUID. This change will will simply pass this incoming buffer to a handler registered by the OS. Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>
* Merge pull request #694 from SchmErik/cedt-CFMWSRobert Moore2021-05-251-1/+42
|\ | | | | Add more structs to CEDT table
| * Add the CFMWS structure definition to the CEDT tableAlison Schofield2021-05-201-1/+33
| | | | | | | | | | | | | | | | | | | | The CXL Fixed Memory Window Structure (CFMWS) is added to the CXL Early Discovery Table (CEDT). This new structure is defined in an ECN to the CXL 2.0 specification. https://www.computeexpresslink.org/spec-landing Signed-off-by: Alison Schofield <alison.schofield@intel.com>
| * Add defines for the CXL Host Bridge Structure (CHBS)Alison Schofield2021-05-201-0/+9
| | | | | | | | | | | | | | CXL 2.0 defines length and version field values for the CHBS. Include them in the ACPI CEDT table definition. Signed-off-by: Alison Schofield <alison.schofield@intel.com>
* | Merge pull request #695 from SchmErik/iasl-prmtRobert Moore2021-05-2511-0/+331
|\ \ | |/ |/| iASL: add compiler and disassembler support for PRMT
| * iASL: add PRMT templateErik Kaneda2021-05-253-1/+93
| | | | | | | | Signed-off-by: Erik Kaneda <erik.kaneda@intel.com>