diff mbox series

[U-Boot,6/8] spl: cache: Allow cache drivers in SPL

Message ID 20191025061027.20962-7-uboot@andestech.com
State Superseded
Delegated to: Andes
Headers show
Series RISC-V AX25-AE350 support SPL | expand

Commit Message

Andes Oct. 25, 2019, 6:10 a.m. UTC
From: Rick Chen <rick@andestech.com>

When ax25-ae350 try to enable v5l2 cache
driver in SPL configuration, it need this
option for cache support in SPL.

Signed-off-by: Rick Chen <rick@andestech.com>
Cc: KC Lin <kclin@andestech.com>
Cc: Alan Kao <alankao@andestech.com>
---
 common/spl/Kconfig | 7 +++++++
 drivers/Makefile   | 1 +
 2 files changed, 8 insertions(+)

Comments

Bin Meng Oct. 29, 2019, 3:14 p.m. UTC | #1
Hi Rick,

On Fri, Oct 25, 2019 at 2:18 PM Andes <uboot@andestech.com> wrote:
>
> From: Rick Chen <rick@andestech.com>
>
> When ax25-ae350 try to enable v5l2 cache
> driver in SPL configuration, it need this
> option for cache support in SPL.
>
> Signed-off-by: Rick Chen <rick@andestech.com>
> Cc: KC Lin <kclin@andestech.com>
> Cc: Alan Kao <alankao@andestech.com>
> ---
>  common/spl/Kconfig | 7 +++++++
>  drivers/Makefile   | 1 +
>  2 files changed, 8 insertions(+)
>
> diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> index 86d7edf..4c4023a 100644
> --- a/common/spl/Kconfig
> +++ b/common/spl/Kconfig
> @@ -456,6 +456,13 @@ config SPL_CRYPTO_SUPPORT
>           this option to build the drivers in drivers/crypto as part of an
>           SPL build.
>
> +config SPL_CACHE_SUPPORT

nits: please insert this option per alphabetical order, so it should
come before SPL_CPU

> +       bool "Support CACHE drivers"
> +       help
> +         Enable CACHE drivers in SPL. These drivers can store data so that
> +         future requests for that data can be served faster. Enable this option

The description here "store data so that ..." does not apply to cache drivers

> +         to build the drivers in drivers/cache as part of an SPL build.
> +
>  config SPL_HASH_SUPPORT
>         bool "Support hashing drivers"
>         select SHA1
> diff --git a/drivers/Makefile b/drivers/Makefile
> index a4bb5e4..5d300df 100644
> --- a/drivers/Makefile
> +++ b/drivers/Makefile
> @@ -33,6 +33,7 @@ ifdef CONFIG_SPL_BUILD
>  obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
>  obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
>  obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
> +obj-$(CONFIG_SPL_CACHE_SUPPORT) += cache/

ditto

>  obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
>  obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
>  obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
> --

Regards,
Bin
Rick Chen Oct. 31, 2019, 2:52 a.m. UTC | #2
Hi Bin

>
> Hi Rick,
>
> On Fri, Oct 25, 2019 at 2:18 PM Andes <uboot@andestech.com> wrote:
> >
> > From: Rick Chen <rick@andestech.com>
> >
> > When ax25-ae350 try to enable v5l2 cache
> > driver in SPL configuration, it need this
> > option for cache support in SPL.
> >
> > Signed-off-by: Rick Chen <rick@andestech.com>
> > Cc: KC Lin <kclin@andestech.com>
> > Cc: Alan Kao <alankao@andestech.com>
> > ---
> >  common/spl/Kconfig | 7 +++++++
> >  drivers/Makefile   | 1 +
> >  2 files changed, 8 insertions(+)
> >
> > diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> > index 86d7edf..4c4023a 100644
> > --- a/common/spl/Kconfig
> > +++ b/common/spl/Kconfig
> > @@ -456,6 +456,13 @@ config SPL_CRYPTO_SUPPORT
> >           this option to build the drivers in drivers/crypto as part of an
> >           SPL build.
> >
> > +config SPL_CACHE_SUPPORT
>
> nits: please insert this option per alphabetical order, so it should
> come before SPL_CPU

OK

>
> > +       bool "Support CACHE drivers"
> > +       help
> > +         Enable CACHE drivers in SPL. These drivers can store data so that
> > +         future requests for that data can be served faster. Enable this option
>
> The description here "store data so that ..." does not apply to cache drivers

Do you have any suggestions about how to describe it more precisely ?

Thanks
Rick

>
> > +         to build the drivers in drivers/cache as part of an SPL build.
> > +
> >  config SPL_HASH_SUPPORT
> >         bool "Support hashing drivers"
> >         select SHA1
> > diff --git a/drivers/Makefile b/drivers/Makefile
> > index a4bb5e4..5d300df 100644
> > --- a/drivers/Makefile
> > +++ b/drivers/Makefile
> > @@ -33,6 +33,7 @@ ifdef CONFIG_SPL_BUILD
> >  obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
> >  obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
> >  obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
> > +obj-$(CONFIG_SPL_CACHE_SUPPORT) += cache/
>
> ditto

OK

>
> >  obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
> >  obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
> >  obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/
> > --
>
> Regards,
> Bin
Bin Meng Oct. 31, 2019, 3:01 a.m. UTC | #3
Hi Rick,

