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 78E59334367; Fri, 21 Nov 2025 13:24:08 +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=1763731448; cv=none; b=q3ymj5tcaBnKtfWKaRprmZxttGxvwjRmnAjE3biEAk4uhjiPv6B7MVHQASHqjjywvnbogPJ5zH3ifmCrwm1aXXOuRHvX15h2oAK8okL1S1c89E1qoE6qWdBY1ge/8aEY5ArEftKGu2/0JoKnCWvxq+12nhqSeRu6Ph3L46RFyxw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763731448; c=relaxed/simple; bh=N5aJ57JNbeFTd8Xqg4HHpZ1yVQIzCXbwc2RWw7ZlhyA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I2x2pOrHVzwSUbKoJX2mXa9ilmQjpPJXMxE4wvwFN45iwJ1//BBYhXPiHqZaBwWjzWnvOyOJbcAeYvV/RQqvFKESr5gbjjflvC2VGpV/2A+NVR8h6A+sxSHnSSMWXA/n+dD1inEaReUfRk3MH/7nNVnr4pO1bscnpcQzaHIllqI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Y/dqr4mU; 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="Y/dqr4mU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9DDD5C4CEF1; Fri, 21 Nov 2025 13:24:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1763731448; bh=N5aJ57JNbeFTd8Xqg4HHpZ1yVQIzCXbwc2RWw7ZlhyA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Y/dqr4mUmRfCivFfDQzr7gS+1MS0ZRKzPLjQkVT5ByIgc43l4mYUGnQD5cMjd0Q75 r7OgY9vYfG/Wz1vbwkGh5yDjCq7fhRzH1iWvpFhlUrk+cBm2ITcD2Kz3ZBz4ZB1yI8 ANHSx0vEYr7nkJjhyA1HA4+kKTGgvAhQd/Gb9qQ4= 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.17 211/247] EDAC/altera: Use INTTEST register for Ethernet and USB SBE injection Date: Fri, 21 Nov 2025 14:12:38 +0100 Message-ID: <20251121130202.300924326@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20251121130154.587656062@linuxfoundation.org> References: <20251121130154.587656062@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.17-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 */