Skip to contentSkip to conversation

BMAC driver issue addressed?

DISCUSSION Jim Blackburn 4 participants 4 messages Oct 30, 2000

lore
Share & tools
lore
#0 lore raw

Hi all:

I experience the infamous problems with the bmac driver on my beige g3 minitower. A while back there was talk of analyzing Darwin's workaround for the bmac's hardware issues and implementing that into Linux's kernel. Has anyone taken on this project since that discussion, or has it been shuffled down to the bottom of the deck in light of more pressing issues with the kernel?
--
Jim Blackburn
[email protected]

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

#1 lore raw
Quoted 9 lines · Jim Blackburn

Hi all:

I experience the infamous problems with the bmac driver on my beige g3 minitower. A while back there was talk of analyzing Darwin's workaround for the bmac's hardware issues and implementing that into Linux's kernel. Has anyone taken on this project since that discussion, or has it been shuffled down to the bottom of the deck in light of more pressing issues with the kernel?

By which i think you mean the collide-with-self with 100k/s max Xfer w/ errors? I'd still like to see it fixed :)

I tried to fix it at one point, but didnt get far. My code only caused the kernel to panic, but I should mention, it panicked whenever it would normally have stalled or collided. Looking closer, it would appear that what I was doing, which was ignoring packets that aren't for us or our Masq, seems to be already done in the Linux kernel. maybe my implementation was doing something different and more correct, save the panic.

Looking at the darwin kernel, which is where I got the idea, It looks like it was doing it for a particular revision of the motherboard, which I remember calling 0x10. My PDQ i think is a 0x17, and I had the pleasure of running my Linux setup on a 0x10 at one point. the 0x10 did not have the collision problem in linux, while my 0x17 does. the value refers to some value somewhere in the device tree. im sure you can find it after looking at where Darwin gets it. it might be /proc/device-tree/pci/mac-io/device-id (lsprop)

I'm still puzzled about the whole thing, like if Darwin is filtering those packets we should be ignoring anyway, and Linux does too, Is this really the problem? And what was it I was really doing those months ago? (sorry, i lost my old code) I recall using standard things in the kernel. just one acception added that was in the case of it should have been ignored by the chip.

According to the ppclinux sourceforge bug tracker, the problem was fixed for a patched kernel or two. <shrug>

Corrections? Comments?

--
Joseph P. Garcia [email protected] [email protected]
CS Undergraduate Student Employee - Systems Programmer
University of Wisconsin - Madison UW Lidar Group

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

#2 lore raw
Quoted 5 lines

I'm still puzzled about the whole thing, like if Darwin is filtering those packets we should be ignoring anyway, and Linux does too, Is this really the problem? And what was it I was really doing those months ago? (sorry,

i lost

Quoted 5 lines

my old code) I recall using standard things in the kernel. just one acception
added that was in the case of it should have been ignored by the chip.

According to the ppclinux sourceforge bug tracker, the problem was fixed

for a

Quoted 1 line

patched kernel or two. <shrug>

I think the filter problem is related to a bogus multicast filter or something like that. There is another problem, which is documented in Darwin, and which cause the chip to corrupt packets in the chip's send queue when there's a collision. The workaround they use is to send additional packet datas to the chip from the chip send interrupt instead of the DBDMA interrupt, thus preventing more than 1 packet to be queued in the chip.

ben

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

#3 lore raw
Quoted 7 lines · In message <[email protected]> you wrote:

something like that. There is another problem, which is documented in Darwin, and which cause the chip to corrupt packets in the chip's send queue when there's a collision. The workaround they use is to send additional packet datas to the chip from the chip send interrupt instead of the DBDMA interrupt, thus preventing more than 1 packet to be queued in the chip.

Has this been ever implemented in the Linxu BMAC driver? All kernel versiosn I've tested so far still suffer from that problem. I'd be more than happy if there was a fix available...

Wolfgang Denk

--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected]
You can observe a lot just by watchin'. - Yogi Berra

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