[lkml]   [2020]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v14 4/6] soc: qcom: rpmh: Invoke rpmh_flush() for dirty caches

On Fri, Mar 27, 2020 at 4:00 AM Maulik Shah <> wrote:
> * @ctrlr: controller making request to flush cached data
> *
> - * Return: -EBUSY if the controller is busy, probably waiting on a response
> - * to a RPMH request sent earlier.
> + * Return: 0 on success, error number otherwise.
> *
> - * This function is always called from the sleep code from the last CPU
> - * that is powering down the entire system. Since no other RPMH API would be
> - * executing at this time, it is safe to run lockless.
> + * This function can either be called from sleep code on the last CPU
> + * (thus no spinlock needed) or with the ctrlr->cache_lock already held.
> Now you can remove the "or with the ctrlr->cache_lock already held"
> since it's no longer true.
> It can be true for other RSCs, so i kept as it is.

I don't really understand this. The cache_lock is only a concept in
"rpmh.c". How could another RSC grab the cache lock? If nothing
else, can you remove this comment until support for those other RSCs
are added and we can evaluate then?


 \ /
  Last update: 2020-03-27 19:23    [W:0.074 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site