From: Anton Blanchard <anton@samba.org>
To: Chris Friesen <cfriesen@nortelnetworks.com>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: dcbz not used on ppc64?
Date: Tue, 4 Jan 2005 09:58:22 +1100 [thread overview]
Message-ID: <20050103225822.GC7335@krispykreme.ozlabs.ibm.com> (raw)
In-Reply-To: <41D9CD19.50207@nortelnetworks.com>
Hi,
> I ran into some issues with the use of the dcbz instruction in the
> kernel for ppc32. I'm now looking at porting our work to ppc64, and
> when I looked around a bit, I found that the dcbz instruction doesn't
> appear to be used in ppc64.
>
> This leads me to ask:
>
> 1) Is it in fact true that ppc64 does not use dcbz in the kernel?
> 2) If so, why not? Presumably it would be a win in some cases,
> otherwise they wouldn't be using it in ppc32. Is there some other
> factore in play for ppc64?
include/asm-ppc64/page.h:clear_page() uses it:
static __inline__ void clear_page(void *addr)
{
unsigned long lines, line_size;
line_size = systemcfg->dCacheL1LineSize;
lines = naca->dCacheL1LinesPerPage;
__asm__ __volatile__(
"mtctr %1 # clear_page\n\
1: dcbz 0,%0\n\
add %0,%0,%3\n\
bdnz+ 1b"
: "=r" (addr)
: "r" (lines), "0" (addr), "r" (line_size)
: "ctr", "memory");
}
Anton
next prev parent reply other threads:[~2005-01-03 22:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-03 22:54 dcbz not used on ppc64? Chris Friesen
2005-01-03 22:58 ` Anton Blanchard [this message]
2005-01-03 23:34 ` Chris Friesen
2005-01-04 3:16 ` Anton Blanchard
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=20050103225822.GC7335@krispykreme.ozlabs.ibm.com \
--to=anton@samba.org \
--cc=cfriesen@nortelnetworks.com \
--cc=linuxppc-dev@ozlabs.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.