From patchwork Wed Sep 20 19:26:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 13393346 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E274EC04FF5 for ; Wed, 20 Sep 2023 19:29:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=s6aMgfLe570JnmSyXNg7adl8B60Vi21f7wHgwDLz//8=; b=1IkgD3ccAusN+G 8dngQkvhTEyPhs7xG8a3NGSKroIx1uJfVviO3cBnAn1vrAMuatOCd+hRPxNMpuxjSkYx6H+cPpue+ s62tLXyLOmP9lSGMMQLNaJAqC28HT7dnpNeSwo3Jxc6y3zAWVRTC54rYjAxr9XqpimK7olrL/BrRZ 7x1xYMT3s2zDQcoPgJiT9m34oqFym1rPzE6lwwSSzbL/zQV+TtO3B3gwDeGZw33dDHthnqtjV6F/t 7kw8h+jswlU4wVOz31hD0WuLq89/CbqyK/RgJWaryml6JQc7XRvXL5/aiHD8GwaK9tOFZx+9MlmEa 9Y5pfp/k+f/amzlPOTZQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qj2sr-0040Zd-0M; Wed, 20 Sep 2023 19:29:13 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qj2se-0040Nc-2j for linux-arm-kernel@lists.infradead.org; Wed, 20 Sep 2023 19:29:02 +0000 Received: by mail-lj1-x22a.google.com with SMTP id 38308e7fff4ca-2b9338e4695so2422711fa.2 for ; Wed, 20 Sep 2023 12:28:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695238136; x=1695842936; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1JamuYRg/bmHGo8DyK8kNadLYs1ZIGP2QJGW5LQhCWc=; b=HsEJPUzyFzSUZ6lL1NUF4VdYuxT3MWVUTHDA6gZzzBC4Sv8rey5Q2vU5ev8+JXg4+5 DFMx5K2GE/wHv9c0+EtMqZBjQKjFI9LsMHgCNoRPslIiEiTxVHBgvz1hVuI6rm8gXz8N gByjOagf5QjpONOPDTEch8MIz/jqJ3CZuSOkRHVF11jbCxBfMcbKTUZXWNhMezvlHZr7 lc0XBnX9qtPyXayA77n3mcAvhBqYXBICzRBvyxoJJNWnPAvKLZOeJk/5QbttWXSnwBmj EFOIJLMFEz8tP3S+lz3NKl0dpQgTYCMRdO/O2pG/IJjpAek2D9UMEsidi2wLoERmHY5Z o05w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695238136; x=1695842936; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1JamuYRg/bmHGo8DyK8kNadLYs1ZIGP2QJGW5LQhCWc=; b=XLKfx6+LojCgJmUxWD/UQcMGstBHbGRezOtxu7xDR9kmDr+8teufzqNuJMSsxYlScC /VJkq45hCo+JeOGRqXzRZtYwb6npNL9q8lUvtORSWOB0Ze5JF/jAmiDJQgIu5wwoSpo5 D1GKHtT4tGiUdxhDtveCWATPgDdma2CP+UwLXB9HOCPG4erZK5GEPcTb1CkbOGTXdZPE Rqp6pW7gPr182UICynt7TMMiPnTAwu4T+IMWarE72Icol9+pS7Bu8J08cPL5rQI1Hgcz VU86aXtkvSQCv0nGQ7L6pF/P/VRDnFRGZ9iNhq7TUcsatrrHXIVQ6Hifr0iiqZ3yM28N MsgA== X-Gm-Message-State: AOJu0YxyDZTSpL2GsAbebwiMuFWyRriFhpVQFm65ZCLVwptm0574lD8h E5vig5HUljmiWtndk5JHrTI= X-Google-Smtp-Source: AGHT+IHed65zcIiGfMl4641Tw0aSRdFZiaSvi+nuE8E8l6I8lUHfaSfYYBmvSyduJ4FWc0Z/ibqVGA== X-Received: by 2002:a05:6512:32b8:b0:502:adbc:9b75 with SMTP id q24-20020a05651232b800b00502adbc9b75mr2680835lfe.51.1695238136237; Wed, 20 Sep 2023 12:28:56 -0700 (PDT) Received: from localhost ([85.140.6.205]) by smtp.gmail.com with ESMTPSA id y20-20020ac255b4000000b005009d5aaaedsm2822225lfg.172.2023.09.20.12.28.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 12:28:55 -0700 (PDT) From: Serge Semin To: Michal Simek , Alexander Stein , Borislav Petkov , Tony Luck , James Morse , Mauro Carvalho Chehab , Robert Richter Cc: Serge Semin , Punnaiah Choudary Kalluri , Dinh Nguyen , Arnd Bergmann , Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 11/18] EDAC/synopsys: Pass syndrome to EDAC error handler Date: Wed, 20 Sep 2023 22:26:56 +0300 Message-ID: <20230920192806.29960-12-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230920192806.29960-1-fancer.lancer@gmail.com> References: <20230920192806.29960-1-fancer.lancer@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230920_122901_022262_30D04EF4 X-CRM114-Status: GOOD ( 14.34 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org EDAC MC error handler permits specifying a corrected error syndrome which then will be printed as a part of the generic error message. Since it's available in the error info structure pass it to the edac_mc_handle_error() function. Signed-off-by: Serge Semin --- Changelog v4: - Get syndrome from the ECCSTAT.ecc_corrected_bit_num field rather than from ECCCSYN2. The later CSR in fact contains ECC. --- drivers/edac/synopsys_edac.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/edac/synopsys_edac.c b/drivers/edac/synopsys_edac.c index e08cb30b7a7d..fbf1f8af9788 100644 --- a/drivers/edac/synopsys_edac.c +++ b/drivers/edac/synopsys_edac.c @@ -474,7 +474,7 @@ static void snps_handle_error(struct mem_ctl_info *mci, struct snps_ecc_status * pinf->bitpos, pinf->data); edac_mc_handle_error(HW_EVENT_ERR_CORRECTED, mci, - p->ce_cnt, 0, 0, 0, 0, 0, -1, + p->ce_cnt, 0, 0, pinf->syndrome, 0, 0, -1, priv->message, ""); }