Commit Graph

14991 Commits

Author SHA1 Message Date
Saket Dumbre
d0349632b6
Update osunixxf.c license header from 2023 to 2024 2024-03-21 21:37:56 -07:00
Saket Dumbre
c929bc0d50
Update osunixmap.c license header from 2023 to 2024 2024-03-21 21:37:32 -07:00
Saket Dumbre
78c34e3738
Update osunixdir.c license header from 2023 to 2024 2024-03-21 21:37:05 -07:00
Saket Dumbre
193a3dda90
Update oslinuxtbl.c license header from 2023 to 2024 2024-03-21 21:36:37 -07:00
Saket Dumbre
edaf61c8a9
Update oszephyr.c license header from 2023 to 2024 2024-03-21 21:36:02 -07:00
Saket Dumbre
1c5331ede7
Update osgendbg.c license header from 2015 to 2024 2024-03-21 21:35:24 -07:00
Saket Dumbre
ab10380db0
Update osbsdtbl.c license header from 2023 to 2024 2024-03-21 21:34:52 -07:00
Saket Dumbre
815db2de43
Update osefixf.c license header from 2023 to 2024 2024-03-21 21:33:27 -07:00
Saket Dumbre
a4dab90c90
Update osefitbl.c license header from 2023 to 2024 2024-03-21 21:33:07 -07:00
Saket Dumbre
4f9205ae42
Update oseficlib.c license header from 2023 to 2024 2024-03-21 21:32:18 -07:00
Saket Dumbre
68bc01cec3
Update efihello.c license header from 2023 to 2024 2024-03-21 21:31:35 -07:00
Saket Dumbre
f71b9942de
Update acdragonfly.h license header from 2003 to 2024 2024-03-21 21:30:45 -07:00
Saket Dumbre
74fb083698
Update acgetline.c license header from 2023 to 2024 2024-03-21 21:28:22 -07:00
Saket Dumbre
c18edfb1ab Update the copyright year in the license header from 2023 to 2024 2024-03-21 20:23:36 -07:00
Saket Dumbre
d58f24933d Get rid of MSVC warnings that arise actually due to GCC's new dangling pointer warning and also tGCC's blindspot to work with nested named structs/unions resulting in breaking of ACPI event-handling 2024-03-21 19:48:34 -07:00
Saket Dumbre
2900988ee9
Merge pull request #923 from d-tatianin/test-nt-compat
tests/common: use CopyObject instead of Store for NRMT
2024-03-21 18:56:48 -07:00
Saket Dumbre
f3581c4c65
Merge pull request #927 from nkiryushin/check-evaluation-result
ACPICA: debugger: check status of AcpiEvaluateObject in AcpiDbWalkForFields
2024-03-21 18:02:58 -07:00
Saket Dumbre
733c3bb32c
Merge pull request #924 from GT119119/master
Modify ACPI_OBJECT_COMMON_HEADER
2024-03-21 15:23:42 -07:00
Saket Dumbre
5705e83467
Merge pull request #938 from d-tatianin/gpe-counter
events/evgpeinit: don't forget to increment registered GPE count
2024-03-21 14:40:24 -07:00
Daniil Tatianin
ba8a36b5c7 events/evgpeinit: don't forget to increment registered GPE count
This was used to log the number of newly discovered GPEs post table
load in AcpiEvUpdateGpes, but we never incremented the number inside
AcpiEvMatchGpeMethod so that was never logged.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
2024-03-21 21:57:12 +03:00
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
Nikita Kiryushin
9061cd9aa1 ACPICA: debugger: check status of AcpiEvaluateObject in AcpiDbWalkForFields
Errors in AcpiEvaluateObject can lead to incorrect state of Buffer.
This can lead to access to data in previously ACPI_FREEd Buffer and
secondary ACPI_FREE to the same Buffer later.

Handle errors in AcpiEvaluateObject the same way it is done earlier
with AcpiNsHandleToPathname.
2024-02-12 14:09:59 +03: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
lijun
9788e0dc95 Modify ACPI_OBJECT_COMMON_HEADER
modify 4 macros:
ACPI_OBJECT_COMMON_HEADER,
ACPI_COMMON_BUFFER_INFO,
ACPI_COMMON_NOTIFY_INFO,
ACPI_COMMON_FIELD_INFO
they  cause  poor readability.so del the last ";"
and when use them in a single line with the ";"in the end.

Signed-off-by: lijun <lijun01@kylinos.cn>
2024-01-03 13:39:35 +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
Daniil Tatianin
8f789f356f tests/common: use CopyObject instead of Store for NRMT
NRMT is initialized as "", which is a zero-length string. Trying to
Store a longer string to it works on ACPICA, however, is incompatible
with other implementations like Acpi.sys, which doesn't allow resizing
existing buffers with Store. Therefore any Store operation to it
produces the same result on those implementations.

Use CopyObject to avoid any possible behavior differences.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
2023-12-16 16:43:08 +03: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