Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2465543rbb; Wed, 28 Feb 2024 02:42:42 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCW5rsP9+DCw3EgSmT+8Kz57pnGx+Iq8ZNWZozGcfJjh154KBpE5MjYYZkfPkq8NiZXj+T8Q5Yi1hmN4v4YhB4Wav/vM4wME71o9iurnrg== X-Google-Smtp-Source: AGHT+IFb2RmJr9OW08eAPaQIW7aG4hvo/Qif8lwkKO88Aaje8+4mGeJSg5T8+UBMt5ZmrxDiN1l8 X-Received: by 2002:ac8:7d50:0:b0:42e:7f5e:b645 with SMTP id h16-20020ac87d50000000b0042e7f5eb645mr10908875qtb.7.1709116962050; Wed, 28 Feb 2024 02:42:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709116962; cv=pass; d=google.com; s=arc-20160816; b=ApsTbtjvv7wxdj1g8dYWwiEqnAhlK4o1Y1bVQg1cwSXpmwyRo5YKOif+KbCMeIJ6hR Fg0tLZKOyNrFij+BS7jt0gkfsqtgy6amWvQDpIKI+OVXfEyS6DjXp40xz8yAzefA1idc NEw2MOYwbuAQgTFTARXfVQE5Ei1tZIPySsvZT1LlALPrw0oEIXENqp1MEw2TTku9D3SW 1bIQDCANZhnn0iteBjP4gxOWq66yFdsJnWuAlwDXJYJRor/gUHblTr7BaleW+gamW07R sM1pzEoFhRHLdpfv3NHBuI/XdAo6AYW5291cZX9lnwcWb491z2teoZnFSOc5V8Y18YtS fIsQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:message-id:references:in-reply-to:subject :cc:to:from:date:dkim-signature:mime-version:list-unsubscribe :list-subscribe:list-id:precedence; bh=PJcsp6UhNtSkpQqYGXeRXDOKtYxsPaRoMFG4CL1lZec=; fh=sECwSPxxlnFm9d25pX21HPmmyi93qC/+WqRx64BFG9o=; b=XOIIYEX10EmUzMogdM9mw3t6KsZ/baqYY39fjx5uztOE1xdwA+oS33fxzOvW+zFf0M K15KKFEnij8HFmSO+fExAWDAKpCG4dwSjoEzZOzT+ZEOfFIRjz1zFAkNkkr6/0XZUueC kPBaElcKMZpjGm03QWuGwyAXLXs14jbKhWPUrOJZdTkJJHImTTmd/zQN/G5Z/n1zIsn/ GvJ9b2lGAQlJmn07KGmw/sMC8OHFgMkxNfSCDz/m0aQAMjJdO5HMr+P9+3gJF/b5ZU1D ZgTdYgjBuKWV2qpSWItGfa4ODpvsOIIT7SFcsJ/cYV6yU3Y7yurFxEL95M6y2ewhMlct vGNw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=WNggj9gg; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-84836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id fq6-20020a056214258600b0068f44b782f9si9278548qvb.586.2024.02.28.02.42.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Feb 2024 02:42:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@manjaro.org header.s=2021 header.b=WNggj9gg; arc=pass (i=1 spf=pass spfdomain=manjaro.org dkim=pass dkdomain=manjaro.org dmarc=pass fromdomain=manjaro.org); spf=pass (google.com: domain of linux-kernel+bounces-84836-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84836-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=manjaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CA51E1C222B6 for ; Wed, 28 Feb 2024 10:42:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 974E31292D2; Wed, 28 Feb 2024 10:42:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b="WNggj9gg" Received: from mail.manjaro.org (mail.manjaro.org [116.203.91.91]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BA70A7E584; Wed, 28 Feb 2024 10:42:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=116.203.91.91 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709116953; cv=none; b=udUjIp+z8QUQygJ62Ft5CxXM7bYDiK1G7EG9/7TTQC7Hlf8oYfMGKJx/cRm6fLWNQughjTjYC0W8KYbdYA8prtt3GCp3gQLJEzpOx/EjYeL4a0MhWI0b63p1KUy6XORxzcNAjfX3YlrGIYFjmDLrl9skulca4fXzJEfsDXaSzow= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709116953; c=relaxed/simple; bh=PbHolSpfIrxNIopauDWoGliXxY0r9I/R9inLIaJeAXk=; h=MIME-Version:Date:From:To:Cc:Subject:In-Reply-To:References: Message-ID:Content-Type; b=KHreZcot0f6g24HHZ2Kj0ZhmwbczLlyFOULsr0LXPRDhdp6+U9xISzSsHPqW7G/yzbbgxsiGtsOFqPg8lfw3ziQ4ID4LrDGvvTEH9y4hp3TK/16T/ouIrZqVRFz0WGhG3kNhjwPDNPVi0wRp9X9tNEu7UGTfzeXsMrkPMGt4hD8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org; spf=pass smtp.mailfrom=manjaro.org; dkim=pass (2048-bit key) header.d=manjaro.org header.i=@manjaro.org header.b=WNggj9gg; arc=none smtp.client-ip=116.203.91.91 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=manjaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=manjaro.org Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=manjaro.org; s=2021; t=1709116946; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=PJcsp6UhNtSkpQqYGXeRXDOKtYxsPaRoMFG4CL1lZec=; b=WNggj9gg3Nxhhmd0F7ETUb0dhwUkP3bZXHMRov7lvQYH1/+3n1+mz0OGxw1pqr+ASmR3un ILzmd058Pjg3w5vRwU5+RKGHhwBKSOkX79WdccA2CV89OGwiPBQhQvPanzWXknQgg72mIG iuw56VdlfPxmGS2QVQsVLSqoPNpTnNZVk6nv1QvCBYHibyo/y4jadWj4rA4odIhmU949AL 05yrUm+mlv6EYI5O4+bd6yEI8kjYJTQ1Rtq4ykU6sK34pZURNHbqviPl9juf8m0EHkhlsy fkbCCPJkQN4lZ2a0oNxhL/LMfrhjIj4BrQJf6hlW6irt6CPn5WtiabzrbqSg3w== Date: Wed, 28 Feb 2024 11:42:25 +0100 From: Dragan Simic To: Anand Moon Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] arm64: dts: rockchip: Add cache information to the Rockchip RK3566 and RK3568 SoC In-Reply-To: <4676da62ec0fc0fe89318baea0678e0c@manjaro.org> References: <20240226182310.4032-1-linux.amoon@gmail.com> <8ceea100f2ef7cce296943ce1397161a@manjaro.org> <4676da62ec0fc0fe89318baea0678e0c@manjaro.org> Message-ID: <8eb17d05ff857d154169e62b1f04413f@manjaro.org> X-Sender: dsimic@manjaro.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Authentication-Results: ORIGINATING; auth=pass smtp.auth=dsimic@manjaro.org smtp.mailfrom=dsimic@manjaro.org Hello Anand, On 2024-02-27 15:58, Dragan Simic wrote: > On 2024-02-27 13:49, Anand Moon wrote: >> On Tue, 27 Feb 2024 at 00:39, Dragan Simic wrote: >>> On 2024-02-26 19:23, Anand Moon wrote: >>> > As per RK3568 Datasheet and TRM add missing cache information to >>> > the Rockchip RK3566 and RK3568 SoC. >>> > >>> > - Each Cortex-A55 core has 32KB of L1 instruction cache available and >>> > 32KB of L1 data cache available with ECC. >>> > - Along with 512KB Unified L3 cache with ECC. >>> > >>> > With adding instruction cache and data cache and a write buffer to >>> > reduce the effect of main memory bandwidth and latency on data >>> > access performance. >>> > >>> > Signed-off-by: Anand Moon >>> >>> I was about to send my own patch that adds the same missing cache >>> information, so please allow me to describe the proposed way to move >>> forward. >>> >>> The way I see it, your commit summary and description need a rather >>> complete rewrite, to be more readable, more accurate, and to avoid >>> including an irrelevant (and slightly misleading) description of the >>> general role of caches. >>> >>> Also, the changes to the dtsi file would benefit from small touch-ups >>> here and there, for improved consistency, etc. >>> >>> With all that in mind, I propose that you withdraw your patch and let >>> me send my patch that will addresses all these issues, of course with >>> a proper tag that lists you as a co-developer. I think that would >>> save us a fair amount of time going back and forth. >>> >>> I hope you agree. >> >> I have no issue with this,.If you have a better version plz share >> this. > > Thank you, I'll send my patch within the next couple of days. Here's a brief update... Basically, not all of the cache-size values found in your patch were correct, but I've got all of them calculated again, double-checked, and cross-compared with the way values in my earlier patch for the RK3399 SoC dtsi were calculated. [2] It all checked out just fine. It's all based on the RK3566 and RK3568 SoC datasheets and a couple of ARM specifications, which I'll describe in detail in my patch description. I'll send the patch after I test it a bit, to make sure it all works as expected. [1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b72633ba5cfa932405832de25d0f0a11716903b4