Re: PRoblem with pcnet32 under 2.4.0 , was :Drivers under 2.4

2001-01-15 Thread Danny ter Haar

I experimented some further today.

using some printk i found out is was setting Fullduplex,
hardcoded that to half-duplex (mine is connected to a hub
and not a switch) , and it's configuration was 100Mbit
as it was supposed to.

Then i started looking at the start_xmit code and got
lost :-)))

Hope this helpes to pin-point the problem.

Danny
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: PRoblem with pcnet32 under 2.4.0 , was :Drivers under 2.4

2001-01-15 Thread Danny ter Haar

I experimented some further today.

using some printk i found out is was setting Fullduplex,
hardcoded that to half-duplex (mine is connected to a hub
and not a switch) , and it's configuration was 100Mbit
as it was supposed to.

Then i started looking at the start_xmit code and got
lost :-)))

Hope this helpes to pin-point the problem.

Danny
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: PRoblem with pcnet32 under 2.4.0 , was :Drivers under 2.4

2001-01-12 Thread Thomas Bogendoerfer

On Fri, Jan 12, 2001 at 12:50:10PM +0100, Danny ter Haar wrote:
> eth0: PCnet/FAST III 79C973 at 0xfce0, 00 00 e2 24 41 1d
> pcnet32: pcnet32_private lp=c3c42000 lp_dma_addr=0x3c42000 assigned IRQ 9. 
> pcnet32.c:v1.25kf 26.9.1999 [EMAIL PROTECTED] 

same chip works for me von my P5 SMP box.

> irq  0: 16840 timer  irq  9: 0 acpi, PCnet/FAST III  

no interrupts for PCnet driver sounds more like interrupt routing problem to
me.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessary a
good idea. [ Alexander Viro on linux-kernel ]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: PRoblem with pcnet32 under 2.4.0 , was :Drivers under 2.4

2001-01-12 Thread Danny ter Haar

Hans Grobler  <[EMAIL PROTECTED]> wrote:
>> lspci -vx output:
>What about the other devices?

ok, here's the full listing :

00:00.0 Host bridge: Cyrix Corporation PCI Master   
Flags: bus master, medium devsel, latency 0 
00: 78 10 01 00 07 00 80 02 00 00 00 06 00 00 00 00 
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

00:0e.0 VGA compatible controller: Intergraphics Systems CyberPro 5000 (rev 02) 
(prog-if 00 [VGA])  
Subsystem: Unknown device 0280:7000 
Flags: medium devsel, IRQ 11
Memory at fd00 (32-bit, non-prefetchable) [size=16M]
Expansion ROM at  [disabled] [size=64K] 
00: ea 10 00 50 03 00 00 02 02 00 00 03 04 40 00 00 
10: 00 00 00 fd 00 00 00 00 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 80 02 00 70 
30: 00 00 00 00 00 00 00 00 00 00 00 00 0b 01 00 00 

00:0f.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet LANCE] (
rev 42) 
Subsystem: Advanced Micro Devices [AMD]: Unknown device 2000
Flags: bus master, medium devsel, latency 64, IRQ 9 
I/O ports at fce0 [size=32] 
Memory at fedffc00 (32-bit, non-prefetchable) [size=32] 
Expansion ROM at  [disabled] [size=1M]  
Capabilities: [40] Power Management version 1   
00: 22 10 00 20 07 00 90 02 42 00 00 02 00 40 00 00 
10: e1 fc 00 00 00 fc df fe 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 22 10 00 20 
30: 00 00 00 00 40 00 00 00 00 00 00 00 09 01 18 18   

00:12.1 Bridge: Cyrix Corporation 5530 SMI [Kahlua] 
Flags: medium devsel
Memory at 40012000 (32-bit, non-prefetchable) [size=256]
00: 78 10 01 01 02 00 80 02 00 00 80 06 00 00 00 00 
10: 00 20 01 40 00 00 00 00 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

