Commit Graph

14925 Commits

Author SHA1 Message Date
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
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
Saket Dumbre
29189ef59c
Merge pull request #880 from vlsunil/fix_flags_print
RISC-V: Remove redundant Flags print
2023-07-12 11:56:54 -07:00
Saket Dumbre
da740d8d27 Get rid of // style comments 2023-07-12 10:53:44 -07:00
Cezary Rojewski
75635cb363 NHLT: Declare device configuration types
Device configuration structures are plenty so declare a struct for each
known variant. While these kind of duplicate few types present in
actbl2.h already, change is motivated by usage improvements - simplicity
and shorten wording. Intention is to have them replacing the existing
members in the future.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
2023-07-11 14:25:23 +02:00
Sunil V L
bbd7aee285 dmtbinfo2.c: RISC-V: Remove redundant Flags print
Flags field in RISC-V PLIC APIC structure gets printed
twice by iASL. Remove the redundant one.

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
2023-07-02 15:56:19 +05:30
Robert Moore
f16a0b4d0f Update version to 20230628
Version 20230628.
2023-06-28 14:11:26 -07:00
Robert Moore
922317ccb7 Logfile: Changes for version 20230628
Version 20230628.
2023-06-28 14:10:27 -07:00
Saket Dumbre
fd62d2b305
Merge pull request #878 from vlsunil/riscv_b2_ecr
RISC-V: Code first ECRs - Batch 2
2023-06-28 11:47:04 -07:00
Sunil V L
0a37e0e45c IASL/RHCT: Enable dumping and compiling newly added nodes
The RHCT table is updated with new nodes via ECR (#2382).
Add compile and dump functionality for these new structures.

The codefirst ECR is approved by UEFI forum and will
be part of next ACPI spec version.

Reference: Mantis ID: 2382

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
2023-06-28 21:01:35 +05:30
Sunil V L
2eded5a6a1 RHCT: Add flags, CMO and MMU nodes
Update RHCT table with below details.

1) Add additional structure to describe the Cache Management
Operation (CMO) related information.

2) Add structure to describe MMU type.

3) Convert the current reserved field to flags and define
a flag to indicate timer capability.

This codefirst ECR is approved by UEFI forum and will
be part of next ACPI spec version.

Reference: Mantis: 2382

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
2023-06-28 21:01:35 +05:30
Sunil V L
7279d45132 MADT: Add dump and compile support for RISC-V APICs
RISC-V interrupt controller definitions are added in MADT.
Add dump and compile support for them.

These codefirst ECRs are approved by UEFI forum and will
be part of next ACPI spec version.

Reference: Mantis ID: 2348 and 2381

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
2023-06-28 21:01:35 +05:30
Sunil V L
8c048cee4e MADT: Add RISC-V external interrupt controllers
This adds 3 different external interrupt controller
definitions in MADT for RISC-V.

1) RISC-V PLIC is a platform interrupt controller for
handling wired interrupt in a RISC-V systems.

2) RISC-V IMSIC is MSI interrupt controller to
support MSI interrupts.

3) RISC-V APLIC has dual functionality. First it can
act like PLIC and direct all wired interrupts to
the CPU which doesn't have MSI controller. Second,
when the CPU has MSI controller (IMSIC), it will
act as a converter from wired interrupts to MSI.

Update the existing RINTC structure also to support
these external interrupt controllers.

This codefirst ECR is approved by UEFI forum and will
be part of next ACPI spec version.

Reference: Mantis ID: 2381

Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Co-developed-by: Haibo, Xu <haibo1.xu@intel.com>
Signed-off-by: Haibo, Xu <haibo1.xu@intel.com>
2023-06-28 21:01:35 +05:30
Saket Dumbre
8fdf02b242
Merge pull request #877 from abmainkar/asl_timer_instruction
Add AML_NO_OPERAND_RESOLVE flag to Timer
2023-06-27 14:39:16 -07:00
Abhishek Mainkar
90310989a0 Add AML_NO_OPERAND_RESOLVE flag to Timer
According to the ACPI specification 19.6.134, no argument is required to be passed for ASL Timer instruction. For taking care of no argument, AML_NO_OPERAND_RESOLVE flag is added to ASL Timer instruction opcode.

