linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: <linuxppc-dev@lists.linuxppc.org>,
	<yellowdog-devel@lists.yellowdoglinux.com>,
	"Kevin B. Hendricks" <khendricks@ivey.uwo.ca>
Subject: Re: Weird bug problems with timing of NIC driver loading?
Date: Sat, 16 Feb 2002 20:22:33 +0100	[thread overview]
Message-ID: <20020216192233.13014@smtp.wanadoo.fr> (raw)
In-Reply-To: <9382917A-2286-11D6-9EE3-0003938E434C@ivey.uwo.ca>


>
>Hi,
>
>I have a weird bug report I need some help tracking down:
>
>With both the G3 using either tulip or  bmac NICs and the new G4 using
>Sungmem I can reliably and repeatedly show funky net behavior when those
>drivers are compiled in or loaded early in the boot process as modules.
>
>This behavior is funny in that ifconfig shows no errors and that packets
>are being sent and received (and the lights on the cards seem to support
>that) but none of the received info ever seems to make it back upstream
>from the card (a receive buffer alignment issue?)
>
>This is repeatable with both machines and with BMAC, TULIP, and SUNGEM
>when compiled in or loaded as a module during the normal eth0
>initialization during bootup
>
>If I simply compile them as modules and wait until the machine is up and
>simply do an insmod and configure the network, they ALL work absolutely
>perfectly.

That is weird, you are the first person to report such a problem,
and since such a broad range of HW is affected, I'd rather blame some
other kernel routing problem, possibly some setup of your init scripts,
(or some ECN issue ?)

>So whatever the issue is, it seems to be related to when in the boot
>process the NIC code is invoked.
>
>Is this due to some change in memory mapping?

No, nothing here should matter.

>Is this due to some  change in IRQ assignment?

Neither. IRQ assignement isn't changed, it comes from the firmware
and works on all known HW.

>Is this due to some alignment issue with DMA buffers and memory / caches?

I don't think so, especially recent machines have no known cache
coherency problems.

>So what is different when a module is loaded by modprobe during the eth0
>initialization during bootup versus waiting until the end and then
>running insmod to load the module and configure the network.
>
>Just to check I made sure there were no firewall modules loaded at all
>and that the network routing tables and things were set properly
>(identical to the hand done case at the end of boot-up).
>
>This problem seems to exist in every 2.4.X kernel I have tried.
>
>This problem does not exist in 2.2.X kernels.

That's weird, it could well be an ecn problem. Do you have a switch
or a hub ? to what machine are you trying to talk to ? It really look
like a problem above the drivers.

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

      reply	other threads:[~2002-02-16 19:22 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-13  1:08 new G4 dual 1 gig is here - how to install? Kevin B. Hendricks
2002-02-13  1:20 ` Tony 'Nicoya' Mantler
2002-02-13  1:55 ` Kevin B. Hendricks
2002-02-13  8:00   ` Olaf Hering
2002-02-13 13:49     ` Kevin B. Hendricks
2002-02-14  2:29   ` Kevin B. Hendricks
2002-02-14  3:53     ` Ani Joshi
2002-02-15 11:08       ` Kevin B. Hendricks
2002-02-16  9:30         ` Kevin B. Hendricks
2002-02-16 14:44           ` SMP kernel configuration question? Kevin B. Hendricks
2002-02-16 19:26             ` Benjamin Herrenschmidt
2002-02-16 15:39           ` SMP kernel seems to work fine Kevin B. Hendricks
2002-02-16 19:24           ` new G4 dual 1 gig is here - how to install? Benjamin Herrenschmidt
2002-02-14 13:53   ` Kevin B. Hendricks
2002-02-14 18:08     ` benh
2002-02-14 19:31       ` Christopher C. Chimelis
2002-02-13  2:25 ` Tom Rini
2002-02-13  5:37 ` Olaf Hering
2002-02-16  2:24 ` Kevin B. Hendricks
2002-02-16 19:19   ` Benjamin Herrenschmidt
2002-02-17 18:22     ` radeonfb.c flakiness Kevin B. Hendricks
2002-02-17 21:51       ` Benjamin Herrenschmidt
2002-02-18 20:55         ` Kevin B. Hendricks
2002-02-19  0:04           ` Benjamin Herrenschmidt
2002-02-16 23:59   ` question on best way to install other ide drives? Kevin B. Hendricks
2002-02-17  0:11     ` Tom Rini
2002-02-17 20:16     ` Timothy A. Seufert
2002-02-17 20:38       ` question: "disabling IRQ 54 defensively?" Kevin B. Hendricks
2002-02-17 21:53         ` Benjamin Herrenschmidt
2002-02-18  2:17         ` Final question: best wasy to move /, /usr, /home, etc? Kevin B. Hendricks
2002-02-18  2:36           ` Bastien Nocera
2002-02-18 16:16             ` Tom Rini
2002-02-18 16:20               ` Bastien Nocera
2002-02-18  3:12           ` Jeramy B. Smith
2002-02-18  8:42           ` Giuliano Pochini
2002-02-18 14:52             ` Derrik Pates
2002-02-18 15:05               ` Gabriel Paubert
2002-02-18 23:18                 ` Michael Heironimus
2002-02-18 17:31             ` David A. Gatwood
2002-02-17 21:52       ` question on best way to install other ide drives? Benjamin Herrenschmidt
2002-02-17 23:19         ` Tom Rini
2002-02-16  2:40 ` Weird bug problems with timing of NIC driver loading? Kevin B. Hendricks
2002-02-16 19:22   ` Benjamin Herrenschmidt [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=20020216192233.13014@smtp.wanadoo.fr \
    --to=benh@kernel.crashing.org \
    --cc=khendricks@ivey.uwo.ca \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=yellowdog-devel@lists.yellowdoglinux.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 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).