Strange pcm/network problem

2003-12-03 Thread Peter Hofer
Hi there,

since I installed 5.2-BETA, I've got a very strange problem. Always
when I'm listening to some music and start a network transfer, both
the music and the transfer stop after some time. Nothing is being
received or sent any more, and the following message appears a few
times:
bfe0: watchdog timeout -- resetting

This goes on until I exit xmms. When I exit xmms, after a few seconds
the network works again. There's no problem in receiving and sending
data then.
I was able to reproduce this with mpg123, it just stops playing and
exits when data is being sent over the network.
The problem also persists when I'm using my rl nic instead of the
onboard bfe chip.
I'm using sources from yesterday (2003-11-02) now and this problem
still occurs, no matter if sound support is loaded with kldload or
compiled into the kernel.
Please tell me when you need more information.

Peter Hofer

Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.2-BETA #0: Tue Dec  2 17:52:22 CET 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/AMNESIAC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc074c000.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.66GHz (2672.74-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
  
Features=0xbfebfbff
real memory  = 1073659904 (1023 MB)
avail memory = 1037697024 (989 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0:  on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 12 entries at 0xc00f23c0
pcib0:  at pcibus 0 on motherboard
pci0:  on pcib0
pci_cfgintr: 0:29 INTA BIOS irq 5
pci_cfgintr: 0:29 INTB BIOS irq 9
pci_cfgintr: 0:29 INTC BIOS irq 9
pci_cfgintr: 0:31 INTA BIOS irq 9
agp0:  mem 0xf000-0xf7ff at device 0.0 on 
pci0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pci_cfgintr: 1:0 INTA BIOS irq 5
pci1:  at device 0.0 (no driver attached)
pci1:  at device 0.1 (no driver attached)
pci0:  at device 29.0 (no driver attached)
pci0:  at device 29.1 (no driver attached)
pci0:  at device 29.2 (no driver attached)
pci0:  at device 29.7 (no driver attached)
pcib2:  at device 30.0 on pci0
pci2:  on pcib2
bfe0:  mem 0xd580-0xd5801fff at device 5.0 on pci2
pci_cfgintr: 2:5 INTA routed to irq 4
bfe0: Ethernet address: 00:0c:6e:07:cf:c0
miibus0:  on bfe0
bmtphy0:  on miibus0
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0:  port 0xa800-0xa8ff mem 0xd500-0xd5ff at 
device 12.0 on pci2
pci_cfgintr: 2:12 INTA routed to irq 4
rl0: Ethernet address: 00:30:bd:1b:81:12
miibus1:  on rl0
rlphy0:  on miibus1
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0:  at device 31.0 on pci0
isa0:  on isab0
atapci0:  port 0xf000-0xf00f,0-0x3,0-0x7,0-0x3,0-0x7 
irq 9 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pci0:  at device 31.5 (no driver attached)
orm0:  at iomem 0xc-0xccfff on isa0
pmtimer0 on isa0
atkbdc0:  at port 0x64,0x60 on isa0
atkbd0:  flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0:  irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
fdc0:  at port 
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0:  at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0:  on ppc0
lpt0:  on ppbus0
lpt0: Interrupt-driven port
ppi0:  on ppbus0
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (irq)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
Timecounter "TSC" frequency 2672737672 Hz quality 800
Timecounters tick every 10.000 msec
ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to deny, 
logging limited to 192 packets/entry by default
GEOM: create disk ad0 dp=0xc66d3060
ad0: 114440MB  [232514/16/63] at ata0-master UDMA100
acd0: DVDROM <[EMAIL PROTECTED] PJ [EMAIL PROTECTED]> at ata1-master PIO2
acd1: CDRW  at ata1-slave PIO4
Mounting root from ufs:/dev/ad0s1a
pcm0:  port 0x9400-0x943f,0x9800-0x98ff mem 
0xd400-0xd4ff,0xd480-0xd48001ff at device 31.5 on pci0
pci_cfgintr: 0:31 INTB routed to irq 4
pcm0: 
bfe0: watchdog timeout -- resetting
bfe0: watchdog timeout -- resetting
Waiting (max 60 seconds) for system process `vnlru' to stop...stoppe

Re: Strange pcm/network problem

2003-12-03 Thread Mathew Kanner
Peter,
I'm afraid I haven't a clue why this happens to you but please
see my notes below.

On Dec 03, Peter Hofer wrote:
> since I installed 5.2-BETA, I've got a very strange problem. Always
> when I'm listening to some music and start a network transfer, both
> the music and the transfer stop after some time. Nothing is being
> received or sent any more, and the following message appears a few
> times:
> 
> bfe0: watchdog timeout -- resetting
> 
> This goes on until I exit xmms. When I exit xmms, after a few seconds
> the network works again. There's no problem in receiving and sending
> data then.
> 
> I was able to reproduce this with mpg123, it just stops playing and
> exits when data is being sent over the network.

And dmesg then says "pcm channel dead" ?

> 
> The problem also persists when I'm using my rl nic instead of the
> onboard bfe chip.
> 
> I'm using sources from yesterday (2003-11-02) now and this problem
> still occurs, no matter if sound support is loaded with kldload or
> compiled into the kernel.

No need to try compiling PCM in the kernel, klds should work
exactly the same.

I notice that your network cards, sound card and sio use IRQ
4, I also note that your aren't using acpi, what happens when you
enable it?

A brief look at the ich code reveals that it's flagged as
mpsafe when it isn't, but since you are UP, I don't see this being the
cause.  I also vaguely remember that another OS had a note about
certain corner cases missing interrupts but I don't think that should
affect other irq handlers either.  I really am stumped.

If we can't figure this out, you always do a binary search to
find the commit that caused it, though since I wouldn't likely do this
myself, I wouldn't expect you to.

Input from others warmly received :)

--mat

-- 
Any idiot can face a crisis; it is this day-to-day living
that wears you out.
- Chekhov
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Strange pcm/network problem

2003-12-03 Thread Dylan Wylie
A quick tought; perhaps you need to remove irq 5 from pccard.conf

But...
> The problem also persists when I'm using my rl nic instead of the
> onboard bfe chip.
..maybe not.

Try it.

Dylan

On 3 Dec 2003 at 20:04, Peter Hofer wrote:

> Hi there,
> 
> since I installed 5.2-BETA, I've got a very strange problem. Always
> when I'm listening to some music and start a network transfer, both
> the music and the transfer stop after some time. Nothing is being
> received or sent any more, and the following message appears a few
> times:
> 
> bfe0: watchdog timeout -- resetting
> 
> This goes on until I exit xmms. When I exit xmms, after a few seconds
> the network works again. There's no problem in receiving and sending
> data then.
> 
> I was able to reproduce this with mpg123, it just stops playing and
> exits when data is being sent over the network.
> 
> The problem also persists when I'm using my rl nic instead of the
> onboard bfe chip.
> 
> I'm using sources from yesterday (2003-11-02) now and this problem
> still occurs, no matter if sound support is loaded with kldload or
> compiled into the kernel.
> 
> Please tell me when you need more information.
> 
> Peter Hofer
> 
> 


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Strange pcm/network problem

2003-12-03 Thread Peter Hofer
Mathew Kanner wrote:

I notice that your network cards, sound card and sio use IRQ
4, I also note that your aren't using acpi, what happens when you
enable it?
You're right, it was because of ACPI ;)

I just compiled a GENERIC kernel and booted it with ACPI ENABLED.
The problem didn't occur. Then, I booted it with ACPI DISABLED,
and the problem was there again.
Thank you.

Peter Hofer

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Strange pcm/network problem

2003-12-03 Thread Mathew Kanner
On Dec 03, Peter Hofer wrote:
> Mathew Kanner wrote:
> 
> > I notice that your network cards, sound card and sio use IRQ
> >4, I also note that your aren't using acpi, what happens when you
> >enable it?
> >
> You're right, it was because of ACPI ;)
> 
> I just compiled a GENERIC kernel and booted it with ACPI ENABLED.
> The problem didn't occur. Then, I booted it with ACPI DISABLED,
> and the problem was there again.
> 
Good news, please supply a dmesg before and after.

Thanks,
--mat
-- 
I don't even know what street Canada is on.
- Al Capone
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Strange pcm/network problem

2003-12-03 Thread Peter Hofer
>Good news, please supply a dmesg before and after.

I've attached them. Both are GENERIC kernels, one booted
with ACPI ENABLED [default] and the other with ACPI
DISABLED.
Thanks for your help,
Peter Hofer
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.2-BETA #1: Wed Dec  3 21:42:28 CET 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a78000.
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.66GHz (2672.74-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
  
Features=0xbfebfbff
real memory  = 1073659904 (1023 MB)
avail memory = 1033498624 (985 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0:  on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 12 entries at 0xc00f23c0
pcib0:  at pcibus 0 on motherboard
pci0:  on pcib0
pci_cfgintr: 0:29 INTA BIOS irq 5
pci_cfgintr: 0:29 INTB BIOS irq 9
pci_cfgintr: 0:29 INTC BIOS irq 9
pci_cfgintr: 0:31 INTA BIOS irq 9
agp0:  mem 0xf000-0xf7ff at device 0.0 on 
pci0
pcib1:  at device 1.0 on pci0
pci1:  on pcib1
pci_cfgintr: 1:0 INTA BIOS irq 5
pci1:  at device 0.0 (no driver attached)
pci1:  at device 0.1 (no driver attached)
uhci0:  port 0xb800-0xb81f irq 5 at device 
29.0 on pci0
usb0:  on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1:  port 0xb400-0xb41f irq 9 at device 
29.1 on pci0
usb1:  on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2:  port 0xb000-0xb01f irq 9 at device 
29.2 on pci0
usb2:  on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
ugen0: Microsoft Microsoft SideWinder game controller, rev 1.00/0.95, addr 2
pci0:  at device 29.7 (no driver attached)
pcib2:  at device 30.0 on pci0
pci2:  on pcib2
bfe0:  mem 0xd580-0xd5801fff at device 5.0 on pci2
pci_cfgintr: 2:5 INTA routed to irq 4
bfe0: Ethernet address: 00:0c:6e:07:cf:c0
miibus0:  on bfe0
bmtphy0:  on miibus0
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0:  port 0xa800-0xa8ff mem 0xd500-0xd5ff at 
device 12.0 on pci2
pci_cfgintr: 2:12 INTA routed to irq 4
rl0: Ethernet address: 00:30:bd:1b:81:12
miibus1:  on rl0
rlphy0:  on miibus1
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0:  at device 31.0 on pci0
isa0:  on isab0
atapci0:  port 0xf000-0xf00f,0-0x3,0-0x7,0-0x3,0-0x7 
irq 9 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata0: [MPSAFE]
ata1: at 0x170 irq 15 on atapci0
ata1: [MPSAFE]
pci0:  at device 31.5 (no driver attached)
orm0:  at iomem 0xc-0xccfff on isa0
pmtimer0 on isa0
atkbdc0:  at port 0x64,0x60 on isa0
atkbd0:  flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0:  irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
fdc0:  at port 
0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
ppc0:  at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/16 bytes threshold
ppbus0:  on ppc0
plip0:  on ppbus0
lpt0:  on ppbus0
lpt0: Interrupt-driven port
ppi0:  on ppbus0
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
unknown:  can't assign resources (irq)
unknown:  can't assign resources (port)
unknown:  can't assign resources (port)
Timecounter "TSC" frequency 2672737696 Hz quality 800
Timecounters tick every 10.000 msec
GEOM: create disk ad0 dp=0xc6a1b960
ad0: 114440MB  [232514/16/63] at ata0-master UDMA100
acd0: DVDROM  at ata1-master PIO4
acd1: CDRW  at ata1-slave PIO4
Mounting root from ufs:/dev/ad0s1a
ipfw2 initialized, divert disabled, rule-based forwarding enabled, default to deny, 
logging disabled
pcm0:  port 0x9400-0x943f,0x9800-0x98ff mem 
0xd400-0xd4ff,0xd480-0xd48001ff at device 31.5 on pci0
pci_cfgintr: 0:31 INTB routed to irq 4
pcm0: 
Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.2-BETA #1: Wed Dec  3 21:42:28 CET 2003
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
Preloaded elf kernel "/boot/kernel/ker