When ASL timer instruction interpreted by ACPI interpreter, getting error. After adding AML_NO_OPERAND_RESOLVE flag to ASL Timer instruction opcode, issue is not observed.

=============================================================
UBSAN: array-index-out-of-bounds in acpica/dswexec.c:401:12 index -1 is out of range for type 'acpi_operand_object *[9]'
CPU: 37 PID: 1678 Comm: cat Not tainted
6.0.0-dev-th500-6.0.y-1+bcf8c46459e407-generic-64k
HW name: NVIDIA BIOS v1.1.1-d7acbfc-dirty 12/19/2022 Call trace:
 dump_backtrace+0xe0/0x130
 show_stack+0x20/0x60
 dump_stack_lvl+0x68/0x84
 dump_stack+0x18/0x34
 ubsan_epilogue+0x10/0x50
 __ubsan_handle_out_of_bounds+0x80/0x90
 acpi_ds_exec_end_op+0x1bc/0x6d8
 acpi_ps_parse_loop+0x57c/0x618
 acpi_ps_parse_aml+0x1e0/0x4b4
 acpi_ps_execute_method+0x24c/0x2b8
 acpi_ns_evaluate+0x3a8/0x4bc
 acpi_evaluate_object+0x15c/0x37c
 acpi_evaluate_integer+0x54/0x15c
 show_power+0x8c/0x12c [acpi_power_meter]

Signed-off-by: Abhishek Mainkar <abmainkar@nvidia.com>
2023-06-26 22:27:19 +00:00
Saket Dumbre
cedf63eceb
Merge pull request #876 from davejiang/cdat-updates2
Add a define for size of acpi_srat_generic_affinity DeviceHandle
2023-06-15 14:03:47 -07:00
Dave Jiang
be56820b03 Add a define for size of acpi_srat_generic_affinity DeviceHandle
Replace magic number with a define. Linux kernel code will utilize this
define.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
2023-06-15 11:15:30 -07:00
Saket Dumbre
11ef49cb65
Merge pull request #875 from tititiou36/master
Slightly simplify an error message in AcpiDsResultPush()
2023-05-30 10:19:02 -07:00
Christophe Jaillet
3a9dbc5cb1
Slightly simplify an error message in acpi_ds_result_push()
'object' is known to be NULL at this point. There is little value to log it twice in the error message.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
2023-05-29 17:09:43 +02:00
Saket Dumbre
e948142526
Merge pull request #874 from davejiang/cdat-updates
CDAT updates
2023-05-16 11:36:32 -07:00
Dave Jiang
5d5ce8bc83 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-05-15 14:27:50 -07:00
Dave Jiang
32a50922b6 Fix misspelled CDAT DSMAS define
ACPI_CEDT_DSMAS_NON_VOLATILE -> ACPI_CDAT_DSMAS_NON_VOLATILE

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
2023-05-15 09:07:58 -07:00
Saket Dumbre
71abb8cff8
Merge pull request #864 from jmarinho/master
Add support for Interrupt in acpiexec
2023-05-10 11:22:48 -07:00
Jose Marinho
ef7cf185a0 Add interrupt command to acpiexec
This commit add the Interrupt command to acpiexec.
The Interrupt command simulates an interrupt with a IntID (GSIV)
equal to the first argument of the call.

The acpiexec code simulates the behaviour by OSPM: execute the _EVT
method of the GED device associated with that IntID.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>
Signed-off-by: Jose Marinho <jose.marinho@arm.com>
2023-05-09 09:24:16 +01:00
Jose Marinho
dc6fd1d129 Detect GED device and keep track of _EVT
The GED device is described by a _HID of ACPI0013.
This code traverses the namespace identifying all GED devices.
For each GED device in the namespace we record 1) the Interrupt objects
and the _EVT method.

This information is used when an interrupt is simulate.

Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Cc: Samer El-Haj-Mahmoud <samer.el-haj-mahmoud@arm.com>

Signed-off-by: Jose Marinho <jose.marinho@arm.com>
2023-05-09 09:24:04 +01:00
George Guo
2bc8fd497d ACPICA: Modify ACPI_STATE_COMMON
Avoid trailing semicolons in macro, and it's not readable to put macro ACPI_STATE_COMMON and other
variables in the same line.
So modify the macro and just put it in a single line.

