Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3628642pxb; Mon, 24 Jan 2022 13:54:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3klph99YBrpggwRAsvK7YI+9MuK6uTqkP8UDBJtS0ITg5hKJO0/iW8CLp9Awx21b/owP3 X-Received: by 2002:a62:798d:0:b0:4c7:3766:e938 with SMTP id u135-20020a62798d000000b004c73766e938mr15848465pfc.64.1643061272848; Mon, 24 Jan 2022 13:54:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061272; cv=none; d=google.com; s=arc-20160816; b=iFbYfeTdiL0zbdX4OIZlGu9wgm6tR577pOhY136VPXKkPHjdEMdpJQkXzomWB1/khV BnNlb0HjRIYc7HiQaqUhs6nIH/xS6ULi9wvsPXd5ic1qZiKaOOtISKBswOEONtnwzicM 1m46+14l/ra4w1Y4zAmof2Dd1tWBW6tDUrwD5Fiv8avcqoJMEqF8olsZiWpFBhXRv/75 Qvvp/oaLk/qssyDXl0iT5ZCliDDP0+hUvIj0CX6kPfEIf08AE9bRUYAXYNjbrc7KSOPq +Sod6h5C3kWbLRsTszJBgYaOmP/fS1zYGtrZjyaGzozHDOPENIJxBtpctMKhXzrrsZwO MF+w== 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=5lDI6wt2rZPHgKAqubLUFeCt/w0KWIEvTs/E4s14HQ0=; b=BbTLGdKT9TuD01qoQJYqrjWgP721dGKG5u1Rt5H2qgT5VW4Vb6MsYM0htp6UiE6W4C +y+cJ8FzIRch+/WVZm/bUCwoN1p5t3Pyjz4mtPi5sgsYWTYjEcZFLRLRckK0uZTcjJnO 9FX/1wxfYA68NmVUAmLbB6Y6KPX/Nd2ZuH4bg5P6SX4rkOtc9RecY0DfhTIIXDxKxDk8 txvsgP1gq745q9OvzeI1izsQ6vCwe2Lz9anGWViEp+bw58SFyNcpALbtGp9OzPTgRuIz 5PmxGklgQxeV6/COtezEK8xgerxU01/ixMAPdUxcxb3CpthWooGOD7plVJURqXasaPl1 XygQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Qu8GIGKZ; 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 138si14824710pgc.498.2022.01.24.13.54.17; Mon, 24 Jan 2022 13:54: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=Qu8GIGKZ; 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 S1457274AbiAXVlT (ORCPT + 99 others); Mon, 24 Jan 2022 16:41:19 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:54560 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349038AbiAXVDq (ORCPT ); Mon, 24 Jan 2022 16:03:46 -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 BE630B80FA3; Mon, 24 Jan 2022 21:03:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EBC72C340E5; Mon, 24 Jan 2022 21:03:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058223; bh=ADv0iZs0sl/IyTkiljN2Vy1lVQBg5V8EIXUeP+R8lTo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Qu8GIGKZytjBZtEBlqLmYN/tvgl2A0Qev16GrrXBo89CwM7yamIJM7ELBU7M4o12+ j6L8yzUiFMtSIakoNPuSHMPiYKb0eOsvNKIoN+7CJZgZhOTU16X3ZKiWniwK7P7geD T4Uxh1MsPAEa6EbAxl5hkqjaZPehEg1VMnmGWj4s= 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 0219/1039] arm64: dts: ti: k3-j7200: Fix the L2 cache sets Date: Mon, 24 Jan 2022 19:33:28 +0100 Message-Id: <20220124184132.698679219@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 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 47567cb260c2b..a99a4d305b7ec 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200.dtsi @@ -86,7 +86,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