Thread (21 messages) 21 messages, 3 authors, 23d ago

RE: [PATCH v3 2/9] EDAC/aspeed: Set the DIMM grain

flat view

From: Ryan Chen <ryan_chen@aspeedtech.com>
Date: 2026-09-29 07:00:26
Also in: linux-arm-kernel, linux-aspeed, linux-edac, lkml, stable

Subject: Re: [PATCH v3 2/9] EDAC/aspeed: Set the DIMM grain

On Wed, Sep 16, 2026 at 01:30:39PM +0800, Ryan Chen wrote:
quoted
The driver never sets dimm->grain, leaving it zero. Since commit
3724ace582d9 ("EDAC/mc: Fix grain_bits calculation")
edac_raw_mc_handle_error() runs WARN_ON_ONCE(!e->grain) and forces
the
quoted
grain to 1, so the first ECC error reported on any Aspeed BMC SoC
emits a warning splat, e.g. on the AST2600:

  WARNING: CPU: 0 PID: 0 at drivers/edac/edac_mc.c:924
edac_raw_mc_handle_error+0x4b4/0x604
quoted
  ...
  edac_raw_mc_handle_error from edac_mc_handle_error+0x364/0x4a8
  edac_mc_handle_error from count_rec+0xdc/0x124
  count_rec from mcr_isr+0x110/0x1e8
All of that is fine and dandy but you should talk about why the grain is chosen
to be 16 here. The warning is just to make you choose a proper grain for your
hw and doesn't need that much 'splainin'.
Got it.
v4 trims the warning down to a sentence and explains the value
instead: the controller records the address of a failing access with
16-byte granularity - MCR58 and MCR5C hold it in bits [30:4], with the
low four bits reserved.
quoted
Fixes: 9b7e6242ee4e ("EDAC, aspeed: Add an Aspeed AST2500 EDAC
driver")
Signed-off-by: Ryan Chen <ryan_chen@aspeedtech.com>
Cc: stable@vger.kernel.org
Is this really stable material and if so, why?
No. The error is still reported, only with the wrong granularity and a
one-off warning, so it doesn't meet the bar in
stable-kernel-rules.rst. I'll drop the tag and keep the Fixes: one.

Ryan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help