[PATCH v3 2/8] memregion: Support fine grained invalidate by cpu_cache_invalidate_memregion()
dan.j.williams at intel.com
dan.j.williams at intel.com
Mon Sep 8 13:51:52 PDT 2025
Jonathan Cameron wrote:
> From: Yicong Yang <yangyicong at hisilicon.com>
>
> Extend cpu_cache_invalidate_memregion() to support invalidate certain range
> of memory by introducing start and length parameters. Control of types of
> invalidation is left for when usecases turn up. For now everything is
> Clean and Invalidate.
>
> Signed-off-by: Yicong Yang <yangyicong at hisilicon.com>
> Acked-by: Davidlohr Bueso <dave at stgolabs.net>
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron at huawei.com>
I think it might be useful to have a cpu_cache_invalidate_all() helper to
replace the open coded:
cpu_cache_invalidate_memregion(0, -1);
...just to document the places that do not know a range to flush. Not
critical though so if you spin to add that, great, if not, ok.
Reviewed-by: Dan Williams <dan.j.williams at intel.com>
More information about the linux-arm-kernel
mailing list