Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2610692rwb; Mon, 7 Nov 2022 15:42:01 -0800 (PST) X-Google-Smtp-Source: AMsMyM5x6pFgryppPDI35vwXsnM2k7PEQl+eki4GbRTUoz8HNmZXmOUfBn0GVp+ma2ty9uTO4WNS X-Received: by 2002:a05:6402:5248:b0:461:f0fa:864e with SMTP id t8-20020a056402524800b00461f0fa864emr51352160edd.81.1667864521136; Mon, 07 Nov 2022 15:42:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667864521; cv=none; d=google.com; s=arc-20160816; b=lrz+gSOyRPZ2za3MFtVRNzX9MWxXxtbpAZRwiFEt0uPWWQ00qkn1lA5Z8TtngGaq9l b7zLzVxbZpr7M7E8R/xMtLNoO2dIcaEeagVKAzpuu04dJGMY/z3lp4W1nEukE9BQSL6a l/QcjnTvrKKVYeTrXzr9OXIkmnB1cjPOZjIxxC9IhuUPTIkQrGd/EdWg6vMcwb2uFlzJ 1Wx3atUAxnuP8imhsHwRfd5heVZltP79++5hUeZar20hjJKma1Ab6w5Y/Xv1vTzdXRXk BNJ09PJPFNQGJ5R22/+ZpoEM7COWq6MRB9+ZEjyr7AgwjWYEr8PTm6GnlcZsupFVfeeA NFsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=YsY32S3Ci2xQSLvyGjHjsxCXhkDvmP8cF1HLMu57Vb8=; b=CtY2u+iMhGIyku2yFsiJd3bMLa8p++N+zEvgwBtMKrdsRW3x6lSIN5hm58y84YXdja 4eUjLmw33Jq7UQ3nOwglu5jc0ktJhpZFnphakKWE1gPn4VGikxbKMDNehWu5yQxVeVsD 7WhCfLspM2+w+ZhAcM1NvBKT/wDALBfgrV4SAxWYD93/NfXIo6gc4qJ0CSut5rAtvUJI 7PQ1xk8j+gmPeOQQbxlEki1k1vFVd9iDzVKiAsJoloSSU65WlI8EKuCeHhFRv8uYcQPJ e83jHNXFu+Uczzpq9ADX7olL4gOrT3+04euNGX8nV6l5cXCIZKsuw0k/Qm8fWpy9vnaD rjxg== ARC-Authentication-Results: i=1; mx.google.com; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i16-20020a05640200d000b0045bf7253827si9511061edu.67.2022.11.07.15.41.36; Mon, 07 Nov 2022 15:42:01 -0800 (PST) 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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232919AbiKGXMA (ORCPT + 92 others); Mon, 7 Nov 2022 18:12:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232619AbiKGXLy (ORCPT ); Mon, 7 Nov 2022 18:11:54 -0500 Received: from mail-oa1-f43.google.com (mail-oa1-f43.google.com [209.85.160.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98B6724BF2; Mon, 7 Nov 2022 15:11:53 -0800 (PST) Received: by mail-oa1-f43.google.com with SMTP id 586e51a60fabf-13b23e29e36so14438538fac.8; Mon, 07 Nov 2022 15:11:53 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YsY32S3Ci2xQSLvyGjHjsxCXhkDvmP8cF1HLMu57Vb8=; b=CgSj+1WwbPpZhIVVZgNW9nrkptDgRV/GzCWx20zQzgiDHSDFWJOO8YWrBYrqqarYSk LdnuGo41PU2SgNI+k4/WV1xluxkDRiujnft1nmxQiXc/sxSOCNMzB0bU/lyRfucXL7Mv kmqP4/RAQqNtMMWb+1y8PD1w8tXPdd42+tY464u+enbRjShWveV4sPL+QWmbenEhIslG kSJYQubsTLxBBoUHLQ6QqeF3tngiuVyNVSY1vIGxoxHr6XgImsojhjkDU7XnsYqYYlPJ rDSYL37exOjQmIZuCECMLq8z+5x9drE8xATwkM2sza0IoWt7MYcw+0M/EEw3/68MaK5y Auuw== X-Gm-Message-State: ACrzQf0arPMJqQ+VaYxwaAmzW77QoBMz6k8NHw+hJdWcM/8TCoqLBkUu HPCizLcIOgz1jTNC87o2+A== X-Received: by 2002:a05:6870:58a4:b0:11c:9b6d:f066 with SMTP id be36-20020a05687058a400b0011c9b6df066mr31211751oab.155.1667862712788; Mon, 07 Nov 2022 15:11:52 -0800 (PST) Received: from robh_at_kernel.org (66-90-144-107.dyn.grandenetworks.net. [66.90.144.107]) by smtp.gmail.com with ESMTPSA id i13-20020a056870890d00b0013b09a56d59sm3774129oao.27.2022.11.07.15.11.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 15:11:52 -0800 (PST) Received: (nullmailer pid 1834437 invoked by uid 1000); Mon, 07 Nov 2022 23:11:52 -0000 Date: Mon, 7 Nov 2022 17:11:52 -0600 From: Rob Herring To: Pierre Gondois Cc: linux-kernel@vger.kernel.org, Krzysztof Kozlowski , Florian Fainelli , Scott Branden , Tsahee Zidenberg , Antoine Tenart , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , Sudeep Holla , Lorenzo Pieralisi , =?UTF-8?B?UmFmYcWCIE1pxYJlY2tp?= , Alim Akhtar , Shawn Guo , Sascha Hauer , =?UTF-8?Q?Andreas_F=C3=A4rber?= , Matthias Brugger , Wei Xu , Chanho Min , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth , Lars Povlsen , Steen Hegelund , Daniel Machon , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Thierry Reding , Bjorn Andersson , Konrad Dybcio , Geert Uytterhoeven , Magnus Damm , Heiko Stuebner , Kunihiko Hayashi , Masami Hiramatsu , Jisheng Zhang , Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Peng Fan , Lucas Stach , Adam Ford , Tim Harvey , Richard Zhu , Joakim Zhang , Markus Niebel , Marek Vasut , Laurent Pinchart , Alexander Stein , Paul Elder , David Heidelberg , Oliver Graute , Liu Ying , Jacky Bai , Chris Packham , Vidya Sagar , Johan Jonker , Ezequiel Garcia , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 00/23] Update cache properties for arm64 DTS Message-ID: <20221107231152.GB1779129-robh@kernel.org> References: <20221107155825.1644604-1-pierre.gondois@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221107155825.1644604-1-pierre.gondois@arm.com> X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS 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 Mon, Nov 07, 2022 at 04:56:53PM +0100, Pierre Gondois wrote: > v2: > - Update/Add patches for missed cache properties requiring to be > updated for the following platforns: bcm, amazon, arm, exynos, > freescale, marvell, mediatek, nvidia, socinext, tesla, ti. > Missed cache properties were detected using Rob Herring's branch: > https://github.com/robherring/dt-schema/tree/cache-rework > - v1 of exynos, tesla were merged. > - Updated wrong reference in commit message. > - Added received Rb/Acked-by. > > Align arm64 DTS to the DeviceTree specification v0.3 regarding > cache properties. The patch-set mainly adds 'cache-level' or > 'cache' compatibility properties. > For one qcom DTS, level 1 cache nodes are removed as they should > be in the cpu nodes. > > On another node, it seems that the 'cache-unified' is under-used. > cache-unified: > If present, specifies the cache has a unified or- > ganization. If not present, specifies that the > cache has a Harvard architecture with separate > caches for instructions and data. > Only a few l2 cache nodes have this property, and in the absence > of [|d|i]-cache-size properties (or other), the cache is assumed to be > split. > > The l2 cache of the Rockchip RK3308 platform is thus assumed to be > split: > l2: l2-cache { > compatible = "cache"; > cache-level = <2>; > }; > when the platform datasheet advertises a unified cache. > > No modification/check was made to correct that due to the lack of > cache information for most platforms. I suppose in theory a split L2 is possible, but I think in practice that doesn't exist. The Arm ARM allows for such a thing, but this[1] says L2 caches are unified. IMO, we should just define level 2+ is unified in the schema and we can relax that if ever needed. I've updated the cache schema branch[2] with that requirement. Rob [1] https://developer.arm.com/documentation/den0024/a/Caches/Cache-terminology [2] https://github.com/robherring/dt-schema/tree/cache-rework