All of lore.kernel.org
 help / color / mirror / Atom feed
From: andrew may <acmay@acmay.homeip.net>
To: Tom Rini <trini@kernel.crashing.org>
Cc: andrew may <acmay@acmay.homeip.net>,
	linuxppc-embedded@lists.linuxppc.org, Armin <akuster@pacbell.net>
Subject: Re: [PATCH] another for ibm_ocp_enet gzip'd
Date: Mon, 18 Mar 2002 14:25:07 -0800	[thread overview]
Message-ID: <20020318142507.A6687@ecam.san.rr.com> (raw)
In-Reply-To: <20020315223140.GA1643@opus.bloom.county>

[-- Attachment #1: Type: text/plain, Size: 817 bytes --]

On Fri, Mar 15, 2002 at 03:31:40PM -0700, Tom Rini wrote:
> On Fri, Mar 15, 2002 at 02:25:42PM -0800, andrew may wrote:
> > On Fri, Mar 15, 2002 at 01:05:58PM -0700, Tom Rini wrote:
> > > On Fri, Mar 15, 2002 at 11:41:37AM -0800, andrew may wrote:
> > >
> > > > 3. added mal.sh to generate a new ibm_ocp_mal.c
> > >
> > > This looks very cool.  Can you add in some comments to the shell script,
> > > and I didn't see any bashisms in there, can you verify it works with
> > > pdksh or one of the other script shells which can be /bin/sh ?
> >
> > I am not sure how I can check against other shells since I don't
> > have them on my machine. Is sh --posix good enough?
>
> It depends on what 'sh' is.

Well I just have bash 2.05a.0(1)-release as a debian package.

Here is a patch for the Config.help and the Makefile

[-- Attachment #2: ocp_enet-5.diff --]
[-- Type: text/plain, Size: 1892 bytes --]

diff -u linux-base/Documentation/Configure.help linux-ppc/Documentation/Configure.help
--- linux-base/Documentation/Configure.help	Wed Mar 13 19:52:39 2002
+++ linux-ppc/Documentation/Configure.help	Mon Mar 18 13:53:19 2002
@@ -24099,6 +24099,21 @@
   Number of ethernet transmit (write) buffers.  Unless you know what
   you are doing the default should be fine.

+PowerPC 405 on-chip ethernet -- Amount of bytes to Reserve on a skb
+CONFIG_IBM_OCP_ENET_SKB_RES
+  Many standard ethernet drivers need to reserve 2 bytes of data
+  on the skb before giving the data ptr to the hardware. This is
+  so the IP data will be 16-byte aligned when it goes up the stack.
+  This is a requirement for some processors and it can cause major
+  slow downs on others. The 405GP dose not have problems with the
+  misaligned data so the default is 0. If you need to route the
+  incoming ethernet packets to another device that has alignment
+  requirements this can help remove a data copy. A value of 2 can
+  help at getting 16-byte aligned IP data for another device. A
+  larger value can be used when routing to a IP tunnel device.
+  Make sure XXX_DESC_SIZE - XXX_SKB_RES >= 1514, or larger if VLANS
+  are used.
+
 PPC 405 I2C Algorithm
 CONFIG_PPC405_I2C_ALGO
   Enable this option to use the built-in I2C on your 405.
diff -ur linux-base/drivers/net/ibm_ocp/Makefile linux-ppc/drivers/net/ibm_ocp/Makefile
--- linux-base/drivers/net/ibm_ocp/Makefile	Wed Mar 13 19:52:33 2002
+++ linux-ppc/drivers/net/ibm_ocp/Makefile	Mon Mar 18 13:49:18 2002
@@ -19,3 +19,10 @@
 obj-$(CONFIG_IBM_OCP_ENET) += ibm_ocp_enet.o ibm_ocp_phy.o ibm_ocp_mal.o

 include $(TOPDIR)/Rules.make
+
+#This will generate code for 2MALs this works for the 405GP even
+#though it has only one since the 2nd is defined at offset 0
+#Do we want CONFIG_IBM_OCP_MAL_CNT ?
+ibm_ocp_mal.c: mal.sh
+	$(SH) ./mal.sh 2 >ibm_ocp_mal.c
+

  reply	other threads:[~2002-03-18 22:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-15 19:41 [PATCH] another for ibm_ocp_enet gzip'd andrew may
2002-03-15 20:05 ` Tom Rini
2002-03-15 22:25   ` andrew may
2002-03-15 22:31     ` Tom Rini
2002-03-18 22:25       ` andrew may [this message]
2002-03-18 14:53         ` Armin
2002-03-18 22:56           ` andrew may
2002-03-19  0:28         ` Tom Rini
2002-03-19  0:54           ` andrew may
2002-03-19  1:01             ` Tom Rini
2002-03-15 20:06 ` Tom Rini

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=20020318142507.A6687@ecam.san.rr.com \
    --to=acmay@acmay.homeip.net \
    --cc=akuster@pacbell.net \
    --cc=linuxppc-embedded@lists.linuxppc.org \
    --cc=trini@kernel.crashing.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.