From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 A38425187EE; Wed, 30 Sep 2026 16:15:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790784912; cv=none; b=ZPwo7fzI4Q5p687wkp02aM0U4NGPanzUP+u7+H8cpVgJ1nZOQGAMMhbryevSkJ4X5oOdERHB4cJffNBQyRZX5BL53F+A+9Cj9+CCrrzHaWe+zN7ywsuG7lTS63v0NKCd1IJZZBw24mK/zDJcnJyM+ZePYBI4tXYLvVhuors0z5I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790784912; c=relaxed/simple; bh=x0rCWUwSt1KiexXBbASB2kVisHCBESulmhEkJUgRgic=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=b1o4+WZjlketh12TslyYoC/Vzv46r8UBJzJ5qKO4ngOuwmU+ONq2RLtTagqUJe3mIPzstZ2MU5agER2T5v96mPwBZFjl1iiEmaGTJYrUeH+t4vHOQR72clL6B1iRc52G4DRDGl0ZIj+mLK/JGrN/vLt5/2sdIb8nIqvb/qy64e0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vJMLLciH; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="vJMLLciH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C5EA51F00899; Wed, 30 Sep 2026 16:15:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790784904; bh=nDRaWlLlPv3I5oFfH0vam8i1OTQT0aqT7EDcBPmQ5/c=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=vJMLLciHf5FwJVtNYoEjreUhKBkOSYJEpsO6746X7iJ/e253ohf1z8Ez/B0xJPTwq NaYd/uHOAuG3oyTEe1z1yHveKNQ8Ds95Vq9q9KTnNDGXJcfQQqqeNf39pae9AbWEB/ fzEyZN4cTzuw7PLyz7FQ0J3I3Uz04JY0tF2/rL+A= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Qiuxu Zhuo , Tony Luck , Sasha Levin Subject: [PATCH 6.1 320/982] EDAC/igen6: Fix interleave boundary condition Date: Wed, 30 Sep 2026 17:17:36 +0200 Message-ID: <20260930152423.695149798@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260930152416.775402466@linuxfoundation.org> References: <20260930152416.775402466@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.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Qiuxu Zhuo [ Upstream commit f4008169bd320eedb9ddf2b39eeb21370ddac278 ] The address translation logic splits the memory space into interleaved and non-interleaved regions using a boundary at 2 * s_size. The current check uses '>' and incorrectly classifies the boundary address (2 * s_size) as part of the interleaved region. This leads to incorrect channel/sub-channel selection at the region boundary. Fix the classification by using '>=' so that the boundary address is handled in the non-interleaved region, matching the hardware layout. Fixes: 10590a9d4f23 ("EDAC/igen6: Add EDAC driver for Intel client SoCs using IBECC") Signed-off-by: Qiuxu Zhuo Signed-off-by: Tony Luck Link: https://patch.msgid.link/20260730024238.4096623-3-qiuxu.zhuo@intel.com Signed-off-by: Sasha Levin --- drivers/edac/igen6_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac/igen6_edac.c b/drivers/edac/igen6_edac.c index 0ab8642c4e55a..8201e92714c68 100644 --- a/drivers/edac/igen6_edac.c +++ b/drivers/edac/igen6_edac.c @@ -493,7 +493,7 @@ static void decode_addr(u64 addr, u32 hash, u64 s_size, int l_map, { int intlv_bit = CHANNEL_HASH_LSB_MASK_BIT(hash) + 6; - if (addr > 2 * s_size) { + if (addr >= 2 * s_size) { *sub_addr = addr - s_size; *idx = l_map; return; -- 2.53.0