Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38293173rwd; Wed, 12 Jul 2023 05:58:15 -0700 (PDT) X-Google-Smtp-Source: APBJJlFA5HWkJLWr4vUbgi1t2HmIJ6sm8zggg5wGDBh8Qmb5W4yxW5qL33T3x+tV6Buv+7kzOHRe X-Received: by 2002:a05:6402:1292:b0:51e:65b:bc3b with SMTP id w18-20020a056402129200b0051e065bbc3bmr2387226edv.15.1689166695145; Wed, 12 Jul 2023 05:58:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689166695; cv=none; d=google.com; s=arc-20160816; b=GAC4ufSsNVHepP08bvBDMN8NgIbY9X5Zia3VMoZ17ndnbcKTzxXbJmHaoYCIgjZLh+ 4kbUSY3C0vmh+NVq6UdENq6FgBIvFJyLvmc4ldOKFZ28xEqJbQ2awzdLmxpNha6oFNNy tXW/xCHdNU0PhdZnLCGRM6GoktNApT9KyEgG7Ew/rr2W2/7ec6Ux00oNQFRmcLZEkPHH FCxktfgUA3Vz8YL7EyfPtdXi+whGFfov9rRs7b2fuxjN5quezoMUxrm1qbJed9pEa6MD uxL37YSSrbDrTbLgqWoIEnXmHk7l3T6qJzpAvMt3RP2BdKAb1BS/E0wgEZtybff2WoGu FkFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=As5jovVz/stLB9HCpNmduJGzBJFBIZbh6f6RqqdbEgU=; fh=EwQsyMmWZcK4vKzAFI2MRzqUSON2xr+28Zwt1S+qJ/0=; b=Lv7SJuJjV14kXOdwHDTIyFD+wnjbupdt1Eh4+LGNuO1ifmRtnWkYxESQk61ylr1zmT mBa6AwccYKGKSELuOC6+914Uks0nyWUb+lJH3jB6OgT6SqCyLHRqI2eS+dtpXvzM1f8x avgrODbgCplGMD+h6XmGcVqToBLTpzg/TWmcNPiJe6MHLMEci9cVgipcw6z3zVlyJxV3 CKd3VZVB+mUYr5FxJ6VBso+vBTnSYGW7ItThpIVnmbwsa+/Wy1KTnlU/odIaMmZb1Tfh 89/GThzdZhF5U+sdox6UNW6Ol6iI8D/g7DeYokrckGWRkFN3V+Z3u5OskSNw+7gZM/it RELQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FywtFp7I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r24-20020a056402035800b0051e0bb6bc02si5298864edw.274.2023.07.12.05.57.50; Wed, 12 Jul 2023 05:58:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FywtFp7I; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231773AbjGLMaN (ORCPT + 99 others); Wed, 12 Jul 2023 08:30:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231765AbjGLMaL (ORCPT ); Wed, 12 Jul 2023 08:30:11 -0400 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33A1E9B for ; Wed, 12 Jul 2023 05:30:10 -0700 (PDT) Received: by mail-ed1-x532.google.com with SMTP id 4fb4d7f45d1cf-51e344efd75so1542468a12.1 for ; Wed, 12 Jul 2023 05:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689165008; x=1691757008; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=As5jovVz/stLB9HCpNmduJGzBJFBIZbh6f6RqqdbEgU=; b=FywtFp7I+uYfwVkjEUr6hIuKhYCX/lOI70IZ16WSmcisfLjfp9CqVlbuAjPivT97/p +i2j14ibDGIHhmVmUBWtu9zNpsdpkPR4iMDqs9qlGq3r4NnXChlqeh1TXXK562wMg+kk gVDJPSKt8fn1Aw4WiUndWEUX8HOfclhEowcRrAUdbzVcg6IjGDiVDCkRwPKBS5rRjfYE IXiBgQoaBkT+OPrQKqAY6qnIJeHMD63qxz0Zt3YNBsO8Iw+pnOR/K0Du9s2K/uAM2DY8 7nskj9lBRgyVUCXNQpQZ0NtL/noyrsRo1/CVrDq1Yc+H9ZIFdBY29OrWsr54tyqnPfzr 6pqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689165008; x=1691757008; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=As5jovVz/stLB9HCpNmduJGzBJFBIZbh6f6RqqdbEgU=; b=L59D4/tePAylzABeVi1grntTFZmdSSSmHmVkigXjy2n/tlY8I/0VcwoGwGE9YQxTxk KSGwk16M4uNdY8AjJd7YBH5iAc5o5IxFWrV5Q3fRjd9UjkgzdgZ90E53rc2LRSPgZZd8 HbWBn8cln6m+6O9YXoeRqrcbPNHSOgAsssg4XUWgKKbPUOMR/O0Q6N2vZN4dhQEuUn4X jSP+bWpHV5N11E6iL8Y+A8jhxi7Au/c7XNRcsDIgY6A9kqX13SrM3G80eN7TLCDOWrl/ qZcDXSVJmnRIbcp62dADnCNXwyLYHGcLZ7tCEqEXYLZNrFwa+/U2d9GAeQJvlplXiWem sAxA== X-Gm-Message-State: ABy/qLalmDXP3egDTrV8uJg19G1GBOL/+n2poCXv4Dn6U12GL96FePlL Gd/11ruc0Xm1EkeIgOu1AXMGKg== X-Received: by 2002:aa7:cd78:0:b0:51d:a2d9:85a3 with SMTP id ca24-20020aa7cd78000000b0051da2d985a3mr2463329edb.8.1689165008692; Wed, 12 Jul 2023 05:30:08 -0700 (PDT) Received: from [192.168.1.20] ([178.197.223.104]) by smtp.gmail.com with ESMTPSA id s17-20020a056402165100b0051dd19d6d6esm2732667edx.73.2023.07.12.05.30.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Jul 2023 05:30:08 -0700 (PDT) Message-ID: <0865b422-d587-c1c7-9463-510832ddddf4@linaro.org> Date: Wed, 12 Jul 2023 14:30:06 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH 3/3] dt-bindings: riscv: sifive: Add SiFive Private L2 cache controller Content-Language: en-US To: Eric Lin Cc: conor@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, dslin1010@gmail.com, Zong Li , vincent.chen@sifive.com, Greentime Hu , Palmer Dabbelt , Paul Walmsley References: <20230616063210.19063-1-eric.lin@sifive.com> <20230616063210.19063-4-eric.lin@sifive.com> <2437bda9-bbdb-ad80-7201-1e16e1388890@linaro.org> <8c9ed2d4-83ab-ecc0-a300-e6bc8e2047b6@linaro.org> <20230712110908.GA23216@hsinchu16> From: Krzysztof Kozlowski In-Reply-To: <20230712110908.GA23216@hsinchu16> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham 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 12/07/2023 13:09, Eric Lin wrote: > On Sat, Jul 01, 2023 at 10:22:25AM +0200, Krzysztof Kozlowski wrote: >> On 28/06/2023 18:31, Eric Lin wrote: >> >>>>>> >>>>>>> + - enum: >>>>>>> + - sifive,pL2Cache0 >>>>>>> + - sifive,pL2Cache1 >>>>>> >>>>>> What is "0" and "1" here? What do these compatibles represent? Why they >>>>>> do not have any SoC related part? >>>>> >>>>> The pL2Cache1 has minor changes in hardware, but it can use the same >>>>> pl2 cache driver. >>>> >>>> Then why aren't they compatible? >>>> >>> >>> The pL2Cache1 has removed some unused bits in the register compared to >>> pl2Cache0. >>> From the hardware perspective, they are not compatible but they can >>> share the same pl2 cache driver in software. >> >> So they are compatible... If they were not compatible, you wouldn't be >> able to use the same match in the driver. >> >>> Thus, we would like to keep both. It would be great if you can provide >>> some suggestions. Thanks. >> >> I propose to make them compatible, like every other piece of SoC. I >> don't see any benefit of having them separate. >> > > Hi Krzysztof, > > Sorry for the late reply. > The pl2 cache is our internal platform IP and is not part of any SoC. > > The reason why this driver is compatible with the hardware "pl2cache0" and hardware "pl2cache1" > is that it doesn't program the different parts of the config register > However, our internal software (e.g., bare-metal software) will program these different parts, > so it needs to rely on the different compatible string to identify the hardware. > > Additionally, we would like the compatible strings to reflect which hardware is being used Thanks. I don't understand how does it contradicts anything I said. So you do agree with me? Or what? Best regards, Krzysztof