From: Dan Malek <dan@mvista.com>
To: Steve Ferri <sferri@ss7-link.com>
Cc: "Linuxppc-Embedded (E-mail)" <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Cache Inhibit on 860?
Date: Mon, 26 Feb 2001 11:51:02 -0500 [thread overview]
Message-ID: <3A9A8976.884C49C2@mvista.com> (raw)
In-Reply-To: F1BD619B2A58D41197990050DA2C08E41A5E2C@SLINK12
Steve Ferri wrote:
> Is there a way to alloc memory and mark it as cache inhibited ?
In a few minutes :-). I finally created a common set of 'dma_consistent'
functions for 8xx and 4xx (and anything else that may need them)
based upon implementations from other architectures. I am now checking
this into the linuxppc_2_5 BitKeeper tree.
> This would eliminating the need for the invalidate and flush calls.
But, if you already have this working, it is probably better performance
unless these are tiny, frequently used buffers.
> ..... I am
> currently
> running a 2.2.14 version of the kernel on an 860 processor.
For 2.2.14, look at the arch/ppc/8xx_io/enet.c Ethernet driver as
an example. It calls __get_free_page(), then tracks down the
page table entry and sets the cache inhibit flag. Do the same thing
in your driver. The stuff done in 'commproc.c' is different because
it is called earlier in the kernel.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2001-02-26 16:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-26 16:12 Cache Inhibit on 860? Steve Ferri
2001-02-26 16:51 ` Dan Malek [this message]
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=3A9A8976.884C49C2@mvista.com \
--to=dan@mvista.com \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=sferri@ss7-link.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.