public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
* vmlinuz-2.6.29-1-11May on IIfx
@ 2009-05-14 17:35 Riccardo
  2009-05-14 21:09 ` Brad Boyer
  0 siblings, 1 reply; 9+ messages in thread
From: Riccardo @ 2009-05-14 17:35 UTC (permalink / raw)
  To: linux-m68k

Hi,

since I was so happy of the reults on the Q950, I tried my luck with 
the current kernel on the IIfx .

The kernel completes boot. The keyboard works; I'm able to login.
But any activity on the ethernet (remlote login or just a Ping) gives 
me:

trigger_send() called  with the transmitter busy

and after a bit


eth0: mismatched read page pointers 45 vs  c.

booting into 2.6.26 I see the driver used is the mac8390. From dmesg of 
2.6.26

[42949395.010000] mac8390.c: v0.4 2001-05-15 David Huggins-Daines 
<dhd@debian.org> and others
[42949395.030000] eth0: Memory length resource for slot A not found, 
probing
[42949395.040000] eth0: EtherNet card in slot A (type apple)
[42949395.050000] MAC 00:80:ad:13:7c:d0 IRQ 57, 32 KB shared memory at 
0xfaad0000,  32-bit access.


I hope that helps a bit,

Riccardo


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmlinuz-2.6.29-1-11May on IIfx
  2009-05-14 17:35 vmlinuz-2.6.29-1-11May on IIfx Riccardo
@ 2009-05-14 21:09 ` Brad Boyer
  2009-05-15  8:14   ` Michael Schmitz
  2009-05-15  8:32   ` Riccardo
  0 siblings, 2 replies; 9+ messages in thread
From: Brad Boyer @ 2009-05-14 21:09 UTC (permalink / raw)
  To: Riccardo; +Cc: linux-m68k

On Thu, May 14, 2009 at 07:35:03PM +0200, Riccardo wrote:
> But any activity on the ethernet (remlote login or just a Ping) gives 
> me:
> 
> trigger_send() called  with the transmitter busy
> 
> and after a bit
> 
> eth0: mismatched read page pointers 45 vs  c.
> 
> booting into 2.6.26 I see the driver used is the mac8390. From dmesg of 
> 2.6.26
> 
> [42949395.010000] mac8390.c: v0.4 2001-05-15 David Huggins-Daines 
> <dhd@debian.org> and others
> [42949395.030000] eth0: Memory length resource for slot A not found, 
> probing
> [42949395.040000] eth0: EtherNet card in slot A (type apple)
> [42949395.050000] MAC 00:80:ad:13:7c:d0 IRQ 57, 32 KB shared memory at 
> 0xfaad0000,  32-bit access.

Did this ethernet card work in an older kernel? The card type detection
in mac8390.c is partially based on guesses and just trying different
cards, as I remember. It's possible that it's detecting the wrong type,
particularly since it isn't finding all the NuBus ROM resources it is
expecting to be present on this card type. I suspect that it's not
accessing the card correctly. Both the error messages are that the
card isn't in a sane state based on what the driver tried to do.

Incidentally, "apple" is the default type for any card the driver
thinks it can use but can't identify with 100% certainty.

	Brad Boyer
	flar@allandria.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmlinuz-2.6.29-1-11May on IIfx
  2009-05-14 21:09 ` Brad Boyer
@ 2009-05-15  8:14   ` Michael Schmitz
  2009-05-15  9:26     ` Riccardo
  2009-05-15  8:32   ` Riccardo
  1 sibling, 1 reply; 9+ messages in thread
From: Michael Schmitz @ 2009-05-15  8:14 UTC (permalink / raw)
  To: Brad Boyer; +Cc: Riccardo, linux-m68k

Hi,

> > But any activity on the ethernet (remlote login or just a Ping) gives 
> > me:
> > 
> > trigger_send() called  with the transmitter busy
> > 
> > and after a bit
> > 
> > eth0: mismatched read page pointers 45 vs  c.
> > 
> > booting into 2.6.26 I see the driver used is the mac8390. From dmesg of 
> > 2.6.26
> > 
> > [42949395.010000] mac8390.c: v0.4 2001-05-15 David Huggins-Daines 
> > <dhd@debian.org> and others
> > [42949395.030000] eth0: Memory length resource for slot A not found, 
> > probing
> > [42949395.040000] eth0: EtherNet card in slot A (type apple)
> > [42949395.050000] MAC 00:80:ad:13:7c:d0 IRQ 57, 32 KB shared memory at 
> > 0xfaad0000,  32-bit access.
> 
> Did this ethernet card work in an older kernel? The card type detection
> in mac8390.c is partially based on guesses and just trying different
> cards, as I remember. It's possible that it's detecting the wrong type,
> particularly since it isn't finding all the NuBus ROM resources it is
> expecting to be present on this card type. I suspect that it's not
> accessing the card correctly. Both the error messages are that the
> card isn't in a sane state based on what the driver tried to do.

