Commit Graph

14968 Commits

Author SHA1 Message Date
Saket Dumbre
006e7f4852
Merge pull request #901 from jjd27/iasl_d_source_date_epoch
Add option to make output deterministic
2024-03-20 16:48:04 -07:00
Saket Dumbre
25a63c8965
Merge pull request #934 from d-tatianin/fix-gpe-init
events/evxfgpe: correctly clear GPE_AUTO_ENABLED in AcpiSetupGpeForWake
2024-03-20 16:20:26 -07:00
Saket Dumbre
c42efc98f8
Merge pull request #887 from myrade/mixed-table-segfault-fix
Fix segfault when error-checking mixed table types
2024-03-20 15:47:37 -07:00
Daniil Tatianin
8affc87afd events/evxfgpe: correctly clear GPE_AUTO_ENABLED in AcpiSetupGpeForWake
Because of a typo we would inverse the mask twice, thus producing a
bogus result.

Fixes: 36dcfd8818 ("Events: Make it possible to enable runtime GPEs earlier")
Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
2024-03-16 12:44:05 +03:00
Saket Dumbre
1113c204f3
Merge pull request #928 from HojinNamm/cedt-rdpas-fix
Fix CXL 3.0 structure (RDPAS) field in the CEDT table
2024-03-06 15:20:10 -08:00
Saket Dumbre
69f81815f8 Fix Capabilities[1024] mess 2024-03-05 15:33:52 -08:00
Saket Dumbre
1d903739ca
Merge pull request #926 from xiaobo55x/riscv_numa
RISC-V: Code First ECR for RINTC Affinity Structure Support
2024-03-04 16:41:33 -08:00
Saket Dumbre
f0a7c38186
Merge pull request #912 from crojewsk-intel/nhlt_reintroduce2
NHLT: Reintroduce types the table consists of
2024-03-01 18:57:39 -08:00
Saket Dumbre
3e89d40e19
Update actbl2.h to get rid of the MSVC error C2233
Gets rid of the error type "arrays of objects containing zero-size arrays are illegal"
2024-03-01 18:56:45 -08:00
Hojin Nam
a0ad1ed510 Fix CXL 3.0 structure (RDPAS) in the CEDT table
struct acpi_cedt_rdpas does not match with CXL r3.0 9.17.1.5
Table 9-24. reserved1 and length fields are already added by
struct acpi_cedt_header.

Signed-off-by: Hojin Nam <hj96.nam@samsung.com>
2024-02-19 10:08:13 +09:00
Haibo Xu
b9423c1d35 SRAT: Add dump and compiler support for RINTC affinity structure
After adding RISC-V RINTC affinity structure definition,
enable corresponding dump and compiler support.

Reference: Mantis ID: 2433

Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
2024-01-17 21:21:59 +08:00
Haibo Xu
93caddbf2f SRAT: Add RISC-V RINTC affinity structure
Add definition of RISC-V Interrupt Controller(RINTC)
affinity structure which was approved by UEFI forum
and will be part of next ACPI spec version(6.6).

Reference: Mantis ID: 2433

Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
2024-01-17 21:06:43 +08:00
Saket Dumbre
a6a236c44c Fix spelling and typos: Clean up the fix for Issue #900 2023-12-26 13:36:14 -08:00
Saket Dumbre
b6b38edb0c Clean up the fix for Issue #900 2023-12-26 13:32:56 -08:00
Saket Dumbre
074bf64343
Merge pull request #913 from ColinIanKing/master
Fix various spelling mistakes in text files and code comments
2023-12-22 11:19:02 -08:00
Saket Dumbre
2e518400e4
Merge pull request #921 from admlck/cpp-flex-array-fix
acgcc: Fix C++ issue with ACPI_FLEX_ARRAY
2023-12-22 11:15:14 -08:00
Saket Dumbre
0962715a9d
Merge pull request #914 from lpieralisi-linaro/gic-madt
ACPICA: Add Codefirst support for Mantis IDs: [3706,4557]
2023-12-22 11:04:39 -08:00
Adam Lackorzynski
bce7c55e99 acgcc: Fix C++ issue with ACPI_FLEX_ARRAY
In C++, an empty struct has a size of 1, shifting the actual member by
one byte. As this is a C99 workaround, disable it when compiling under
C++.
2023-12-13 23:25:29 +01:00
Lorenzo Pieralisi
e3afd8e17b MADT: Add new MADT GICC/GICR/ITS non-coherent flags handling
Add new flags and related fields to the MADT GICC/GICR/ITS
structures according to the code first ECR:

