From patchwork Mon Sep 5 08:31:19 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zong Li X-Patchwork-Id: 602846 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 A376DECAAA1 for ; Mon, 5 Sep 2022 08:32:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237763AbiIEIcg (ORCPT ); Mon, 5 Sep 2022 04:32:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237767AbiIEIcI (ORCPT ); Mon, 5 Sep 2022 04:32:08 -0400 Received: from mail-pj1-x1029.google.com (mail-pj1-x1029.google.com [IPv6:2607:f8b0:4864:20::1029]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5193CD91 for ; Mon, 5 Sep 2022 01:31:32 -0700 (PDT) Received: by mail-pj1-x1029.google.com with SMTP id m10-20020a17090a730a00b001fa986fd8eeso11543926pjk.0 for ; Mon, 05 Sep 2022 01:31:32 -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=s3hOdjxXsap0YRXvjxYWIlEI0piYVKoTC0n9P5HnS8U=; b=VJJzPQJ1cWBEZK1HBWOn5P3vqsLLo9JWaWwO7q2CaasS7NEA3XlpZk4YrMbS0ioQmx 2DUmKBWzVSo+TcyoNxbeoUPYTGV5zRpvAK88DxEdKCpeltfsC1tR14akp28UetRl3iu0 XeNtjMnphRjAPxDSYQYmMfiyTFe/k/YOPhufSCMz5yM9rBUupijYpLpOoiKHXN+Ke+1T DFdXIBPXkmhEazPMWS9qvAiEJvTkBl2PBA98xz2lgeMQlFXLwzhpHfWCLZfcpqiafDpd aY8s5bh12f0Z3IJJbQzwPfk92ut5OVuOlIm/FXXh17AZX7mPSC66s4M6bmkTNx5Nhv7J b1RA== 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=s3hOdjxXsap0YRXvjxYWIlEI0piYVKoTC0n9P5HnS8U=; b=5goHEv/o+zvpsUz48xVYoB3STWw60CKfjbFIWVMHDl3CyH/mQ2VPBccklwPri3LQn/ rK/Sd7+mvg06ehfyN0pNV4JrOMtvcVtQ7N9JDmrJ/isxZeRjztU6QI5cJgjFbVaL5euk 5jzuC/RcgGBmyAk4/7CYSrODqn+os8tWjRA0KnuC66Yw3uz1SHOOfGVRroUiaDkzON9k iUFfAdT0n4Sytd8eFIrgDgcObsLQ74XY9hBWJ5VhxzA601aUMCKD0m88DX8Cv67+eZMS 7iYXtKS58KG2WU5ohunHQ2bRzmLVTDreqeyVfCmp1en+nkCMTubtdK/gQOt3nYN6cH0D Opuw== X-Gm-Message-State: ACgBeo2KS6qu/FrujZdKvcxDddyDCSUlRuYEb/Tpydil2n6I/ofl4Puc T9BCQr5xOhQkPGUnd6cxPqRlvw== X-Google-Smtp-Source: AA6agR4nKAVKAuZX1ZISjF81oe65A4kGyO+0VV8EZk2A7ZosaG47IwTfakAHqqYoOBU8VO/tJRK1pg== X-Received: by 2002:a17:90b:1b52:b0:1ff:f536:1f3c with SMTP id nv18-20020a17090b1b5200b001fff5361f3cmr17807344pjb.232.1662366691713; Mon, 05 Sep 2022 01:31:31 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Sep 2022 01:31:30 -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 0/6] Use composable cache instead of L2 cache Date: Mon, 5 Sep 2022 08:31:19 +0000 Message-Id: <20220905083125.29426-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/ 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 EDAC/sifive: use sifive_ccache instead of sifive_l2 ...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} | 183 +++++++++--------- .../{sifive_l2_cache.h => sifive_ccache.h} | 16 +- 7 files changed, 136 insertions(+), 113 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} (34%) rename include/soc/sifive/{sifive_l2_cache.h => sifive_ccache.h} (12%) Reviewed-by: Rob Herring