00:12.2 IDE interface: Cyrix Corporation 5530 IDE [Kahlua] (prog-if 00 [])  
Flags: medium devsel
I/O ports at fc00 [size=16] 
00: 78 10 02 01 01 00 80 02 00 00 01 01 00 00 00 00 
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
20: 01 fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  

00:12.3 Multimedia audio controller: Cyrix Corporation 5530 Audio [Kahlua]  
Flags: bus master, medium devsel, latency 0 
Memory at 40011000 (32-bit, non-prefetchable) [size=128]
00: 78 10 03 01 06 00 80 02 00 00 01 04 00 00 00 00 
10: 00 10 01 40 00 00 00 00 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

00:13.0 USB Controller: Compaq Computer Corporation: Unknown device a0f8 (rev 06
) (prog-if 10 [OHCI])   
Subsystem: Compaq Computer Corporation: Unknown device a0f8 
Flags: medium devsel, IRQ 10
Memory at fedfe000 (32-bit, non-prefetchable) [size=4K] 
00: 11 0e f8 a0 13 00 80 02 06 10 03 0c 00 40 00 00 
10: 00 e0 df fe 00 00 00 00 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 11 0e f8 a0 
30: 00 00 00 00 00 00 00 00 00 00 00 00 0a 01 00 50  

00:14.0 Multimedia video controller: Zoran 

Re: PRoblem with pcnet32 under 2.4.0 , was :Drivers under 2.4

2001-01-12 Thread Hans Grobler

On Fri, 12 Jan 2001, Danny ter Haar wrote:
> According to Hans Grobler:
> > If you're willing, would you please follow "REPORTING-BUGS" and send some
> > more info. Also cat /proc/interrupts. This one's intriging...

Thanks for the report (still studying it).

> lspci -vx output:
>
> 00:0f.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet LANCE] (

What about the other devices?

> irq  0: 16840 timer irq  9: 0 acpi, PCnet/FAST III

Ok, this may not mean much, but have you tried compiling without acpi?
Just to remove some variables...

-- Hans

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



PRoblem with pcnet32 under 2.4.0 , was :Drivers under 2.4

2001-01-12 Thread Danny ter Haar

According to Hans Grobler:
> If you're willing, would you please follow "REPORTING-BUGS" and send some
> more info. Also cat /proc/interrupts. This one's intriging...


In short:

Cyrix Multimedia box
Everything onboard, including ethernet.
Works as supposed to under 2.2.x (including 2.2.19pre7)
installing 2.4.0 kernel recognises the driver but
no byte is passed over the ethernet.

Kernel:
Linux version 2.4.0-ac7 (root@multimedia) (gcc version 2.95.3 20001229 (prerelea
se)) #2 Fri Jan 12 11:17:47 CET 2001 

Distribution: 
Debian unstable (sid)


Output of loading the pcnet32 module:

pcnet32_probe_pci: found device 0x001022.0x002000   
ioaddr=0x00fce0  resource_flags=0x000101
PCI: Found IRQ 9 for device 00:0f.0 
eth0: PCnet/FAST III 79C973 at 0xfce0, 00 00 e2 24 41 1d
pcnet32: pcnet32_private lp=c3c42000 lp_dma_addr=0x3c42000 assigned IRQ 9.  
pcnet32.c:v1.25kf 26.9.1999 [EMAIL PROTECTED] 

lspci -vx output:

00:0f.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet LANCE] (
rev 42) 
Subsystem: Advanced Micro Devices [AMD]: Unknown device 2000
Flags: bus master, medium devsel, latency 64, IRQ 9 
I/O ports at fce0 [size=32] 
Memory at fedffc00 (32-bit, non-prefetchable) [size=32] 
Expansion ROM at  [disabled] [size=1M]  
Capabilities: [40] Power Management version 1   
00: 22 10 00 20 07 00 90 02 42 00 00 02 00 40 00 00 
10: e1 fc 00 00 00 fc df fe 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 22 10 00 20 
30: 00 00 00 00 40 00 00 00 00 00 00 00 09 01 18 18 

