From patchwork Wed Oct 25 18:56:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Renner Berthing X-Patchwork-Id: 158245 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp168342vqb; Wed, 25 Oct 2023 11:57:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHEBr5STgrGt+Skv43akjeI2FHbaondRnYbf9PSKqJkTjzBaHF5wykOacTNcXCsPvUOgfcV X-Received: by 2002:a0d:cbc7:0:b0:5a7:ab45:539d with SMTP id n190-20020a0dcbc7000000b005a7ab45539dmr16953195ywd.2.1698260257200; Wed, 25 Oct 2023 11:57:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698260257; cv=none; d=google.com; s=arc-20160816; b=Lq/RzEgUVAkBOkQNhLzaj9cA/LANoDHo1fIeX7+iEnkxu5wXB9NXVsU2fmMOOaq7gl W4s6IGESmLG5Kr7IvdRwaQjfmBsaqVR/XEQDT0sx3W1ztKHScbjttU0LEP6pZjnqxq6+ EM2VEfb9QDy+pw2Ktd77ogjbr+tXqgaAXDuTL+Hbr+523y5ZrX4B3GGdyCsR9qYbnmHk e2GYi47COSROhx+OSFngX5KiKgQcaRX/P+X+AAdM2aRRAqC2arFaf3m7qYX9WmHh96zg F5yA6In9w0LcXi8fmdEmXUATJ6FxLxG1usonrzAzved8znt6yJ1u1SGznEvCPLTQrXUp NyLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:mime-version :dkim-signature; bh=FFiHmR7ukRwdZCsC7cixmRTY2MvrJS7s0z/YTGkE2iM=; fh=GKwi3PIaODeWWi7LRupwzJjuTN6YK5tMuKf9v4MgXdc=; b=c3BY+vNyBdL2xZTrsPC0Xc3ghqYC74hJaKC52xIamHfjMNyCdxBD82W1yGBZKgXjtA S0ZZmWhvDSFZKSF8ZEDfcg7NTn/fok92Ejsi5VvEdVZzZRiDOSJogRpfwrrHzCL3mhFc nYfUTMcKuDw2nDZj9e1oalkCO8wcp/WbBphym6/xwCwzhZ1qyzbuWd4fkbQNxdCrW93z Vz5jJ6qBw4WxyjXY3NXjevHVCP+F/5ufnWGreG/eTGHbE2zF5zsfmlrS2HyG7xGjNB9J a32wBh2/ueIFNZ2hxUk5uhM9QSkNjIGKv2sRQqYpsSDDQudcnW/A72BY9QPwqoRQ1l3F XMjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=GVfVIqtS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id z1-20020a81c201000000b00589a61030d0si12337003ywc.354.2023.10.25.11.57.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 11:57:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=GVfVIqtS; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id B4D1180958A0; Wed, 25 Oct 2023 11:57:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234875AbjJYS46 (ORCPT + 25 others); Wed, 25 Oct 2023 14:56:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44200 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233628AbjJYS4v (ORCPT ); Wed, 25 Oct 2023 14:56:51 -0400 Received: from smtp-relay-internal-0.canonical.com (smtp-relay-internal-0.canonical.com [185.125.188.122]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30A56184 for ; Wed, 25 Oct 2023 11:56:48 -0700 (PDT) Received: from mail-qt1-f197.google.com (mail-qt1-f197.google.com [209.85.160.197]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-internal-0.canonical.com (Postfix) with ESMTPS id 146B23FD3D for ; Wed, 25 Oct 2023 18:56:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1698260206; bh=FFiHmR7ukRwdZCsC7cixmRTY2MvrJS7s0z/YTGkE2iM=; h=MIME-Version:From:Date:Message-ID:Subject:To:Cc:Content-Type; b=GVfVIqtSVfF68mRlN07dL8QYEVZoifPqKoSGLylo/NO4lW+NAScV0MvEeUWunbS98 KZZVgshmdNGOsDid6DormF6H15cklRcmRJIOMp8R+VgO8PaqgVcGZwHEekyu+Zammm Vu7T3pWdNuFa5WnLrveQDFwtDMWdIPsm9rIso2xT/XTCT+riOzz9lLhuw4gFQfQ+yS DU/ArEhbn30GFsJIsYaoftnKHvizE9EaL/YbJjE4m04H2S/A57VgT7KTXymHI1x4MJ gXkm0sW9JWQJzqmS4h3pe9KpFDtivBeVNQEvz4IWfhjCEaiQZkMi+QOACIxuzA8rn3 dtTlPsjEp6nIw== Received: by mail-qt1-f197.google.com with SMTP id d75a77b69052e-41e3e4aa311so949421cf.1 for ; Wed, 25 Oct 2023 11:56:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698260202; x=1698865002; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=FFiHmR7ukRwdZCsC7cixmRTY2MvrJS7s0z/YTGkE2iM=; b=enGuCO5/HGTGn//1DImpTkRd9fhjz52Y/I6RgenKoxA3eN+YiOqkl62SuJFJHB1bBU 1CU/SWwTnyPmrtXShaS0eskjqoz+9oaTfv3XL71gn5oLPgvvjLGJNheCF/mU4xHQo+QN B/toQ0Wxoo8ru6aBKEUr4ZwXnXBoeHPOaGqER0LYUCa/cIhvPsn36fAOgAj9DXXn0ht/ xxdDsZPliq+VL3LKegto/+X8At/wTYcq8pz3p3aQXN1Q4aOMKB1Ec9cUD5+e/eLkYHme wMQG6JrHGA3UyvhkROvg5NVMatMr1zYjsGkNHgesKT32XEAVjljqegaq3gsVNbCid06f KanA== X-Gm-Message-State: AOJu0YykHdYKvUnjBqs3FNmsgbl/WtYKeoHXuavSHi+Bfqau2v9t908D THNLpJNM86OAOJFyyGi4MgDnE0UtJx8tspBWmKlGFdaH6kYkTNMUDa9KU/gy2WEffuP+yqxldcY p9WxmaEBlb/UWr1hEM2aXnHPc/q4K2KVodWnMqHPGUpEt4jCfyGmdYcpJRQ== X-Received: by 2002:a05:622a:14e:b0:41e:172f:6e78 with SMTP id v14-20020a05622a014e00b0041e172f6e78mr15135514qtw.29.1698260202167; Wed, 25 Oct 2023 11:56:42 -0700 (PDT) MIME-Version: 1.0 X-Received: by 2002:a05:622a:14e:b0:41e:172f:6e78 with SMTP id v14-20020a05622a014e00b0041e172f6e78mr15135502qtw.29.1698260201944; Wed, 25 Oct 2023 11:56:41 -0700 (PDT) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Wed, 25 Oct 2023 11:56:41 -0700 From: Emil Renner Berthing Date: Wed, 25 Oct 2023 11:56:41 -0700 Message-ID: Subject: [PATCH 3/4] dt-bindings: cache: sifive,ccache0: Add sifive,cache-ops property To: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Conor Dooley , Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley , Emil Renner Berthing X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 25 Oct 2023 11:57:25 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780754947508977690 X-GMAIL-MSGID: 1780754947508977690 This cache controller also supports flushing cache lines by writing their address to a register. This can be used for cache management on SoCs with non-coherent DMAs that predate the RISC-V Zicbom extension such as the StarFive JH7100 SoC. Signed-off-by: Emil Renner Berthing --- Documentation/devicetree/bindings/cache/sifive,ccache0.yaml | 5 +++++ 1 file changed, 5 insertions(+) - $ref: /schemas/cache-controller.yaml# diff --git a/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml b/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml index 7e8cebe21584..36ae6f48ce0b 100644 --- a/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml +++ b/Documentation/devicetree/bindings/cache/sifive,ccache0.yaml @@ -81,6 +81,11 @@ properties: The reference to the reserved-memory for the L2 Loosely Integrated Memory region. The reserved memory node should be defined as per the bindings in reserved-memory.txt. + sifive,cache-ops: + type: boolean + description: | + Use this cache controller for non-standard cache management operations. + allOf: