Jonathan Cameron wrote: > From: Yicong Yang <yangyicong@xxxxxxxxxxxxx> > > 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@xxxxxxxxxxxxx> > Acked-by: Davidlohr Bueso <dave@xxxxxxxxxxxx> > Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx> 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@xxxxxxxxx>