From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752178AbdKZNSe (ORCPT ); Sun, 26 Nov 2017 08:18:34 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:42306 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbdKZNSd (ORCPT ); Sun, 26 Nov 2017 08:18:33 -0500 Date: Sun, 26 Nov 2017 13:18:13 +0000 From: Russell King - ARM Linux To: Peng Fan Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, van.freenix@gmail.com, Mark Rutland , Thomas Gleixner , Chris Brandt , Will Deacon Subject: Re: [PATCH] arm: l2c: unlock ways when in non-secure mode Message-ID: <20171126131812.GZ31757@n2100.armlinux.org.uk> References: <20171126122530.857-1-peng.fan@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171126122530.857-1-peng.fan@nxp.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 26, 2017 at 08:25:30PM +0800, Peng Fan wrote: > To boot Linux in Non-secure mode with l2x0, the l2x0 controller > is enabled in secure mode and ways locked to make it seems L2 cache > disabled during linux boot process. So during l2x0 initialization, > need to unlock the ways to make l2x0 could cache data/inst. Why was this chosen instead of doing what everyone else does? -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 8.8Mbps down 630kbps up According to speedtest.net: 8.21Mbps down 510kbps up