U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: Tom Rini <trini@konsulko.com>, u-boot@lists.denx.de
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Ilias Apalodimas <ilias.apalodimas@linaro.org>,
	Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Subject: Re: [PATCH 3/7] sh: Implement a default flush_dcache_all
Date: Tue, 10 Sep 2024 02:17:41 +0200	[thread overview]
Message-ID: <a945bc10-0cc5-4ad0-ae81-c2b73bdb3400@denx.de> (raw)
In-Reply-To: <20240619212759.3456158-3-trini@konsulko.com>

On 6/19/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: Marek Vasut <marex@denx.de>
> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
> ---
>   arch/sh/cpu/sh4/cache.c | 9 +++++++++
>   1 file changed, 9 insertions(+)
> 
> diff --git a/arch/sh/cpu/sh4/cache.c b/arch/sh/cpu/sh4/cache.c
> index 8c1839935ca1..f0cb39d6a923 100644
> --- a/arch/sh/cpu/sh4/cache.c
> +++ b/arch/sh/cpu/sh4/cache.c
> @@ -65,6 +65,15 @@ void flush_dcache_range(unsigned long start, unsigned long end)
>   	}
>   }
>   
> +/*
> + * Default implementation:
> + * do a range flush for the entire range
> + */
> +void flush_dcache_all(void)
> +{
> +	flush_dcache_range(0, ~0);
> +}
The current implementation that is in tree should be fine, thanks.

  parent reply	other threads:[~2024-09-10  0:51 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-19 21:27 [PATCH 1/7] m68k: Implement a default flush_dcache_all Tom Rini
2024-06-19 21:27 ` [PATCH 2/7] m68k: Rename icache_invalid to invalidate_icache_all Tom Rini
2024-06-20  5:47   ` Ilias Apalodimas
2024-06-19 21:27 ` [PATCH 3/7] sh: Implement a default flush_dcache_all Tom Rini
2024-06-25  8:23   ` Ilias Apalodimas
2024-09-10  0:17   ` Marek Vasut [this message]
2024-06-19 21:27 ` [PATCH 4/7] sh: Add the old invalidate_icache_all function Tom Rini
2024-09-10  0:18   ` Marek Vasut
2024-06-19 21:27 ` [PATCH 5/7] powerpc: Implement a default flush_dcache_all Tom Rini
2024-06-25  9:57   ` Ilias Apalodimas
2024-06-19 21:27 ` [PATCH 6/7] powerpc: Add the old invalidate_icache_all function Tom Rini
2024-06-19 21:27 ` [PATCH 7/7] cmd: cache: Remove weak functions Tom Rini
2024-06-20  5:48   ` Ilias Apalodimas
2024-06-24  7:37 ` Acked Angelo Dureghello
2024-06-25  8:23 ` [PATCH 1/7] m68k: Implement a default flush_dcache_all Ilias Apalodimas
2024-07-03 23:22 ` Tom Rini

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a945bc10-0cc5-4ad0-ae81-c2b73bdb3400@denx.de \
    --to=marex@denx.de \
    --cc=ilias.apalodimas@linaro.org \
    --cc=iwamatsu@nigauri.org \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox