Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3012903pxb; Mon, 18 Oct 2021 06:35:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwuq/O2HAp4/9E5+kOkfmERknvhVKL3dloDv86rxkc3dVEbk+dC/FgGn9tY1zIUJ9RfanZ2 X-Received: by 2002:a17:902:7e4b:b0:13d:c03f:5946 with SMTP id a11-20020a1709027e4b00b0013dc03f5946mr27026519pln.4.1634564158861; Mon, 18 Oct 2021 06:35:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634564158; cv=none; d=google.com; s=arc-20160816; b=REp2Q32cqCKz5r2xWo8FSRiZ1DZb+pjGYEgvaIIZWdCEuE+5IA5LPigIWl8rv1kH3W aBWiTJslLK43CjHp1g3ECwcDNJYPDsJNuq6S0CoM8tx4UWUBvtz4buXkWtj/jOZVpP1t jnsJ7IMDPvE8v65HNPHREtlwWkJxq/E31pufNQjN+GExP18ntWOrgsSAFmBmIfnfURlp LK3Hq7l4+UVmz+TbBl8TqkawPthJBohliFfZzOX6qaAfE89sfyYjZF/2THsJRoPAmlGc qBY5wnXDGRDo5J9zabDKjc9ZTW5MLpLvbJXMrfqwC83JKNVjWku4ZtZzn4cxdPxVTKZk UwGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JZnLjA0QbpW2xt+HGQ1OdHCPeatyL+bu1mFrrOetU1c=; b=mILFTlp3v0+n3MxCu3fW+z2KXjDj9Zv9AbVQ3fYrrUf8k856RB+PSCvZh5YCKdEaSE U63bDc/iZ7+6PiC8CM2y9nlEICL+wpBvHuViIYDcDWA8scHSyiaa/1ss5RAzG7REV6l1 DBtru1oJNG8mXriiqx9nuJ9LMti59xHh7G+EjXQPPZtWn2vS/WWSbPKjvxhxOFQKngLw XoIUMRfjETK3Tg6N9x+Va1pEeWJETSHmpaCnYmWme6zF9rhyxcPE1oTo8MwxH6iQkDUH J78lL5sS6kzzd9p11cdTiTfq4dSm7YwoFANhaPHWQVYdlCCkpPST4R9XZgNHMGnBdYW4 +m2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0agewiiy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e8si14225968pgh.242.2021.10.18.06.35.46; Mon, 18 Oct 2021 06:35:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=0agewiiy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232488AbhJRNg6 (ORCPT + 99 others); Mon, 18 Oct 2021 09:36:58 -0400 Received: from mail.kernel.org ([198.145.29.99]:44044 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232474AbhJRNfP (ORCPT ); Mon, 18 Oct 2021 09:35:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C21AF61378; Mon, 18 Oct 2021 13:30:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1634563832; bh=e8qQFMpLhHNOyVhKGd/xjg6BC5ZtnpHOFVL2vcM3arY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=0agewiiyo1s6HIdw5MTCcJ7+wUhuHVgIlH4w7hiPyLn/yuXe/+DYsdX6bAvsDV6ap dtA7vWayAwswWlZVyIHlpCu0MEmKNYWKXpj3ZCzMU5XGD7YS+Nk3Q+QQ5rIhnaf1wz FvzIuZL8LyL6FoMn41Gsn9f3s7tMR3uwzfDtxD/g= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans Potsch , Borislav Petkov Subject: [PATCH 5.4 32/69] EDAC/armada-xp: Fix output of uncorrectable error counter Date: Mon, 18 Oct 2021 15:24:30 +0200 Message-Id: <20211018132330.546178128@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211018132329.453964125@linuxfoundation.org> References: <20211018132329.453964125@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Potsch commit d9b7748ffc45250b4d7bcf22404383229bc495f5 upstream. The number of correctable errors is displayed as uncorrectable errors because the "SBE" error count is passed to both calls of edac_mc_handle_error(). Pass the correct uncorrectable error count to the second edac_mc_handle_error() call when logging uncorrectable errors. [ bp: Massage commit message. ] Fixes: 7f6998a41257 ("ARM: 8888/1: EDAC: Add driver for the Marvell Armada XP SDRAM and L2 cache ECC") Signed-off-by: Hans Potsch Signed-off-by: Borislav Petkov Cc: Link: https://lkml.kernel.org/r/20211006121332.58788-1-hans.potsch@nokia.com Signed-off-by: Greg Kroah-Hartman --- drivers/edac/armada_xp_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/edac/armada_xp_edac.c +++ b/drivers/edac/armada_xp_edac.c @@ -178,7 +178,7 @@ static void axp_mc_check(struct mem_ctl_ "details unavailable (multiple errors)"); if (cnt_dbe) edac_mc_handle_error(HW_EVENT_ERR_UNCORRECTED, mci, - cnt_sbe, /* error count */ + cnt_dbe, /* error count */ 0, 0, 0, /* pfn, offset, syndrome */ -1, -1, -1, /* top, mid, low layer */ mci->ctl_name,