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 1C76EECAAA1 for ; Tue, 30 Aug 2022 12:58:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229670AbiH3M6Z (ORCPT ); Tue, 30 Aug 2022 08:58:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbiH3M6Q (ORCPT ); Tue, 30 Aug 2022 08:58:16 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6636F7645 for ; Tue, 30 Aug 2022 05:58:15 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id m16so14085238wru.9 for ; Tue, 30 Aug 2022 05:58:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=YGmkAZyavh+X9La7k+CFGGjIc+C3jV0M+2ia4/QWjpk=; b=nAszEbPHvTpl4eyJg2fuRS7ZObScYrqd1N/RhNUC43Hyeu3SMZO5iY+wvqOFUaysJx siq91yP79RGZRyAGXtSxRYbHENA2EZBjnR1mOUY1QjbRvpGf9fFltg2PUNK8w+viOecx hiMOOsVI5a4/nrqi4vJmuXhAOmdFSRay5yXiVueQ90Pob6BdW3OdkeYXrxkKZuRH/Gkh 3IWJsU/KZOXZzR5MpVFluwpvqJQU2wu8DHSXs2PT1Lf1fHbBcywk0YDQAqTSp/Oxjnb4 raN3nvqUR6nMgoSIzAj+b7rHtuvpT3TJTdraYkNRXrj7kxguhup/RPD1rl3YCj3KX9tw SgoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=YGmkAZyavh+X9La7k+CFGGjIc+C3jV0M+2ia4/QWjpk=; b=FmvB49ou3nVrh4OtlI4mjkB0jraHBmEkso8tjPuGmJN42jjQjXNbRaDsHurGK578ir oPKnt8PJhjwnzh9Bo3Mu1mtgJVIHdYHpQ2riiHOK794JbKkgHd5esUTpC1664qWeXSHt ORviGKq1tQ8AuEQGJL1uE6xJHn08yB5mzmhtLow0QBUO/IFGVu+mX4z51tWgUefBA/QU T2dKIdohSkDpvk3ZHkNnJsd0Jui1tyX54pMFsCIX3l+UBa8tBpksDHaPNrfLki0R6cP+ 57KhvzhA9eNNGuytHUhss5rSFtoYwu/j3rvb7leFtF9rCWA/W/jrmXJNCWtkExYfhZWm KXrA== X-Gm-Message-State: ACgBeo1J6a5LIP2JbDp6Dzqh7IN3ApYve4tD5Bp5PPr8YIVFCCghlmjD HGjBqA81UbWDQuzAE2m7rDLHCA== X-Google-Smtp-Source: AA6agR51p0EDWKeeNESKGCHV+BZqCfWQ96nO9J+kb64Y+l4lI4KMbkrcUhW3hqrmrES73N832iz+dw== X-Received: by 2002:adf:e18a:0:b0:225:8c08:2411 with SMTP id az10-20020adfe18a000000b002258c082411mr8631521wrb.548.1661864293933; Tue, 30 Aug 2022 05:58:13 -0700 (PDT) Received: from [10.35.5.6] ([167.98.27.226]) by smtp.gmail.com with ESMTPSA id q28-20020a056000137c00b002205cbc1c74sm9543475wrz.101.2022.08.30.05.58.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 30 Aug 2022 05:58:13 -0700 (PDT) Message-ID: <6b6837c1-5a2c-567b-ba64-72a1dca38807@sifive.com> Date: Tue, 30 Aug 2022 13:58:12 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.1.1 Subject: Re: [RESEND PATCH] dt-bindings: sifive-ccache: fix cache level for l3 cache Content-Language: en-GB To: Conor.Dooley@microchip.com, palmer@dabbelt.com, paul.walmsley@sifive.com, aou@eecs.berkeley.edu, greentime.hu@sifive.com, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, devicetree@vger.kernel.org References: <20220829062202.3287-1-zong.li@sifive.com> <20220830125133.1698781-1-ben.dooks@sifive.com> From: Ben Dooks In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 30/08/2022 13:56, Conor.Dooley@microchip.com wrote: > On 30/08/2022 13:51, Ben Dooks wrote: >> EXTERNAL EMAIL: Do not click links or open attachments unless you know the content is safe >> >> With newer cores such as the p550, the SiFive composable cache can be >> a level 3 cache. Update the cache level to be one of 2 or 3. >> >> Signed-off-by: Ben Dooks >> --- >> Documentation/devicetree/bindings/riscv/sifive-ccache.yaml | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/Documentation/devicetree/bindings/riscv/sifive-ccache.yaml b/Documentation/devicetree/bindings/riscv/sifive-ccache.yaml >> index 1a64a5384e36..6190deb65455 100644 >> --- a/Documentation/devicetree/bindings/riscv/sifive-ccache.yaml >> +++ b/Documentation/devicetree/bindings/riscv/sifive-ccache.yaml >> @@ -45,7 +45,7 @@ properties: >> const: 64 >> >> cache-level: >> - const: 2 >> + enum: [2, 3] > > Do we want to enforce the cache level like we currently do for > interrupts and cache-sets? Not sure on that, for the P550 cores the ccache is going to be level3 and my colleague has said it does confuse some tooling if the level is not set correctly. -- Ben