From: linux@arm.linux.org.uk (Russell King - ARM Linux)
To: linux-arm-kernel@lists.infradead.org
Subject: range operation of outer cache when start >= end?
Date: Fri, 8 Jan 2016 15:06:18 +0000 [thread overview]
Message-ID: <20160108150618.GL19062@n2100.arm.linux.org.uk> (raw)
In-Reply-To: <CAK7LNATi5CE3Uc5UgQ6OncC5b=bDavAyNfqi_nqvcVkOrbFhRQ@mail.gmail.com>
On Fri, Jan 08, 2016 at 11:54:30AM +0900, Masahiro Yamada wrote:
> I know I am nitpicking. Forgive me if I am asking a silly question.
>
>
> How should the outer-cache handle such an insane case like start >= end?
Passing start >= end isn't defined, code should not pass start >= end.
> Assumed answers are:
>
> [1] Do not care about that. It should never happen. If it does, fix
> the caller.
This applies. What situation are you seeing start >= end?
What you will get with the existing code is potentially some cache
cleaning and a sync, but nothing apart from that. __l2c210_op_pa_range()
becomes a no-op of start >= end. However, that behaviour is not
guaranteed.
--
RMK's Patch system: http://www.arm.linux.org.uk/developer/patches/
FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up
according to speedtest.net.
next prev parent reply other threads:[~2016-01-08 15:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-08 2:54 range operation of outer cache when start >= end? Masahiro Yamada
2016-01-08 15:06 ` Russell King - ARM Linux [this message]
2016-01-08 16:06 ` Masahiro Yamada
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=20160108150618.GL19062@n2100.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=linux-arm-kernel@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).