public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] imx8qxp_mek: Run with caches enabled
@ 2020-04-20 18:55 Fabio Estevam
  2020-04-21 12:15 ` Peng Fan
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Fabio Estevam @ 2020-04-20 18:55 UTC (permalink / raw)
  To: u-boot

There is no need to run with caches disabled.

Signed-off-by: Fabio Estevam <festevam@gmail.com>
---
 configs/imx8qxp_mek_defconfig | 2 --
 1 file changed, 2 deletions(-)

diff --git a/configs/imx8qxp_mek_defconfig b/configs/imx8qxp_mek_defconfig
index 8a7e9ee9c7..46b8cbf351 100644
--- a/configs/imx8qxp_mek_defconfig
+++ b/configs/imx8qxp_mek_defconfig
@@ -1,6 +1,4 @@
 CONFIG_ARM=y
-CONFIG_SPL_SYS_ICACHE_OFF=y
-CONFIG_SPL_SYS_DCACHE_OFF=y
 CONFIG_ARCH_IMX8=y
 CONFIG_SYS_TEXT_BASE=0x80020000
 CONFIG_SPL_GPIO_SUPPORT=y
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH] imx8qxp_mek: Run with caches enabled
  2020-04-20 18:55 [PATCH] imx8qxp_mek: Run with caches enabled Fabio Estevam
@ 2020-04-21 12:15 ` Peng Fan
  2020-04-21 12:21   ` Fabio Estevam
  2020-04-21 12:43 ` Peng Fan
  2020-05-01 16:32 ` sbabic at denx.de
  2 siblings, 1 reply; 9+ messages in thread
From: Peng Fan @ 2020-04-21 12:15 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

> -----Original Message-----
> From: Fabio Estevam <festevam@gmail.com>
> Sent: 2020?4?21? 2:55
> To: sbabic at denx.de
> Cc: Peng Fan <peng.fan@nxp.com>; dl-uboot-imx <uboot-imx@nxp.com>;
> u-boot at lists.denx.de; Fabio Estevam <festevam@gmail.com>
> Subject: [PATCH] imx8qxp_mek: Run with caches enabled
> 
> There is no need to run with caches disabled.
> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> ---
>  configs/imx8qxp_mek_defconfig | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/configs/imx8qxp_mek_defconfig b/configs/imx8qxp_mek_defconfig
> index 8a7e9ee9c7..46b8cbf351 100644
> --- a/configs/imx8qxp_mek_defconfig
> +++ b/configs/imx8qxp_mek_defconfig
> @@ -1,6 +1,4 @@
>  CONFIG_ARM=y
> -CONFIG_SPL_SYS_ICACHE_OFF=y
> -CONFIG_SPL_SYS_DCACHE_OFF=y

Currently there is no mmu setup in SPL stage.

Regards,
Peng.

>  CONFIG_ARCH_IMX8=y
>  CONFIG_SYS_TEXT_BASE=0x80020000
>  CONFIG_SPL_GPIO_SUPPORT=y
> --
> 2.17.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] imx8qxp_mek: Run with caches enabled
  2020-04-21 12:15 ` Peng Fan
@ 2020-04-21 12:21   ` Fabio Estevam
  2020-04-21 12:22     ` Peng Fan
  0 siblings, 1 reply; 9+ messages in thread
From: Fabio Estevam @ 2020-04-21 12:21 UTC (permalink / raw)
  To: u-boot

Hi Peng,

On Tue, Apr 21, 2020 at 9:15 AM Peng Fan <peng.fan@nxp.com> wrote:

> > -CONFIG_SPL_SYS_ICACHE_OFF=y
> > -CONFIG_SPL_SYS_DCACHE_OFF=y
>
> Currently there is no mmu setup in SPL stage.

Could you please expand the explanation a bit?

Why do we need to select these options only for i.MX8 boards?

What would be the correct fix in your opinion?

Please advise.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] imx8qxp_mek: Run with caches enabled
  2020-04-21 12:21   ` Fabio Estevam
@ 2020-04-21 12:22     ` Peng Fan
  2020-04-21 12:28       ` Fabio Estevam
  0 siblings, 1 reply; 9+ messages in thread
From: Peng Fan @ 2020-04-21 12:22 UTC (permalink / raw)
  To: u-boot

Hi Fabio,

> Subject: Re: [PATCH] imx8qxp_mek: Run with caches enabled
> 
> Hi Peng,
> 
> On Tue, Apr 21, 2020 at 9:15 AM Peng Fan <peng.fan@nxp.com> wrote:
> 
> > > -CONFIG_SPL_SYS_ICACHE_OFF=y
> > > -CONFIG_SPL_SYS_DCACHE_OFF=y
> >
> > Currently there is no mmu setup in SPL stage.
> 
> Could you please expand the explanation a bit?
> 
> Why do we need to select these options only for i.MX8 boards?
> 
> What would be the correct fix in your opinion?

As I recall, icache could be enabled, but if enable dcache, we might
need setup mmu for SPL.

Regards,
Peng.

> 
> Please advise.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] imx8qxp_mek: Run with caches enabled
  2020-04-21 12:22     ` Peng Fan
