From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f42.google.com (mail-ej1-f42.google.com [209.85.218.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 844884D7D59 for ; Fri, 9 Oct 2026 11:58:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.42 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791547091; cv=none; b=gwAf+6+9DoA5XoxQW+BS2pAsbUZgunaS+Gn9GOfSeybqakAfbMwE5iT6/sKF4Hm5Y360ZA9xffqVHBdW3r4N4KrZUNnN4S3bH4behrIjnKauFEHOKFW9Qnbgfv+GQVS5ZjB62vkf2+iikppswpSGli9zziFf2LqBlhHbYcoacd0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791547091; c=relaxed/simple; bh=OruZtNbHtR05YCmmNQ9tLKLY1cIMhQDt5/6DFqmzrbA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aB6pezhm/6OR2QhhR7fVeuhE9gAn78oRkO/3iuyD5E1/pzpXTXeSL01cmB5xr3CzEGmVARa7uc+Zz6xgR+0KQu0z6DzwtsERfZcBBQrAQcJH4Og13zTh4+KxGPMFe67tTUdMltLm4Tv4uctC/amRYo9oiKf88sANNeEqHoeZgLk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=gprRH0cv; arc=none smtp.client-ip=209.85.218.42 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gprRH0cv" Received: by mail-ej1-f42.google.com with SMTP id a640c23a62f3a-c263415982eso563037966b.0 for ; Fri, 09 Oct 2026 04:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791547083; x=1792151883; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to:content-type; bh=JYMkoC21oZgVXLIM4qYI/k3O6A//pWisuhHGLwsZoZc=; b=gprRH0cvqw5mor4cepLSadwVa5vt9BEef5OY+/uPjOJvC7T7vOt3v2ZKz3O1a0yGcB QKGOeNBdTdAgUUV1R6zyJllUYFD4wXTqobzTcKWDcFHb95Dmkz1EkTaBEryPzOwLVp/v OGGLTWJ0qGhYxGedfqcl1+dUGGI4rRMntW7u7TlX7oclh5sHlaKgKxIQHjUDItdUtQ7n MDHwuuFnsOv6qH8TTdQVLZjIPV5oeUpG5TlcyNtEgaeRlEVaUymPoO3E0eLO/5XQqHZe 4QKLYqWoUi3NXOdGdO4wv/S5JMMcN6TS7afAARjMXbwJNd3qyCeTmEKqjMrHYtEQjKcE 3cTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791547083; x=1792151883; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=JYMkoC21oZgVXLIM4qYI/k3O6A//pWisuhHGLwsZoZc=; b=X4qSBU9w78Fu2hGi5PJZyOfcr62pBN18MbnvhMpMB+iJvjb0i6XIjcZyrP56pdQ0yX IsQrzdwmfjWk6NT4ID5HEs+bY9cmtjtyb3R7h2sy3bFRMGrIvQeNBz18dDs4PXbLj9mR QSPiwHnVO7WpNToby4ihUUinRRcVqSS4Iri6jZG9Rfdcu+GbHkYArbLTq3+kvEwvbMDC QOqIjIqdfyQO551eHTQied22j/9g2TyVmYC5wg3nnReLY35Gl0HILuP+lIK6AWNnH0FQ /u0J6pvRNrWh0ONOJ+ILaMAfs3BE3Hv8fQRXnb/c39FpQbtEXidxWimf+O7uQqYp+fRM GZmQ== X-Forwarded-Encrypted: i=1; AKwUvBybqs5ud+tFb43h27STmNn590uMLDu6CVDhlEbiSrjRmT7HGSmozSp4vT8sac25Eh+A9Rnzg0pkcrZsjw==@vger.kernel.org X-Gm-Message-State: AFq9FYLJ+gazVzOh4s68p0Zx0bl1txtzsy9ygAIAhDJ8Nc635T4rhyPO mKUfrcBKKAD9y7RzzZCi4yeWmgls/8H20GFoUDo6W7Dmv+nvT27v+Grh X-Gm-Gg: AYBFou29LwGO0Fg2a8d0eQdyzBC9PnYwFs0+VvlbZifQbaOWd8Yxee7Vtf2pOhCduK5 nqMnJqQ2csHk65RmEfbvlVPlfiCQi/VbLocag/fv+plnp0dGfvKGEwHgdTtB9Bx/k4EsKmPU3/B IYHSKamoF1OEjZVFQyjeTMtOv1YnRs+U91J5pmYznkzrqTziYncHEQnyqaIIB8fvwBVBFW+UaWh kMTyx23h+ojLKXZN5ydD24IIHiWCcaJ0Yc/VcjjN1Qa5PZMQxDN+Ad8zrrtcTU6HT1Sxpv0lUGE sawUA9ok7+6x6ifrdIdWzcNljP6BerOKIsce321L4b4m7ig8JsxHYd7pWAH9Oep5NpLYO2hCAC1 uVKbT14+GrszWB9+qytFdPC4j0WRWcoFnzrfIGfbb/jPeWdfkC2Vs6rPUrBUucLnKTwU1GBPinU Vbkn9D5lk5hZIgAjaIzGbOndFFO4ODex7ZxpwLHqWSfjpD9fCdJH6p02p59y1gNQ8icOAKgA8kW i8MB3NUER5Z9IcRXG5ZX3C/ba22FQ0KPRg9x5GD X-Received: by 2002:a17:907:6e9f:b0:c29:f5d5:5a9b with SMTP id a640c23a62f3a-c31aa085ddfmr166792066b.37.1791547083353; Fri, 09 Oct 2026 04:58:03 -0700 (PDT) Received: from buildhost.darklands.se ([2001:9b1:ff:d701:51eb:176f:63d9:53f8]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c31aa825e4bsm78525966b.9.2026.10.09.04.58.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 09 Oct 2026 04:58:02 -0700 (PDT) From: Magnus Lindholm To: richard.henderson@linaro.org, mattst88@gmail.com, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org Cc: linmag7@gmail.com Subject: [PATCH v5 0/5] alpha: improve Tsunami machine check reporting Date: Fri, 9 Oct 2026 13:54:36 +0200 Message-ID: <20261009115627.969047-1-linmag7@gmail.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-alpha@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This series adds system-error diagnostics for Tsunami/Typhoon and live ES40 environmental diagnostics for Clipper. It applies to v7.3-rc1 on the Alpha for-next branch (33465f6ab697). The first two patches move the existing handler unchanged and describe the system logout frame. A separate EV6 prerequisite handles the short correctable CPU frame safely. The final two patches add Tsunami system handling, Clipper live environmental decoding and console-log reporting. PERRMASK is left as configured by firmware. Enabling more checking needs separate justification and hardware testing. Inverted SMIR halt/reset signals remain undecoded; PSU tests do not establish their polarity. ES40 Service Guide Table D-18 gives sys_offset=0x20 in its console header, but places the summary at frame+0x18. Console environmental packets are therefore printed raw until an actual SRM record can resolve the layout. Live environmental decoding follows Tables D-20 and D-21; QW8 is not used. Changes since v4: - Split the implementation into five patches; build error objects for CONFIG_ALPHA_TSUNAMI, covering non-generic Shark, DP264 and Eiger. - Correct PCI/system addresses, ECC commands and syndrome, INV/SERR handling, DAC/MWIN selection, and SGE page granularity. - Remove the unsupported Titan master-abort dismissal policy and leave PERRMASK as configured by firmware. - Snapshot each live PERROR and MISC before acknowledging defined W1C bits; report additional live status without combining transaction fields. - Check saved and live UECC/PERR before expected-probe dismissal and panic on either; retain expected NXM probe handling. - Add an EV6 prerequisite to validate CPU-area bounds, including short correctable frames, before decoding extended registers. - Restrict ES40 environmental decoding to Clipper; fix masks, fan input, print suppression, context-only status, and PSU warning source. - Leave inverted SMIR halt/reset bits undecoded pending polarity checks. - Preserve console environmental packets as raw data pending verification. - Register console handling on all Tsunami boards; bound subpacket decode and terminate extended-register annotation arrays. - Remove duplicate definitions and the private header; use shared IDs. Link to v4 https://lore.kernel.org/linux-alpha/20251125224352.32034-1-linmag7@gmail.com/ Validation: - Fresh vmlinux builds for minimal GENERIC, SHARK, DP264 and EIGER configurations, using GCC 15.0.1. - Native ASan/UBSan tests of the actual EV6/Tsunami handlers, console dispatch and raw-dump helpers, including short/truncated frames, saved fatal errors during expected probes, and separate live snapshots. - git am of the five exported patches on the base produces the exact branch tree; git diff --check passes. - checkpatch reports zero errors. Its remaining warnings include the Alpha err_print_prefix convention, existing split printk strings, moved barrier code and the new-file MAINTAINERS prompt. This version was boot-tested on an AlphaServer ES40 using my ES40 configuration. Unplugging and reconnecting a PSU power cable produced correctable environmental events (code 206): PSU 0 was reported failed, then enabled again with its individual failure indication cleared. SMIR bit 0 remained set in all three reports; this does not establish whether it describes current status or a latched event. Earlier v4 testing was on the same ES40, using PSU power-cable changes, opened hatches and a CALLSYS-based software trigger with modified handling. PALcode clearing behavior and halt/reset polarity remain unverified. 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 Tsunami console logs arch/alpha/include/asm/core_tsunami.h | 5 + arch/alpha/include/asm/err_common.h | 2 + arch/alpha/kernel/Makefile | 4 +- arch/alpha/kernel/core_tsunami.c | 34 -- arch/alpha/kernel/err_ev6.c | 36 +- arch/alpha/kernel/err_tsunami.c | 595 ++++++++++++++++++++++++++ arch/alpha/kernel/proto.h | 2 + arch/alpha/kernel/sys_dp264.c | 12 +- arch/alpha/kernel/sys_eiger.c | 2 +- 9 files changed, 640 insertions(+), 52 deletions(-) create mode 100644 arch/alpha/kernel/err_tsunami.c base-commit: 33465f6ab697abceafd9a340067a544d551c4412 -- 2.43.0