|
|
@@ -128,6 +128,7 @@ class IncrementalSolParser:
|
|
|
self._uip_stages: dict[int, int] = {}
|
|
|
self._amemdiag_algo_counts: dict[int, int] = {}
|
|
|
self._previous_amt_error_line: int | None = None
|
|
|
+ self._previous_mt_ecc_line: int | None = None
|
|
|
self._uefi_directory = ""
|
|
|
self._dimm_table_cpu = None
|
|
|
|
|
|
@@ -352,6 +353,8 @@ class IncrementalSolParser:
|
|
|
self._active_amt_cpus.clear()
|
|
|
self._uip_stages.clear()
|
|
|
self._amemdiag_algo_counts.clear()
|
|
|
+ self._previous_amt_error_line = None
|
|
|
+ self._previous_mt_ecc_line = None
|
|
|
self._uefi_directory = ""
|
|
|
self._dimm_table_cpu = None
|
|
|
emit("stage", "System BIOS boot banner observed", {"state": "initializing",
|
|
|
@@ -554,12 +557,39 @@ class IncrementalSolParser:
|
|
|
"reason": m[3] or "", "test_failure": False,
|
|
|
"evidence_type": "explicit_dimm_state"}
|
|
|
emit("training_dimm", "Firmware DIMM enable state", details, phase="bios_training")
|
|
|
+ m = re.fullmatch(r"(N\d+\.C\d+\.D\d+):\s*FPT:\s*(DisableDIMM\(\)|MapOutDimm\(\)(?:\s*-\s*.*)?)", line, re.I)
|
|
|
+ if m:
|
|
|
+ emit("training_dimm", "Firmware DIMM enable state", {
|
|
|
+ **_location(m[1].upper()), "state": "disabled", "reason": m[2].strip(),
|
|
|
+ "test_failure": False, "evidence_type": "fpt_disable_dimm"}, phase="bios_training")
|
|
|
+ m = re.fullmatch(r"(N\d+\.C\d+\.D\d+):\s*(Mapping out DDR)", line, re.I)
|
|
|
+ if m:
|
|
|
+ emit("training_dimm", "Firmware DIMM enable state", {
|
|
|
+ **_location(m[1].upper()), "state": "disabled", "reason": m[2].strip(),
|
|
|
+ "test_failure": False, "evidence_type": "fpt_map_out_dimm"}, phase="bios_training")
|
|
|
+ m = re.fullmatch(r"\[HD_DisableDimm\]\s*(N\d+\.C\d+\.D\d+)(?::\s*(\S+))?", line, re.I)
|
|
|
+ if m:
|
|
|
+ details = {**_location(m[1].upper()), "state": "disabled", "reason": "HD_DisableDimm",
|
|
|
+ "test_failure": False, "evidence_type": "hd_disable_dimm"}
|
|
|
+ if m[2]:
|
|
|
+ details["sn"] = m[2].strip()
|
|
|
+ emit("training_dimm", "Firmware DIMM enable state", details, phase="bios_training")
|
|
|
m = re.fullmatch(r"(N\d+\.C\d+):\s*(?:Channel\s+)?(?:is\s+|status\s*[:=]\s*)?"
|
|
|
r"(enabled|disabled)(?:\s*[:;,(\-]\s*(.*))?", line, re.I)
|
|
|
if m:
|
|
|
emit("training_channel", "Firmware channel enable state", {
|
|
|
**_location(m[1].upper()), "state": m[2].lower(), "reason": m[3] or "",
|
|
|
"test_failure": False, "evidence_type": "explicit_channel_state"}, phase="bios_training")
|
|
|
+ m = re.fullmatch(r"(N\d+\.C\d+(?:\.D\d+)?(?:\.SC\d+)?(?:\.R\d+)?(?:\.\S+)?):\s*Error:\s*(.+?,\s*disable channel)", line, re.I)
|
|
|
+ if m:
|
|
|
+ emit("training_channel", "Firmware channel enable state", {
|
|
|
+ **_location(m[1].upper()), "state": "disabled", "reason": m[2].strip(),
|
|
|
+ "test_failure": False, "evidence_type": "mrc_disable_channel"}, phase="bios_training")
|
|
|
+ m = re.fullmatch(r"\[BIOS\]\[FailMode\]\s*(N\d+\.C\d+(?:\.D\d+)?(?:\.\S+)?):\s*(.+)", line, re.I)
|
|
|
+ if m:
|
|
|
+ emit("diagnostic", "BIOS training fail mode", {
|
|
|
+ **_location(m[1].upper()), "code": "bios_fail_mode", "fail_mode": m[2].strip(),
|
|
|
+ "test_failure": False}, "warning", phase="bios_training")
|
|
|
|
|
|
m = _TRAINING.search(line)
|
|
|
if m:
|
|
|
@@ -830,7 +860,15 @@ class IncrementalSolParser:
|
|
|
"error" if err_cnt > 0 else "info", phase="mt")
|
|
|
if "[MEM ERROR" in line or "[ECC Errors]" in line:
|
|
|
self.phase = "mt"
|
|
|
- details = {"error_type": "ecc" if "ECC" in line else "memory_compare", "test_failure": True}
|
|
|
+ is_coord_continuation = (
|
|
|
+ "(Chan,Slot,Rank,Bank,Row,Col):" in line
|
|
|
+ and self._previous_mt_ecc_line is not None
|
|
|
+ and number - self._previous_mt_ecc_line <= 2
|
|
|
+ )
|
|
|
+ details = {
|
|
|
+ "error_type": "ecc" if "ECC" in line else "memory_compare",
|
|
|
+ "test_failure": not is_coord_continuation,
|
|
|
+ }
|
|
|
for pattern, key in ((r"Test:\s*(\d+)", "test_id"), (r"Address:\s*(?:0x)?([0-9A-Fa-f]+)", "address_hex"),
|
|
|
(r"ECC Corrected:\s*(yes|no)", "corrected"), (r"Syndrome:\s*([^,]+)", "syndrome")):
|
|
|
found = re.search(pattern, line, re.I)
|
|
|
@@ -841,10 +879,18 @@ class IncrementalSolParser:
|
|
|
if key == "address_hex": value = "0x" + value.upper()
|
|
|
details[key] = value
|
|
|
m = re.search(r"Channel(?:/|-|\s)Slot:\s*N(\d+)-(\d+)-(\d+)", line, re.I)
|
|
|
+ if not m:
|
|
|
+ m = re.search(r"\(P(\d+),C(\d+),S(\d+),R\d+\)", line, re.I)
|
|
|
if m:
|
|
|
details.update(cpu=int(m[1]), channel=int(m[2]), dimm=int(m[3]),
|
|
|
location=f"N{m[1]}.C{int(m[2]):02d}.D{m[3]}")
|
|
|
- emit("error", "MemTest86 memory error", details, "error")
|
|
|
+ if "(P package,C channel,S slot,R rank):" in line:
|
|
|
+ self._previous_mt_ecc_line = number
|
|
|
+ if is_coord_continuation:
|
|
|
+ details["parent_line_no"] = self._previous_mt_ecc_line
|
|
|
+ emit("error_detail", "MemTest86 ECC coordinate detail", details, "info", phase="mt")
|
|
|
+ else:
|
|
|
+ emit("error", "MemTest86 memory error", details, "error")
|
|
|
|
|
|
# Match explicit result fields, not generic 'passed', MP startup self-test,
|
|
|
# '0 errors', 'memory latency - test completed', CSS or menu choices.
|
|
|
@@ -865,6 +911,14 @@ class IncrementalSolParser:
|
|
|
if m[1] is not None:
|
|
|
details_fatal["cpu"] = int(m[1])
|
|
|
emit("error", "BIOS fatal error", details_fatal, "error")
|
|
|
+ m = re.search(r"!{3,}\s*X64 Exception Type\s*-\s*([^\r\n!]+?)\s*!{3,}", line, re.I)
|
|
|
+ if m:
|
|
|
+ details_exc: dict[str, Any] = {"exception": m[1].strip(), "test_failure": True,
|
|
|
+ "execution_error": True, "error_type": "uefi_exception"}
|
|
|
+ apic = re.search(r"CPU Apic ID\s*-\s*([0-9A-Fa-f]+)", m[1], re.I)
|
|
|
+ if apic:
|
|
|
+ details_exc["apic_id"] = apic[1]
|
|
|
+ emit("error", "UEFI X64 exception", details_exc, "error")
|
|
|
|
|
|
m = re.fullmatch(r"Major Warning Code = (0x[0-9A-Fa-f]+), Minor Warning Code = (0x[0-9A-Fa-f]+),?", line)
|
|
|
if m:
|