All of lore.kernel.org
 help / color / mirror / Atom feed
From: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
To: Florian Fainelli <f.fainelli@gmail.com>,
	Justin Chen <justinpopo6@gmail.com>
Cc: "Maciej W. Rozycki" <macro@imgtec.com>,
	<linux-mips@linux-mips.org>,
	<bcm-kernel-feedback-list@broadcom.com>,
	Justin Chen <justin.chen@broadcom.com>
Subject: Re: [RFC] MIPS: Add cacheinfo support
Date: Tue, 13 Dec 2016 12:15:53 -0800	[thread overview]
Message-ID: <585056F9.7010101@imgtec.com> (raw)
In-Reply-To: <31824f14-e8b0-2f14-2ade-1c30e6e3cce5@gmail.com>

On 12/13/2016 12:05 PM, Florian Fainelli wrote:
> On 12/13/2016 12:01 PM, Justin Chen wrote:
>> On Tue, Dec 13, 2016 at 11:18 AM, Leonid Yegoshin
>> <Leonid.Yegoshin@imgtec.com> wrote:
>>> On 12/13/2016 03:09 AM, Maciej W. Rozycki wrote:
>>>> On Tue, 13 Dec 2016, Leonid Yegoshin wrote:
>>>>
>>>>> Well, I prefer the collection of 3 flags:
>>>>>
>>>>> flush_required        - or flush to next level is required to force
>>>>> coherency
>>>>> between this level and next after update of this level
>>>>> invalidate_required   - or invalidate is required to force coherency
>>>>> between
>>>>> this level and next after update of next level
>>>>> coherent_to_level     - object is coherent with this level (only one
>>>>> domain of
>>>>> coherency on this level is assumed)
>>>>    A "flush" has always been an ambiguous term -- meaning anything from
>>>> "write-back", through "write-back+invalidate" to "invalidate".  What is
>>>> "flush" is supposed to exactly mean here?  If specifically any of the two
>>>> formers (the latter is obviously the other flag), then I suggest using the
>>>> respective name, or otherwise if it is meant to be generic "do what is
>>>> needed", then perhaps "synchronize" will work, like with the name of the
>>>> SYNCI instruction?
>>>>
>>> Well, I am not expert in choosing names, you know. I just would like to make
>>> a distinguishing between "transfer data from this level to next one" - any
>>> way - writeback or write-back-invalidate, and "clear data in this level to
>>> be pulled on demand from next level".
>>>
>>> This is an information purpose as Florian described, so details can be
>>> skipped. The only useful info here - some efforts are needed after event
>>> (see above) and that efforts are not cheap from performance point of view.
>>>
>>> If we put here details then it is a long way because we need a lot of
>>> details, see my original post. However, I would like to differ "flush" and
>>> "invalidate" because it is triggered by different kind of event (from
>>> upstream or from downstream).
>>>
>>> - Leonid.
>> I can add in the flags mentioned by Leonid. However, I would suggest
>> these flags be added in as a separate patch series as it will require
>> modifications to the cacheinfo code to propagate the information to
>> the sysfs.
>>
>> Would it be ok to accept this patch series as is while I work with the
>> cacheinfo maintainers to include these new flags?
> Seems entirely reasonable to me. You may want to make a new patch
> submission without "RFC", just to make it clear that this is a patch
> ready for review/acceptance.
>
> Thanks!
I agree.

- Leonid.

WARNING: multiple messages have this Message-ID (diff)
From: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com>
To: Florian Fainelli <f.fainelli@gmail.com>,
	Justin Chen <justinpopo6@gmail.com>
Cc: "Maciej W. Rozycki" <macro@imgtec.com>,
	linux-mips@linux-mips.org, bcm-kernel-feedback-list@broadcom.com,
	Justin Chen <justin.chen@broadcom.com>
Subject: Re: [RFC] MIPS: Add cacheinfo support
Date: Tue, 13 Dec 2016 12:15:53 -0800	[thread overview]
Message-ID: <585056F9.7010101@imgtec.com> (raw)
Message-ID: <20161213201553.XJFHgXTZLy9keUS3jQXVVamD3GtAvVFVH7s37F3u-vY@z> (raw)
In-Reply-To: <31824f14-e8b0-2f14-2ade-1c30e6e3cce5@gmail.com>

