mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Luck, Tony" <tony.luck@intel.com>
To: Ahmed Abdelfattah <me@ahmedabdelfattah.dev>
Cc: Jason Baron <jbaron@akamai.com>, Borislav Petkov <bp@alien8.de>,
	"Qiuxu Zhuo" <qiuxu.zhuo@intel.com>, <linux-edac@vger.kernel.org>,
	<linux-kernel@vger.kernel.org>, <stable@vger.kernel.org>
Subject: Re: [PATCH] EDAC/ie31200: Give each DIMM two chip selects again
Date: Tue, 1 Dec 2026 09:22:56 -0800	[thread overview]
Message-ID: <aw8CcND_1HuKVJ5v@agluck-desk3> (raw)
In-Reply-To: <20261119-edac-ie31200-rank-stride-v1-1-3514fcccb130@ahmedabdelfattah.dev>

On Thu, Nov 19, 2026 at 08:33:21PM +0200, Ahmed Abdelfattah wrote:
> Since commit afdbc3655556 ("EDAC/ie31200: Make struct dimm_data
> contain decoded information"), ie31200_get_dimm_config() puts rank k
> of DIMM j at chip select j * ranks + k, where ranks is that DIMM's own
> rank count. In a channel with a dual-rank DIMM 0 and a single-rank
> DIMM 1, both DIMMs then use chip select 1: DIMM 1 overwrites the entry
> for DIMM 0's second rank, mc0/size_mb is short by that rank, and errors
> in it are reported against DIMM 1.
> 
> Before that commit the stride was a fixed 2, so DIMM 0 had chip
> selects 0-1 and DIMM 1 had 2-3, and the commit did not mean to change
> that. The error path still passes the two-bit rank field of ECCERRLOG
> to edac_mc_handle_error() as the chip select. If the controller reports
> DIMM 1's first rank as 2, as the old layout assumed, those errors now
> land on an empty entry when DIMM 1 is single-rank (or when both DIMMs
> are, as DIMM 1 has moved to chip select 1). That trips
> WARN_ON_ONCE(!e->grain) in edac_raw_mc_handle_error() and the error is
> logged against "unknown memory".
> 
> Go back to a fixed stride of 2.
> 
> Fixes: afdbc3655556 ("EDAC/ie31200: Make struct dimm_data contain decoded information")
> Cc: stable@vger.kernel.org
> Signed-off-by: Ahmed Abdelfattah <me@ahmedabdelfattah.dev>

Applied. Thanks.

-Tony

      parent reply	other threads:[~2026-12-01 17:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-19 18:33 Ahmed Abdelfattah via B4 Relay
2026-11-22 16:02 ` Qiuxu (Leo) Zhuo
2026-11-22 16:28   ` Ahmed Abdelfattah
2026-12-01 17:22 ` Luck, Tony [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aw8CcND_1HuKVJ5v@agluck-desk3 \
    --to=tony.luck@intel.com \
    --cc=bp@alien8.de \
    --cc=jbaron@akamai.com \
    --cc=linux-edac@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=me@ahmedabdelfattah.dev \
    --cc=qiuxu.zhuo@intel.com \
    --cc=stable@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®