Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3977189pxb; Tue, 25 Jan 2022 00:28:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWliYv7lo3cItuIULAOTUyXjI2N2wvifUlSemErTbp8ohnKF7thcPyeP4kCedis/G3H/3g X-Received: by 2002:a17:902:ce8d:b0:14b:4bc6:e81 with SMTP id f13-20020a170902ce8d00b0014b4bc60e81mr8608858plg.132.1643099288315; Tue, 25 Jan 2022 00:28:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099288; cv=none; d=google.com; s=arc-20160816; b=oc6eFsqHyzU+oUzcsYkuNkVbKmZv3SNmDb0VDweqY8o8V+aNMhT2msxirFmLAl3Jts pswjcUhoWkh7/HCJkKhky0LYYCgn81kveTzpiDQW6DG0Y8utQELeGVHHQKhbkIqCpm1F AvrXZEmCAAdFPzrRurcCmNq0hruk1axOLeqErDQ18ouh0KUqxwFBezWQOVZxSmx7x3K+ 3VyC72sgsS/MaBzSNbDajASnZe7WG8sOxKZ54ueT7xCkRiw0IzBwFAjWMSVfQZCnO/qC 37Ahbi8xuulyQFd74Bij6fcI4jtOxbnCRbiCpCijWM5s/raaJb8ll0T1XAzeSoRQ0i4z /cDw== 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=XgsbUf3GJ9O4T5+S3cAvBZg3Hktlu9W5LvLyjTm3KI0=; b=FP71+A8+kAWNZEK6sEq++9YIlgoZIBIBBG/1/vd6wRzKO3UGqeYph8vQQ9uhaDkIQo TUyGKEKDTF2+NnWnWWfHrU0/sNYpc2zg8ihl1LhYtKwuAq9fISdGEwuAgw8NCEoqkFSq UlLfiFe+Kcx7ryrYJ8LVKYomUJHyJD06kagEhoVPw4QquTE+YSPZuJqmPhOGo3y1sY1p 06i8Yeos6MoPVrjyw6YQbQB/hogOi0LYBj0m4wMC1wrhM51nc6Bj4PSWjwGkY/V0c4p5 QDI15lV+Y4Nikk1ZIhqzXO0E+1vZt2Mr7uwAM8HWgLqCl1onHNiKQwP03JgMGe3bH/UB Lv1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=LIFAt5lY; 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 t78si7657019pfc.214.2022.01.25.00.27.56; Tue, 25 Jan 2022 00:28:08 -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=LIFAt5lY; 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 S3422758AbiAYCcF (ORCPT + 99 others); Mon, 24 Jan 2022 21:32:05 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:59238 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380589AbiAXUVC (ORCPT ); Mon, 24 Jan 2022 15:21:02 -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 ams.source.kernel.org (Postfix) with ESMTPS id 3D13DB81249; Mon, 24 Jan 2022 20:20:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F375C340E5; Mon, 24 Jan 2022 20:20:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055653; bh=xjp7WWQ9oczjqPRlsPvPYzsUhMd43lMLHP3xvU8tHrk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LIFAt5lYQI9du7MIegTQzX4VlwRCCJhWXcd0j0kMKiZCJ7jyUXOdj9XdwI2DaD2iY 91c4e5luQ0q8BHzP2mIEnf2GyJF+XQl3gmbfTEfHKKRWu7s/RmE7Rgwp6cAUmfQbfR b4FoZ3eI1haRIB6XUz+mtsphHgeWM2Tcg0L1MNa8= 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 188/846] arm64: dts: ti: k3-j7200: Fix the L2 cache sets Date: Mon, 24 Jan 2022 19:35:05 +0100 Message-Id: <20220124184107.450605487@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 d0c826106f3fc11ff97285102b576b65576654ae ] A72's L2 cache[1] on J7200[2] is 1MB. A72's L2 is fixed line length of 64 bytes and 16-way set-associative cache structure. 1MB of L2 / 64 (line length) = 16384 ways 16384 ways / 16 = 1024 sets Fix the l2 cache-sets. [1] https://developer.arm.com/documentation/100095/0003/Level-2-Memory-System/About-the-L2-memory-system [2] https://www.ti.com/lit/pdf/spruiu1 Fixes: d361ed88455f ("arm64: dts: ti: Add support for J7200 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/20211113043638.4358-1-nm@ti.com Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/ti/k3-j7200.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/ti/k3-j7200.dtsi b/arch/arm64/boot/dts/ti/k3-j7200.dtsi index b7005b8031495..df86c36c21134 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200.dtsi @@ -84,7 +84,7 @@ cache-level = <2>; cache-size = <0x100000>; cache-line-size = <64>; - cache-sets = <2048>; + cache-sets = <1024>; next-level-cache = <&msmc_l3>; }; -- 2.34.1