The machine is connected to a 3com 8ports 100Mbit hub 

no additional parameters when the module is loaded, except i tried
debug=7 which gave verbose output 

After bootup this is the situation:

multimedia:~# ifconfig  
eth0  Link encap:Ethernet  HWaddr 00:00:E2:24:41:1D 
  inet addr:192.168.1.51  Bcast:192.168.1.255  Mask:255.255.255.0   
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0  
  collisions:0 txqueuelen:100   
  Interrupt:9 Base address:0xfce0  

procinfo:

multimedia:~# procinfo  
Linux 2.4.0-ac7 (root@multimedia) (gcc 2.95.3 20001229 ) #2 Fri Jan 12 11:17:47 
CET 2001 1CPU [multimedia.(none)]   

Memory:  TotalUsedFree  Shared Buffers  Cached  
Mem: 62308   12596   49712   0 6366636  
Swap:   184708   0  184708  

Bootup: Fri Jan 12 12:30:22 2001Load average: 0.02 0.03 0.01 1/28 229   

user  :   0:00:05.32   3.2%  page in : 5744 
nice  :   0:00:00.00   0.0%  page out:  354 
system:   0:00:09.31   5.5%  swap in :1 
idle  :   0:02:33.77  91.3%  swap out:0 
uptime:   0:02:48.38 context : 2940 

irq  0: 16840 timer irq  9: 0 acpi, PCnet/FAST III  
irq  1: 3 keyboard  irq 12: 0 PS/2 Mouse
irq  2: 0 cascade [4]   irq 14:  1640 ide0  
irq  4:   127 serialirq 15: 3 ide1  
irq  8: 1 rtc   


after trying to ping -c10 a host in it's own range (default gw in fact):

Jan 12 12:30:36 multimedia kernel: eth0: pcnet32_open() irq 9 tx/rx rings 0x3c41
200/0x3c41000 init 0x3c41300.   
Jan 12 12:30:36 multimedia kernel: eth0: pcnet32 open after 5 ticks, init block 
0x3c41300 csr0 01f3.
Jan 12 12:30:38 multimedia kernel: eth0: pcnet32_start_xmit() 

PRoblem with pcnet32 under 2.4.0 , was :Drivers under 2.4

2001-01-12 Thread Danny ter Haar

According to Hans Grobler:
 If you're willing, would you please follow "REPORTING-BUGS" and send some
 more info. Also cat /proc/interrupts. This one's intriging...


In short:

Cyrix Multimedia box
Everything onboard, including ethernet.
Works as supposed to under 2.2.x (including 2.2.19pre7)
installing 2.4.0 kernel recognises the driver but
no byte is passed over the ethernet.

Kernel:
Linux version 2.4.0-ac7 (root@multimedia) (gcc version 2.95.3 20001229 (prerelea
se)) #2 Fri Jan 12 11:17:47 CET 2001 

Distribution: 
Debian unstable (sid)


Output of loading the pcnet32 module:

pcnet32_probe_pci: found device 0x001022.0x002000   
ioaddr=0x00fce0  resource_flags=0x000101
PCI: Found IRQ 9 for device 00:0f.0 
eth0: PCnet/FAST III 79C973 at 0xfce0, 00 00 e2 24 41 1d
pcnet32: pcnet32_private lp=c3c42000 lp_dma_addr=0x3c42000 assigned IRQ 9.  
pcnet32.c:v1.25kf 26.9.1999 [EMAIL PROTECTED] 

lspci -vx output:

