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 4CFE62745E; Fri, 21 Nov 2025 13:32:42 +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=1763731962; cv=none; b=I1IJ0rtf/Vtt6gAl3DXCqVZk6wX+Cnm1j14sENR47/DCxpgclR2JZ0GCB8C6aoQrwC7OZKHOtxgi0uCv4IyYq4FQRVlVRsIddRFsg6u5T4i7gV93/Qx4AvLVghdEgpApCse2qg8vhWUa70CtXHbiOZBKA6UsEawJj4K00626Bl0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763731962; c=relaxed/simple; bh=dxZmRo/tlji1VDCp1WKmIa6FBkiZIGzYumrPSAyUJeQ=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=qEupa+hREeMxhNqM53cX7H5c7f+tgqkGR36D2vvrVZHdOeRtukiCpBM1az0L/W95cvp+MweFtZvsqmYFllBA9+lXhP8mjCPIZMdrf/D0H7/yVCjUW/HmU/wjddLasAc5NNy2Im0OTjBP9k50ZI2OYsLPqAFo01DE1vtTXxhS080= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eEYsN+RJ; 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="eEYsN+RJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6C4FFC4CEF1; Fri, 21 Nov 2025 13:32:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1763731961; bh=dxZmRo/tlji1VDCp1WKmIa6FBkiZIGzYumrPSAyUJeQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eEYsN+RJtVjbT1kQELS+mQKl2/aGDNNGVI6t9XP+wwp7KGVnDx87ro+7EluI1OMXZ 0U+A+fPuMUIqdPX0+wjNiZhTceURC5hzXh7lP0Ltkkz7YeS7dZA0U5d0qj3v+uEJJh orbORxGj1w8maM0Su22MByJAQxonBSw8gO8rcsAA= 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 6.12 141/185] EDAC/altera: Use INTTEST register for Ethernet and USB SBE injection Date: Fri, 21 Nov 2025 14:12:48 +0100 Message-ID: <20251121130148.963151273@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251121130143.857798067@linuxfoundation.org> References: <20251121130143.857798067@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 6.12-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 @@ -1369,7 +1369,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 */ @@ -1459,7 +1459,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 */