The 'mismatched read page  pointers' I've seen on the EtherNEC 8390 based card 
as well, it seems to indicate that the receive buffer overruns. I'm using a 
timer interrupt there, so that is expected to happen. 

Might 'trigger send called with tx busy' also indicate a failure to receive the 
txdone interrupt? Maybe you're not getting any interrupts from the card? What 
does /proc/interrupts register regarding the 8390 driver?

	Michael


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmlinuz-2.6.29-1-11May on IIfx
  2009-05-14 21:09 ` Brad Boyer
  2009-05-15  8:14   ` Michael Schmitz
@ 2009-05-15  8:32   ` Riccardo
  2009-05-15 10:28     ` Finn Thain
  2009-05-17  6:11     ` Brad Boyer
  1 sibling, 2 replies; 9+ messages in thread
From: Riccardo @ 2009-05-15  8:32 UTC (permalink / raw)
  To: Brad Boyer; +Cc: linux-m68k

Hi Brad,

On Thursday, May 14, 2009, at 11:09  PM, Brad Boyer wrote:

>> booting into 2.6.26 I see the driver used is the mac8390. From dmesg 
>> of
>> 2.6.26
>>
>> [42949395.010000] mac8390.c: v0.4 2001-05-15 David Huggins-Daines
>> <dhd@debian.org> and others
>> [42949395.030000] eth0: Memory length resource for slot A not found,
>> probing
>> [42949395.040000] eth0: EtherNet card in slot A (type apple)
>> [42949395.050000] MAC 00:80:ad:13:7c:d0 IRQ 57, 32 KB shared memory at
>> 0xfaad0000,  32-bit access.
>
> Did this ethernet card work in an older kernel? The card type detection
> in mac8390.c is partially based on guesses and just trying different
> cards, as I remember. It's possible that it's detecting the wrong type,
> particularly since it isn't finding all the NuBus ROM resources it is
> expecting to be present on this card type. I suspect that it's not
> accessing the card correctly. Both the error messages are that the
> card isn't in a sane state based on what the driver tried to do.

maybe I did not express myself clearly: in 2.6.29 the card doesn't work 
and I typed the error message manually,

I then rebooted into 2.6.26, where the card still worked, and pasted 
its dmesg.

Riccardo


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmlinuz-2.6.29-1-11May on IIfx
  2009-05-15  8:14   ` Michael Schmitz
@ 2009-05-15  9:26     ` Riccardo
  0 siblings, 0 replies; 9+ messages in thread
From: Riccardo @ 2009-05-15  9:26 UTC (permalink / raw)
  To: Michael Schmitz; +Cc: Brad Boyer, linux-m68k

Hi,

>> Did this ethernet card work in an older kernel? The card type 
>> detection
>> in mac8390.c is partially based on guesses and just trying different
>> cards, as I remember. It's possible that it's detecting the wrong 
>> type,
>> particularly since it isn't finding all the NuBus ROM resources it is
>> expecting to be present on this card type. I suspect that it's not
>> accessing the card correctly. Both the error messages are that the
>> card isn't in a sane state based on what the driver tried to do.
>
> The 'mismatched read page  pointers' I've seen on the EtherNEC 8390 
> based card
> as well, it seems to indicate that the receive buffer overruns. I'm 
> using a
> timer interrupt there, so that is expected to happen.
>
> Might 'trigger send called with tx busy' also indicate a failure to 
> receive the
> txdone interrupt? Maybe you're not getting any interrupts from the 
> card? What
> does /proc/interrupts register regarding the 8390 driver?
>

under linux, 2.6.29 I get:

mac 57: 74 8390 Ethernet

I attempt to ping a host, which fails, then it says:

mac 57: 86 8390 Ethernet


Riccardo


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmlinuz-2.6.29-1-11May on IIfx
  2009-05-15  8:32   ` Riccardo
