linux/arch
David S. Miller 9f825962ef sparc64: Niagara-4 bzero/memset, plus use MRU stores in page copy.
This adds optimized memset/bzero/page-clear routines for Niagara-4.

We basically can do what powerpc has been able to do for a decade (via
the "dcbz" instruction), which is use cache line clearing stores for
bzero and memsets with a 'c' argument of zero.

As long as we make the cache initializing store to each 32-byte
subblock of the L2 cache line, it works.

As with other Niagara-4 optimized routines, the key is to make sure to
avoid any usage of the %asi register, as reads and writes to it cost
at least 50 cycles.

For the user clear cases, we don't use these new routines, we use the
Niagara-1 variants instead.  Those have to use %asi in an unavoidable
way.

A Niagara-4 8K page clear costs just under 600 cycles.

Add definitions of the MRU variants of the cache initializing store
ASIs.  By default, cache initializing stores install the line as Least
Recently Used.  If we know we're going to use the data immediately
(which is true for page copies and clears) we can use the Most
Recently Used variant, to decrease the likelyhood of the lines being
evicted before they get used.

Signed-off-by: David S. Miller <davem@davemloft.net>
2012-10-05 13:45:26 -07:00
..
alpha Prepared for main script 2012-10-03 13:45:43 -07:00
arm Merge git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2012-10-04 09:06:34 -07:00
arm64 UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
avr32 UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
blackfin UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
c6x UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
cris Prepared for main script 2012-10-03 13:45:43 -07:00
frv UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
h8300 UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
hexagon UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
ia64 KVM updates for the 3.7 merge window 2012-10-04 09:30:33 -07:00
m32r UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
m68k Prepared for main script 2012-10-03 13:45:43 -07:00
microblaze UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
mips Prepared for main script 2012-10-03 13:45:43 -07:00
mn10300 UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
openrisc UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
parisc Prepared for main script 2012-10-03 13:45:43 -07:00
powerpc KVM updates for the 3.7 merge window 2012-10-04 09:30:33 -07:00
s390 KVM updates for the 3.7 merge window 2012-10-04 09:30:33 -07:00
score UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
sh Prepared for main script 2012-10-03 13:45:43 -07:00
sparc sparc64: Niagara-4 bzero/memset, plus use MRU stores in page copy. 2012-10-05 13:45:26 -07:00
tile Prepared for main script 2012-10-03 13:45:43 -07:00
um Prepared for main script 2012-10-03 13:45:43 -07:00
unicore32 UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
x86 KVM updates for the 3.7 merge window 2012-10-04 09:30:33 -07:00
xtensa UAPI: (Scripted) Set up UAPI Kbuild files 2012-10-02 18:01:35 +01:00
.gitignore
Kconfig Merge branch 'sched-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2012-10-01 10:43:39 -07:00