00:0f.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet LANCE] (
rev 42) 
Subsystem: Advanced Micro Devices [AMD]: Unknown device 2000
Flags: bus master, medium devsel, latency 64, IRQ 9 
I/O ports at fce0 [size=32] 
Memory at fedffc00 (32-bit, non-prefetchable) [size=32] 
Expansion ROM at unassigned [disabled] [size=1M]  
Capabilities: [40] Power Management version 1   
00: 22 10 00 20 07 00 90 02 42 00 00 02 00 40 00 00 
10: e1 fc 00 00 00 fc df fe 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 22 10 00 20 
30: 00 00 00 00 40 00 00 00 00 00 00 00 09 01 18 18 

The machine is connected to a 3com 8ports 100Mbit hub 

no additional parameters when the module is loaded, except i tried
debug=7 which gave verbose output 

After bootup this is the situation:

multimedia:~# ifconfig  
eth0  Link encap:Ethernet  HWaddr 00:00:E2:24:41:1D 
  inet addr:192.168.1.51  Bcast:192.168.1.255  Mask:255.255.255.0   
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0  
  collisions:0 txqueuelen:100   
  Interrupt:9 Base address:0xfce0  

procinfo:

multimedia:~# procinfo  
Linux 2.4.0-ac7 (root@multimedia) (gcc 2.95.3 20001229 ) #2 Fri Jan 12 11:17:47 
CET 2001 1CPU [multimedia.(none)]   

Memory:  TotalUsedFree  Shared Buffers  Cached  
Mem: 62308   12596   49712   0 6366636  
Swap:   184708   0  184708  

Bootup: Fri Jan 12 12:30:22 2001Load average: 0.02 0.03 0.01 1/28 229   

user  :   0:00:05.32   3.2%  page in : 5744 
nice  :   0:00:00.00   0.0%  page out:  354 
system:   0:00:09.31   5.5%  swap in :1 
idle  :   0:02:33.77  91.3%  swap out:0 
uptime:   0:02:48.38 context : 2940 

irq  0: 16840 timer irq  9: 0 acpi, PCnet/FAST III  
irq  1: 3 keyboard  irq 12: 0 PS/2 Mouse
irq  2: 0 cascade [4]   irq 14:  1640 ide0  
irq  4:   127 serialirq 15: 3 ide1  
irq  8: 1 rtc   


after trying to ping -c10 a host in it's own range (default gw in fact):

Jan 12 12:30:36 multimedia kernel: eth0: pcnet32_open() irq 9 tx/rx rings 0x3c41
200/0x3c41000 init 0x3c41300.   
Jan 12 12:30:36 multimedia kernel: eth0: pcnet32 open after 5 ticks, init block 
0x3c41300 csr0 01f3.
Jan 12 12:30:38 multimedia kernel: eth0: 

Re: PRoblem with pcnet32 under 2.4.0 , was :Drivers under 2.4

2001-01-12 Thread Hans Grobler

On Fri, 12 Jan 2001, Danny ter Haar wrote:
 According to Hans Grobler:
  If you're willing, would you please follow "REPORTING-BUGS" and send some
  more info. Also cat /proc/interrupts. This one's intriging...

