What influence about disable or enable CONFIG_CMD_CACHE in yocto?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What influence about disable or enable CONFIG_CMD_CACHE in yocto?

982 Views
charleshuang
Senior Contributor II

Hi freescale

We need to boot form SATA. The CONFIG_SYS_DCACHE_OFF will be enable in include/configs/mx6qsabre_common.h file.

Then the CONFIG_CMD_CACHE is not enable.


What influence about disable or enable CONFIG_CMD_CACHE in yocto?

Labels (1)
0 Kudos
3 Replies

764 Views
igorpadykov
NXP Employee
NXP Employee

Hi charles

seems CONFIG_CMD_CACHE commands to enable cache.

Without it (without caches) performance will be slower.

Best regards

igor

0 Kudos

764 Views
clayderhuang
Contributor I

Hi igorpadykov

About  "Without it (without caches) performance will be slower."     and   "#define CONFIG_SYS_DCACHE_OFF /* remove when sata driver support cache */"

If we want to remove the "CONFIG_SYS_DCACHE_OFF" config, we need to add sata driver support cache.

How to do about "sata driver support cache" ?   Do you have example code ?

0 Kudos

764 Views
igorpadykov
NXP Employee
NXP Employee

Hi clayder

for "sata driver support cache" one needs to have cache support in

Uboot/Linux too.

It is not possible to use "sata driver support cache" without enabling

cache support in Uboot/Linux.

Best regards

igor

0 Kudos