Skip to content

Commit b110e28

Browse files
mcamromrafaeljw
authored andcommitted
ACPICA: Fix Segmentation Fault error related to DTPR
Fix Segmentation Fault error, caused by invalid buffer lenght in DTPR Table Template: * Update buffer length for TPR Table, which invalid value caused Segmentation Fault, during ASL file production. * Refactor invalid values of TPR instances, arrays and serialization requests count and TPR Base addresses in the DTPR table template. * Fix offset updating in the acpi_dm_dump_dtpr function. Link: acpica/acpica@f75850bc4717 Signed-off-by: Michal Camacho Romero <michal.camacho.romero@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Link: https://patch.msgid.link/2541195.jE0xQCEvom@rafael.j.wysocki
1 parent 6f99d3f commit b110e28

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

include/acpi/actbl1.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,12 +2057,12 @@ struct acpi_tprn_limit_reg {
20572057
*******************************************************************************/
20582058

20592059
struct acpi_tpr_serialize_request {
2060-
u64 sts:1; // status of serialization request (RO)
2061-
// 0 == register idle, 1 == serialization in progress
2062-
u64 ctrl:1; // control field to initiate serialization (RW)
2063-
// 0 == normal, 1 == initialize serialization
2060+
u64 sr_register;
2061+
// BIT 1 - status of serialization request (RO)
2062+
// 0 == register idle, 1 == serialization in progress
2063+
// BIT 2 - control field to initiate serialization (RW)
2064+
// 0 == normal, 1 == initialize serialization
20642065
// (self-clear to allow multiple serialization requests)
2065-
u64 unused:62;
20662066
};
20672067

20682068
/* Reset to default packing */

0 commit comments

Comments
 (0)