Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp3090494rdb; Tue, 6 Feb 2024 07:02:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEMR2aH4HeymolQW0jOqqKjMu8RIECLYLkDnok31htNedfMCtzaxTM6SJttycpsxnVDw7vd X-Received: by 2002:ad4:5bc9:0:b0:68c:50cf:9e1a with SMTP id t9-20020ad45bc9000000b0068c50cf9e1amr3502097qvt.33.1707231721309; Tue, 06 Feb 2024 07:02:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707231721; cv=pass; d=google.com; s=arc-20160816; b=NGA9kxWeTO13iZ5SW/ue9e243C36+fNM1S0GeHMKrOsOgRmKFHj7zufi1HtKCcXHo7 HnD1i6NgHxGhReuV8NwgyDSKq4cpCZ/ruzFQpAhIlNtPdLDj4ukiwyKR3Ads1yHarKKs qjYB4CeyzOpYmeKEKcJuPYFuyyS+EiWZ0O6b7FG8eq8Khpm8rYx/n6kt8Icjtck5sMfe 2dqTVelgcJYXGIhak8J2MLmKFvFGypRtcMFKpmM9ISSgs01AL7owI9ubPXnL0732bHvi boYUw3pNiGjRNjRGwaa2ArM3ejLmm7GG2zfmoUVINjj2kwQoiypB6LnhaAA4Co2NkKzs /1Pg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :date:message-id:dkim-signature; bh=H5VTIWx1HaIAdr3e5cTrSgnK2i49qOmVvjnmS+SpRKA=; fh=aXWca8Y8ze+weXQb9tAshTiMRred2YEedvErDuw5rq4=; b=JDVREOrSQjchQULIV1GIFyuwQhHg6lHlGLeV+r9Pi2Eb0HMk9KresTmtpMmc0BNvaD yfg6bbBeP9nzIH69+uyQIDNCar69CSxuwlfwis9wwRQzKUNAa17TWrGkNq7GVzqkuVF0 t0DSwlW4XTCk01GyClhGPqE02/R+i3KAXBzrstfw7NaZSrTGuhUCILJfS6XmaeNpHvR2 YDgk/PA+pSydtDC3aKl/kT/GDlCiJTtipkTCftgqWvn1VcUhgsC26ogujaR3Qy0igveo igtYD4E7HDeKMTSeuW5jlDFHxbmisI/rqLzUh+9WDlGi0905lx2l1tEYlo8pEo8P6XeX XtHw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rk2AbLp3; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55166-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55166-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCXg2RkpvlgRjeowucK54og/jn/k1l7ngzjYdPJ8GTJhz7Hr/JAdlRkHFbnPx7Xk7nhW0KzniwxS6E0WmH2Q1p05rzSUW1AITC0tfZDA9Q== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id ge8-20020a05621427c800b006818b5647f0si2825520qvb.552.2024.02.06.07.02.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 07:02:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-55166-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rk2AbLp3; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-55166-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-55166-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 04FEB1C20DF6 for ; Tue, 6 Feb 2024 15:02:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EDEC132C03; Tue, 6 Feb 2024 15:01:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="rk2AbLp3" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4CFEF1C01 for ; Tue, 6 Feb 2024 15:01:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707231714; cv=none; b=tF84c0nsLl60C+0pSuCHJqgop1VtxlcTo4D8KMG6YaIayMvLk2nc/3Z9uNkpbwwlJ8Qt7Uz12IeA7HQhhRwASsmVz+E2W2rruBsDCGzaeO02tzSKhaSwMyGlbQUX2fTBMet2vJoeNFBEQpX828yZOSjFaxJ0VZP8dhGmlvuwVwk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707231714; c=relaxed/simple; bh=TYC/0PN7dyAQUY7ANrlgVR8E3zVgjVs4FVpdLSKg4Fw=; h=Message-ID:Date:MIME-Version:From:Subject:To:Cc:References: In-Reply-To:Content-Type; b=WTE86pHkSgXh2lQ64pCaa6PGhD56P13dZrMwb00YzXE3JLbKhjKz/tHs9R8ZOYdzPO3ucaN7d9j8cVYF8Ikjo+W3h+bexpRO0tk/8BCVx/7QWp8xqAaUcBlJY0E6pJVE/RJwg/aRAyAb35brQKx7wK1d5Yyf7WDj3xflk1196/Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=rk2AbLp3; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-33b4b0a3bddso141687f8f.2 for ; Tue, 06 Feb 2024 07:01:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707231710; x=1707836510; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=H5VTIWx1HaIAdr3e5cTrSgnK2i49qOmVvjnmS+SpRKA=; b=rk2AbLp3s1dTeHlR4huuJf4rlRMfkwbKercFoSMyoKENLs08vEXEH8DsgSmAkE2ZOI zPZQgCQJ05ZXisorZRbXWFhft6KFSg7v2rhBjKnE3gTJoQTvcSxVGewdZmB02GJqtmRg ZVS58LzPSm5i7Evn93CIB3TboPAQkpjW8B3WgfV8xnYZMvRMZrvDo3Nay8yi5UmT1nXg JAgJpVflQUeaKHLYj3bxiSp5P9is7Yn2zGE/jNykJ8dT9Rq0L8sP9IDp4QkHlvbKrilb bvcTF0Zi5nq+JKwaTDoLs+UuLRQbynJ+nzIPV7y9q7x0crE531KZRanO0eg5DJEHGPYX Bx+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707231710; x=1707836510; h=content-transfer-encoding:in-reply-to:organization:autocrypt :references:cc:to:content-language:subject:reply-to:from:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=H5VTIWx1HaIAdr3e5cTrSgnK2i49qOmVvjnmS+SpRKA=; b=G180G3Mt0lU/FHvYHdMwoz09RrBjxpWepYILw5iRubTf32gAl4TNSeEhFP57da4oto bcmoMZsohFb84WCO39SWoG2oquuBuFJ471dNYYSOPuwWAJ1P+jbj61Avgt4ciwYCJjyE xWNfvWHzV2bCcreIbb8QVdTIs6bnVDcEFQiEcCAAg41chA3Z+sydjCns2E+YqR4DJksk C6xQLVlvrnt3IE7jftNuHtCizdc1MjhkETnHq0SQuHu/jxI+ZnvdruFfK59vJNu18R/T RoZ7kdXN2h/LSvs/Q61OrZz8OD0uiVTNcNT5CHu1lRO1R77dIqSelQSKfR6LHbzeiZhs oxRQ== X-Gm-Message-State: AOJu0Yy0rYCsKqDz7uh8LxmtrVtYZykpdfkXEnGStQtu1HSC1UbMzRyp BDVwRCkIPDgxEenKS9Eho2MUIubfReTbLMbpWVO+J0lNH3Wtw/PEMIYMC8w5bZI= X-Received: by 2002:a05:6000:81:b0:33b:4ac8:b99c with SMTP id m1-20020a056000008100b0033b4ac8b99cmr411104wrx.1.1707231708961; Tue, 06 Feb 2024 07:01:48 -0800 (PST) X-Forwarded-Encrypted: i=0; AJvYcCVUkdMHZCCNuOykxelokr3qQYi4y0Ie66lNO1Ifb0g92zYIagZRERVeeum+2FedcVbW56Gd56106bwKOu1EJj+DAOSdHYWn1cRiDXzshHmgqOYgLEP+euBmc05nxD/jUAJHC2kvJMIWwRnT1EgW99LSySBmDhxF/gzyYj6sqDloFr9LhzEXHMxcPbUVqU8vmBKJWKP6OhpkKTUuzSdRT6PARSpshprzzK/cysYJOVyclrPsNKZF1Idpcz79I7TDEDRuFxX5+SBw9laKDi1xnG7x1b9X4B58Aqyct/qOcVsc0iBItWBsB8BFU3tQSus0W6Lo2ATEuzvX+1HTQwnNCuQblBKAVQJRMAqnrQ6wZjA38R/4xCOhOt/gNTL1SUP+yz547X7fQUJsLkY9j0wNR1UBdOx13km3A4tZ Received: from ?IPV6:2a01:e0a:982:cbb0:ba23:8574:fa8:28dd? ([2a01:e0a:982:cbb0:ba23:8574:fa8:28dd]) by smtp.gmail.com with ESMTPSA id t6-20020a5d5346000000b0033b15fdad42sm2319994wrv.34.2024.02.06.07.01.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Feb 2024 07:01:48 -0800 (PST) Message-ID: Date: Tue, 6 Feb 2024 16:01:45 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird From: neil.armstrong@linaro.org Reply-To: neil.armstrong@linaro.org Subject: Re: [PATCHv1 4/5] arm64: dts: amlogic: Add cache information to the Amlogic S922X SoC Content-Language: en-US, fr To: Anand Moon Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org References: <20240205171930.968-1-linux.amoon@gmail.com> <20240205171930.968-5-linux.amoon@gmail.com> Autocrypt: addr=neil.armstrong@linaro.org; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ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8//rVvtOFK4OD8cRYkxXRQmTvqa3 3eDIHu/zr1HMKErm+2SD6PO9umRef8V82o2oaCLvf4WeIssFjwB0b6a12opuRP7yo3E3gTCS KmbUuLv1CtxKQF+fUV1cVaTPMyT25Od+RC1K+iOR0F54oUJvJeq7fUzbn/KdlhA8XPGzwGRy 4zcsPWvwnXgfe5tk680fEKZVwOZKIEuJC3v+/yZpQzDvGYJvbyix0lHnrCzq43WefRHI5XTT QbM0WUIBIcGmq38+OgUsMYu4NzLu7uZFAcmp6h8g Organization: Linaro Developer Services In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 06/02/2024 11:15, Anand Moon wrote: > Hi Neil, > > On Tue, 6 Feb 2024 at 14:30, Neil Armstrong wrote: >> >> On 05/02/2024 18:19, Anand Moon wrote: >>> As per S922X datasheet add missing cache information to the Amlogic >>> S922X SoC. >>> >>> - Each Cortex-A53 core has 32 KB of instruction cache and >>> 32 KB of L1 data cache available. >>> - Each Cortex-A73 core has 64 KB of L1 instruction cache and >>> 64 KB of L1 data cache available. >>> - The little (A53) cluster has 512 KB of unified L2 cache available. >>> - The big (A73) cluster has 1 MB of unified L2 cache available. >> >> Datasheet says: >> The quad core Cortex™-A73 processor is paired with A53 processor in a big.Little configuration, with each >> core has L1 instruction and data chaches, together with a single shared L2 unified cache with A53 >> > Ok, > > Since all the Cortex™-A73 and Cortex™-A53 share some improvements in > the architecture with some improvements in cache features > hence I update the changes accordingly. > Also, I checked this in the ARM documentation earlier on this. I don't understand, Amlogic states it's a shared L2 cache, but you trust the ARM documentation instead ??? > >> And there's no indication of the L1 or L2 cache sizes. > > What I feel is in general all the Cortex™-A73 and Cortex™-A53 supports > L1 and L2 cache size since it is part of the core features. > but I opted for these size values from a Wikipedia article. > > On my Odroid N2+, I observe the following. > > I have also done some testing on the stress-ng to verify this. Ok I don't feel confident adding numbers that comes out of thin air, and even more since they are only shared to userspace. I think we should only add the numbers which are 100% sure > > alarm@archl-on2:~$ lscpu > Architecture: aarch64 > CPU op-mode(s): 32-bit, 64-bit > Byte Order: Little Endian > CPU(s): 6 > On-line CPU(s) list: 0-5 > Vendor ID: ARM > Model name: Cortex-A53 > Model: 4 > Thread(s) per core: 1 > Core(s) per socket: 2 > Socket(s): 1 > Stepping: r0p4 > CPU(s) scaling MHz: 100% > CPU max MHz: 1800.0000 > CPU min MHz: 1000.0000 > BogoMIPS: 48.00 > Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid > Model name: Cortex-A73 > Model: 2 > Thread(s) per core: 1 > Core(s) per socket: 4 > Socket(s): 1 > Stepping: r0p2 > CPU(s) scaling MHz: 63% > CPU max MHz: 2208.0000 > CPU min MHz: 1000.0000 > BogoMIPS: 48.00 > Flags: fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid > Caches (sum of all): > L1d: 320 KiB (6 instances) > L1i: 320 KiB (6 instances) > L2: 1.5 MiB (2 instances) > NUMA: > NUMA node(s): 1 > NUMA node0 CPU(s): 0-5 > Vulnerabilities: > Gather data sampling: Not affected > Itlb multihit: Not affected > L1tf: Not affected > Mds: Not affected > Meltdown: Not affected > Mmio stale data: Not affected > Retbleed: Not affected > Spec rstack overflow: Not affected > Spec store bypass: Vulnerable > Spectre v1: Mitigation; __user pointer sanitization > Spectre v2: Vulnerable > Srbds: Not affected > Tsx async abort: Not affected > alarm@archl-on2:~$ > > alarm@archl-on2:~$ lstopo-no-graphics > Machine (3659MB total) > Package L#0 > NUMANode L#0 (P#0 3659MB) > L2 L#0 (512KB) > L1d L#0 (32KB) + L1i L#0 (32KB) + Core L#0 + PU L#0 (P#0) > L1d L#1 (32KB) + L1i L#1 (32KB) + Core L#1 + PU L#1 (P#1) > L2 L#1 (1024KB) > L1d L#2 (64KB) + L1i L#2 (64KB) + Core L#2 + PU L#2 (P#2) > L1d L#3 (64KB) + L1i L#3 (64KB) + Core L#3 + PU L#3 (P#3) > L1d L#4 (64KB) + L1i L#4 (64KB) + Core L#4 + PU L#4 (P#4) > L1d L#5 (64KB) + L1i L#5 (64KB) + Core L#5 + PU L#5 (P#5) > Block "mmcblk1boot0" > Block "mmcblk1boot1" > Block "mmcblk1" > Net "eth0" This looks pretty, but let's keep exporting verified data. > > > >> Neil >> > > Thanks > -Anand