Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp4879017rwn; Mon, 12 Sep 2022 00:07:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR7UrmSRymUPtZrMf3RSt/YCX71Av9f+pi0J4J3iyLkIJoF5u6tmu+0MV8z0XdWiti9LZfs/ X-Received: by 2002:a63:4e14:0:b0:438:8275:7246 with SMTP id c20-20020a634e14000000b0043882757246mr14405740pgb.450.1662966441577; Mon, 12 Sep 2022 00:07:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662966441; cv=none; d=google.com; s=arc-20160816; b=W9g0S4ta7cckGmI3IBiLhWL/4lLjarFICXn7P//poXv4/WIOlGHaeG+WO1ARy+P3OU RdJwQQHHSqCfStHxgTElPMe8gHaq+4FcUWbpi0eyuy4sCVqwmnWI2/VpaykywiSgT15+ kRbMRwSdcfCTBg4mqNppex85o0z6BMhLY3IwKUpAy+IKGDyvL+zqarJNKlY8n+QdaWf0 VbI3RMzjVrSvDPyjI3KQPnEbPapLlA6g5ztkc5wTNDKhEhgGA90mGsdHY1+7eYRpXLWB sW8xUUo1DXOY58kzDhBsWGr8i513gslJGRvaxGy5jXugvnqDNeth9ahN+GhI3r2Z8Taw x4bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from :dkim-signature; bh=ouf6fZur6LuUgpPfN2BtmMmKETEefZcd37KbqJNHwP8=; b=XygK8v8RthYNAqVDwWOH7TF7zgGaSUkOeptz0QKLyfSMGXmUtDayHaCd6fvhJYVbZ7 PpGVnpZBN/XgjiKTb/grw95+/Gi/AscGTnYr6OsIE7wT9YK99tUWo+OXo/JiGYKCy2Ja 3DayGtaFUQZ9KnA+nOHdHCdKVgKNQNEhw29q3XhzN8kgs0Fk7JOQIMG1XzXoOPm0ya91 HZTsPCQHnHWFp2JPZsS+KMn3upsithgY23CbbDEK1R60qPZTs7Y+s/PNXY/2gC0NzeDd 9BSbzpj7JTz4R2xw6NqB52IXqUrXFCf2IQWNA8iaSPTTKhg/i2xKehHWcLQAgKy9y0w3 KXzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=MKYat+CA; 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 p17-20020a170902e75100b00178297641d4si4728331plf.287.2022.09.12.00.07.09; Mon, 12 Sep 2022 00:07:21 -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=MKYat+CA; 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 S229959AbiILGus (ORCPT + 99 others); Mon, 12 Sep 2022 02:50:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229544AbiILGui (ORCPT ); Mon, 12 Sep 2022 02:50:38 -0400 Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A07391BE9F for ; Sun, 11 Sep 2022 23:50:36 -0700 (PDT) Received: by mail-pj1-x1030.google.com with SMTP id go6so2877176pjb.2 for ; Sun, 11 Sep 2022 23:50:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=ouf6fZur6LuUgpPfN2BtmMmKETEefZcd37KbqJNHwP8=; b=MKYat+CAUn4trfJaDAE1pwd5fdLDnZso377mQnrLXJnzBgcDFugu5NEH99edoku8if SY60Nd2YBsrXLBdBSASbVDGeCtz7dp3wFUDHUcdKeX0/sLnEq9cTQJbXtCa+V9BGEs7v jJUfUR1yl+fstGbMcuVj1LNXc1px+4ozY4n2vdOEUi8uaOUL0flfNqNHZpD3bDDvNgPQ uogTmp8/jeAMRO4BM1AP8MPC8I7A/TpMGcqRxQ6fy2aIV34Mw355C2mbywvRxHusYK3l ekNEQmxfAK2tl6VLiOyW/MCC2hbt4bd0GMP9z8wk9l8q33O6PQJiE1EM4GfOym+Lnhu5 rmKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=ouf6fZur6LuUgpPfN2BtmMmKETEefZcd37KbqJNHwP8=; b=06zroOg7iPMwr7mpY8tFUZXcWQGHw0T65Bo1V05RtwyCPY8PREj1Y2W5eWU/tBeej1 ecsRhmUX/tU2E/XZuIzW+wlXXCSc/s583woUE/poLDHrusiYi2VyBiyocj7HDSNW1XB6 Xsv7BWnO6Rs7uH0O6ZYhh47OnNgyB1DBy1eQWesN+lmAah6droP/QYAGOS53vB6s0GtM VsQDpGTxkqxvBuLt+mHq9mIxTogmcfGzBC+XsgKQU0TYPNklG40a//indRu200sFg6x/ EEhcXffU2LS8wMaPPSVTFy+p9tDXE6RwNKHJGfh5+lkmQXzYcNjUs3+Qsnp+6OfipLzU SHjw== X-Gm-Message-State: ACgBeo2ZTBkUG2BxLcj3EqvnxV/lg67UOCuLk7sRhi6Nr3fdo56+bKJR oK7UdTP3pFgkJcSGgE1cz2XIAQ== X-Received: by 2002:a17:902:8b8b:b0:178:1de4:1fe0 with SMTP id ay11-20020a1709028b8b00b001781de41fe0mr9434054plb.68.1662965436075; Sun, 11 Sep 2022 23:50:36 -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 v62-20020a632f41000000b00430c6fd7ffbsm4705716pgv.84.2022.09.11.23.50.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Sep 2022 23:50:35 -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 v4 0/6] Use composable cache instead of L2 cache Date: Mon, 12 Sep 2022 06:50:23 +0000 Message-Id: <20220912065029.1793-1-zong.li@sifive.com> X-Mailer: git-send-email 2.17.1 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 Since composable cache may be L3 cache if private L2 cache exists, we should use its original name "composable cache" to prevent confusion. This patchset contains the modification which is related to ccache, such as DT binding and EDAC driver. The DT binding is based on top of Conor's patch, it has got ready for merging, and it looks that it would be taken into the next few 6.0-rc version. If there is any change, the next version of this series will be posted as well. https://lore.kernel.org/linux-riscv/20220825180417.1259360-2-mail@conchuod.ie/ Change log in v4: - Change the return value from from ENODEV to ENOENT - Apply pr_fmt refinement to all pr_err Change log in v3: - Merged the EDAC patch into L2 rename patch - Define the macro for register shift and refine the relative code - Fix some indent issues Change log in v2: - Separate the rename and diff to different patches - Rebase the dt-bindings based on Conor's modification - Include the patches of Ben for refinement of printing message Ben Dooks (2): soc: sifive: ccache: reduce printing on init soc: sifive: ccache: use pr_fmt() to remove CCACHE: prefixes Greentime Hu (1): soc: sifive: ccache: Rename SiFive L2 cache to Composable cache. Zong Li (3): dt-bindings: sifive-ccache: change Sifive L2 cache to Composable cache soc: sifive: ccache: determine the cache level from dts soc: sifive: ccache: define the macro for the register shifts ...five-l2-cache.yaml => sifive,ccache0.yaml} | 28 ++- drivers/edac/Kconfig | 2 +- drivers/edac/sifive_edac.c | 12 +- drivers/soc/sifive/Kconfig | 6 +- drivers/soc/sifive/Makefile | 2 +- .../{sifive_l2_cache.c => sifive_ccache.c} | 200 ++++++++++-------- .../{sifive_l2_cache.h => sifive_ccache.h} | 16 +- 7 files changed, 151 insertions(+), 115 deletions(-) rename Documentation/devicetree/bindings/riscv/{sifive-l2-cache.yaml => sifive,ccache0.yaml} (83%) rename drivers/soc/sifive/{sifive_l2_cache.c => sifive_ccache.c} (31%) rename include/soc/sifive/{sifive_l2_cache.h => sifive_ccache.h} (12%) -- 2.17.1