@ 2020-04-21 12:28       ` Fabio Estevam
  2020-04-21 12:43         ` Peng Fan
  0 siblings, 1 reply; 9+ messages in thread
From: Fabio Estevam @ 2020-04-21 12:28 UTC (permalink / raw)
  To: u-boot

Hi Peng,

On Tue, Apr 21, 2020 at 9:22 AM Peng Fan <peng.fan@nxp.com> wrote:

> As I recall, icache could be enabled, but if enable dcache, we might
> need setup mmu for SPL.

Does this requirement apply only for iMX8? I don't see it for i.MX6/i.MX7.

So still confused about your comment.

With this patch, SPL still loads U-Boot proper, so didn't notice an error.

Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] imx8qxp_mek: Run with caches enabled
  2020-04-21 12:28       ` Fabio Estevam
@ 2020-04-21 12:43         ` Peng Fan
  2020-04-21 12:45           ` Fabio Estevam
  0 siblings, 1 reply; 9+ messages in thread
From: Peng Fan @ 2020-04-21 12:43 UTC (permalink / raw)
  To: u-boot

> Subject: Re: [PATCH] imx8qxp_mek: Run with caches enabled
> 
> Hi Peng,
> 
> On Tue, Apr 21, 2020 at 9:22 AM Peng Fan <peng.fan@nxp.com> wrote:
> 
> > As I recall, icache could be enabled, but if enable dcache, we might
> > need setup mmu for SPL.
> 
> Does this requirement apply only for iMX8? I don't see it for i.MX6/i.MX7.
> 
> So still confused about your comment.
> 
> With this patch, SPL still loads U-Boot proper, so didn't notice an error.

Just checked the code. 
In SPL stage dcache is off, icache is enabled with your patch.
So it is ok.

Regards,
Peng.
> 
> Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] imx8qxp_mek: Run with caches enabled
  2020-04-20 18:55 [PATCH] imx8qxp_mek: Run with caches enabled Fabio Estevam
  2020-04-21 12:15 ` Peng Fan
@ 2020-04-21 12:43 ` Peng Fan
  2020-05-01 16:32 ` sbabic at denx.de
  2 siblings, 0 replies; 9+ messages in thread
From: Peng Fan @ 2020-04-21 12:43 UTC (permalink / raw)
  To: u-boot

> Subject: [PATCH] imx8qxp_mek: Run with caches enabled
> 
> There is no need to run with caches disabled.
> 
> Signed-off-by: Fabio Estevam <festevam@gmail.com>

Reviewed-by: Peng Fan <peng.fan@nxp.com>

> ---
>  configs/imx8qxp_mek_defconfig | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/configs/imx8qxp_mek_defconfig b/configs/imx8qxp_mek_defconfig
> index 8a7e9ee9c7..46b8cbf351 100644
> --- a/configs/imx8qxp_mek_defconfig
> +++ b/configs/imx8qxp_mek_defconfig
> @@ -1,6 +1,4 @@
>  CONFIG_ARM=y
> -CONFIG_SPL_SYS_ICACHE_OFF=y
> -CONFIG_SPL_SYS_DCACHE_OFF=y
>  CONFIG_ARCH_IMX8=y
>  CONFIG_SYS_TEXT_BASE=0x80020000
>  CONFIG_SPL_GPIO_SUPPORT=y
> --
> 2.17.1

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] imx8qxp_mek: Run with caches enabled
  2020-04-21 12:43         ` Peng Fan
@ 2020-04-21 12:45           ` Fabio Estevam
  0 siblings, 0 replies; 9+ messages in thread
From: Fabio Estevam @ 2020-04-21 12:45 UTC (permalink / raw)
  To: u-boot

Hi Peng,

On Tue, Apr 21, 2020 at 9:43 AM Peng Fan <peng.fan@nxp.com> wrote:

> Just checked the code.
> In SPL stage dcache is off, icache is enabled with your patch.
> So it is ok.

Thanks, I will send patches doing the same for the other i.MX8 boards.

Thanks

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH] imx8qxp_mek: Run with caches enabled
  2020-04-20 18:55 [PATCH] imx8qxp_mek: Run with caches enabled Fabio Estevam
  2020-04-21 12:15 ` Peng Fan
  2020-04-21 12:43 ` Peng Fan
@ 2020-05-01 16:32 ` sbabic at denx.de
  2 siblings, 0 replies; 9+ messages in thread
From: sbabic at denx.de @ 2020-05-01 16:32 UTC (permalink / raw)
  To: u-boot

> There is no need to run with caches disabled.
> Signed-off-by: Fabio Estevam <festevam@gmail.com>
> Reviewed-by: Peng Fan <peng.fan@nxp.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic

-- 
=====================================================================
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 at denx.de
=====================================================================

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-05-01 16:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-20 18:55 [PATCH] imx8qxp_mek: Run with caches enabled Fabio Estevam
2020-04-21 12:15 ` Peng Fan
2020-04-21 12:21   ` Fabio Estevam
2020-04-21 12:22     ` Peng Fan
2020-04-21 12:28       ` Fabio Estevam
2020-04-21 12:43         ` Peng Fan
2020-04-21 12:45           ` Fabio Estevam
2020-04-21 12:43 ` Peng Fan
2020-05-01 16:32 ` sbabic at denx.de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox