Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3696184pxb; Mon, 24 Jan 2022 15:37:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwQnXpEM3JdkTARqLtMYmAxm4C/czJxsXJEiDtwxl60jXeY3C/YMBt5ocLRjTkEdMe36LaC X-Received: by 2002:a17:90b:714:: with SMTP id s20mr668944pjz.31.1643067452070; Mon, 24 Jan 2022 15:37:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067452; cv=none; d=google.com; s=arc-20160816; b=PfNVDwICGPnI2rq/kQfBsKxmZiVIglCtAIQf7tTWv7TmAMwM4wnIHSFBIPVIIlpGYK jNfyoVtswWDnip9LE0utW5mZjVk5QszE/Jc9MN2B3L+MGC9ZG8uD1/RzUSBi//G3UrJm VuqoOTtWwwuFOO0alC5q7g0IoRFJOI3yAPc/EY402Vm3Y5xpgub8i9tlRhmb44x8teE8 uT+oo14zm92sZvovoT5NglPwo3Xpg9pSn6k27JGk8AcyeLvDE7e3Vu08OWkou2mnyLCX TVAL8D/w/8i1GPsb6p8kUev7kJqvU1BMdpKPtVK29RflmnMODjtCNP3ThhjybPTPD9Ca UhTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=jEUscoyobA9meM8lWwrY3KayfI1hR38FZZgriOC6Qz8=; b=XNLxiuDzYIMj1FWyjz7l+JuuGASrVserghsrPEE7qqvQ32tSExG8EDWBtcKNNNP+hP DffuwPrXpGF5tRWotNW1D9dm2w/mXaUtLBcua4+8eR4fBDpIWdBV7MZNVdImOlB2032I J5TAOCQJbKH1BV1atwpDQGl5haqkhGL4VypbOgpV/owv/LPOT/Y7Oj4yD+071GPLuBeC aT/29E8hZKvTg1/3zwyvckAJTfVXZMm4XePJ3SXGL1Nz70gk/aUZSt72/O7CtjYghVQm WT3NYFt2Orzq/D898x9tZ58dL15FrztunImwAJeq8pgYmZwP4AvinJofUbTwsq59s/97 Oj9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jPZGN+Qb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k25si14246903pgl.206.2022.01.24.15.37.19; Mon, 24 Jan 2022 15:37:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jPZGN+Qb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2359538AbiAXXct (ORCPT + 99 others); Mon, 24 Jan 2022 18:32:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1382818AbiAXWjs (ORCPT ); Mon, 24 Jan 2022 17:39:48 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D962C055A8C; Mon, 24 Jan 2022 13:03:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E24C4611C8; Mon, 24 Jan 2022 21:03:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6783C340E5; Mon, 24 Jan 2022 21:03:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058220; bh=Dm1rBUKIAFcXxvuutpMut0aM2fwHRehNyKyaSmdh4gk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jPZGN+QbNie/GxxdVxZaWaBRlIEYzW0Z0erW1cAS29Mj99XJXOBC/9cvZv80K7R9/ ul4CfSXLf38YzfYED++vNZUnsQ06c+1SpwrQ2icDm/RyxA8Zb9f3+NG26AzG6a05/o OlsY2Uk3z7vJjvIklIH8I+PhvcWVfcD0AS4ONULY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peng Fan , Nishanth Menon , Pratyush Yadav , Vignesh Raghavendra , Sasha Levin Subject: [PATCH 5.16 0218/1039] arm64: dts: ti: k3-am642: Fix the L2 cache sets Date: Mon, 24 Jan 2022 19:33:27 +0100 Message-Id: <20220124184132.668442862@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nishanth Menon [ Upstream commit a27a93bf70045be54b594fa8482959ffb84166d7 ] A53's L2 cache[1] on AM642[2] is 256KB. A53's L2 is fixed line length of 64 bytes and 16-way set-associative cache structure. 256KB of L2 / 64 (line length) = 4096 ways 4096 ways / 16 = 256 sets Fix the l2 cache-sets. [1] https://developer.arm.com/documentation/ddi0500/j/Level-2-Memory-System/About-the-L2-memory-system?lang=en [2] https://www.ti.com/lit/pdf/spruim2 Fixes: 8abae9389bdb ("arm64: dts: ti: Add support for AM642 SoC") Reported-by: Peng Fan Signed-off-by: Nishanth Menon Reviewed-by: Pratyush Yadav Signed-off-by: Vignesh Raghavendra Link: https://lore.kernel.org/r/20211113043635.4296-1-nm@ti.com Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/ti/k3-am642.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/ti/k3-am642.dtsi b/arch/arm64/boot/dts/ti/k3-am642.dtsi index e2b397c884018..8a76f4821b11b 100644 --- a/arch/arm64/boot/dts/ti/k3-am642.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am642.dtsi @@ -60,6 +60,6 @@ cache-level = <2>; cache-size = <0x40000>; cache-line-size = <64>; - cache-sets = <512>; + cache-sets = <256>; }; }; -- 2.34.1