alpha: improve Tsunami machine check reporting
Magnus Lindholm
maintainerv7 cover alpha: improve Tsunami machine check reporting
This series adds Tsunami/Typhoon system-error diagnostics and Clipper ES40 environmental reporting. It applies to v7.3-rc1 on Alpha for-next at 33465f6ab697.
Thanks to Matt Turner for the v6 review. His Reviewed-by tags are carried on patches 1 and 2 from v5 and patch 3 from v6. Patches 1-3 have no code changes since v6.
Changes since v6:
- Drop v6 patch 6, "alpha: stop on fatal Tsunami system ECC and write parity errors", as agreed with Matt. The panic policy will be handled separately; v7 focuses on reporting and acknowledgment improvements without adding a new panic path.
- Remove the duplicate irq_regs.h include and the trailing blank line.
- Gate full register dumps for correctable system errors on verbose machine-check reporting; retain their error decode and always show registers for uncorrectable system errors.
- Document that PERRMASK gates new PERROR latching (HRM 10.2.5.7), and that the ECC field selection does not establish mixed-error ordering.
- Retain conservative SERR transaction suppression: HRM 8.8.2.6 leaves address/command undefined whenever SERR is set, with no stated exception for combined errors. This differs from the suggested SERR-only check.
- Remove the redundant environmental silent pass and always-true condition.
- Treat SMIR bit 0 as raw context, using fault mask 0x14. It stayed set after PSU reconnection on the ES40, so do not label it a current failure.
- Print the recorded CPU ID for processor console subpackets.
- Bound Clipper console-log traversal by the HWRPB byte count. Preserve the firmware pointer on unknown or truncated records and dump at most 1 KiB of raw data. Acknowledge only after a complete termination packet; no class-5/type-4 layout is assumed.
Deferring panic policy preserves the existing continuation behavior; it is not a claim that continuing is safe after an uncorrectable error. Acknowledging a latch does not repair corrupted data. A follow-up needs to consider CPU-detected ECC, Pchip UECC, RDPE/PERR, previously latched errors, firmware masks and the impact of a device asserting PERR#. In particular, HRM 8.8.2.3 says erroneous PIO read data is returned as received; it does not establish an automatic CPU 670 for that case.
PERRMASK is left as firmware configured it. A zero mask bit prevents new latching but does not establish that previously latched status is cleared. SMIR polarity/latching, inverted halt/reset bits, other-board firmware layouts and successful nonempty console-log decoding remain unverified. Console-log scanning remains restricted to Clipper; ambiguous console environmental records remain raw.
Testing:
- Native ASan/UBSan tests pass with CONFIG_VERBOSE_MCHECK enabled and disabled, including runtime verbosity selection, SERR with other bits, mixed ECC/PCI decoding, processor subpacket CPU IDs and the new SMIR mask.
- The observed v6 PSU state sequence was replayed synthetically: individual failure reports remain visible and the final state reports no recognized fault bits while preserving raw SMIR=1. This is not a v7 hardware test.
- V7 tip vmlinux builds pass with W=1 and GCC 15.0.1 for GENERIC, DP264, SHARK and EIGER using minimal configurations. No warnings in touched files; logs contain unrelated kernel-doc warnings and the saved_config COMMON-symbol modpost warning. These are not per-patch or ES40 deployment builds.
V6 was boot-tested on my ES40 with GENERIC_ENTRY enabled. Unplugging and reconnecting PSU AC power produced code 206 notifications: PSU 1's individual failure indication cleared and its enabled indication returned, while SMIR bit 0 remained set in all three reports.
V7 was built and boot-tested on my AlphaServer ES40. Basic CPU, memory and file I/O checks passed with no new kernel messages or kernel taint.
Matt built all six v6 patches for GENERIC, DP264, SHARK and EIGER with W=1 and GCC 16.2.0 (24 builds), with no warnings in touched files, and booted its GENERIC tip on QEMU Clipper to root mounting. These results apply to v6; they do not establish machine-check or manual-layout coverage.
Magnus Lindholm (5):
alpha: move Tsunami machine check handling to err_tsunami.c
alpha: describe the Tsunami system machine check frame
alpha: bound EV6 logout decoding by the processor area
alpha: decode and acknowledge Tsunami system machine checks
alpha: decode Clipper environmental events and retain console logs
arch/alpha/include/asm/core_tsunami.h | 8 +- arch/alpha/include/asm/err_common.h | 2 + arch/alpha/kernel/Makefile | 4 +- arch/alpha/kernel/core_tsunami.c | 34 -- arch/alpha/kernel/err_common.c | 13 + arch/alpha/kernel/err_ev6.c | 38 +- arch/alpha/kernel/err_impl.h | 1 + arch/alpha/kernel/err_tsunami.c | 724 ++++++++++++++++++++++++++ arch/alpha/kernel/proto.h | 3 + arch/alpha/kernel/sys_dp264.c | 5 +- 10 files changed, 784 insertions(+), 48 deletions(-) create mode 100644 arch/alpha/kernel/err_tsunami.c
base-commit: 33465f6ab697abceafd9a340067a544d551c4412
Signature · 1 line
2.43.0
Magnus Lindholm
maintainerPATCH v7 1/5 alpha: move Tsunami machine check handling to err_tsunami.c
Move the existing handler and PCI error clearing helpers without changing their behavior. Build the error objects for ALPHA_TSUNAMI so that all Tsunami configurations, including non-generic Shark, can use them.
--- arch/alpha/kernel/Makefile | 4 ++- arch/alpha/kernel/core_tsunami.c | 34 ----------------------- arch/alpha/kernel/err_tsunami.c | 47 ++++++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+), 35 deletions(-) create mode 100644 arch/alpha/kernel/err_tsunami.c
arch/alpha/kernel/Makefile +3 -1
@@ -39,7 +39,7 @@ obj-y += err_ev7.o err_titan.o err_marvel.o endif obj-y += irq_pyxis.o irq_i8259.o irq_srm.o -obj-y += err_ev6.o +obj-y += err_ev6.o err_tsunami.o obj-y += es1888.o smc37c669.o smc37c93x.o pc873xx.o gct.o obj-y += srmcons.o
@@ -89,4 +89,6 @@ obj-$(CONFIG_ALPHA_MARVEL) += err_ev7.o err_marvel.o obj-$(CONFIG_ALPHA_NAUTILUS) += err_ev6.o obj-$(CONFIG_ALPHA_TITAN) += err_ev6.o err_titan.o +obj-$(CONFIG_ALPHA_TSUNAMI) += err_tsunami.o + endif # GENERIC
arch/alpha/kernel/core_tsunami.c +0 -34
@@ -448,37 +448,3 @@ tsunami_kill_arch(int mode)if (TSUNAMI_cchip->csc.csr &1L <<14 )tsunami_kill_one_pchip (TSUNAMI_pchip1,1 ); } - -static inline void -tsunami_pci_clr_err_1 (tsunami_pchip *pchip) -{ - pchip->perror.csr; - pchip->perror.csr =0x040 ; -mb (); - pchip->perror.csr; -} - -static inline void -tsunami_pci_clr_err (void ) -{ -tsunami_pci_clr_err_1 (TSUNAMI_pchip0); - -/* TSUNAMI and TYPHOON can have 2, but might only have 1 (DS10) */ -if (TSUNAMI_cchip->csc.csr &1L <<14 ) -tsunami_pci_clr_err_1 (TSUNAMI_pchip1); -} - -void -tsunami_machine_check (unsigned long vector,unsigned long la_ptr) -{ -/* Clear error before any reporting. */ -mb (); -mb ();/* magic */ -draina (); -tsunami_pci_clr_err (); -wrmces (0x7 ); -mb (); - -process_mcheck_info (vector, la_ptr,"TSUNAMI" , -mcheck_expected (smp_processor_id ())); -}
arch/alpha/kernel/err_tsunami.c new file +47 -0
47 lines not on this page · raw message
Signature · 1 line
2.43.0
Magnus Lindholm
maintainerPATCH v7 2/5 alpha: describe the Tsunami system machine check frame
In reply to Magnus LindholmDefine the five system-specific quadwords in the SRM logout frame, as documented in the AlphaServer ES40 Service Guide, Table D-19.
--- arch/alpha/include/asm/core_tsunami.h | 5 +++++ 1 file changed, 5 insertions(+)
arch/alpha/include/asm/core_tsunami.h +5 -0
@@ -283,6 +283,11 @@ union TPchipPERRMASK {* Data structure for handling TSUNAMI machine checks: */ struct el_TSUNAMI_sysdata_mcheck { +u64 sesf; +u64 dir; +u64 misc; +u64 p0_perror; +u64 p1_perror; };
Signature · 1 line
2.43.0
Magnus Lindholm
maintainerPATCH v7 3/5 alpha: bound EV6 logout decoding by the processor area
In reply to Magnus LindholmThe ES40 Service Guide, Table D-19, documents a correctable frame with its system area at 0x58 and total size 0x80. The existing EV6 decoder interprets system words as extended CPU registers and reads past its end. This establishes the layout for ES40; whether Titan and Nautilus PALcode also emits this short frame has not been verified.
Validate the processor area before decoding it and only print extended registers when present. Preserve rejected frames with a raw dump rather than trusting their invalid offsets. Cap the dump at 1 KiB and round down to complete quadwords. This still relies on firmware supplying an accessible frame of its advertised size; the cap is not pointer validation.
--- arch/alpha/kernel/err_common.c | 13 ++++++++++++ arch/alpha/kernel/err_ev6.c | 38 +++++++++++++++++++++++++--------- arch/alpha/kernel/err_impl.h | 1 + 3 files changed, 42 insertions(+), 10 deletions(-)
arch/alpha/kernel/err_common.c +13 -0
@@ -44,6 +44,19 @@ mchk_dump_mem(void *data, size_t length, char **annotation) } } +/* Preserve rejected frames without trusting their internal offsets. */ +void +mchk_dump_logout_frame_raw (struct el_common *header) +{ +size_t length = header->size; + +/* Bound diagnostic output and never read a partial final quadword. */ +if (length >1024 ) + length =1024 ; + length &= ~7UL ; +mchk_dump_mem (header, length,NULL ); +} +void mchk_dump_logout_frame (struct el_common *mchk_header) {
arch/alpha/kernel/err_ev6.c +28 -10
@@ -190,6 +190,25 @@ ev6_process_logout_frame(struct el_common *mchk_header, int print) (struct el_common_EV6_mcheck *)mchk_header;int status =MCHK_DISPOSITION_UNKNOWN_ERROR ; +/* +* ES40 correctable frames end the CPU area before EXC_ADDR (Table +* D-19). Validate both regions before decoding or dumping any data. +*/ +if (mchk_header->proc_offset != offsetof(struct el_common_EV6_mcheck , + I_STAT) || + mchk_header->sys_offset < offsetof(struct el_common_EV6_mcheck , + EXC_ADDR) || + mchk_header->sys_offset > mchk_header->size || + ((mchk_header->sys_offset | mchk_header->size) &7 )) { +if (print) { +printk ("%s Invalid EV6 logout frame: size %x, CPU %x, system %x\n" , + err_print_prefix, mchk_header->size, + mchk_header->proc_offset, mchk_header->sys_offset); +mchk_dump_logout_frame_raw (mchk_header); + } +return MCHK_DISPOSITION_UNKNOWN_ERROR ; + } + status |=ev6_parse_ibox (ev6mchk->I_STAT, print); status |=ev6_parse_mbox (ev6mchk->MM_STAT, ev6mchk->DC_STAT, ev6mchk->C_STAT, print);
@@ -203,16 +222,15 @@ ev6_process_logout_frame(struct el_common *mchk_header, int print)if (status !=MCHK_DISPOSITION_DISMISS ) {char *saved_err_prefix = err_print_prefix; -/* -* Dump some additional information from the frame -*/ -printk ("%s EXC_ADDR: 0x%016lx IER_CM: 0x%016lx" -" ISUM: 0x%016lx\n" -" PAL_BASE: 0x%016lx I_CTL: 0x%016lx" -" PCTX: 0x%016lx\n" , - err_print_prefix, - ev6mchk->EXC_ADDR, ev6mchk->IER_CM, ev6mchk->ISUM, - ev6mchk->PAL_BASE, ev6mchk->I_CTL, ev6mchk->PCTX); +/* These registers are absent from short correctable frames. */ +if (mchk_header->sys_offset >=sizeof (*ev6mchk)) +printk ("%s EXC_ADDR: 0x%016lx IER_CM: 0x%016lx" +" ISUM: 0x%016lx\n" +" PAL_BASE: 0x%016lx I_CTL: 0x%016lx" +" PCTX: 0x%016lx\n" , + err_print_prefix, + ev6mchk->EXC_ADDR, ev6mchk->IER_CM, ev6mchk->ISUM, + ev6mchk->PAL_BASE, ev6mchk->I_CTL, ev6mchk->PCTX);if (status ==MCHK_DISPOSITION_UNKNOWN_ERROR ) { printk("%s UNKNOWN error, frame follows:\n",
arch/alpha/kernel/err_impl.h +1 -0
@@ -47,6 +47,7 @@ struct el_subpacket_handler {extern char *err_print_prefix;extern void mchk_dump_mem (void *,size_t ,char **); +extern void mchk_dump_logout_frame_raw (struct el_common *header);extern void mchk_dump_logout_frame (struct el_common *);extern void el_print_timestamp (union el_timestamp *);extern void el_process_subpackets (struct el_subpacket *,int );
Signature · 1 line
2.43.0
Magnus Lindholm
maintainerPATCH v7 4/5 alpha: decode and acknowledge Tsunami system machine checks
In reply to Magnus LindholmDecode PCI and ECC transactions separately, honor invalid transaction information, and select Pchip errors using the logout summary. Report master aborts without importing Titan-specific dismissal policy. Delegate processor vectors to the bounded EV6 decoder.
Capture live PERROR and MISC before acknowledging their defined W1C bits and report live status absent from the saved frame. Leave PERRMASK unchanged. HRM revision 4.0, Table 10-42 marks bit 9 reserved (MBZ/RAZ); remove the obsolete RTO definition and reserve its bitfield position.
Use the system vector and frame bounds without restricting the reason code to the ES40 values. Preserve invalid frames and unknown environmental layouts in bounded raw dumps. Restore CPU register output for system errors, including the PC needed to diagnose NXM. For correctable system errors, gate the register dump on CONFIG_VERBOSE_MCHECK and alpha_verbose_mcheck while retaining the error decode.
HRM 10.2.5.7 states that a cleared PERRMASK bit prevents the corresponding PERROR bit from being set, including by PERRSET. This does not establish firmware's mask value or clear a previously latched error. Leave firmware's mask untouched and report snapshots as live state, not proof of which transaction caused the current vector.
Keep transaction information unavailable whenever SERR is set: HRM 8.8.2.6 gives no exception for SERR combined with another error. Follow Table 10-42's ECC interpretation for CRE/UECC and document that combined ECC/PCI bits do not reveal error ordering.
Do not retain expected-probe handling: its only Tsunami writer is under the undefined NXM_MACHINE_CHECKS_ON_TSUNAMI. New fatal-error policy is deferred to a follow-up; reporting and acknowledgment do not establish recovery.
--- arch/alpha/include/asm/core_tsunami.h | 3 +- arch/alpha/kernel/Makefile | 2 +- arch/alpha/kernel/err_tsunami.c | 253 ++++++++++++++++++++++++-- 3 files changed, 237 insertions(+), 21 deletions(-)
arch/alpha/include/asm/core_tsunami.h +1 -2
@@ -105,7 +105,6 @@ extern int TSUNAMI_bootcpu;#define perror_m_ta 0x40#define perror_m_rdpe 0x80#define perror_m_nds 0x100 -#define perror_m_rto 0x200#define perror_m_uecc 0x400#define perror_m_cre 0x800#define perror_m_addrl 0xFFFFFFFF0000UL
@@ -123,7 +122,7 @@ union TPchipPERROR { unsigned perror_v_ta : 1; unsigned perror_v_rdpe : 1; unsigned perror_v_nds : 1; - unsigned perror_v_rto : 1; + unsigned perror_v_reserved : 1; /* PERROR<9>: MBZ, RAZ */ unsigned perror_v_uecc : 1; unsigned perror_v_cre : 1; unsigned perror_v_rsvd1 : 4;
arch/alpha/kernel/Makefile +1 -1
@@ -89,6 +89,6 @@ obj-$(CONFIG_ALPHA_MARVEL) += err_ev7.o err_marvel.o obj-$(CONFIG_ALPHA_NAUTILUS) += err_ev6.o obj-$(CONFIG_ALPHA_TITAN) += err_ev6.o err_titan.o -obj-$(CONFIG_ALPHA_TSUNAMI) += err_tsunami.o +obj-$(CONFIG_ALPHA_TSUNAMI) += err_ev6.o err_tsunami.o endif # GENERIC
arch/alpha/kernel/err_tsunami.c +235 -18
276 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH v7 4/5] alpha: decode and acknowledge Tsunami system machine checks
arch/alpha/kernel/err_tsunami.c line 78
Quoted 4 lines · Magnus Lindholm
arch/alpha/kernel/err_tsunami.c +4
-0+/* +* Table 10-42 selects the ECC fields whenever CRE or UECC is set. +* Mixed ECC/PCI bits do not establish which error occurred first. +*/
10.2.5.6 says the register freezes on the first error and only LOST can be set afterwards. So mixed bits were detected together, and ordering does not come into it.
arch/alpha/kernel/err_tsunami.c line 181
Quoted 3 lines
arch/alpha/kernel/err_tsunami.c +3
-0+/* HRM 10.2.5.7: PERRMASK gates latching, not just notification. */ + +/* Preserve each chip's transaction and the NXM source before clearing. */
The first comment is not attached to any code, and the changelog already makes the point. I would drop it.
Table 10-43 gives the PERRMASK reset value as 0, all errors disabled, and Linux never writes it, so all of the PERROR handling here depends on what SRM programs. What does PERRMASK read on your ES40?
arch/alpha/kernel/err_tsunami.c line 232
Quoted 2 lines
arch/alpha/kernel/err_tsunami.c +2
-0+draina (); +tsunami_clear_errors (&live);
10.2.5.6 warns that PERROR read before the error reaches DRIR can come back with INV set. On a 670 or 630 that races with a new Pchip error we would acknowledge it with INV set and lose the transaction, along with the 660 that would have reported it. I would leave the Pchips alone outside 660/620.
Magnus Lindholm
maintainerPATCH v7 5/5 alpha: decode Clipper environmental events and retain console logs
In reply to Magnus LindholmRestrict ES40 live environmental decoding to Clipper. Honor print control, validate bounds and masks, and separate fault bits from status context. Report valid notifications even when no recognized fault bits are set, so door-closed and supply-return notifications are not silently discarded. Do not infer a recovery transition from a single status snapshot.
Keep SMIR bit 0 and inverted halt/reset bits as raw context. During the ES40 PSU cable test, bit 0 remained set after the individual PSU failure indication cleared. Its polarity/latching is unverified, so do not call it a current PSU failure. Use mask 0x14 for the remaining SMIR faults. Remove the redundant silent first pass now that every valid environmental notification is reported. Include the CPU ID for processor console frames. Use plain door-status messages without the manual's "Set =" prefix. Dump unknown or truncated environmental frames raw.
Register bounded console decoders from the error file, but keep the PCI init hook and console-log invocation in sys_dp264.c, as Titan does. Limit console-log scanning to Clipper pending older-board firmware tests. The ES40 boot and QEMU Clipper test do not establish that nonempty console logs are safe on DS10, DS20 or XP1000 firmware.
Print console environmental packets raw: ES40 Table D-18's sys_offset conflicts with its field offsets. Actual SRM records are still needed. Terminate annotation arrays and reject invalid packet bounds/revisions.
Use a Clipper-only console scanner bounded by the HWRPB log length. Check wrapper fields and each child extent before decoding; reject unsupported wrappers, including the class-5/type-4 record seen on ES40. Retain the firmware log pointer if parsing is incomplete, and print up to 1 KiB of raw bytes without reading beyond the supplied log length. Only acknowledge a log after reaching a complete termination packet. The generic scanner otherwise clears the pointer even on parse failure.
--- arch/alpha/include/asm/err_common.h | 2 + arch/alpha/kernel/err_tsunami.c | 460 ++++++++++++++++++++++++++++ arch/alpha/kernel/proto.h | 3 + arch/alpha/kernel/sys_dp264.c | 5 +- 4 files changed, 469 insertions(+), 1 deletion(-)
arch/alpha/include/asm/err_common.h +2 -0
@@ -47,6 +47,8 @@# define EL_TYPE__REGATTA__PROCESSOR_ERROR_FRAME (1)# define EL_TYPE__REGATTA__SYSTEM_ERROR_FRAME (2)# define EL_TYPE__REGATTA__ENVIRONMENTAL_FRAME (3) +# define EL_TYPE__REGATTA__TSUNAMI_PCHIP0_EXTENDED (6) +# define EL_TYPE__REGATTA__TSUNAMI_PCHIP1_EXTENDED (7)# define EL_TYPE__REGATTA__TITAN_PCHIP0_EXTENDED (8)# define EL_TYPE__REGATTA__TITAN_PCHIP1_EXTENDED (9)# define EL_TYPE__REGATTA__TITAN_MEMORY_EXTENDED (10)
arch/alpha/kernel/err_tsunami.c +460 -0
469 lines not on this page · raw message
arch/alpha/kernel/proto.h +3 -0
@@ -78,6 +78,9 @@ extern struct _alpha_agp_info *titan_agp_info(void);extern struct pci_ops tsunami_pci_ops;extern void tsunami_init_arch (void );extern void tsunami_kill_arch (int ); +extern void tsunami_register_error_handlers (void ); +extern void tsunami_check_console_data_log (void ); +extern void clipper_machine_check (unsigned long vector,unsigned long la_ptr);extern void tsunami_machine_check (unsigned long vector,unsigned long la_ptr);extern void tsunami_pci_tbi (struct pci_controller *,dma_addr_t ,dma_addr_t );
arch/alpha/kernel/sys_dp264.c +4 -1
@@ -32,6 +32,7 @@#include "proto.h" #include "irq_impl.h" +#include "err_impl.h" #include "pci_impl.h" #include "machvec_impl.h"
@@ -533,6 +534,8 @@ monet_init_pci(void)static void __init clipper_init_pci (void ) { +tsunami_register_error_handlers (); +tsunami_check_console_data_log ();common_init_pci ();locate_and_init_vga (NULL ); }
@@ -627,7 +630,7 @@ struct alpha_machine_vector clipper_mv __initmv = {DO_EV6_MMU ,DO_DEFAULT_RTC ,DO_TSUNAMI_IO , - .machine_check = tsunami_machine_check, + .machine_check = clipper_machine_check, .max_isa_dma_address = ALPHA_MAX_ISA_DMA_ADDRESS, .min_io_address = DEFAULT_IO_BASE, .min_mem_address = DEFAULT_MEM_BASE,
Signature · 1 line
2.43.0
Matt Turner
maintainerRe: [PATCH v7 5/5] alpha: decode Clipper environmental events and retain console logs
Quoted 2 lines · Magnus Lindholm
Remove the redundant silent first pass now that every valid environmental notification is reported.
The silent pass only existed in v6, so this is a change between versions. It belongs below the --- line.
arch/alpha/include/asm/err_common.h line 51
Quoted 2 lines
arch/alpha/include/asm/err_common.h +2
-0+# define EL_TYPE__REGATTA__TSUNAMI_PCHIP0_EXTENDED (6) +# define EL_TYPE__REGATTA__TSUNAMI_PCHIP1_EXTENDED (7)
Where are these two types and their register layout described? I could not find them in the 21272 HRM or the ES40 Service Guide.
Review
Quoted 2 lines
(quoted diff) +2
-0+static int +clipper_process_environment(struct el_common *header, int print)
With the silent pass gone, the only caller passes print = 1 and ignores the return value. Both can go.
Review
Quoted 2 lines
(quoted diff) +2
-0+ if (packet->class != EL_CLASS__HEADER || packet->revision != 1) + return false;
el_process_header_subpacket() prints the frame name and, for event and halt frames, the timestamp. This scanner prints nothing for the wrapper, so a decoded log no longer says when the error happened, and the halt code is dropped too. Please print them here as well.
Review
Quoted 2 lines
(quoted diff) +2
-0+ default: + return false;
Your changelog says the ES40 record is class 5, type 4, which lands here. So on the one machine this ran on, the log is never decoded or cleared, and each boot dumps up to 1 KiB of hex per CPU. Please split the scanner into its own patch so the environmental decode does not wait on it.
arch/alpha/kernel/err_tsunami.c tsunami_machine_check(unsigned long vector, unsigned long la_ptr) · line 692
Quoted 7 lines
arch/alpha/kernel/err_tsunami.c +7
-0+for (i =0 ; i < dump; i++) { +if (!(i &15 )) +printk ("%s %04zx:" , err_print_prefix, i); +printk (KERN_CONT " %02x" , data[i]); +if ((i &15 ) ==15 || i +1 == dump) +printk (KERN_CONT "\n" ); + }
print_hex_dump() does this:
print_hex_dump(err_print_prefix, " ", DUMP_PREFIX_OFFSET, 16, 1, data, dump, false);
arch/alpha/kernel/err_tsunami.c tsunami_machine_check(unsigned long vector, unsigned long la_ptr) · line 713
Quoted 2 lines
arch/alpha/kernel/err_tsunami.c +2
-0+static struct el_subpacket_handler tsunami_subpacket_handler = +SUBPACKET_HANDLER_INIT (EL_CLASS__REGATTA_FAMILY , tsunami_process_subpacket);
Nothing reaches this. tsunami_console_log() calls the function directly, and the handler list is only walked from cdl_check_console_data_log(), err_ev7.c and err_marvel.c. Drop the registration and the three functions can be __init.
Matt Turner
maintainerQuoted 2 lines · Magnus Lindholm
This series adds Tsunami/Typhoon system-error diagnostics and Clipper ES40 environmental reporting.
I rebuilt 4 and 5 (1-3 are unchanged): vmlinux, W=1, for GENERIC, DP264, SHARK and EIGER, plus DP264 without CONFIG_VERBOSE_MCHECK. No warnings in the touched files. Minimal configs, not booted.
I also went through the 21272 HRM and the ES40 Service Guide this time. The PERROR and MISC decoding, the frame layouts and the Clipper bit tables all match.
You were right about SERR, the note in 8.8.2.6 is unconditional. And 8.8.2.1 says configuration reads never set NDS, so my probing question goes away.
Comments on 4 and 5 in reply to those patches.