From: Grant Erickson <gerickson@nuovations.com>
To: Stefan Roese <sr@denx.de>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH v2] Parameterize EMAC Multicast Match Handling
Date: Mon, 30 Jun 2008 22:26:32 -0700 [thread overview]
Message-ID: <C48F0E18.101F1%gerickson@nuovations.com> (raw)
In-Reply-To: <1214352498-12527-1-git-send-email-gerickson@nuovations.com>
On 6/24/08 5:08 PM, Grant Erickson wrote:
> Various instances of the EMAC core have varying: 1) number of address
> match slots, 2) width of the registers for handling address match slots,
> 3) number of registers for handling address match slots and 4) base
> offset for those registers.
>
> As the driver stands today, it assumes that all EMACs have 4 IAHT and
> GAHT 32-bit registers, starting at offset 0x30 from the register base,
> with only 16-bits of each used for a total of 64 match slots.
>
> The 405EX(r) and 460 now use the EMAC4SYNC core rather than the EMAC4
> core. This core has 8 IAHT and GAHT registers, starting at offset 0x80
> from the register base, with ALL 32-bits of each used for a total of
> 256 match slots.
>
> This adds macros and inlines for handling these differences based on
> three parameters parsed from the device tree:
>
> xaht-slots-shift
> xaht-width-shift
> xaht-base-offset
>
> and reworks the code, where appropriate to use those macros and inlines.
> EMAC/EMAC4 values are defaulted for these keys if missing, resulting in
> a driver that works as today's does for all cores.
>
> In addition the register size passed to ioremap is now taken from the
> device tree:
>
> c0 for EMAC4SYNC cores
> 74 for EMAC4 cores
> 70 for EMAC cores
>
> rathaer than sizeof (emac_regs).
>
> Finally, the device trees have been updated with the appropriate xaht-*
> keys and values.
>
> This has been tested on an AMCC Haleakala board such that: 1) inbound
> ICMP requests to 'haleakala.local' via MDNS from both Mac OS X 10.4.11
> and Ubuntu 8.04 systems as well as 2) outbound ICMP requests from
> 'haleakala.local' to those same systems in the '.local' domain via MDNS
> now work.
>
> Signed-off-by: Grant Erickson <gerickson@nuovations.com>
> ---
> arch/powerpc/boot/dts/bamboo.dts | 6 +++
> arch/powerpc/boot/dts/canyonlands.dts | 10 ++++-
> arch/powerpc/boot/dts/ebony.dts | 6 +++
> arch/powerpc/boot/dts/ep405.dts | 3 ++
> arch/powerpc/boot/dts/glacier.dts | 20 +++++++++--
> arch/powerpc/boot/dts/haleakala.dts | 5 ++-
> arch/powerpc/boot/dts/katmai.dts | 5 ++-
> arch/powerpc/boot/dts/kilauea.dts | 10 ++++-
> arch/powerpc/boot/dts/makalu.dts | 10 ++++-
> arch/powerpc/boot/dts/rainier.dts | 10 ++++-
> arch/powerpc/boot/dts/sequoia.dts | 10 ++++-
> arch/powerpc/boot/dts/taishan.dts | 20 +++++++++--
> arch/powerpc/boot/dts/walnut.dts | 3 ++
> arch/powerpc/boot/dts/warp.dts | 3 ++
> drivers/net/ibm_newemac/core.c | 55 +++++++++++++++++++----------
> drivers/net/ibm_newemac/core.h | 61
> +++++++++++++++++++++++++++++++++
> drivers/net/ibm_newemac/debug.c | 32 +++++++++++------
> drivers/net/ibm_newemac/emac.h | 15 +-------
> 18 files changed, 219 insertions(+), 65 deletions(-)
Stefan and/or Ben:
Any thoughts on this?
Regards,
Grant
next prev parent reply other threads:[~2008-07-01 5:26 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-25 0:08 [PATCH v2] Parameterize EMAC Multicast Match Handling Grant Erickson
2008-07-01 5:26 ` Grant Erickson [this message]
2008-07-01 6:14 ` Benjamin Herrenschmidt
2008-07-01 6:37 ` Stefan Roese
2008-07-01 18:13 ` Grant Erickson
2008-07-01 19:42 ` Stefan Roese
2008-07-01 23:52 ` Benjamin Herrenschmidt
2008-07-05 9:18 ` [PATCH v3] ibm_newemac: " Grant Erickson
2008-07-05 22:45 ` Benjamin Herrenschmidt
2008-07-06 0:15 ` [PATCH v4] " Grant Erickson
2008-07-06 0:31 ` Benjamin Herrenschmidt
2008-07-06 9:43 ` Stefan Roese
2008-07-06 23:30 ` [PATCH v5] " Grant Erickson
2008-07-07 5:58 ` Stefan Roese
2008-07-07 6:00 ` Benjamin Herrenschmidt
2008-07-07 6:29 ` Stefan Roese
2008-07-07 6:43 ` Benjamin Herrenschmidt
2008-07-07 6:18 ` Benjamin Herrenschmidt
2008-07-07 13:59 ` Jeff Garzik
2008-07-07 19:50 ` Valentine Barshak
2008-07-07 22:02 ` Grant Erickson
2008-07-07 22:03 ` [PATCH v6] " Grant Erickson
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=C48F0E18.101F1%gerickson@nuovations.com \
--to=gerickson@nuovations.com \
--cc=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=sr@denx.de \
/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).