Signed-off-by: George Guo <guodongtai@kylinos.cn>
2023-05-09 09:24:04 +01:00
Saket Dumbre
3a526a6d94
Merge pull request #870 from georgejguo/master
ACPICA: Modify ACPI_STATE_COMMON
2023-05-02 15:50:43 -07:00
Saket Dumbre
561159ab76
Merge pull request #871 from Jiangshan365/master
exserial.c: replace ternary operator with ACPI_MIN()
2023-05-02 12:42:10 -07:00
Saket Dumbre
e4ad511a36
Merge pull request #843 from gemarcano/fix_subtable_read_overflow
iasl: check Offset before Subtable dereference
2023-05-02 12:29:21 -07:00
Saket Dumbre
57813823e1
Merge pull request #873 from najumon1980/seekset_fix
fix for conflict macro definition on zephyr interface
2023-05-02 12:12:40 -07:00
Saket Dumbre
2b61f022f2
Merge pull request #859 from lvjianmin-loongson/master
iASL/MADT: Add dump and compile support for LoongArch APICs
2023-04-28 12:11:58 -07:00
Saket Dumbre
82323f3cfa Manually revert after resolving conflicts PR #757 commit 32d875705c 2023-04-28 11:30:07 -07:00
Najumon B.A
c71a12dfc6 fix for conflict macro definition on zephyr interface
remove SEEK_SET/SEEK_END duplicate macro on zephyr header which through
 error while run zephyr CI jobs.

Signed-off-by: Najumon B.A <najumon.ba@intel.com>
2023-04-27 07:37:13 +05:30
Saket Dumbre
54dede760b Fix ACPI_FUNCTION_ENTRY() 2023-04-26 11:21:46 -07:00
Saket Dumbre
24dc245931 Revert "Fixes for ACPI_FLEX_ARRAY, to eliminate warnings on MSVC"
This reverts commit f98909b792.
2023-04-26 10:51:08 -07:00
Saket Dumbre
9ad08f1418
Merge pull request #872 from acpica/revert-767-master
Revert "Events: Use spaces instead of tabs to fix indentation"
2023-04-25 15:33:59 -07:00
Saket Dumbre
dfe53c71e8
Revert "Events: Use spaces instead of tabs to fix indentation" 2023-04-25 15:33:10 -07:00
Saket Dumbre
a597e3b247 Add support for _DSC as per ACPI 6.5 2023-04-25 10:52:21 -07:00
Jiangshan Yi
2250f71fe7 exserial.c: replace ternary operator with ACPI_MIN()
Make the code simpler and more readable.

Signed-off-by: Jiangshan Yi <yijiangshan@kylinos.cn>
2023-04-20 16:31:56 +08:00
George Guo
0a43d35215 ACPICA: Modify ACPI_STATE_COMMON
Avoid trailing semicolons in macro, and it's not readable to put macro ACPI_STATE_COMMON and other
variables in the same line.
So modify the macro and just put it in a single line.

Signed-off-by: George Guo <guodongtai@kylinos.cn>
2023-04-20 10:50:50 +08:00
Saket Dumbre
884f2848ee
Merge pull request #868 from najumon1980/zmodule
build: add module name for build system
2023-04-19 10:28:34 -07:00
Saket Dumbre
a0dc3f89a1
Merge pull request #869 from pprindeville/issue#867
Fix GCC 12 dangling-pointer warning
2023-04-19 10:00:03 -07:00
Philip Prindeville
aea0a5cfce Fix GCC 12 dangling-pointer warning
We're storing a persistent pointer to an ephemeral local variable
which technically is a dangling pointer and the compiler is correct.
However, since we never indirect the pointer, this is a safe
operation and we can suppress the warning.

Also, some C run-times (like MUSL) aren't including <stdint.h>
indirectly so we must include it explicitly or we won't have the
type definition for uintptr_t.

Fixes issue #867.

Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
2023-04-13 17:43:07 -06:00
Najumon B.A
b4f832793a build: added module name for zephyr build system
added module name for zephyr rtos build system

Signed-off-by: Najumon B.A <najumon.ba@intel.com>
2023-04-13 09:04:06 +05:30
lvjianmin-loongson
017e83209b
Merge branch 'acpica:master' into master 2023-04-07 19:09:34 +08:00