https://bugzilla.tianocore.org/show_bug.cgi?id=4557

Update the MADT template to the latest MADT revision.

Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
2023-12-07 14:05:09 +01:00
Lorenzo Pieralisi
453a5f6756 MADT: Add GICC online capable bit handling
Implement code to handle the GICC online capable bit management
added into ACPI v6.5.

Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
2023-12-07 14:05:09 +01:00
Colin Ian King
6cd47047ac Fix various spelling mistakes in text files and code comments
There are a handful of spelling mistakes in various files as found
using codespell. Fix these. No code changes.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
2023-11-26 17:38:33 +00:00
Cezary Rojewski
31a16a32e7 acpisrc: Add identifiers for the NHLT table
To support conversion of NHLT related types, update the identifier table
with all the structs and unions that define the NHLT.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
2023-11-21 15:59:09 +01:00
Cezary Rojewski
32260f5ce5 NHLT: Reintroduce types the table consists of
Non HDAudio Link Table (NHLT) is designed to separate hardware-related
description (registers) from AudioDSP firmware-related one i.e.:
pipelines and modules that together make up the audio stream on Intel
DSPs. This task is important as same set of hardware registers can be
used with different topologies and vice versa, same topology could be
utilized with different set of hardware. As the hardware registers
description is directly tied to specific platform, intention is to have
such description part of low-level firmware e.g.: BIOS.

The initial design has been provided in early Sky Lake (SKL) days. The
audio architecture goes by the name cAVS. SKL is a representative of
cAVS 1.5. The table helps describe endpoint capabilities ever since.
While Raptor Lake (RPL) is the last of cAVS architecture - cAVS 2.5 to
be precise - its successor, the ACE architecture which begun with
Meteor Lake (MTL) inherited the design for all I2S and PDM
configurations. These two configurations are the primary targets for
NHLT table.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
2023-11-21 15:59:09 +01:00
Saket Dumbre
da5f2721e1
Merge pull request #905 from najumon1980/acpi_timer
os_specific: zephyr: update AcpiOsGetTimer with arch or platform specific implementation
2023-11-17 15:58:34 -08:00
Jonathan Davies
6ab5a3bb16 AdDisassemblerHeader: omit timestamp for deterministic output
The output from iasl -d included a timestamp. This meant that each execution
returned different output. Do not emit the timestamp if the option for
deterministic output is enabled.
2023-11-13 19:35:48 +00:00
aveselyy
471de8b63a Fix build indeterminism for asm compiler header.
Existing code puts a timestamp in the .lst files, e.g.:
Compilation of ".../src/fw/ssdt-misc.i" - Thu Oct 22 13:38:41 2023
This makes the build non-deterministic.
2023-11-13 19:35:48 +00:00
Najumon B.A
50aec3ad93 os_specific: zephyr: update AcpiOsGetTimer with arch specific timer
update AcpiOsGetTimer implementation with arch specific timer
implementation instead of using system timer which might use driver
interface such as HPET and this might cause init priority issue if
a driver which need to init before system timer driver instantiate.

Signed-off-by: Najumon B.A <najumon.ba@intel.com>
2023-11-12 14:01:54 +05:30
Saket Dumbre
fee7180f7c
Merge pull request #904 from jhedberg/zephyr_fixes
osal: Zephyr: A couple of important fixes
2023-10-30 15:04:03 -07:00
Johan Hedberg
10ae1038e5 osal: zephyr: Fix write access for mapped memory
Zephyr requires to explicitly request write access, or else the memory
will be read-only.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-28 21:55:42 +03:00
Johan Hedberg
3944ce4dd1 osal: zephyr: Fix AcpiOsPrintf implementation
The correction function to pass a va_list to is vprintk and not printk.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
2023-10-28 21:55:00 +03:00
Saket Dumbre
a97db76b5f Fix issue #896 2023-10-19 10:16:33 -07:00
Saket Dumbre
f5910dd1ab Attempt 1 to fix issue #900 2023-10-18 15:30:43 -07:00
Saket Dumbre
fb0180feee
Merge pull request #899 from shijujose4/master
ACPI 6.5: RAS2: Add support for RAS2 table
2023-10-05 13:32:36 -07:00
Saket Dumbre
fd35e74b91
Merge pull request #895 from ColinIanKing/origin/fix-redundant-status-check
dmtbdump2: remove redundant failure check on Status
2023-10-04 10:00:03 -07:00
Saket Dumbre
62b4080f99
Merge pull request #894 from ColinIanKing/origin/fix-duplicated-print-in-if
dmtbdump: remove duplicated code for both paths of an if statement
2023-10-04 09:51:39 -07:00
Shiju Jose
c581606cf4 ACPI 6.5: RAS2: Add support for RAS2 table
Add support for ACPI RAS2 feature table(RAS2) defined in the ACPI 6.5
Specification & upwards revision, section 5.2.21.