On Thu, Oct 31, 2019 at 10:53 AM Rick Chen <rickchen36@gmail.com> wrote:
>
> Hi Bin
>
> >
> > Hi Rick,
> >
> > On Fri, Oct 25, 2019 at 2:18 PM Andes <uboot@andestech.com> wrote:
> > >
> > > From: Rick Chen <rick@andestech.com>
> > >
> > > When ax25-ae350 try to enable v5l2 cache
> > > driver in SPL configuration, it need this
> > > option for cache support in SPL.
> > >
> > > Signed-off-by: Rick Chen <rick@andestech.com>
> > > Cc: KC Lin <kclin@andestech.com>
> > > Cc: Alan Kao <alankao@andestech.com>
> > > ---
> > >  common/spl/Kconfig | 7 +++++++
> > >  drivers/Makefile   | 1 +
> > >  2 files changed, 8 insertions(+)
> > >
> > > diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> > > index 86d7edf..4c4023a 100644
> > > --- a/common/spl/Kconfig
> > > +++ b/common/spl/Kconfig
> > > @@ -456,6 +456,13 @@ config SPL_CRYPTO_SUPPORT
> > >           this option to build the drivers in drivers/crypto as part of an
> > >           SPL build.
> > >
> > > +config SPL_CACHE_SUPPORT
> >
> > nits: please insert this option per alphabetical order, so it should
> > come before SPL_CPU
>
> OK
>
> >
> > > +       bool "Support CACHE drivers"
> > > +       help
> > > +         Enable CACHE drivers in SPL. These drivers can store data so that
> > > +         future requests for that data can be served faster. Enable this option
> >
> > The description here "store data so that ..." does not apply to cache drivers
>
> Do you have any suggestions about how to describe it more precisely ?
>

The descriptions says drivers can store data, but cache driver does
not store data at all. I think you enabled it just for boot time
performance?

Regards,
Bin
Rick Chen Oct. 31, 2019, 3:22 a.m. UTC | #4
Hi Bin

Bin Meng <bmeng.cn@gmail.com> 於 2019年10月31日 週四 上午11:02寫道:
>
> Hi Rick,
>
> On Thu, Oct 31, 2019 at 10:53 AM Rick Chen <rickchen36@gmail.com> wrote:
> >
> > Hi Bin
> >
> > >
> > > Hi Rick,
> > >
> > > On Fri, Oct 25, 2019 at 2:18 PM Andes <uboot@andestech.com> wrote:
> > > >
> > > > From: Rick Chen <rick@andestech.com>
> > > >
> > > > When ax25-ae350 try to enable v5l2 cache
> > > > driver in SPL configuration, it need this
> > > > option for cache support in SPL.
> > > >
> > > > Signed-off-by: Rick Chen <rick@andestech.com>
> > > > Cc: KC Lin <kclin@andestech.com>
> > > > Cc: Alan Kao <alankao@andestech.com>
> > > > ---
> > > >  common/spl/Kconfig | 7 +++++++
> > > >  drivers/Makefile   | 1 +
> > > >  2 files changed, 8 insertions(+)
> > > >
> > > > diff --git a/common/spl/Kconfig b/common/spl/Kconfig
> > > > index 86d7edf..4c4023a 100644
> > > > --- a/common/spl/Kconfig
> > > > +++ b/common/spl/Kconfig
> > > > @@ -456,6 +456,13 @@ config SPL_CRYPTO_SUPPORT
> > > >           this option to build the drivers in drivers/crypto as part of an
> > > >           SPL build.
> > > >
> > > > +config SPL_CACHE_SUPPORT
> > >
> > > nits: please insert this option per alphabetical order, so it should
> > > come before SPL_CPU
> >
> > OK
> >
> > >
> > > > +       bool "Support CACHE drivers"
> > > > +       help
> > > > +         Enable CACHE drivers in SPL. These drivers can store data so that
> > > > +         future requests for that data can be served faster. Enable this option
> > >
> > > The description here "store data so that ..." does not apply to cache drivers
> >
> > Do you have any suggestions about how to describe it more precisely ?
> >
>
> The descriptions says drivers can store data, but cache driver does
> not store data at all. I think you enabled it just for boot time
> performance?

Yes, so the description mention about "served faster",
it can represent improve boot time performance widely.

Maybe you think store data is that kind of store data in flash.
Cache will store data in it, so CPU can execute more faster.

>
> Regards,
> Bin
diff mbox series

Patch

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 86d7edf..4c4023a 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -456,6 +456,13 @@  config SPL_CRYPTO_SUPPORT
 	  this option to build the drivers in drivers/crypto as part of an
 	  SPL build.
 
+config SPL_CACHE_SUPPORT
+	bool "Support CACHE drivers"
+	help
+	  Enable CACHE drivers in SPL. These drivers can store data so that
+	  future requests for that data can be served faster. Enable this option
+	  to build the drivers in drivers/cache as part of an SPL build.
+
 config SPL_HASH_SUPPORT
 	bool "Support hashing drivers"
 	select SHA1
diff --git a/drivers/Makefile b/drivers/Makefile
index a4bb5e4..5d300df 100644
--- a/drivers/Makefile
+++ b/drivers/Makefile
@@ -33,6 +33,7 @@  ifdef CONFIG_SPL_BUILD
 obj-$(CONFIG_SPL_BOOTCOUNT_LIMIT) += bootcount/
 obj-$(CONFIG_SPL_CPU_SUPPORT) += cpu/
 obj-$(CONFIG_SPL_CRYPTO_SUPPORT) += crypto/
+obj-$(CONFIG_SPL_CACHE_SUPPORT) += cache/
 obj-$(CONFIG_SPL_MPC8XXX_INIT_DDR_SUPPORT) += ddr/fsl/
 obj-$(CONFIG_ARMADA_38X) += ddr/marvell/a38x/
 obj-$(CONFIG_ARMADA_XP) += ddr/marvell/axp/