On Wed, Sep 16, 2026 at 01:30:39PM +0800, Ryan Chen wrote:
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
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
...
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'.
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?
--
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquette