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=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
real memory  = 1073659904 (1023 MB)
avail memory = 1037697024 (989 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: math processor on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 12 entries at 0xc00f23c0
pcib0: Host to PCI bridge at pcibus 0 on motherboard
pci0: PCI bus 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: Intel Generic host to PCI bridge mem 0xf000-0xf7ff at device 0.0 on 
pci0
pcib1: PCIBIOS PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci_cfgintr: 1:0 INTA BIOS irq 5
pci1: display, VGA at device 0.0 (no driver attached)
pci1: display at device 0.1 (no driver attached)
pci0: serial bus, USB at device 29.0 (no driver attached)
pci0: serial bus, USB at device 29.1 (no driver attached)
pci0: serial bus, USB at device 29.2 (no driver attached)
pci0: serial bus, USB at device 29.7 (no driver attached)
pcib2: PCIBIOS PCI-PCI bridge at device 30.0 on pci0
pci2: PCI bus on pcib2
bfe0: Broadcom BCM4401 Fast Ethernet 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: MII bus on bfe0
bmtphy0: BCM4401 10/100baseTX PHY on miibus0
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: RealTek 8139 10/100BaseTX 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: MII bus on rl0
rlphy0: RealTek internal media interface on miibus1
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH4 UDMA100 controller 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: multimedia, audio at device 31.5 (no driver attached)
orm0: Option ROM at iomem 0xc-0xccfff on isa0
pmtimer0 on isa0
atkbdc0: Keyboard controller (i8042) at port 0x64,0x60 on isa0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
fdc0: Enhanced floppy controller (i82077, NE72065 or clone) 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: Parallel port 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: Parallel port bus on ppc0
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0
sc0: System console 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: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
unknown: PNP0401 can't assign resources (port)
unknown: PNP0501 can't assign resources (port)
unknown: PNP0501 can't assign resources (port)
unknown: PNP0700 can't assign resources (port)
unknown: PNP0f13 can't assign resources (irq)
unknown: PNP0303 can't assign resources (port)
unknown: PNP0c02 can't assign resources (port)

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=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
real memory  = 1073659904 (1023 MB)
avail memory = 1033498624 (985 MB)
Pentium Pro MTRR support enabled
npx0: [FAST]
npx0: math processor on motherboard
npx0: INT 16 interface
pcibios: BIOS version 2.10
Using $PIR table, 12 entries at 0xc00f23c0
pcib0: Host to PCI bridge at pcibus 0 on motherboard
pci0: PCI bus 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: Intel Generic host to PCI bridge mem 0xf000-0xf7ff at device 0.0 on 
pci0
pcib1: PCIBIOS PCI-PCI bridge at device 1.0 on pci0
pci1: PCI bus on pcib1
pci_cfgintr: 1:0 INTA BIOS irq 5
pci1: display, VGA at device 0.0 (no driver attached)
pci1: display at device 0.1 (no driver attached)
uhci0: Intel 82801DB (ICH4) USB controller USB-A port 0xb800-0xb81f irq 5 at device 
29.0 on pci0
usb0: Intel 82801DB (ICH4) USB controller USB-A 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: Intel 82801DB (ICH4) USB controller USB-B port 0xb400-0xb41f irq 9 at device 
29.1 on pci0
usb1: Intel 82801DB (ICH4) USB controller USB-B 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: Intel 82801DB (ICH4) USB controller USB-C port 0xb000-0xb01f irq 9 at device 
29.2 on pci0
usb2: Intel 82801DB (ICH4) USB controller USB-C 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: serial bus, USB at device 29.7 (no driver attached)
pcib2: PCIBIOS PCI-PCI bridge at device 30.0 on pci0
pci2: PCI bus on pcib2
bfe0: Broadcom BCM4401 Fast Ethernet 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: MII bus on bfe0
bmtphy0: BCM4401 10/100baseTX PHY on miibus0
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: RealTek 8139 10/100BaseTX 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: MII bus on rl0
rlphy0: RealTek internal media interface on miibus1
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH4 UDMA100 controller 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: multimedia, audio at device 31.5 (no driver attached)
orm0: Option ROM at iomem 0xc-0xccfff on isa0
pmtimer0 on isa0
atkbdc0: Keyboard controller (i8042) at port 0x64,0x60 on isa0
atkbd0: AT Keyboard flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: model IntelliMouse, device ID 3
fdc0: Enhanced floppy controller (i82077, NE72065 or clone) 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: Parallel port 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: Parallel port bus on ppc0
plip0: PLIP network interface on ppbus0
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0
sc0: System console 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: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
unknown: PNP0401 can't assign resources (port)
unknown: PNP0501 can't assign resources (port)
unknown: PNP0501 can't assign resources (port)
unknown: PNP0700 can't assign resources (port)
unknown: PNP0f13 can't assign resources