From patchwork Tue Sep 13 06:18:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zong Li X-Patchwork-Id: 605488 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31887C54EE9 for ; Tue, 13 Sep 2022 06:18:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229611AbiIMGSa (ORCPT ); Tue, 13 Sep 2022 02:18:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59016 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229969AbiIMGS0 (ORCPT ); Tue, 13 Sep 2022 02:18:26 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE3EE5724E for ; Mon, 12 Sep 2022 23:18:24 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id q9so1262957pgq.8 for ; Mon, 12 Sep 2022 23:18:24 -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=y5P7by1jIpQzIvb2tD2gXNIWnK8iruU4UUaIlQg1bkU=; b=FURSNvAsrwuNMGImdijAMz8mE4g8/oBqhm2etPnz9/VXqv0Wwf67+KLa1RQz8Xk13f XiBgKDhzEU69AdabcMPz2RN3RilK93j0H1dS9dyPpWaQXYvGadDCcnqn1tsNr0VyzOqr EPQxGjZpaq3hOYm55EQ8n/LM7JO2D10khgdiMI88KNnABIowBIcPHZWrm/4YUlM8ivWu in3n05qIeaKrUeslPFcz9TDWIF85hPMvzC/tmIdmSXcBjHcwMxXPoooWmOXdtNveXf5R kLjeFBC324DCi0GbpIqmAGBPinp81KwIPJCEeYT+DFP+W+7EW75m4UdWiR+agje4LkfQ W5/A== 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=y5P7by1jIpQzIvb2tD2gXNIWnK8iruU4UUaIlQg1bkU=; b=bmBGP8iThpM9yIY4+HqWkSym8sF+m4EIaUT62LOXzae4w4tCfqh6emvhNmcuqYoZoO +5HsFMFPOmDmYFyHtRiNCmt+V0Sv4YisHzwRC3iGkPGAuUfHzg5Rz2vXQkIFmcbscRAD z2As4DrShBTy1rvXM1xAS18GivkXwcBGVWFj0jINLMrXhthPvYirrKvUPmjnj2Bn8cxQ hssclDH34wIdTVljWo3J6lbX1+zeRtq3lbsU68KM8FAwmqRTI9R5ir9X/+h+vq7qu1Bw w5TalciXPDY4QWFf/wNBGQ396nxzcege2e9UAfrefsD/6k0txymwe5R37Wfpr4gNOFsM d0eA== X-Gm-Message-State: ACgBeo1Q5t+4hzXJ8QfTNBHYrRnnSakVnKNubEwoCdQ9e2JEyiHaAvpO 2lRESwmMYXdpbMeUnZ/O92ce2g== X-Google-Smtp-Source: AA6agR5kuFJvWnGaHooiefmgt6Shu6OXVYfwtD+luhjkdQ8TycC57b+ASOg3PzAvilZOrJNJZdasbQ== X-Received: by 2002:a05:6a00:21c8:b0:52e:3404:eba5 with SMTP id t8-20020a056a0021c800b0052e3404eba5mr31522452pfj.67.1663049904141; Mon, 12 Sep 2022 23:18:24 -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 z11-20020a170902cccb00b00173cfaed233sm7296332ple.62.2022.09.12.23.18.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Sep 2022 23:18:23 -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 v5 0/7] Use composable cache instead of L2 cache Date: Tue, 13 Sep 2022 06:18:10 +0000 Message-Id: <20220913061817.22564-1-zong.li@sifive.com> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: devicetree@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 v5: - Add a patch to modify aux vector for sysconf 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 (2): soc: sifive: ccache: Rename SiFive L2 cache to Composable cache. riscv: Add cache information in AUX vector 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 ++- arch/riscv/include/asm/elf.h | 4 + arch/riscv/include/uapi/asm/auxvec.h | 4 +- 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 +- 9 files changed, 158 insertions(+), 116 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%)