Message ID | 20240619212759.3456158-1-trini@konsulko.com |
---|---|
State | Accepted |
Commit | e32d513304043ddc31bfcf586b799757e47e54ad |
Delegated to: | Tom Rini |
Headers | show |
Series | [1/7] m68k: Implement a default flush_dcache_all | expand |
Hi Tom, Acked-by: Angelo Dureghello <angelo@kernel-space.org> thanks, angelo On 19/06/24 11:27 PM, Tom Rini wrote: > Implement a weak default version of flush_dcache_all which is based on > the ARM default, which is to flush the entire range via > flush_dcache_range(...). > > Signed-off-by: Tom Rini <trini@konsulko.com> > --- > Cc: Huan Wang <alison.wang@nxp.com> > Cc: Angelo Dureghello <angelo@kernel-space.org> > --- > arch/m68k/lib/cache.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/m68k/lib/cache.c b/arch/m68k/lib/cache.c > index de04124404cf..dab834c1cbd8 100644 > --- a/arch/m68k/lib/cache.c > +++ b/arch/m68k/lib/cache.c > @@ -134,6 +134,15 @@ void dcache_invalid(void) > #endif > } > > +/* > + * Default implementation: > + * do a range flush for the entire range > + */ > +__weak void flush_dcache_all(void) > +{ > + flush_dcache_range(0, ~0); > +} > + > __weak void invalidate_dcache_range(unsigned long start, unsigned long stop) > { > /* An empty stub, real implementation should be in platform code */
On Thu, 20 Jun 2024 at 00:28, Tom Rini <trini@konsulko.com> wrote: > > Implement a weak default version of flush_dcache_all which is based on > the ARM default, which is to flush the entire range via > flush_dcache_range(...). > > Signed-off-by: Tom Rini <trini@konsulko.com> > --- > Cc: Huan Wang <alison.wang@nxp.com> > Cc: Angelo Dureghello <angelo@kernel-space.org> > --- > arch/m68k/lib/cache.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > > diff --git a/arch/m68k/lib/cache.c b/arch/m68k/lib/cache.c > index de04124404cf..dab834c1cbd8 100644 > --- a/arch/m68k/lib/cache.c > +++ b/arch/m68k/lib/cache.c > @@ -134,6 +134,15 @@ void dcache_invalid(void) > #endif > } > > +/* > + * Default implementation: > + * do a range flush for the entire range > + */ > +__weak void flush_dcache_all(void) > +{ > + flush_dcache_range(0, ~0); > +} > + > __weak void invalidate_dcache_range(unsigned long start, unsigned long stop) > { > /* An empty stub, real implementation should be in platform code */ > -- > 2.34.1 > Acked-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
On Wed, 19 Jun 2024 15:27:53 -0600, Tom Rini wrote: > Implement a weak default version of flush_dcache_all which is based on > the ARM default, which is to flush the entire range via > flush_dcache_range(...). > > Applied to u-boot/master, thanks!
diff --git a/arch/m68k/lib/cache.c b/arch/m68k/lib/cache.c index de04124404cf..dab834c1cbd8 100644 --- a/arch/m68k/lib/cache.c +++ b/arch/m68k/lib/cache.c @@ -134,6 +134,15 @@ void dcache_invalid(void) #endif } +/* + * Default implementation: + * do a range flush for the entire range + */ +__weak void flush_dcache_all(void) +{ + flush_dcache_range(0, ~0); +} + __weak void invalidate_dcache_range(unsigned long start, unsigned long stop) { /* An empty stub, real implementation should be in platform code */
Implement a weak default version of flush_dcache_all which is based on the ARM default, which is to flush the entire range via flush_dcache_range(...). Signed-off-by: Tom Rini <trini@konsulko.com> --- Cc: Huan Wang <alison.wang@nxp.com> Cc: Angelo Dureghello <angelo@kernel-space.org> --- arch/m68k/lib/cache.c | 9 +++++++++ 1 file changed, 9 insertions(+)