The RAS2 table provides interfaces for platform RAS features. RAS2 offers
the same services as RASF, but is more scalable than the latter.
RAS2 supports independent RAS controls and capabilities for a given RAS
feature for multiple instances of the same component in a given system.
The platform can support either RAS2 or RASF but not both.

Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
2023-09-27 17:41:52 +01:00
Saket Dumbre
f6f1c48da6
Merge pull request #898 from davejiang/cdat-updates3
Add port definitions for CDAT SSLBIS
2023-09-26 18:07:36 -07:00
Dave Jiang
673fc21311 Add port definitions for CDAT SSLBIS
Add upstream port and any port definitions for SSLBIS.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
2023-09-26 16:29:17 -07:00
Colin Ian King
9c5649bd2c dmtbdump2: remove redundant failure check on Status
The failure check on Status is redundant as it is being checked
in the previous if statement and before the if statement too. It is
impossible for ACPI_FAILURE(Status) to be true because the previous
checks have already returned out of the function at this point.
Remove it.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
2023-09-22 12:10:13 +01:00
Colin Ian King
544938c98a dmtbdump: remove duplicated code for both paths of an if statement
There is an if statement where both paths print the same output, hence
the if is redundant and can be replace with just the print.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
2023-09-22 12:05:18 +01:00
Saket Dumbre
eaa18232ba
Merge pull request #890 from crojewsk-intel/nhlt_reintroduce
NHLT: Drop preliminary support
2023-09-08 09:03:12 -07:00
Cezary Rojewski
0c7379eae2 NHLT: Drop preliminary support
Specification on which current implementation is based on, does not list
all important table components and contains outdated information.
Because of this, the implementation is flawed. To make it easier to
reintroduce the table representation in the future, drop its support and
remove related code.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
2023-09-08 10:40:30 +02:00
Saket Dumbre
866ef6b6f1
Merge pull request #884 from benhartcheatham/einj-cxl-types
actbl1.h: Add EINJ CXL error types
2023-09-06 11:26:20 -07:00
Saket Dumbre
fed4c1cd1b
Merge pull request #882 from najumon1980/non_uefi
os_specific: zephyr: add generic platform support
2023-09-06 10:58:13 -07:00
Saket Dumbre
6fa7f6f184
Merge pull request #889 from acpica/revert-881-nhlt_devcfg
Revert "NHLT: Declare device configuration types"
2023-08-22 10:51:36 -07:00
Saket Dumbre
7b10fafca6
Revert "NHLT: Declare device configuration types" 2023-08-22 10:50:12 -07:00
Najumon B.A
0333c2af13 os_specific: zephyr: add generic platform support
add support for both uefi as well as non uefi platform for
zephyr rtos

Signed-off-by: Najumon B.A <najumon.ba@intel.com>
2023-08-22 10:56:45 +05:30
Myra DeMere
2872257aab Fix segfault when error-checking mixed table types
If a code table which contains errors is passed to iasl followed by a
data table, AePrintErrorSourceLine will call FlGetFileHandle with an
InFileId of ASL_FILE_SOURCE_OUTPUT and a non-NULL Filename.

When FlGetFileHandle searches AslGbl_FilesList, it first encounters the
entry for the data table, which has no Files entry for this InFileId.

It then passes a NULL value to strcmp which can cause a segfault.

The bug was introduced in
github.com/acpica/acpica/commit/997f6ca123771073a6f62738734a561d2dd056ac
when FlGetFileHandle was added. Before, AePrintErrorSourceLine checked
if AslGbl_Files[ASL_FILE_SOURCE_OUTPUT].Handle was NULL before
proceeding.
2023-07-28 15:42:59 -07:00
Ben Cheatham
c7171588a9 actbl1.h: Add EINJ CXL error types
Add EINJ CXL error types added in ACPI v6.5.

Signed-off-by: Ben Cheatham <Benjamin.Cheatham@amd.com>
2023-07-20 14:51:33 -05:00
Saket Dumbre
1f92b9f67c
Merge pull request #881 from crojewsk-intel/nhlt_devcfg
NHLT: Declare device configuration types
2023-07-13 12:04:10 -07:00