Received: by 2002:a05:7412:37c9:b0:e2:908c:2ebd with SMTP id jz9csp1744082rdb; Wed, 20 Sep 2023 19:58:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGy6nucTzzzrYYZNkEgw+/AAIE+sHJUdI28/jNVjulZf2Cof920GgISZrlFLqAdjLQ2qCd6 X-Received: by 2002:a05:6a20:a112:b0:13d:ee19:7727 with SMTP id q18-20020a056a20a11200b0013dee197727mr4419442pzk.18.1695265136313; Wed, 20 Sep 2023 19:58:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695265136; cv=none; d=google.com; s=arc-20160816; b=ELzZ1hG1CP+whIelIV1OJeGZMwaSWRdpAs59I/tnGlS/Z7pT5z0Fl0ombPHF/8RyCe XpQb6kaJA7bnEr9AiVCmO73UEdwfqkArJ9D2IZELv/RTVhDLysxO0nuOgOcWAhAbbSS9 vD6NWSniB5wPSTBUQv+VrhRLxGi9UkzymvG3SWb7tQXHoLRY6lnzvzeXvTZg+0lrRd7J Tktdw7jXpC0mta+GLA1jVvGNNkWq4rUNYM0HGZzKileie3VfNv6bt5wboFARVM7YlAUr o35nb3yGIzKF/mHQPWyOr4CaJSASVzZ9HewhiFtJndBF0gerkIiNVzTVILKCprejVps5 P5TA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=1JamuYRg/bmHGo8DyK8kNadLYs1ZIGP2QJGW5LQhCWc=; fh=Dnqcu1G7YxMiPJ+rEGjOOR/MtvfjezykDSRJXQQtmAE=; b=Tp+6L7OBqa1AgYN463NYEfabSJl9YS98EM6yRQRjXBFDMWI4mZhRlWfZjiKE6Yrx3J fxy1tSYEmBc3Gg2SaqgdgxcD6nQWq3rAtx2mx9mpqvnQN1rxbWuPHYhDKK3HP99YRk7+ aWAuM4RbefBSHlbTCaJpOsxWpgdzLX9NJHeEEXS7W3BLJXaQG9VIo5kx6WhjvaUNA1MM j7K+UW5F+anTLlbTN5uDtuyse+viUyIA9C3crJS5wJpcEfNI1ZAQB8+RJKLWZH8yrx1W 814kl8aJ5sMmx2xr5B627/r1f/NJC60Ct9G5x1hMsRQqljLeBrsbCFVaH7dkkncoa9lU cirQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Hh8BWqYO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from morse.vger.email (morse.vger.email. [2620:137:e000::3:1]) by mx.google.com with ESMTPS id c3-20020a170902d90300b001c0cbaf6970si400009plz.501.2023.09.20.19.58.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Sep 2023 19:58:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) client-ip=2620:137:e000::3:1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=Hh8BWqYO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:1 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by morse.vger.email (Postfix) with ESMTP id 3A8F68325655; Wed, 20 Sep 2023 12:29:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230182AbjITT3a (ORCPT + 99 others); Wed, 20 Sep 2023 15:29:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230189AbjITT3R (ORCPT ); Wed, 20 Sep 2023 15:29:17 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 394301B7; Wed, 20 Sep 2023 12:28:58 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-502934c88b7so389497e87.2; Wed, 20 Sep 2023 12:28:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1695238136; x=1695842936; darn=vger.kernel.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=Hh8BWqYObv5wesG9jZxqawXtYHAPXVP6jDHygiaBZngJGbOkBN3dmkWymAS6BASBw+ cofSyZF6L339PeSjPOkcWYZEh3KPP2lebcOm4+0HSSnGHq5w4tkFfSxyz12ToBfKoLta w77xItzL7Dl1up9Nl2AO58k5tBrmQD97OWD1plKRBgIIayUDWywWpdpVGvE4ZmEGRWXF QKOwY6upbapkoYj4gVTXP6E+R+VlrAZXC/1EHeNyZzHdwdG7aN5e3XFLRZiuc/qxpJ05 pWyVoKjiwVfBpvQygh9A7pqx7I8kLtrqchosPo8khf8lbx5orh7zFM8o7NFl1SZHciEb 8R6A== 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=Tan7Spayj1nDiQ3mGXkHORv+0xidiBomhi231nR10aDM93bFw7KQOjNYBEaIgxzDIW BbLHtjSThwJI2vmohnaVM3Zt2gTV0Qa+C7+OIA8HwT+eaG/f4m5VZLyqUf11pJItdZhm cLA3igbyQvhkthcF31QDAaUrBfqWNt+ZkmD9kjGU08N6DwCmoPmWlabYGGGPDRc9tumr f+Ei0cd21gTwJdzlPyS9ntoguqTuPHVjgg5zskSviWzzofMAw93dcehoxHg2LPmRbvEL ncwtcaYazf1qzwGw+zQ9+0iKxnsoCDYweQwsHO76ftuIPBlG41fC8YSkCGPCFFd94K7j 7R6Q== X-Gm-Message-State: AOJu0YxbHvrXwy2Ad0ZDiefWmHywqGZx+GsCcSStqtDQsf2eA7WPLEJF YNm225ScovO+fFgwX7mkQJQ= 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on morse.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (morse.vger.email [0.0.0.0]); Wed, 20 Sep 2023 12:29:46 -0700 (PDT) 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, ""); } -- 2.41.0