@ 2009-05-15 10:28     ` Finn Thain
  2009-05-17  6:10       ` Brad Boyer
  2009-05-17  6:11     ` Brad Boyer
  1 sibling, 1 reply; 9+ messages in thread
From: Finn Thain @ 2009-05-15 10:28 UTC (permalink / raw)
  To: Riccardo; +Cc: linux-m68k



On Fri, 15 May 2009, Riccardo wrote:
> 
> ...in 2.6.29 the card doesn't work and I typed the error message 
> manually,
> 
> I then rebooted into 2.6.26, where the card still worked, and pasted its 
> dmesg.

This commit looks a bit suspect -- it was not CC'd to this list -- in 
particular the Makefile change:

http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=ca17584bf2ad1b1e37a5c0e4386728cc5fc9dabc

So now mac8390.c and 8390.c both #include "lib8390.c"... might this 
perhaps lead to the wrong ei_inb/outb etc in the final link?

Finn

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmlinuz-2.6.29-1-11May on IIfx
  2009-05-15 10:28     ` Finn Thain
@ 2009-05-17  6:10       ` Brad Boyer
  2009-05-17  8:29         ` Geert Uytterhoeven
  0 siblings, 1 reply; 9+ messages in thread
From: Brad Boyer @ 2009-05-17  6:10 UTC (permalink / raw)
  To: Finn Thain; +Cc: Riccardo, linux-m68k

On Fri, May 15, 2009 at 08:28:51PM +1000, Finn Thain wrote:
> This commit looks a bit suspect -- it was not CC'd to this list -- in 
> particular the Makefile change:
> 
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=ca17584bf2ad1b1e37a5c0e4386728cc5fc9dabc
> 
> So now mac8390.c and 8390.c both #include "lib8390.c"... might this 
> perhaps lead to the wrong ei_inb/outb etc in the final link?

It does seem like an odd change. It would be nice if this list got
copied on changes to any nubus drivers, but I suppose it's not anywhere
on the maintainers list. It might be something to bring up with David
for any future changes to nubus network cards.

I'll try to find some time to build a kernel and try it out. I have
several cards that use this driver.

	Brad Boyer
	flar@allandria.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmlinuz-2.6.29-1-11May on IIfx
  2009-05-15  8:32   ` Riccardo
  2009-05-15 10:28     ` Finn Thain
@ 2009-05-17  6:11     ` Brad Boyer
  1 sibling, 0 replies; 9+ messages in thread
From: Brad Boyer @ 2009-05-17  6:11 UTC (permalink / raw)
  To: Riccardo; +Cc: linux-m68k

On Fri, May 15, 2009 at 10:32:46AM +0200, Riccardo wrote:
> maybe I did not express myself clearly: in 2.6.29 the card doesn't work 
> and I typed the error message manually,
> 
> I then rebooted into 2.6.26, where the card still worked, and pasted 
> its dmesg.

My apologies. I did misunderstand your original message.

	Brad Boyer
	flar@allandria.com


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: vmlinuz-2.6.29-1-11May on IIfx
  2009-05-17  6:10       ` Brad Boyer
@ 2009-05-17  8:29         ` Geert Uytterhoeven
  0 siblings, 0 replies; 9+ messages in thread
From: Geert Uytterhoeven @ 2009-05-17  8:29 UTC (permalink / raw)
  To: Brad Boyer; +Cc: Finn Thain, Riccardo, linux-m68k

On Sun, May 17, 2009 at 08:10, Brad Boyer <flar@allandria.com> wrote:
> On Fri, May 15, 2009 at 08:28:51PM +1000, Finn Thain wrote:
>> This commit looks a bit suspect -- it was not CC'd to this list -- in
>> particular the Makefile change:
>>
>> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=ca17584bf2ad1b1e37a5c0e4386728cc5fc9dabc
>>
>> So now mac8390.c and 8390.c both #include "lib8390.c"... might this
>> perhaps lead to the wrong ei_inb/outb etc in the final link?
>
> It does seem like an odd change. It would be nice if this list got
> copied on changes to any nubus drivers, but I suppose it's not anywhere
> on the maintainers list. It might be something to bring up with David
> for any future changes to nubus network cards.

Probably the change looked sufficient trivial/innocent. Trivial updates for core
changes are usually posted on the subsystem mailing list only.

> I'll try to find some time to build a kernel and try it out. I have
> several cards that use this driver.

Good, thanks!

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-05-17  8:29 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-14 17:35 vmlinuz-2.6.29-1-11May on IIfx Riccardo
2009-05-14 21:09 ` Brad Boyer
2009-05-15  8:14   ` Michael Schmitz
2009-05-15  9:26     ` Riccardo
2009-05-15  8:32   ` Riccardo
2009-05-15 10:28     ` Finn Thain
2009-05-17  6:10       ` Brad Boyer
2009-05-17  8:29         ` Geert Uytterhoeven
2009-05-17  6:11     ` Brad Boyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox