Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3589270pxb; Mon, 24 Jan 2022 12:58:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwz1lJwJqQ+/DAqxbGOV4jdtiiOOdphpebSXV611B7wYUM9KuepxujDJFlnIGqjVSAwCPZS X-Received: by 2002:a17:902:d2cb:b0:14b:6611:4c6b with SMTP id n11-20020a170902d2cb00b0014b66114c6bmr2679035plc.7.1643057890706; Mon, 24 Jan 2022 12:58:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643057890; cv=none; d=google.com; s=arc-20160816; b=WXIQka/GJVdtPmqFxedNvhVkjwAMmbgxs/mXpAixf8UmWrrkNq17R2uln2j888++HB f0eDBLp7aYps/KlZd1pbGIfiv7Xyh8yZmPWvIEYwKuG9DmopKDUHMvRnw7I91OYluvLM 3dAVrmgB3nvpu62sYi26HZjlytEXfA0XrgXsYu6kIMpCIFg/5NiPcHbMfhiVRjqAzxoz lHm+F2quaoKCCLKr2/fs5Xe8GWfBU1cLUAX7ggHBWh4jUR9EugDS9mtBnl9dykrENZXb X2Of6QrPQ+N5OiH4WBZq8AOaig/SOMk1r2MaJsDz2Zvp8iU1kEK5suCsjCk1WAKjsUFN Pjig== 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=ZIcuJAgPHIkjX2fPONJpem+ghob2aNYxWnqgg2pxAiA=; b=Je9xzGbQGlJaaAdmAcc/U4WhzYjOm/WgouTCNA04utyoQmRegKgzXVnfobymHc72XD m3Y5zCtWt3klgfU4gQc+gIT1KMafsoaT42okhIGGoGMAAlYrHSn/qQJw+fyOQ1vX+xuy Sf9W1UzKrbmKhfLs0kIOdLYyr8zFDs7zeiCGln9K4+5sO8Z7XfJdKwAD5uaaxS/udF2I W79SW8Ok2VsH8TjffXjKwFlv3G4X2EE3KIs3NaNiEY28lJ3vwFSYxIKLtGn14F8yrHUs n9qujOrSPY3VBR9wuSrfbQzmi380YmDBlZ6Ovmb0Odml/gVo7CREMqhtdxkGlOSEAaJy VXYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="zGOH3KS/"; 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 d9si662245pfu.143.2022.01.24.12.57.58; Mon, 24 Jan 2022 12:58:10 -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="zGOH3KS/"; 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 S239865AbiAXUU5 (ORCPT + 99 others); Mon, 24 Jan 2022 15:20:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60548 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354592AbiAXUDK (ORCPT ); Mon, 24 Jan 2022 15:03:10 -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 21817C0680A1; Mon, 24 Jan 2022 11:29:16 -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 B475E6121F; Mon, 24 Jan 2022 19:29:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6FC1AC340E5; Mon, 24 Jan 2022 19:29:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052555; bh=Io6GojHjOIH5iEGY0sX45+CZjrtUYNzXyKuwv4OimYI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zGOH3KS/iO5ybjej1z6bKqm0+LEBRkqAYZhOeKVkuZmtyJrsPi9WcJfw6hJkWsyop O7o285oy82OzB92UrSq4FgY2JfgQpG9Ni2P6D6W/ncPOa+ODC7isVuRWTbZceHYzkQ Lx9nrDL2jA9WaM5uUK3+47X+5t6tOT6C98bQ+eyU= 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.4 065/320] arm64: dts: ti: k3-j721e: Fix the L2 cache sets Date: Mon, 24 Jan 2022 19:40:49 +0100 Message-Id: <20220124183955.936018891@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@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 e9ba3a5bc6fdc2c796c69fdaf5ed6c9957cf9f9d ] A72's L2 cache[1] on J721e[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] http://www.ti.com/lit/pdf/spruil1 Fixes: 2d87061e70de ("arm64: dts: ti: Add Support for J721E 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/20211113043639.4413-1-nm@ti.com Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/ti/k3-j721e.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/boot/dts/ti/k3-j721e.dtsi b/arch/arm64/boot/dts/ti/k3-j721e.dtsi index f4d8f3b37d5bb..5a6e74636d6fc 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e.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