From: Dan Malek <dan@mvista.com>
To: Brian Ford <ford@vss.fsi.com>
Cc: Graham Stoney <greyham@research.canon.com.au>,
linuxppc-embedded@lists.linuxppc.org
Subject: Re: 2.5 or 2.4 kernel profiling
Date: Wed, 13 Dec 2000 17:53:14 -0500 [thread overview]
Message-ID: <3A37FDDA.BA68DDF1@mvista.com> (raw)
In-Reply-To: Pine.GSO.4.21.0012131547530.24199-100000@eos
Brian Ford wrote:
> I speak only for the 8260, but...
>
> With it, you can DMA directly into IP aligned skbuffs,
No, you can't. The receiver buffers must be 32-byte aligned. The
Ethernet header is 14 bytes, so the IP frame starts on this 16-bit
aligned boundary. Then the IP stack promptly does a 32-bit load from
this misaligned address.
> ... I've done it and it seems to work.
I don't think so......It is typical of all of the CPM devices to
require strict alignment of incoming buffers, and very relaxed alignment
of outgoing buffers (which is precisely what you need for most
protocol processing).
> ..... I'll have to benchmark it, but
> the copy overhead should be significant. This just makes IP do the
> checksum later.
Right, you have to read this data at some point, so the copy-sum does
both in one operation. It does the checksum while it is moving the
buffer and aligning it on the IP frame boundary. This also give the
advantage of the IP frame in the cache, so when you push it upstream
you are likely to get some cache hits.
> Also, to avoid bus contention, shouldn't the Rx buffers be on the local
> bus? Probably the BD's too.
Yeah, that's why they designed the part this way. Not many boards
use it, though.
> ..... Unless we can figure out how to
> put these in DPRAM, but it doesn't look possible for the FCC's.
I have tried, and for some reason I couldn't make it work correctly.
It should, I just haven't been back to debug it.
> .... I don't
> know if it is possible to allocate skbuffs in other than 60x bus SDRAM,
> though.
Probably not worth it. The 66 MHz buses with burst mode and fast
SDRAM are pretty sweet. The skbuffs pool can get very large, certainly
more than would fit into DPRAM, but it is sufficiently modular that you
could put it into the local DRAM.
> ..... Unless the local bus proves to be a larger gain and we can't
> do that there.
The local bus can be an advantage for some applications. For data
or information the CPM accesses frequently (BDs, hash tables, channel
tables, scheduler tables, etc.) this is a great benefit. If you are
also just packet/frame routing, this is a useful place for the data.
It seems for other applications, where the PowerPC core is going to
use the data frequently, the best place is the 60x memory. It is
one of those features that you shouldn't try to use just because it
is there.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-12-13 22:53 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.GSO.4.21.0012071148420.515-100000@eos>
2000-12-07 18:11 ` 2.5 or 2.4 kernel profiling Brian Ford
2000-12-08 17:41 ` diekema_jon
2000-12-08 18:24 ` Brian Ford
2000-12-11 0:45 ` Graham Stoney
2000-12-11 15:27 ` Brian Ford
2000-12-12 2:36 ` Graham Stoney
2000-12-12 3:26 ` Dan Malek
2000-12-12 7:28 ` Graham Stoney
2000-12-12 16:32 ` Brian Ford
2000-12-12 16:58 ` Dan Malek
2000-12-12 17:17 ` Brian Ford
2000-12-12 21:03 ` Dan Malek
2000-12-13 1:15 ` Graham Stoney
2000-12-13 16:14 ` Dan Malek
2000-12-13 17:23 ` Arto Vuori
2000-12-13 17:33 ` Dan Malek
2000-12-13 17:55 ` Arto Vuori
2000-12-13 22:08 ` Brian Ford
2000-12-13 22:45 ` Jerry Van Baren
2000-12-13 22:53 ` Dan Malek [this message]
2000-12-14 17:29 ` FEC/FCC driver issues Brian Ford
2000-12-14 7:21 ` 2.5 or 2.4 kernel profiling Graham Stoney
2000-12-14 16:58 ` Dan Malek
2000-12-15 0:18 ` Graham Stoney
2000-12-12 15:26 ` Brian Ford
2000-12-12 17:12 ` Jerry Van Baren
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=3A37FDDA.BA68DDF1@mvista.com \
--to=dan@mvista.com \
--cc=ford@vss.fsi.com \
--cc=greyham@research.canon.com.au \
--cc=linuxppc-embedded@lists.linuxppc.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).