Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2870213rwb; Mon, 5 Sep 2022 02:55:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR7nYolCqoLvcqIpxNV5blRA1SRhnMWdPXSl+6OAlVSDT3zfFhMsN77y34pV2RwN6lDehzzU X-Received: by 2002:a17:90b:1c8f:b0:1fb:9d43:8ecf with SMTP id oo15-20020a17090b1c8f00b001fb9d438ecfmr19300754pjb.160.1662371742002; Mon, 05 Sep 2022 02:55:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662371741; cv=none; d=google.com; s=arc-20160816; b=nh2TgnZN2uiZw2z4sHANooTONWdVX2BHzZ9hUz0rYJNy44bm8tqpIxvveN16HlIHHY ug6ak0emoXI55gDRKlLt7y+TT+jDSxGSLuMfgPlrNwZce9bPZp1KI9jKndBRBjT6Df9V uvpfJhIuhjH8BIvCdFe54jPC9K0SE+P/CFcntqgG3VRrKdXxFoIQy5SQCx2yMGYnjIz0 dppprEvxlL/SoyqHNWhAbW1RI+L8dgiXHUqP4xiYJcVXW9EVe89zsbtjuYpPU2Wm9ys8 7Rk1mwH57vEdK08WQ6Z8g3ZdOIccVpKclQCiBoFp998yIj1L9dmlqNcKw4Qa4Kvfw/Qs PG3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=HegVDwbwdx7NAusLYsMykpD/qEuT4JpSnYO/rlTbGxI=; b=OWL+fGxO7mS3DjqnUME6HJ7N8uOJSW7Dt4wFZ/htLOS8P9+36Rpy9zrfRUHnY1A2wE IheixjohZQayea0dyJ5uwqbTCBirtNhsUT2hpvTalwquObc87Eaok7UDe7f2FW78K/9x R6v21Hz9LxARC5rKoIFu4qQr3w6alCK8ljEXNbXkZsGOo1tXUWAX7EHpRTd9KKs4aSwU CkC5rvQpNWvFV61Hr+IFeut3mLL9RzjsxImiQDBaJla0/GEQbz987RNOPw2yaGe9PNwS ecX89NPKgwtbZwNMukNuhIvQqRWQQow/oNmqL04BPGqkIVbDyhUa8ThgeygsmlYOZ3Zu D0mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=aD8U5Io3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j190-20020a6380c7000000b004197598c879si9731319pgd.700.2022.09.05.02.55.30; Mon, 05 Sep 2022 02:55:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=aD8U5Io3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237883AbiIEIdL (ORCPT + 99 others); Mon, 5 Sep 2022 04:33:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57026 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237614AbiIEIcf (ORCPT ); Mon, 5 Sep 2022 04:32:35 -0400 Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76BF44F6BA for ; Mon, 5 Sep 2022 01:31:51 -0700 (PDT) Received: by mail-pj1-x102d.google.com with SMTP id x1-20020a17090ab00100b001fda21bbc90so11497363pjq.3 for ; Mon, 05 Sep 2022 01:31:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date; bh=HegVDwbwdx7NAusLYsMykpD/qEuT4JpSnYO/rlTbGxI=; b=aD8U5Io3OoxXQycA2E/XrSpXhrDZWnOitDIAExLsNLwS71FDEoPQQAl6KhpjPqcLp1 hrGHpZgt89aYD5cf8yebwHeLzegfd3Pev6ZFmtuleGtNs27UntabRVGWVEm6mS6rM6Zj eYc58IE43GT2FlhHAZteW/hj/bK1AZmlsNNjPUkli5IsAM/VdhnQH48MhSseV6Hqj9Gy A0ssJHtWErt8dNVzGQswEtmPgokxkkNrCHaLBwTTLMCQMnzHncxPCOfUA5PXCzHetMNO H5SBpTUSeyQ4Z66XqmYAmAUSfNyJ8mpJJwE+tpo/rcnx7ZZ6Kiv2mvmbPZfO0lueCdvu zsgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date; bh=HegVDwbwdx7NAusLYsMykpD/qEuT4JpSnYO/rlTbGxI=; b=svw9q7AjXq/JAfWtt485hFo3Hqo1fET/RE/SX4omNmICA2HHOZaFQ3xptdo0cd5Lgd jQvtNV8/PpW4t9PSDgmm3Uw1Nvgys4NdaXuKEPsEJVvZG62uEAPx2uTt9lm/ZpqnBGUP KWIU/O58VI22KcTlHnHqCU8OyrCgF7coCwnyWqyQfVRLLEEdcHFBIV8Rki/FcNn7SpuI eH33KyxZFa2F8xUlbcU9t+8NIuT5bdfWcGplgVqIkq0+ZtXPCOpPtBrx3Oxa7Y5xczO5 mwkUbtpYWXaSW5mJbVzfUDQsf1m9x1RMXzuJGNp5CubVmt1Klg/FxoWMjHOSYq/ktGuT 3b6A== X-Gm-Message-State: ACgBeo0sLcCamFcbQaV0d8dnfLGnyBI016U9ZIGXdAqD6xEsFz9xY+nO tN73HGTpMNHuf+zf7Lw1BTLRkw== X-Received: by 2002:a17:902:d486:b0:16f:15a1:6da3 with SMTP id c6-20020a170902d48600b0016f15a16da3mr48626724plg.134.1662366710366; Mon, 05 Sep 2022 01:31:50 -0700 (PDT) Received: from localhost.localdomain (59-124-168-89.hinet-ip.hinet.net. [59.124.168.89]) by smtp.gmail.com with ESMTPSA id y3-20020aa79423000000b00537dfd6e67esm7089721pfo.48.2022.09.05.01.31.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 01:31:49 -0700 (PDT) From: Zong Li To: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, greentime.hu@sifive.com, conor.dooley@microchip.com, ben.dooks@sifive.com, bp@alien8.de, devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-edac@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Zong Li Subject: [PATCH v2 6/6] EDAC/sifive: use sifive_ccache instead of sifive_l2 Date: Mon, 5 Sep 2022 08:31:25 +0000 Message-Id: <20220905083125.29426-7-zong.li@sifive.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220905083125.29426-1-zong.li@sifive.com> References: <20220905083125.29426-1-zong.li@sifive.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sifive L2 has been renamed to sifive CCACHE, EDAC driver needs to apply the change as well Signed-off-by: Zong Li --- drivers/edac/Kconfig | 2 +- drivers/edac/sifive_edac.c | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/edac/Kconfig b/drivers/edac/Kconfig index 17562cf1fe97..456602d373b7 100644 --- a/drivers/edac/Kconfig +++ b/drivers/edac/Kconfig @@ -473,7 +473,7 @@ config EDAC_ALTERA_SDMMC config EDAC_SIFIVE bool "Sifive platform EDAC driver" - depends on EDAC=y && SIFIVE_L2 + depends on EDAC=y && SIFIVE_CCACHE help Support for error detection and correction on the SiFive SoCs. diff --git a/drivers/edac/sifive_edac.c b/drivers/edac/sifive_edac.c index ee800aec7d47..b844e2626fd5 100644 --- a/drivers/edac/sifive_edac.c +++ b/drivers/edac/sifive_edac.c @@ -2,7 +2,7 @@ /* * SiFive Platform EDAC Driver * - * Copyright (C) 2018-2019 SiFive, Inc. + * Copyright (C) 2018-2022 SiFive, Inc. * * This driver is partially based on octeon_edac-pc.c * @@ -10,7 +10,7 @@ #include #include #include "edac_module.h" -#include +#include #define DRVNAME "sifive_edac" @@ -32,9 +32,9 @@ int ecc_err_event(struct notifier_block *this, unsigned long event, void *ptr) p = container_of(this, struct sifive_edac_priv, notifier); - if (event == SIFIVE_L2_ERR_TYPE_UE) + if (event == SIFIVE_CCACHE_ERR_TYPE_UE) edac_device_handle_ue(p->dci, 0, 0, msg); - else if (event == SIFIVE_L2_ERR_TYPE_CE) + else if (event == SIFIVE_CCACHE_ERR_TYPE_CE) edac_device_handle_ce(p->dci, 0, 0, msg); return NOTIFY_OK; @@ -67,7 +67,7 @@ static int ecc_register(struct platform_device *pdev) goto err; } - register_sifive_l2_error_notifier(&p->notifier); + register_sifive_ccache_error_notifier(&p->notifier); return 0; @@ -81,7 +81,7 @@ static int ecc_unregister(struct platform_device *pdev) { struct sifive_edac_priv *p = platform_get_drvdata(pdev); - unregister_sifive_l2_error_notifier(&p->notifier); + unregister_sifive_ccache_error_notifier(&p->notifier); edac_device_del_device(&pdev->dev); edac_device_free_ctl_info(p->dci); -- 2.17.1