Re: [PATCH v3 2/8] memregion: Support fine grained invalidate by cpu_cache_invalidate_memregion()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>




[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]
  Powered by Linux