From: bishah@cisco.com (Bijal Shah (bishah))
To: linux-arm-kernel@lists.infradead.org
Subject: L2 cache management question
Date: Wed, 8 Mar 2017 11:44:12 +0000 [thread overview]
Message-ID: <bdcc07da22ae43589768d6d4aebbf788@XCH-RTP-013.cisco.com> (raw)
Hi all,
I hope this is this the right mailer for this question.
I've been looking into an issue on an ARM platform which seems to revolve around the way the L2 cache is managed by the kernel.
Looking at l2x0_cache.c file in the arch/arm/mm directory, I see a common pattern for an address range flush where if the address range is larger than the cache size, a flush_all is called almost without question. Is there any specific reason for this? Asking for the project I'm working on, as the address ranges may contain very few if any dirty lines, and a flush_all is expensive and locks out other CPUs while it is going on.
Regards,
Beej
Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did, so throw off the bowlines, sail away from the safe harbour, catch the trade winds in your sails, explore. Dream. Discover.
- - Mark Twain - -
next reply other threads:[~2017-03-08 11:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-08 11:44 Bijal Shah (bishah) [this message]
2017-03-08 18:07 ` L2 cache management question Russell King - ARM Linux
2017-03-08 18:33 ` Bijal Shah (bishah)
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=bdcc07da22ae43589768d6d4aebbf788@XCH-RTP-013.cisco.com \
--to=bishah@cisco.com \
--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 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.