From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E5B27263F52; Mon, 1 Dec 2025 11:33:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764588840; cv=none; b=nG8ndXbq8/ARTg02BcQRYbzCpeSkYUUmXYuM/QCxJb713A/z+RXy3xgiV63qXCnSFuhhQKC5CTsRPVN4oXi58iefqIM4mK1FGpRU2ndZy99FCkFiJK0Kg++XLhF8MLYewtwjh305XymWLdmr6oIXT+jaXrM8Wyhu0ybXN9NOMHo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764588840; c=relaxed/simple; bh=u6WTTWB/7IyFx+iVszy5fLdRI5OK4WYWhWLsUHvNfSg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=U1w3WBCHtcv8ypb7DA7Y4LMjRdUuA2su/L8/rpI4II1Nmbtbidqi6roSFIe3qbWrUsbjYJ7EyIt+dK7ermotn4pN1nF1aVd51JPzh47kTUgVJwRp99ty1db+g29WYkge9dyR4eA2u5qESvUTruHyCRdY0lWj8Fm4CfIHIt1q2lo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=x4Cku00/; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="x4Cku00/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3BB4CC113D0; Mon, 1 Dec 2025 11:33:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764588839; bh=u6WTTWB/7IyFx+iVszy5fLdRI5OK4WYWhWLsUHvNfSg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=x4Cku00//jtrHkxw0KlwUnHNJ1G/B3+kT/nSioNvX9K+u8MOZac6/lJ+bXcVhOrjU PEHhrWAiuEMlhbXD7ev7lJb/G1TIahIWr6Eo2t1EfS5kncaQeh5HxZ18ernKfEySQa yjMQ2Xz2dHtR2PSgTWH4b3No9hiJG3OT30AzhZ+c= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Niravkumar L Rabara , "Borislav Petkov (AMD)" , Dinh Nguyen Subject: [PATCH 5.4 157/187] EDAC/altera: Use INTTEST register for Ethernet and USB SBE injection Date: Mon, 1 Dec 2025 12:24:25 +0100 Message-ID: <20251201112246.887805395@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251201112241.242614045@linuxfoundation.org> References: <20251201112241.242614045@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Niravkumar L Rabara commit 281326be67252ac5794d1383f67526606b1d6b13 upstream. The current single-bit error injection mechanism flips bits directly in ECC RAM by performing write and read operations. When the ECC RAM is actively used by the Ethernet or USB controller, this approach sometimes trigger a false double-bit error. Switch both Ethernet and USB EDAC devices to use the INTTEST register (altr_edac_a10_device_inject_fops) for single-bit error injection, similar to the existing double-bit error injection method. Fixes: 064acbd4f4ab ("EDAC, altera: Add Stratix10 peripheral support") Signed-off-by: Niravkumar L Rabara Signed-off-by: Borislav Petkov (AMD) Acked-by: Dinh Nguyen Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20251111081333.1279635-1-niravkumarlaxmidas.rabara@altera.com Signed-off-by: Greg Kroah-Hartman --- drivers/edac/altera_edac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/edac/altera_edac.c +++ b/drivers/edac/altera_edac.c @@ -1432,7 +1432,7 @@ static const struct edac_device_prv_data .ue_set_mask = ALTR_A10_ECC_TDERRA, .set_err_ofst = ALTR_A10_ECC_INTTEST_OFST, .ecc_irq_handler = altr_edac_a10_ecc_irq, - .inject_fops = &altr_edac_a10_device_inject2_fops, + .inject_fops = &altr_edac_a10_device_inject_fops, }; #endif /* CONFIG_EDAC_ALTERA_ETHERNET */ @@ -1522,7 +1522,7 @@ static const struct edac_device_prv_data .ue_set_mask = ALTR_A10_ECC_TDERRA, .set_err_ofst = ALTR_A10_ECC_INTTEST_OFST, .ecc_irq_handler = altr_edac_a10_ecc_irq, - .inject_fops = &altr_edac_a10_device_inject2_fops, + .inject_fops = &altr_edac_a10_device_inject_fops, }; #endif /* CONFIG_EDAC_ALTERA_USB */