Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3982259pxb; Tue, 25 Jan 2022 00:37:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJzv34TzEO9rX11JxSakQYyBAC2AUVQLlAgUJlnHmOxjfVA+qdnlExCfrOioDPzRNVMFG6vP X-Received: by 2002:a05:6402:1e95:: with SMTP id f21mr19583086edf.120.1643099826864; Tue, 25 Jan 2022 00:37:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643099826; cv=none; d=google.com; s=arc-20160816; b=LRwEQwtSTgwCwsUCp8KZs+M5xvWw9S7oP7oC1SR5jIAr9xVektiywBWILyAatUOT2B A+QnsLVU75APiVgFnpp324YpMzXWQYpO1YcgYgzE9ZmjqgCr1YgVx5954W3AYSBZ8u3Z E+uoxpznd5OcruZ5ySCcecYZTQ7yZbJjihKzH4CuoxjapO1zhT8J205SxaYVPEySJHmQ i+ZqNA57gfpCv9fsHEaZq2H3Qr4IzG84AvDv61kaWLe9roCqqKl+D71CcKKmQChIqLXF F7EFD9MCPzzNF6EuuFqRcgdOr/BDiWZC847Xe5cbbiopx6oCcr9hpJ8skVFl3g1aWzlv ebww== 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=nCjAhqTCAUw1na14BmrGCE/UKlKymeNbw+we7j9/CMY=; b=u8eJ3Ft7+MQ3egkF3ywKoTo6IdCMSNV053CrVgGBClAp/l+mksOO4FSkvZ+xBvVcoZ t5W8rgJUd2YCqhyd9GfvhEHNRetzEP/InBf5nSoZqrJLWgINIm3NVGYnSpbgTXp538Xl uMUwIeY/nUv/0Wt+IvWL1Sv6PiFf4XTPRO17RWjdkVrcl2XrOdWuOgF8s7AlN0RYjCZa XL5djLIemyME8XnMe6Zl80QxI6iF5zX8o7FQ8Y75vbx9d+Z5KywUCkGxZ2iJFrXYmFJM fr50CIpX/KJlVQgjSF9cW/hXl5RU/nJLcKwJWdq3im9Jz2yBRdlI31xAGFSa1itvjNnl 4WtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=RrFOISy9; 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 cw12si941885ejc.992.2022.01.25.00.36.41; Tue, 25 Jan 2022 00:37:06 -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=RrFOISy9; 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 S1314113AbiAYCuU (ORCPT + 99 others); Mon, 24 Jan 2022 21:50:20 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:56842 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1359519AbiAXVDw (ORCPT ); Mon, 24 Jan 2022 16:03:52 -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 E3B21B81142; Mon, 24 Jan 2022 21:03:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12289C340E5; Mon, 24 Jan 2022 21:03:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058229; bh=EqTivTb+Cuvp/WUP4epMML8+2J7gXezxJBji8OHg3sI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=RrFOISy9YgjJT/2F64Z5tqFS8N5idDObW+4mv94KiJZTFS7LxHdHr4J8VNBgJ8tuR mA4HVWNsw0oErw+oxS+a/6RJdCRIrZLi+JvKKN7NuRzXWfM7npgvVCs7EqorhUUsBG RDKPI2L5Bt2yLqWS7n9lIevNCRFb/W+ASpmasoH0= 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 0220/1039] arm64: dts: ti: k3-j721e: Fix the L2 cache sets Date: Mon, 24 Jan 2022 19:33:29 +0100 Message-Id: <20220124184132.729936670@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 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 a5967ba139d7e..4a3872fce5339 100644 --- a/arch/arm64/boot/dts/ti/k3-j721e.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721e.dtsi @@ -88,7 +88,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