Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp301255iob; Wed, 18 May 2022 02:29:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJybZZ9ykIB5H78ZL4PXnNyEQ+5ef0F2hJqSdZeBrmBYlvDo/PbUEQ42YzpyJOVyzfuk9QfI X-Received: by 2002:a17:90b:1a88:b0:1dc:e4a1:a81e with SMTP id ng8-20020a17090b1a8800b001dce4a1a81emr41184642pjb.96.1652866190165; Wed, 18 May 2022 02:29:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652866190; cv=none; d=google.com; s=arc-20160816; b=SndySRwy6pf1oTnb3tuVkEgriK4CTXRFnnVE01Rdq60HSC3od4QrEV/RXG9gF3jFB+ K4mmgIYMgo10TzuQlUREhAzrBXaBKQb0PrwHkG05sBXaBogCmG+MgLcTDJijdT5YrZev H5Dc958axAijY87TssltD4RxhNa7aZGwy7Y6wwOryPMx+9KnRREtDqOh0sf8igp7cF60 7qxT/2QJqPz2X7GF5mG0CrUGJ6bdTPNaJPoSJ1yEcvqBcyQVB9Oh6u+DJ1McEvBqpiLC VfayBBpOBDCTVnpiegB8Th2/eoLglmhy8+4oQJ59jBCBHuFFLeILDQwOR6HDTzn1Gxji bRxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=eBrgiBGzrk60kAZSEVCexv1pWJW5TTEZ8MUjnMwLi/I=; b=NRb41CVYTwxWrCn8LLbGnZAITe0E9Zl/QBi/5tT0xwws2+26/P3u+SiNJZmnzFnAG8 UQhJrPOhbzZWyxv6UdCcTFTPJOgDJoI+oqBZJAQ/5+7LGJKJS3bAZJDFfCwgKUzIKXXq 9O+/raeGfFeAv9LbW56CmXIATVwxRSDj87WBb7hXq1ZLuh3Y90lMubBPRcswKulQr4VB aKheKKr3VqUoooAfztc7be3KqV+mwjCTNOWpZ5+TmA6D8RhOvHwoksoENOoZ7no8h71Q 12gU1H93s+74nGYeuCoMK0PrF7jsYK2i+DVfCgLqEF1TkBpWbNzmG1NcSFZx9ry9Uf8d 2JjA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=bKCZxRM1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n34-20020a635922000000b003c24706f62asi2058921pgb.481.2022.05.18.02.29.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 May 2022 02:29:50 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b=bKCZxRM1; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 6B1BD2621; Wed, 18 May 2022 02:21:23 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234109AbiERJUo (ORCPT + 99 others); Wed, 18 May 2022 05:20:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52758 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234045AbiERJUm (ORCPT ); Wed, 18 May 2022 05:20:42 -0400 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 62EA414A272 for ; Wed, 18 May 2022 02:20:40 -0700 (PDT) Received: by mail-wm1-x330.google.com with SMTP id v191-20020a1cacc8000000b00397001398c0so2797210wme.5 for ; Wed, 18 May 2022 02:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=eBrgiBGzrk60kAZSEVCexv1pWJW5TTEZ8MUjnMwLi/I=; b=bKCZxRM1GoQTtqmmmW5HOA0FKMOGvKrMx1cl1ODcLG19yE2nCh9+52uWp5JEeiUWWT 2yNY2n6uNTiOKmM/R87OZFim/s1zQgcicxY8uILlNGsvr2dtMxiV23UqCIOTL7sIh0qF pkY1FHbSxwLaPZRBeC5eKzoLHMDkHbETzTE9n6jZcz32Y2p4o1lHbljlyPCDMNYHgE+l 6V1kkUxJfqmqCSYSS5lXO6fjWiIbZqHVb0LYZurFDtChM14eTJdDJVBuDLFupp3ocNRc 5xO40GRRBQOLSkH6zjsCE7Nqo1y8/PzivfcxGMJgfnCsczobb4a+pKR6J/XC3tCd0C00 CKmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=eBrgiBGzrk60kAZSEVCexv1pWJW5TTEZ8MUjnMwLi/I=; b=0fowZHyeFJBjMLBDrlEzuBp28qq6ynqQYJcQGEmcpoPBn8oeX1OtRoV8tRHBqzdB/e 06sz3f4fS0pbq7lGq1qYKYk4JOv9N7V/G66zsgytOWPLtmlP2ykKHckgWmmU5CRG+Xh8 olIHs+7gGeqDKsYXi/pqfD8jx/6xNtyFCxFPSgw+m+MAW/b8lZVHNCt5cJc9XQYz3h/V VLaxlaEeWrsXMTjxv/QLoB2FESNAE6ZnJrueZhIbkchLLfek2UzxYAU3iah7lHgpCMDW enTXA97N/m+xb/rGFXlRJ4ElVvdtiUzVvSAluucTqNI0y+jvQLMzsJ+TBbUnAWSZjIYh OXyQ== X-Gm-Message-State: AOAM533pHdaeYZHt4KnXbEt8vVCDKBmXmFXhgkNcePZTG3g2+VBwG9fx 7BZ/ITsNwpV9KPhMD4mUXturip/uZFDMAmXBcqJBJU14IggbEA== X-Received: by 2002:a05:600c:35c1:b0:394:8621:a1d5 with SMTP id r1-20020a05600c35c100b003948621a1d5mr35267641wmq.196.1652865638784; Wed, 18 May 2022 02:20:38 -0700 (PDT) MIME-Version: 1.0 References: <20220511214132.2281431-1-heiko@sntech.de> <20220518002529.GA1928329-robh@kernel.org> <1893094.PYKUYFuaPT@diego> In-Reply-To: From: Philipp Tomsich Date: Wed, 18 May 2022 11:20:27 +0200 Message-ID: Subject: Re: [PATCH v2 1/3] dt-bindings: riscv: document cbom-block-size To: Anup Patel Cc: =?UTF-8?Q?Heiko_St=C3=BCbner?= , Rob Herring , Palmer Dabbelt , Paul Walmsley , linux-riscv , "linux-kernel@vger.kernel.org List" , Wei Fu , Guo Ren , Atish Patra , Nick Kossifidis , Samuel Holland , Christoph Muellner , krzk+dt@kernel.org, DTML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Wed, 18 May 2022 at 11:10, Anup Patel wrote: > > > > > + description: > > > > > + Blocksize in bytes for the Zicbom cache operations. The bl= ock > > > > > + size is a property of the core itself and does not necessa= rily > > > > > + match other software defined cache sizes. > > > > > > > > What about hardware defined cache sizes? I'm scratching my head as = to > > > > what a 'software defined cache size' is. > > > > I agree that this should be worded better. The intent was to tell that = this > > is different from say the l1-cache-block-size. > > > > I.e. these values can be the same but don't need to be. But I guess I g= ot > > too much lead on by a kernel implementation detail (L1_CACHE_BYTES cons= tant) > > Better to just call it as "the cache block-size expected by Zicbom cache > operations" without getting details of relation with L1 cache block size. I would make this an even stronger statement and assert that Anup's recommended rewording (and staying away from L1 block/line sizes in terminology) is required to accurately reflect the design of the RISC-V CMOs. The Zicbom operation size is in fact decoupled from the l1-cache-block-size (as that would be the cache line size =E2=80=94 and therefore the size of fetches/replacements to the cache) as the deliberations within the CMO group showed. This is only the granule that Zicbom instructions operate on (and there might be additional mechanisms at work in the background that ensure that this is safe for any given underlying cache implementation). Cheers, Philipp.