public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kimmo Sundqvist <musher@mbnet.fi>
To: Andrew Morton <akpm@osdl.org>
Cc: linux-kernel@vger.kernel.org,
	"viro@parcelfarce.linux.theplanet.co.uk" 
	<viro@parcelfarce.linux.theplanet.co.uk>
Subject: Re: modprobe 3c509 segfaults
Date: Sun, 18 Apr 2004 15:55:05 +0300	[thread overview]
Message-ID: <200404181555.05741.musher@mbnet.fi> (raw)
In-Reply-To: <20040417105557.55ea8520.akpm@osdl.org>

On Saturday 17 April 2004 20:55, Andrew Morton wrote:

> Seems that we used to unconditionally link the device into the
> el3_root_devchain in el3_common_init(), but that was removed, and we now
> conditionally link it, denendent upon sone ifdefs which you presumably have
> not set.

> Does this fix it up?

Now I can use modprobe and then remove the module as many times as I want, but 
some a bit odd behavior appeared.  Some details are repeated from my original 
message:

Two 3c509 cards, a BNC/AUI one, configured with 3com's setup utility 
(3c5x9cfg.exe) to IRQ 9, port 0x210, and a RJ-45 one, configured to IRQ 5, 
port 0x300.  Both use non-pnp initalisation, and don't say anything if I do 
pnpdump.

Under Debian (kernel 2.4.22), the cards were probed IRQ 12 and 5, but ifconfig 
said IRQ 9 and 5 if I had told modprobe "irq=9,5", and both cards worked 
perfectly.

Under Gentoo, kernel 2.6.6-rc1 and your patch applied (I couldn't figure out 
how to correctly use patch, so I deleted the two lines in 3c509.c manually), 
the BNC card is found at IRQ 12 and RJ-45 card at IRQ 5 according 
to /var/log/messages.  And this is the same with every single run of insmod.

1. modprobe (or insmod) with no irq given:
eth0 doesn't come up, Device or resource busy
eth1 comes up with IRQ 5, port 0x300, and appears working

2. modprobe (or insmod) with irq=9,5 given:
eth0 comes up with IRQ _5_, port 0x210, and for some odd reason, works
eth1: Device or resource busy

3. same as the above, (irq=9,5) but eth1 up first
eth1 comes up with IRQ 5, port 0x300, and appears working
eth0: Device or resource busy

4. modprobe (or insmod) with irq=5,9 given:
both come up and work as expected
eth0 is IRQ 9, eth1 is IRQ 5

It is documented that the order of detection is arbitrary.  Both systems have 
the card at IRQ 9 (IRQ 12 in logs) always found first, but Gentoo (kernel 
2.6.6-rc1) needs irq=5,9 while Debian (vanilla kernel 2.4.22) needs irq=9,5.

Biggest thing left to understand is, why does the card work in try 2?  I know 
for sure that eth0 of try 2 is eth0 of try 3 (the BNC card), so we have 
different cards working there.

There is a network only at the BNC connector of one card, so by "appears 
working" I mean that the RJ-45 card comes up and generates interrupts, takes 
an IP address and transmits pings, but - as is expected - doesn't get any 
replies.

-Kimmo S.

      reply	other threads:[~2004-04-18 12:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-17 12:54 modprobe 3c509 segfaults Kimmo Sundqvist
2004-04-17 17:55 ` Andrew Morton
2004-04-18 12:55   ` Kimmo Sundqvist [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=200404181555.05741.musher@mbnet.fi \
    --to=musher@mbnet.fi \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@parcelfarce.linux.theplanet.co.uk \
    /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