Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ED704C433FE for ; Tue, 12 Apr 2022 10:27:55 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A57F583608; Tue, 12 Apr 2022 12:27:53 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649759274; bh=rGHOG/nYbm6onsyNcuUjVuJuWx6ys0pUNdmR45tj3N0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=A8EI+XEUks8vb6k7QIA+YZn3zs5zl7PCCwe61Rf0JzombEFvqxV0tLfhbP+iIF2S+ 8WSgHsvdhtZH0C9/peHUz5eVPX2qmM5uKpHkywoV7ShRmSrWiZ/AtIhKBEeR3x804b /M/NiHQ5Z4spLHkHC41d/DyN9V0VZJZHSKcpVJbqpW9VcYXBhrUMcVBeC5ob/KmbaQ OzASxTr1BpnLwToJd4NlCnBMlLSU7gJ+Ml7+GXNLI/HyRjAVxN5tO+czXlXxBeyJTW Ft+7PIYrWw8crEpBCAnyDpvE6NLArly8h1C/QhBN2KJjtqMy3SqPq7Pkb/Q3zSBm/X h/VHMv4Rc5Vog== Received: from [IPV6:2001:a61:618e:a001:cbd:ee5b:cf9d:e690] (unknown [IPv6:2001:a61:618e:a001:cbd:ee5b:cf9d:e690]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sbabic@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 830EC82065; Tue, 12 Apr 2022 12:27:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1649759271; bh=rGHOG/nYbm6onsyNcuUjVuJuWx6ys0pUNdmR45tj3N0=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=LqCROSocNKUf/9CYbkmrgK2P8oEBkeSrcT9+11Z8m8HUHUbiSWvSY/Lmdit4Ex9Nb FIb+eq3qi98/1jj1YznqBqsAL+Pm/AVdviUwZSKBEdBFbcupaeUYtZUV9kfi/9VUGC LfNFvl0JaY9IG2aOfDJTG2tIP4j5hb1BmwXBkUJ11TUkVvd7/+TDjHzmlc9HA6oqOn 8z5xQYBzm0kCIS4JMia+CACnPZXwYUYu/ylSzKwOilA0qQ4D7TX8ZAPZ+V1Ff8QomJ CZloWbTMzq7iyfTrBNO4IqTvBXlt9I2l2JT1sfVyoiVY7P27y5bsGu9esrapuHB5sL 3urnALiTwYZkA== Message-ID: Date: Tue, 12 Apr 2022 12:27:50 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH] ARM: imx: Enable instruction cache early on on i.MX8M Content-Language: de-DE To: Marek Vasut , u-boot@lists.denx.de Cc: Fabio Estevam , Peng Fan , Stefano Babic References: <20220403212413.401727-1-marex@denx.de> From: Stefano Babic In-Reply-To: <20220403212413.401727-1-marex@denx.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Hi Marek, On 03.04.22 23:24, Marek Vasut wrote: > Enable instruction cache early on to speed up the boot process on i.MX8M. > > Signed-off-by: Marek Vasut > Cc: Fabio Estevam > Cc: Peng Fan > Cc: Stefano Babic > --- > arch/arm/mach-imx/imx8m/soc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm/mach-imx/imx8m/soc.c b/arch/arm/mach-imx/imx8m/soc.c > index a41afc5b4f8..6fd4377f1c2 100644 > --- a/arch/arm/mach-imx/imx8m/soc.c > +++ b/arch/arm/mach-imx/imx8m/soc.c > @@ -514,6 +514,9 @@ int arch_cpu_init_dm(void) > int arch_cpu_init(void) > { > struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR; > + > + icache_enable(); > + > /* > * ROM might disable clock for SCTR, > * enable the clock before timer_init. This does not seem enough because many boards do not find icache_enable, for example imx8mp_rsb3720a1_4G (but there are many others). Can you check it and repost ? Thanks ! +==================================================== +aarch64-linux-ld.bfd: arch/arm/mach-imx/imx8m/soc.o: in function `arch_cpu_init': +arch/arm/mach-imx/imx8m/soc.c:554: undefined reference to `icache_enable' +make[2]: *** [scripts/Makefile.spl:512: spl/u-boot-spl] Error 1 +make[1]: *** [Makefile:2105: spl/u-boot-spl] Error 2 +make: *** [Makefile:177: sub-make] Error 2 Best regards, Stefano -- ===================================================================== DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic@denx.de =====================================================================