Received: by 2002:a05:7412:a9a2:b0:e2:908c:2ebd with SMTP id o34csp491596rdh; Thu, 26 Oct 2023 07:46:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHk30LkK4/iycZzKru89oNO5POoDZtCsqJreYZdatjyc5sZEfHXmhq3QMv+B0Ne4Iq/+B/3 X-Received: by 2002:a05:6902:102f:b0:da0:54f7:69bd with SMTP id x15-20020a056902102f00b00da054f769bdmr8113534ybt.22.1698331566569; Thu, 26 Oct 2023 07:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698331566; cv=none; d=google.com; s=arc-20160816; b=mjF2g8WYRdzlRJz9JSI/6rAO1vhiSmzHl/9R06XdZ1dmsigEdbpJ/XwnWC/LIKQ1F+ qxGOR/uZZBBjxl9CFlkioDZuB4TBVyhygoItorsLKtaimb6erpQRuNRVB3UnM2o6gXik aHR+dx2QurGa+SB1EHXpiPoB9j7Dd/luwdajd5jaetx/2IRCLla/Q7Rg0O9EV/2N06AK 2xMCJ5d9ohX+3+oztPNFan+vO7hbkfBmK55EwR4MVl2vGuz9BkGOV7n9RiULyq0y2HCA 747Wq7Wnoi7zcUFsr466iioK/du2v5RVany6Er2BbWDyVYPLJei3JRdneFatJ1ydgQPM dX/w== 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:mime-version :references:in-reply-to:from:dkim-signature; bh=KyhXAQ347/D5dTVlSbEJNnsvSJxeXoai/S3IoPDxqGM=; fh=aCiYnla54ZRNQbip9MqjQH8iu4M7sDgcNBFC9rBBQsc=; b=yFTztyMDmEQnIqJudUlmPuIX51pP8M6mtVODwA886bkj/8srb0ATH7ItfslLKd2FDu vd0M/NHGI595lHFEgw5YQzyEHKow8U++LeZq8NvSmY1EePFCV8HFDR8y7GhtLOe9jJrU zlr0ZeQelIHbWu2JAjW/NyO4Pm9XFtGcYTRy1xUuKNtB6D89yE5a17RGMiZNHHYeBvMb hTGWT52TflmIM/+UyaLVntYFCQ8ZHPa05/+UrBFH1/NPrMvqwdW8BKT5aUrcgzoMcUfk KYyNpPOrAXzMGJ8JWdnmThEQ8fuEsZ5MmlkLIY4xeqUKSjqnQJN6TIP7k9rMe/QBLFAQ rJwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=QEEhCKwN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id d12-20020a25360c000000b00d8677aa06ecsi14598037yba.341.2023.10.26.07.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Oct 2023 07:46:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@canonical.com header.s=20210705 header.b=QEEhCKwN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 785B98095641; Thu, 26 Oct 2023 07:45:31 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345293AbjJZOpH (ORCPT + 99 others); Thu, 26 Oct 2023 10:45:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235101AbjJZOpG (ORCPT ); Thu, 26 Oct 2023 10:45:06 -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 7FDF3D44 for ; Thu, 26 Oct 2023 07:45:02 -0700 (PDT) Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) (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 B5D1E41529 for ; Thu, 26 Oct 2023 14:44:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1698331497; bh=KyhXAQ347/D5dTVlSbEJNnsvSJxeXoai/S3IoPDxqGM=; h=From:In-Reply-To:References:Mime-Version:Date:Message-ID:Subject: To:Cc:Content-Type; b=QEEhCKwNmQBYuff9Zej1sV7WH/jtU1b4momBaBD7AYx1XC+VmMTho92C4yNuFvWUe JmdNp8AURU3JLOAYl91sGmQbRkbRDcGu5nxR7/FFc9r0sanovaSgjYjweama63pd2N CM4y+pFYFJ6w+Yd8mtwQETAaLgfi5iPTvzNlse9lFoU1F/fgbVMP0M4zSBRTzdYPm7 84tJjwbxXJxhIl1o19xmVbKexBXlSy/wm+MARfZVZos9eKArQwOlDlcFFcdZ3KyMPo rk4R9Uh8E5qk4QEbEOgtTYxeoCDuwH3+9pw5aMByw+PpUZHpCriiCc8RADfaA3HZrh +MM8LDNOptFUQ== Received: by mail-qt1-f199.google.com with SMTP id d75a77b69052e-41bf9a5930aso12610431cf.2 for ; Thu, 26 Oct 2023 07:44:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698331495; x=1698936295; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KyhXAQ347/D5dTVlSbEJNnsvSJxeXoai/S3IoPDxqGM=; b=TeQFmPX3mmxu9/yRn5q/3I15qVivfjBoNYMr1X2sCuo+EzNYW6IN9sOeoaCAnVmn7z cwDQ0aBiUsspVB/qCacF1McmuSHeSzEDr3bPBp9eUjwndLbDbfjPmPmM3Zsy0nYQCEY7 2i32klgGPj/xcaPg9U00AvkCdVkpaabBiol/NkCzfybUal6PGMx0Q2AD/p3fSGZAKhvY zjAIIjOuZpXxy7aPfIKETgq/+0xdP3U/Jl2vrz16Z8+RROdEjwK7P7LPwGIfKFPGj/Wr 6EIPWl1f/RMdpWIajFpiZAW+Y/48IANigP4a653Yxhd+++pDLsG7THpaRHCuQAzde7T3 8chw== X-Gm-Message-State: AOJu0YxeikctLL7SMuUD4U4U/+VcPPvrDAQr2hyWqzIp42gLLqyL231r kJbmmoKqiX5Mro8stiIsm0opci+l0vjzAbnvy9mGWvHZwOVAKG2szPl62PrFYiLi5KipE/zC+d9 frvKy9aEu5f2ZyFG2bYeKxWVPeB5dv/IOf5/eWNTlZ/t30T/8l2y6irXJFg== X-Received: by 2002:a05:622a:1822:b0:418:737:87fc with SMTP id t34-20020a05622a182200b00418073787fcmr21060481qtc.18.1698331495010; Thu, 26 Oct 2023 07:44:55 -0700 (PDT) X-Received: by 2002:a05:622a:1822:b0:418:737:87fc with SMTP id t34-20020a05622a182200b00418073787fcmr21060467qtc.18.1698331494770; Thu, 26 Oct 2023 07:44:54 -0700 (PDT) Received: from 348282803490 named unknown by gmailapi.google.com with HTTPREST; Thu, 26 Oct 2023 07:44:54 -0700 From: Emil Renner Berthing In-Reply-To: <20231026-cupcake-smashing-eb150e74a17c@spud> References: <20231026-cupcake-smashing-eb150e74a17c@spud> Mime-Version: 1.0 Date: Thu, 26 Oct 2023 07:44:54 -0700 Message-ID: Subject: Re: [PATCH 3/4] dt-bindings: cache: sifive,ccache0: Add sifive,cache-ops property To: Conor Dooley , Emil Renner Berthing Cc: linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Palmer Dabbelt , Paul Walmsley Content-Type: text/plain; charset="UTF-8" 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 agentk.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 (agentk.vger.email [0.0.0.0]); Thu, 26 Oct 2023 07:45:31 -0700 (PDT) Conor Dooley wrote: > Hey Emil, > > On Wed, Oct 25, 2023 at 11:56:41AM -0700, Emil Renner Berthing wrote: > > 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. > > I'm not really sure why we need the flag, is it not sufficient to > register the cache ops on a per-compatible basis? At least for the > jh7110 -jh7110 +jh7100 > you're always going to want them, otherwise your system is going > to be largely non-functional, right? That's right. I'll do it that way for v2. I guess my thinking was that this would be easier to just add to the device trees of other platforms that might need it. Eg. mpfs pci and jh7110 graphics. > > > > Signed-off-by: Emil Renner Berthing > > --- > > Documentation/devicetree/bindings/cache/sifive,ccache0.yaml | 5 +++++ > > 1 file changed, 5 insertions(+) > > > > 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: | > > and this | is not required btw, since there's no formatting here that > would need to be preserved. Ah, thanks. /Emil