Thanks for the report (still studying it).

 lspci -vx output:

 00:0f.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet LANCE] (

What about the other devices?

 irq  0: 16840 timer irq  9: 0 acpi, PCnet/FAST III

Ok, this may not mean much, but have you tried compiling without acpi?
Just to remove some variables...

-- Hans

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/



Re: PRoblem with pcnet32 under 2.4.0 , was :Drivers under 2.4

2001-01-12 Thread Danny ter Haar

Hans Grobler  [EMAIL PROTECTED] wrote:
 lspci -vx output:
What about the other devices?

ok, here's the full listing :

00:00.0 Host bridge: Cyrix Corporation PCI Master   
Flags: bus master, medium devsel, latency 0 
00: 78 10 01 00 07 00 80 02 00 00 00 06 00 00 00 00 
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

00:0e.0 VGA compatible controller: Intergraphics Systems CyberPro 5000 (rev 02) 
(prog-if 00 [VGA])  
Subsystem: Unknown device 0280:7000 
Flags: medium devsel, IRQ 11
Memory at fd00 (32-bit, non-prefetchable) [size=16M]
Expansion ROM at unassigned [disabled] [size=64K] 
00: ea 10 00 50 03 00 00 02 02 00 00 03 04 40 00 00 
10: 00 00 00 fd 00 00 00 00 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 80 02 00 70 
30: 00 00 00 00 00 00 00 00 00 00 00 00 0b 01 00 00 

00:0f.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet LANCE] (
rev 42) 
Subsystem: Advanced Micro Devices [AMD]: Unknown device 2000
Flags: bus master, medium devsel, latency 64, IRQ 9 
I/O ports at fce0 [size=32] 
Memory at fedffc00 (32-bit, non-prefetchable) [size=32] 
Expansion ROM at unassigned [disabled] [size=1M]  
Capabilities: [40] Power Management version 1   
00: 22 10 00 20 07 00 90 02 42 00 00 02 00 40 00 00 
10: e1 fc 00 00 00 fc df fe 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 22 10 00 20 
30: 00 00 00 00 40 00 00 00 00 00 00 00 09 01 18 18   

00:12.1 Bridge: Cyrix Corporation 5530 SMI [Kahlua] 
Flags: medium devsel
Memory at 40012000 (32-bit, non-prefetchable) [size=256]
00: 78 10 01 01 02 00 80 02 00 00 80 06 00 00 00 00 
10: 00 20 01 40 00 00 00 00 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

00:12.2 IDE interface: Cyrix Corporation 5530 IDE [Kahlua] (prog-if 00 [])  
Flags: medium devsel
I/O ports at fc00 [size=16] 
00: 78 10 02 01 01 00 80 02 00 00 01 01 00 00 00 00 
10: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
20: 01 fc 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  

00:12.3 Multimedia audio controller: Cyrix Corporation 5530 Audio [Kahlua]  
Flags: bus master, medium devsel, latency 0 
Memory at 40011000 (32-bit, non-prefetchable) [size=128]
00: 78 10 03 01 06 00 80 02 00 00 01 04 00 00 00 00 
10: 00 10 01 40 00 00 00 00 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 

00:13.0 USB Controller: Compaq Computer Corporation: Unknown device a0f8 (rev 06
) (prog-if 10 [OHCI])   
Subsystem: Compaq Computer Corporation: Unknown device a0f8 
Flags: medium devsel, IRQ 10
Memory at fedfe000 (32-bit, non-prefetchable) [size=4K] 
00: 11 0e f8 a0 13 00 80 02 06 10 03 0c 00 40 00 00 
10: 00 e0 df fe 00 00 00 00 00 00 00 00 00 00 00 00 
20: 00 00 00 00 00 00 00 00 00 00 00 00 11 0e f8 a0 
30: 00 00 00 00 00 00 00 00 00 00 00 00 0a 01 00 50  

00:14.0 Multimedia video 

Re: PRoblem with pcnet32 under 2.4.0 , was :Drivers under 2.4

2001-01-12 Thread Thomas Bogendoerfer

On Fri, Jan 12, 2001 at 12:50:10PM +0100, Danny ter Haar wrote:
 eth0: PCnet/FAST III 79C973 at 0xfce0, 00 00 e2 24 41 1d
 pcnet32: pcnet32_private lp=c3c42000 lp_dma_addr=0x3c42000 assigned IRQ 9. 
 pcnet32.c:v1.25kf 26.9.1999 [EMAIL PROTECTED] 

same chip works for me von my P5 SMP box.

 irq  0: 16840 timer  irq  9: 0 acpi, PCnet/FAST III  

no interrupts for PCnet driver sounds more like interrupt routing problem to
me.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessary a
good idea. [ Alexander Viro on linux-kernel ]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/