From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.224.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795203233; b=eb0ekl/aQJEcruU//qJALFwpj+j5dZ7eUZChg42R7CR1/yAga+98zOCc2/d3J75g+b3K WCwkD239f+F5RRh2sTAqAaCY/N5+/ra7M5UnMZbhJHFArXX9THWGU6ToaOXt+wVokxiUk H84oOA4EfPAmgtrMZMLyC+UKzamZ308INVC8IFsj9F2SBflTtC9YLu5iG2ItaitMjvgD3 kUaEmJzyJCL9rL+NVnffE/zuSGTimPQKqPczJTE+vpk8KZsf9wBlIdNGwaimpdp6eCV8d mRcBhbdDEtDmsKlX95OolYKVoaRJZYqId6dC/k5nqCytpoS0zLeyOpR6in7iTvUl6Hw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795203233; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:Subject:Date:Message-Id:MIME-Version:Content-Type: Content-Transfer-Encoding:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key; bh=fxCNuWQvzJYmgA8gn7P/jRBw4XZXA/JTp0X0Bgf58pM=; b=FLc+uVwuOL8LNx/RcnpwUZU8jXd+ceaMJvPqeCLhazzaG3/bvnnkR5DGYl7iNrSw7LR7 TXt6Cdl7EIZn8S1zzWeLA/HUdG5i8nsspnjyWoK/LRWp4dCC/k6ahnYXkJUgs80RKPWyE 8niBrJaUwa/0Ip6DP1MUwACdOoMgtmGrSyRdzI1OBPtuSqZxSboRfE9Ot1IU7DEmHFUQc PLSUMtZvbylz9nzAJRxDg6S4Bu+Ai9moa9/iTgOpGQ25DVFfKtgzDlU7hIhoGO3m134Ox +UhA6PHFNeq0GqcRCDL+LDtQM3gsVmQNYAFSHrilu9u0H3MFlfuvUdgcw448Xm+n2jg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=Pk3Ns9uP; arc=none smtp.remote-ip=74.125.224.51 Received: from mail-yx1-f51.google.com (mail-yx1-f51.google.com [74.125.224.51]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 65BDD606A6D5 for ; Fri, 20 Nov 2026 19:33:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 65BDD606A6D5 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.a=rsa-sha256 header.s=20260707 header.b=Pk3Ns9uP Received: by mail-yx1-f51.google.com with SMTP id 956f58d0204a3-6767d92cde6so1586810d50.0 for ; Fri, 20 Nov 2026 11:33:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795203222; x=1795808022; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=fxCNuWQvzJYmgA8gn7P/jRBw4XZXA/JTp0X0Bgf58pM=; b=Pk3Ns9uPSbC296USVcIMhpBpob3m8nvnRtc1BnBuEkiY11Pvk6627aP3gQFWlWtxU/ HCflLyw7CV8VLNRtnhqLFSHQg3aEPgHoXA0K5tUjtFM89Jv0/4bEuiLvSp4Cq1NHEqj0 9qIdKRtokSniAsChsSuO+EsoXV61zVacoNo8TUYocRmf1J8mS1YuhZMhagMj3Yckr0wl K4bLh8+prL5v4Dr7hjAaIqY8+ntxJjyXaxFrOARxvXaffviSq9M3l6qK6gGm/D2JVQbj XR6JVafa6Ua5+YbUWOSUZFMy/ajEyE58X9OuxeJhDcDZZlCrrqa/Lcgl0Dn7JnHNDtQy llZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795203222; x=1795808022; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=fxCNuWQvzJYmgA8gn7P/jRBw4XZXA/JTp0X0Bgf58pM=; b=vnR0q3NQ/TaJkt0gOlRRMAXtQM08M70xwZnZ5/tuo0Bn9vINIB5AtUHTknkz4SPU7E zP+ux5mOCMB77A9wPSIie7w56iqOfP3THSIm0SLtkUcja6bNXTig5NDkPRM02E2QkKbw nYbbOAYrEqVKGJ7ikbGmuu92bshUK+4YKlyjVIwBLv5844P5cvVGjj/YG2cewJb71RIY aoRIKD/prqBlS041a56dfnkRcSdeK9O1lspmvIigzGdroWgqzILmhX3PTFy5Un7VQ2sP LOCQuS6vEmoDlsEo9p2LCrPxaIXe2pQpmbS+SfMQktPYSfUGAvF3lgs7pRUzkepq7B1W ONbQ== X-Forwarded-Encrypted: i=1; AL+hErHFnR0L1hc6D74LHtiROrCT7BxOTN+3mh5OCQV4ZyT6VYlnEJ5flfJ1FcMps6NRRdIn87YIGwKmhsJUBg8=@vger.kernel.org X-Gm-Message-State: APuU4Z/EZMjhGbQCk764T3GaVgWH8/oAWZL1icK5D61pWld/Mg2TX/4V T4Bgp2wO8kd6t66qGnhvN/nWgQ9fSv7CeJSlW+I0SuE5nD8mIlfN2n/G X-Gm-Gg: AZFdTZdPsjcDR9XTbsXEKg5icGkKZlVXOu4ODnCjlVr3/1dAXyFGN/xTxJo9+bcL1tm ERzs3xF/mbhADsJtIFbSCuVTUzr4c72ku3FWMEoXmT5JreM0XiCpiUKDMn8mUTTxIzGpbBuun/U xei881gNFSB7nE9JtnypVuVBeGRPRdkGij/sLvrh2bx6wS1tS2tgkridtmgC2rFmDMn+NIMF3b9 /hhyZNv1DHGwVsBAcVR8gx3UJUaO8ga5AChOjPW8XcPIrMkCF/0basXdcXOIFIachwWchqGdgcl oq1mcT+DXcj3ypkzkk77/MaWFAcN35o3ynFh3xZ3lWipiBaucBsQmy7nDtutNTPgYcRhya5gdtx x+uEENF9WlUhnFh0auF0fXJuj5TI/ggleohGvO2cO+rayKhaKGq+MQZx/17JTnL4mAhksYAcADr 6ioi0u93X3Z3EtfftYtB1YkiskRXMVWz2r0GH4wbnKzP8tlzGzEjoCv58q4fgO0FpqWM9gx4ZQN 4Gx/6qpxZKES9uZQfhVZNAiVAWvNBoNy55RONNOXKVS0RQLru8F25YJpkFJp5pu/+BViIB+806P rZgxppSYclXphxG8OfddViKD5NUEqsYNKFyt+zfKZX19Ekl8Qje702OpOjJ7hg03RB1ZYwzyG1f 5bvSePWslX05BVS6sr+U6qE2wHlICoo1ilKGXZ3Bf4CkdmWjk0TiotvjqDZhVXtQ= X-Received: by 2002:a05:690e:d49:b0:67d:ebad:8cbc with SMTP id 956f58d0204a3-67df448e14amr1534819d50.99.1795203222177; Fri, 20 Nov 2026 11:33:42 -0800 (PST) Received: from localhost ([2600:1702:7a90:6f9f:66f3:d5d6:2d12:d460]) by smtp.gmail.com with ESMTPSA id 956f58d0204a3-67df337bfd7sm2146401d50.15.2026.11.20.11.33.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 20 Nov 2026 11:33:41 -0800 (PST) From: Matt Turner Subject: [PATCH 0/4] powerpc/32: Report MPC7448 L2 cache errors Date: Fri, 20 Nov 2026 14:33:39 -0500 Message-Id: <20261120-ppc32-l2-ecc-v1-0-98fc8e6e0a32@gmail.com> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAAAAAAC/x3MMQqAMAxA0atIZgNNBKVeRRwkphqQWloQQby7x fEN/z9QNJsWGJsHsl5W7IwV1DYg+xI3RVurgR33RM5jStIxHowqgp5pUBIJqzqoScoa7P530/y +H9+5jD1eAAAA X-Change-ID: 20261109-ppc32-l2-ecc-9217e1ccfde0 To: Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" , "Ritesh Harjani (IBM)" , Shrikanth Hegde , Borislav Petkov , Tony Luck , Matt Turner Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, linux-edac@vger.kernel.org X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=openpgp-sha256; l=3209; i=mattst88@gmail.com; h=from:subject:message-id; bh=z9yjhfg1WB5tn8m2imu7WOYSvv7f5xJsD5QGreVFmFo=; b=owGbwMvMwCW25rVmCc8sv+mMp9WSGLIZFkyJ6DuQ2XZd79L9ug/9jRPeM614HLNnuVtQYre4z 0G5vaw3Oz6yMIhxMcwUU2SJW6/IMqttx1Kf09K/YOawMoEMkRZpYAACFga+3MS8UiMdIz1TbUM9 QyBDxygeIqfHoJFZXFyaWqSbVlDkkJdfkliSmZ9XrJdfkJpXkF6gl5aZVpKRkV9UnAo0Qi8vtcT U1dHNyNDAxNLRwszJwtHUxNnZydDJzdHR2dXJyNLcxMDZ0tHE1dKcgYtTAOaaFUUM/5P6VVTF3L IO3zP5J7Sie1F2SZbnietPS89qz+jcXRdsns3wP5eh/cNWWSkXmec54mFcS1IeJT/58fr0Yo2nc i8YmpZHMgAA X-Developer-Key: i=mattst88@gmail.com; a=openpgp; fpr=3BB639E56F861FA2E86505690FDD682D974CA72A The MPC7448 has ECC on its L2 cache, but Linux never enables or reads the L2 error registers. L2ERRINTEN resets to 0, so multi-bit errors go unreported, and the single-bit error counter is never read. Patch 1 decodes MSSSR0 for L2 and L3 cache machine checks on all 745x parts, which are currently all reported as "L2 data cache parity error". Patch 2 enables machine checks for multi-bit ECC and tag parity errors on the 7448 and adds the L2 error registers to the decode. Patch 3 adds an EDAC driver that reports the single-bit count, the machine checks, and uncorrectable errors latched without one. Patch 4 adds error injection to the driver; it is separate because it is the part most likely to need changes. L2 machine checks clear SRR1[RI], so they are never recoverable. The injection code masks reporting while it runs and reads the errors back itself. Tag injection hung the machine, so it is not offered. Tested on an iMac G4 (PowerMac6,1) with a 7448 (PVR 0x80040202): - L2ERRINTEN is 0x18 after boot. - An injected single-bit error is corrected and reported as CEs. - An injected multi-bit error is reported as a UE at the target address, without a machine check. - With the injection's masking removed, a multi-bit error raises a machine check, decoded as in patch 2, and the writing task oopses. The error in the target line raised a second machine check while the first oops was being printed, and the driver then reported both as UEs. Suspend to RAM and resume were tested: L2ERRINTEN is still 0x18 after resume, and injection still works. With CONFIG_STRICT_KERNEL_RWX enabled, PMU sleep oopses in low_sleep_handler with or without this series; that was tested with "powerpc/powermac: Fix low_sleep_handler with STRICT_KERNEL_RWX", which is sent separately. No other 745x part was tested. Patches 3 and 4 use symbols exported by patch 2, so I'd suggest the series goes through the powerpc tree with an ack from the EDAC maintainers. --- Matt Turner (4): powerpc/32: Decode MPC745x L2 and L3 cache machine checks powerpc/32: Enable and decode MPC7448 L2 ECC machine checks EDAC/mpc7448_l2: Add a driver for the MPC7448 L2 cache EDAC/mpc7448_l2: Add error injection MAINTAINERS | 9 + arch/powerpc/include/asm/cpu_setup.h | 1 + arch/powerpc/include/asm/cputable.h | 2 + arch/powerpc/include/asm/mpc7448_l2.h | 31 +++ arch/powerpc/include/asm/reg.h | 38 +++ arch/powerpc/kernel/Makefile | 3 +- arch/powerpc/kernel/cpu_setup_6xx.S | 38 ++- arch/powerpc/kernel/cpu_specs_book3s_32.h | 24 +- arch/powerpc/kernel/mpc7448_l2.c | 124 +++++++++ arch/powerpc/kernel/traps.c | 28 ++ drivers/edac/Kconfig | 9 + drivers/edac/Makefile | 1 + drivers/edac/mpc7448_l2_edac.c | 442 ++++++++++++++++++++++++++++++ 13 files changed, 736 insertions(+), 14 deletions(-) --- base-commit: d68ce4e71248e1ff5af9654b407541d9260b3ba5 change-id: 20261109-ppc32-l2-ecc-9217e1ccfde0 Best regards, -- Matt Turner