Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3601099pxb; Mon, 24 Jan 2022 13:14:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBUMqHc263t0bI5mlJPJ3+8pB7OeqI6ascLo1mf7Yx420oEPBEVT5+iQAM2BcLABosKxlP X-Received: by 2002:aa7:928e:0:b0:4ba:fa67:d87 with SMTP id j14-20020aa7928e000000b004bafa670d87mr15417449pfa.41.1643058878337; Mon, 24 Jan 2022 13:14:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643058878; cv=none; d=google.com; s=arc-20160816; b=DVfhwfqaU/8KUqWw43dNwyWooL1JJ3i5yK46zXHCqO9o717OrPGhKFTyJ+i3VG/s84 uX9TwDk1+DQtt/wfC2duwq4gf+dsjSkZkoNzgPZVAagPjQl4Vv3JKrfOfR4NiQRJnX/e C0DCfrkFWFSJtd9OmYH90PwRf6bP9tg2WnrQJaNKRs0m3dCC+vncyZCpWAqfwY/2UPsi SVsxswTqTVHidRSV3wTMjb6SvOu3f+egqf6fl2i4EmiqTbcxJRnD77iTjrqJ7TEjdKeW AQgh3y9NuQmwhfbvtYeBMh/zg2F1fb59Eb6lJBM9QVSxcI4kOxm2MdhekF5V7xn4nz4O Xj9w== 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=KTCUzL8uw/pnPg03D01IqN2vTvYuqKUeREyirtfi86JyOQpe/uc1sC7t0Qk7Ck1iqK F6+7xOvR8C2GHGos1Eszcqlb6cmFKePxBhbMqcl21XRk3Cl0X7bPTwvh8UIK4mQ3kXJx i1LKB+afJ3jOvPWbynoMguaH4aP4nR8DNRqfdUtJ+eY/i8zzKrdacxJ2wfYq5Su9kgue CIG9L6Ei6P8Tea330wyREqY++A7TvnD1SmIdpIU5FvNDJKN4YM3XCkDF8f9inrfEPm7J j8qxJsIU6OeoXxL2vqFkcYKkvWth7HxBaBKVSj5TipXjIBE9WIUKG80eClftPsrEqxgv 6k+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=dUCtx2Xw; 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 lr17si489957pjb.102.2022.01.24.13.14.23; Mon, 24 Jan 2022 13:14:38 -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=dUCtx2Xw; 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 S1389413AbiAXUkw (ORCPT + 99 others); Mon, 24 Jan 2022 15:40:52 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:45116 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348294AbiAXUUu (ORCPT ); Mon, 24 Jan 2022 15:20:50 -0500 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 8DDD261008; Mon, 24 Jan 2022 20:20:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 621C1C340E5; Mon, 24 Jan 2022 20:20:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055650; bh=Dm1rBUKIAFcXxvuutpMut0aM2fwHRehNyKyaSmdh4gk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dUCtx2XwiniposdNcLbwkjaSZF5jPl1ECr84iLZ8ptKgB/qfQWKorOQThvhxVzKxC HfQJ42xw0FxrWZr+zTYs3yrM+yUXPeJBE2UKWnKUWadZkN1enyGwoetGvrSXXWJuS8 d2xNRhPiN5wuh8sB247WVgcUI9c+/pbNi4blmjRg= 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.15 187/846] arm64: dts: ti: k3-am642: Fix the L2 cache sets Date: Mon, 24 Jan 2022 19:35:04 +0100 Message-Id: <20220124184107.421130003@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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