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>
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>
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>
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>
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>
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>
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>
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.
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.
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>
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>
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>
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>
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>
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.