diff mbox series

klog.json: Add some missing erst kernel messages to klog database

Message ID 20230928093626.169365-1-ivan.hu@canonical.com
State Accepted
Headers show
Series klog.json: Add some missing erst kernel messages to klog database | expand

Commit Message

Ivan Hu Sept. 28, 2023, 9:36 a.m. UTC
These messages are specific to the ACPI erst driver.

Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 data/klog.json | 81 ++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 79 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/data/klog.json b/data/klog.json
index efef3407..26d052a4 100644
--- a/data/klog.json
+++ b/data/klog.json
@@ -390,8 +390,85 @@ 
    "compare_mode": "string",
    "log_level": "LOG_LEVEL_HIGH",
    "pattern": "Firmware does not respond in time",
-   "advice": "The ACPI Error Injection (EINJ) driver attempted to inject an error however the firmware took longer than expected to respond and a time-out occurred.",
-   "label": "KlogAcpiEinjFirmwareTimeout",
+   "advice": "The ACPI Error Injection (EINJ) or Error Record Serialization (ERST) driver attempted to inject an error however the firmware took longer than expected to respond and a time-out occurred.",
+   "label": "KlogAcpiEinjErstFirmwareTimeout",
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_MEDIUM",
+   "pattern": "Too long stall time for stall instruction",
+   "advice": "The ACPI Error Record Serialization (ERST) driver attempted to execute stall instruction and got the stall time too long.",
+   "label": "KlogAcpiErstStallTime",
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_MEDIUM",
+   "pattern": "Too long stall time for stall while true instruction",
+   "advice": "The ACPI Error Record Serialization (ERST) driver attempted to execute stall while true instruction and got the stall time too long.",
+   "label": "KlogAcpiErstStallTime",
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_MEDIUM",
+   "pattern": "MOVE_DATA can not be used in interrupt context",
+   "advice": "The ACPI Error Record Serialization (ERST) driver attempted to execute move data can not be used in interrupt context, ioremap does not work in interrupt context.",
+   "label": "KlogAcpiErstInterupContext",
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_MEDIUM",
+   "pattern": "too many record IDs",
+   "advice": "The ACPI Error Record Serialization (ERST) driver attempted to add one record id cache but found too many record IDs.",
+   "label": "KlogAcpiErstRecordID",
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_MEDIUM",
+   "pattern": "too many record IDs",
+   "advice": "The ACPI Error Record Serialization (ERST) driver attempted to add one record id cache but found too many record IDs.",
+   "label": "KlogAcpiErstRecordID",
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_MEDIUM",
+   "pattern": "NVRAM ERST Log Address Range not implemented yet",
+   "advice": "The ACPI Error Record Serialization (ERST) driver found NVRAM ERST Log Address Range not implemented yet.",
+   "label": "KlogAcpiErstNvramLogAddrRange",
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "Failed to get table",
+   "advice": "The ACPI Error Record Serialization (ERST) driver found the table, but it cannot get the table for some format exceptions.",
+   "label": "KlogAcpiErstGetTableFail",
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "ERST table is invalid",
+   "advice": "The ACPI Error Record Serialization (ERST) driver checked the ERST table and got the table invalid.",
+   "label": "KlogAcpiErstInvalid",
+  },
+  {
+   "compare_mode": "string",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "Failed to get Error Log Address Range",
+   "advice": "The ACPI Error Record Serialization (ERST) driver fail to get Error Log Address Range.",
+   "label": "KlogAcpiErstErrLogAddrRangeFail",
+  },
+  {
+   "compare_mode": "regex",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "Can not request .* for ERST",
+   "advice": "The ACPI Error Record Serialization (ERST) driver attempted to request a memory region for the ERST table but the request failed, perhaps the mapping was incorrect.",
+   "label": "KlogAcpiErstFailedMemRegion",
+  },
+  {
+   "compare_mode": "regex",
+   "log_level": "LOG_LEVEL_HIGH",
+   "pattern": "Failed to allocate .* bytes for persistent store error log.",
+   "advice": "The ACPI Error Record Serialization (ERST) driver attempted to allocate some bytes for the ERST persistent store error log but failed.",
+   "label": "KlogAcpiErstFailedMemAllocate",
   },
   {
    "compare_mode": "regex",