All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/5] Add KConfig option for cache maintenance availability
@ 2018-04-30  8:33 Emmanuel Vadot
  2018-05-22  6:17 ` Faiz Abbas
  0 siblings, 1 reply; 3+ messages in thread
From: Emmanuel Vadot @ 2018-04-30  8:33 UTC (permalink / raw)
  To: u-boot

Hi,

In order to correctly exectute some binaries on some arch we need to flush
the data cache or instructions cache. Some arch offer helper functions for
this while others don't (or don't have the ability to do this in hardware).
Introduce some kconfig option name SYS_HAVE_DCACHE_MAINTENANCE and
SYS_HAVE_ICACHE_MAINTENANCE and enable it on some arm CPU that have cache
maintenance helpers.
I cannot test all arch but arch maintainers are welcome to select thoses
options where it is appropriate.
The three last patches are the place we need to flush the cache while trying
to boot the FreeBSD loader and have been in FreeBSD since a long time now.


Emmanuel Vadot (5):
  arch: Add SYS_HAVE_DCACHE_MAINTENANCE and SYS_HAVE_ICACHE_MAINTENANCE
  arch: arm: Select SYS_HAVE_{D,I}CACHE_MAINTENANCE kconfig where
    appropriate
  api: Flush cache when closing api
  cmd: go: Flush cache before starting
  cmd: bootelf: Flush cache before starting

 api/api.c        | 11 +++++++++++
 arch/Kconfig     | 12 ++++++++++++
 arch/arm/Kconfig |  7 +++++++
 cmd/boot.c       | 10 ++++++++++
 cmd/elf.c        | 11 +++++++++++
 5 files changed, 51 insertions(+)

-- 
2.16.3

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

* [U-Boot] [PATCH 0/5] Add KConfig option for cache maintenance availability
  2018-04-30  8:33 [U-Boot] [PATCH 0/5] Add KConfig option for cache maintenance availability Emmanuel Vadot
@ 2018-05-22  6:17 ` Faiz Abbas
  2018-05-23 11:25   ` Emmanuel Vadot
  0 siblings, 1 reply; 3+ messages in thread
From: Faiz Abbas @ 2018-05-22  6:17 UTC (permalink / raw)
  To: u-boot

Hi,

On Monday 30 April 2018 02:03 PM, Emmanuel Vadot wrote:
> Hi,
> 
> In order to correctly exectute some binaries on some arch we need to flush
> the data cache or instructions cache. Some arch offer helper functions for
> this while others don't (or don't have the ability to do this in hardware).
> Introduce some kconfig option name SYS_HAVE_DCACHE_MAINTENANCE and
> SYS_HAVE_ICACHE_MAINTENANCE and enable it on some arm CPU that have cache
> maintenance helpers.

It was decided that instead of flushing/invalidating caches,
architectures should add support for allocating coherent data in the
first place.

See the discussion here:
https://patchwork.ozlabs.org/patch/826131/

Thanks,
Faiz

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

* [U-Boot] [PATCH 0/5] Add KConfig option for cache maintenance availability
  2018-05-22  6:17 ` Faiz Abbas
@ 2018-05-23 11:25   ` Emmanuel Vadot
  0 siblings, 0 replies; 3+ messages in thread
From: Emmanuel Vadot @ 2018-05-23 11:25 UTC (permalink / raw)
  To: u-boot


 Hi Faiz,

On Tue, 22 May 2018 11:47:41 +0530
Faiz Abbas <faiz_abbas@ti.com> wrote:

> Hi,
> 
> On Monday 30 April 2018 02:03 PM, Emmanuel Vadot wrote:
> > Hi,
> > 
> > In order to correctly exectute some binaries on some arch we need to flush
> > the data cache or instructions cache. Some arch offer helper functions for
> > this while others don't (or don't have the ability to do this in hardware).
> > Introduce some kconfig option name SYS_HAVE_DCACHE_MAINTENANCE and
> > SYS_HAVE_ICACHE_MAINTENANCE and enable it on some arm CPU that have cache
> > maintenance helpers.
> 
> It was decided that instead of flushing/invalidating caches,
> architectures should add support for allocating coherent data in the
> first place.
> 
> See the discussion here:
> https://patchwork.ozlabs.org/patch/826131/
> 
> Thanks,
> Faiz

 Thanks for the heads up.
 Are you working on on this for arm ?

 Cheers,

-- 
Emmanuel Vadot <manu@bidouilliste.com> <manu@freebsd.org>

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

end of thread, other threads:[~2018-05-23 11:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-30  8:33 [U-Boot] [PATCH 0/5] Add KConfig option for cache maintenance availability Emmanuel Vadot
2018-05-22  6:17 ` Faiz Abbas
2018-05-23 11:25   ` Emmanuel Vadot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.