On 12/13/2016 12:05 PM, Florian Fainelli wrote:
> On 12/13/2016 12:01 PM, Justin Chen wrote:
>> On Tue, Dec 13, 2016 at 11:18 AM, Leonid Yegoshin
>> <Leonid.Yegoshin@imgtec.com> wrote:
>>> On 12/13/2016 03:09 AM, Maciej W. Rozycki wrote:
>>>> On Tue, 13 Dec 2016, Leonid Yegoshin wrote:
>>>>
>>>>> Well, I prefer the collection of 3 flags:
>>>>>
>>>>> flush_required        - or flush to next level is required to force
>>>>> coherency
>>>>> between this level and next after update of this level
>>>>> invalidate_required   - or invalidate is required to force coherency
>>>>> between
>>>>> this level and next after update of next level
>>>>> coherent_to_level     - object is coherent with this level (only one
>>>>> domain of
>>>>> coherency on this level is assumed)
>>>>    A "flush" has always been an ambiguous term -- meaning anything from
>>>> "write-back", through "write-back+invalidate" to "invalidate".  What is
>>>> "flush" is supposed to exactly mean here?  If specifically any of the two
>>>> formers (the latter is obviously the other flag), then I suggest using the
>>>> respective name, or otherwise if it is meant to be generic "do what is
>>>> needed", then perhaps "synchronize" will work, like with the name of the
>>>> SYNCI instruction?
>>>>
>>> Well, I am not expert in choosing names, you know. I just would like to make
>>> a distinguishing between "transfer data from this level to next one" - any
>>> way - writeback or write-back-invalidate, and "clear data in this level to
>>> be pulled on demand from next level".
>>>
>>> This is an information purpose as Florian described, so details can be
>>> skipped. The only useful info here - some efforts are needed after event
>>> (see above) and that efforts are not cheap from performance point of view.
>>>
>>> If we put here details then it is a long way because we need a lot of
>>> details, see my original post. However, I would like to differ "flush" and
>>> "invalidate" because it is triggered by different kind of event (from
>>> upstream or from downstream).
>>>
>>> - Leonid.
>> I can add in the flags mentioned by Leonid. However, I would suggest
>> these flags be added in as a separate patch series as it will require
>> modifications to the cacheinfo code to propagate the information to
>> the sysfs.
>>
>> Would it be ok to accept this patch series as is while I work with the
>> cacheinfo maintainers to include these new flags?
> Seems entirely reasonable to me. You may want to make a new patch
> submission without "RFC", just to make it clear that this is a patch
> ready for review/acceptance.
>
> Thanks!
I agree.

- Leonid.

  reply	other threads:[~2016-12-13 20:16 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-08  1:16 [RFC] MIPS: Add cacheinfo support justinpopo6
2016-12-08 23:26 ` Leonid Yegoshin
2016-12-08 23:26   ` Leonid Yegoshin
2016-12-09  0:28   ` Justin Chen
2016-12-09  1:01     ` Leonid Yegoshin
2016-12-09  1:01       ` Leonid Yegoshin
2016-12-12 18:24       ` Florian Fainelli
2016-12-12 20:45         ` Leonid Yegoshin
2016-12-12 20:45           ` Leonid Yegoshin
2016-12-12 21:57           ` Florian Fainelli
2016-12-13  0:19             ` Leonid Yegoshin
2016-12-13  0:19               ` Leonid Yegoshin
2016-12-13 11:09               ` Maciej W. Rozycki
2016-12-13 11:09                 ` Maciej W. Rozycki
2016-12-13 19:18                 ` Leonid Yegoshin
2016-12-13 19:18                   ` Leonid Yegoshin
2016-12-13 20:01                   ` Justin Chen
2016-12-13 20:05                     ` Florian Fainelli
2016-12-13 20:15                       ` Leonid Yegoshin [this message]
2016-12-13 20:15                         ` Leonid Yegoshin
2016-12-13 21:53           ` Ralf Baechle
2016-12-13 21:48       ` Ralf Baechle

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=585056F9.7010101@imgtec.com \
    --to=leonid.yegoshin@imgtec.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=f.fainelli@gmail.com \
    --cc=justin.chen@broadcom.com \
    --cc=justinpopo6@gmail.com \
    --cc=linux-mips@linux-mips.org \
    --cc=macro@imgtec.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.