]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ACPICA: Fix Segmentation Fault error related to DTPR
authorMichal Camacho Romero <michal.camacho.romero@intel.com>
Wed, 14 Jan 2026 12:34:43 +0000 (13:34 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 15 Jan 2026 17:17:49 +0000 (18:17 +0100)
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: https://github.com/acpica/acpica/commit/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
include/acpi/actbl1.h

index 89541cd0c9b0028e1f56a559ef545b67e50b9b4a..59fbd64405be3c24fa32a8fa38b337f409189910 100644 (file)
@@ -2057,12 +2057,12 @@ struct acpi_tprn_limit_reg {
 *******************************************************************************/
 
 struct acpi_tpr_serialize_request {
-       u64 sts:1;              // status of serialization request (RO)
-       // 0 == register idle, 1 == serialization in progress
-       u64 ctrl:1;             // control field to initiate serialization (RW)
-       // 0 == normal, 1 == initialize serialization
+       u64 sr_register;
+       // BIT 1 - status of serialization request (RO)
+       //         0 == register idle, 1 == serialization in progress
+       // BIT 2 - control field to initiate serialization (RW)
+       //         0 == normal, 1 == initialize serialization
        // (self-clear to allow multiple serialization requests)
-       u64 unused:62;
 };
 
 /* Reset to default packing */