Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 16 Nov 2000 16:29:25 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 16 Nov 2000 16:29:16 -0500 Received: from ALyon-201-1-3-226.abo.wanadoo.fr ([193.253.188.226]:35588 "EHLO kaboum.unstable.org") by vger.kernel.org with ESMTP id ; Thu, 16 Nov 2000 16:29:03 -0500 Message-Id: <200011162058.eAGKwmg05992@kaboum.unstable.org> Subject: PROBLEM: Bad PCI detection of a sound card From: Frederic LESPEZ To: linux-kernel@vger.kernel.org Content-Type: text/plain X-Mailer: Evolution 0.6 (Developer Preview) Date: 16 Nov 2000 19:58:47 -0100 Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Hi, Please bear with me, it's my first bug report and my first post to this list. Bear with my english too. [1.] One line summary of the problem: Bad PCI detection of a sound card [2.] Full description of the problem/report: I think the problem is due to a bad PCI detection but i let you judge. Here is a description of the problem : I'm under X (Xfree 4.0.1). I switch to a VT (virtual terminal). I load my sound module (modprobe emu10k1). Dmesg says : Creative EMU10K1 PCI Audio Driver, version 0.7, 19:07:50 Nov 15 2000 PCI: Enabling device 00:0a.0 (0000 -> 0001) PCI: Setting latency timer of device 00:0a.0 to 64 emu10k1: EMU10K1 rev 8 model 0x8040 found, IO at 0xb400-0xb41f, IRQ 5 I try to play a sound (play some.wav). It works. I switch to X. In a xterm, i try to play a sound. The "Play" command hangs... I switch back to a VT. I unload sound modules (rmmod emu10k1 soundcore). I reload them. Dmesg says: Creative EMU10K1 PCI Audio Driver, version 0.7, 19:07:50 Nov 15 2000 emu10k1: EMU10K1 rev 8 model 0x8040 found, IO at 0xb400-0xb41f, IRQ 5 "Play" command works in the VT but not under X (same as before). Now i unload sound modules. I reload them under X. Dmesg says: Creative EMU10K1 PCI Audio Driver, version 0.7, 19:07:50 Nov 15 2000 PCI: Enabling device 00:0a.0 (0000 -> 0001) emu10k1: EMU10K1 rev 8 model 0x8040 found, IO at 0xb400-0xb41f, IRQ 5 Now "Play" command works under X and in the VT. In brief : To be able to have sound working properly, i must load sound modules under X *and* load them in a VT. Order is not important, i can do: load from console/unload/load under X or load under X/unload/load in a VT it gives the same. Other observations: If i load sound modules *only* in a VT, play a lengthy sound and switch to X while sound is playing, everything locks (I must use MagicSysKey to reboot), but nothing appears in logs. With kernel 2.2 (Debian 2.2.17, Mandrake 7.2 2.2.17 or 2.2.18pre21 compiled by myself), i cannot load module under X (device or ressource is busy) but i can load modules and play sounds in a VT (even if X is running). [3.] Keywords (i.e., modules, networking, kernel): Sound PCI [4.] Kernel version (from /proc/version): 2.4.0-test11pre5 Compiled by myself cat /proc/version Linux version 2.4.0-test11 (root@kaboum) (gcc version 2.95.2 20000220 (Debian GNU/Linux)) #1 Wed Nov 15 18:54:48 CET 2000 [5.] Output of Oops.. message (if applicable) with symbolic information resolved (see Documentation/oops-tracing.txt) [6.] A small shell script or example program which triggers the problem (if possible) [7.] Environment [7.1.] Software (add the output of the ver_linux script here) Linux kaboum 2.4.0-test11 #1 Wed Nov 15 18:54:48 CET 2000 i686 unknown Kernel modules 2.3.19 Gnu C 2.95.2 Gnu Make 3.79.1 Binutils 2.10.91 Linux C Library > libc.2.2 Dynamic linker ldd (GNU libc) 2.2 Procps 2.0.6 Mount 2.10p Net-tools 2.05 Console-tools 0.2.3 Sh-utils 2.0i Modules Loaded emu10k1 soundcore parport_pc lp parport serial sg 3c59x ppp_deflate ppp_generic slhc unix [7.2.] Processor information (from /proc/cpuinfo):processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 6 model name : Celeron (Mendocino) stepping : 0 cpu MHz : 300.000687 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes features : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr bogomips : 599.65 [7.3.] Module information (from /proc/modules): emu10k1 42816 0 soundcore 3888 4 [emu10k1] parport_pc 13360 1 (autoclean) lp 4496 0 (autoclean) parport 14880 1 (autoclean) [parport_pc lp] serial 41104 0 (autoclean) sg 21056 0 (unused) 3c59x 22160 1 ppp_deflate 39168 0 (unused) ppp_generic 13024 0 [ppp_deflate] slhc 4560 0 [ppp_generic] unix 14320 112 (autoclean) [7.4.] Loaded driver and hardware information (/proc/ioports, /proc/iomem) /proc/ioports 0000-001f : dma1 0020-003f : pic1 0040-005f : timer 0060-006f : keyboard 0070-007f : rtc 0080-008f : dma page reg 00a0-00bf : pic2 00c0-00df : dma2 00f0-00ff : fpu 02f8-02ff : serial(set) 0378-037a : parport0 03c0-03df : vga+ 03f8-03ff : serial(set) 0cf8-0cff : PCI conf1 b000-b007 : Creative Labs SB Live! b400-b41f : Creative Labs SB Live! EMU10000 b400-b41f : EMU10K1 b800-b87f : 3Com Corporation 3c905B 100BaseTX [Cyclone] b800-b87f : eth0 d000-d0ff : Adaptec AHA-2940U2/W / 7890 d000-d0fe : aic7xxx d400-d41f : Intel Corporation 82371AB PIIX4 USB d800-d80f : Intel Corporation 82371AB PIIX4 IDE e400-e43f : Intel Corporation 82371AB PIIX4 ACPI e800-e81f : Intel Corporation 82371AB PIIX4 ACPI /proc/iomem 00000000-0009fbff : System RAM 0009fc00-0009ffff : reserved 000a0000-000bffff : Video RAM area 000c0000-000c7fff : Video ROM 000c8000-000cd7ff : Extension ROM 000f0000-000fffff : System ROM 00100000-07ffcfff : System RAM 00100000-001f791f : Kernel code 001f7920-00206df7 : Kernel data 07ffd000-07ffefff : ACPI Tables 07fff000-07ffffff : ACPI Non-volatile Storage dc000000-dc0fffff : Sigma Designs, Inc. REALmagic Hollywood Plus DVD Decoder dc800000-dc80007f : 3Com Corporation 3c905B 100BaseTX [Cyclone] dd000000-dd000fff : Adaptec AHA-2940U2/W / 7890 dd800000-dedfffff : PCI Bus #01 dd800000-ddffffff : Matrox Graphics, Inc. MGA G200 AGP de000000-de003fff : Matrox Graphics, Inc. MGA G200 AGP def00000-dfffffff : PCI Bus #01 df000000-dfffffff : Matrox Graphics, Inc. MGA G200 AGP e0000000-e7ffffff : Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge ffff0000-ffffffff : reserved [7.5.] PCI information ('lspci -vvv' as root) Notice the output for 00:0a.0 device : "VGA compatible unclassified device" for a sound card ! 00:00.0 Host bridge: Intel Corporation 440BX/ZX - 82443BX/ZX Host bridge (rev 02) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- 00:01.0 PCI bridge: Intel Corporation 440BX/ZX - 82443BX/ZX AGP bridge (rev 02) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap- 66Mhz+ UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- Reset- FastB2B+ 00:04.0 ISA bridge: Intel Corporation 82371AB PIIX4 ISA (rev 02) Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR- [disabled] [size=128K] Capabilities: [dc] Power Management version 1 Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:09.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 64) Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- SERR- [disabled] [size=128K] Capabilities: [dc] Power Management version 1 Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold-) Status: D0 PME-Enable- DSel=0 DScale=0 PME- 00:0a.0 VGA compatible unclassified device: Creative Labs SB Live! EMU10000 (rev 08) Subsystem: Creative Labs CT4760 SBLive! Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap+ 66Mhz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- TAbort- SERR- TAbort- SERR-