Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261313AbVCXTCe (ORCPT ); Thu, 24 Mar 2005 14:02:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262651AbVCXTCe (ORCPT ); Thu, 24 Mar 2005 14:02:34 -0500 Received: from hobbit.corpit.ru ([81.13.94.6]:36440 "EHLO hobbit.corpit.ru") by vger.kernel.org with ESMTP id S261313AbVCXTCH (ORCPT ); Thu, 24 Mar 2005 14:02:07 -0500 Message-ID: <42430EAD.3050605@tls.msk.ru> Date: Thu, 24 Mar 2005 22:02:05 +0300 From: Michael Tokarev User-Agent: Debian Thunderbird 1.0 (X11/20050116) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kernel Mailing List Subject: Interesting tidbit: NetMos 9835 card, IRQ, and ACPI X-Enigmail-Version: 0.90.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 14933 Lines: 256 Found an interesting issue here. HP ProLiant ML150 box (dual xeon 2.4GHz) with intel chipset (lspci output below) and NetMos PCI 9835 Multi-I/O Controller. Boot with no fancy options on kernel command line. # cat /sys/bus/pci/devices/0000:01:00.0/irq 11 # modprobe 8250 # setserial /dev/ttyS2 irq 11 port 0xa400 autoconfig the serial port does not work: close'int the file after writing something stalls for a while, and nothing gets written. Ok. # rmmod 8250 # modprobe parport_pc ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 18 (level, low) -> IRQ 193 # cat /sys/bus/pci/devices/0000:01:00.0/irq 193 # rmmod parport_pc # as it will conflict with 8250 here # modprobe 8250 # setserial /dev/ttyS2 irq 193 port 0xa400 autoconfig now the serial port works. In other words, one have to load and unload parport_pc to trigger that IRQ change, after which serial driver works. When booting with pci=noacpi, the irq here is always 169, and everything works fine (modulo the parport_pc vs 8250 conflict which is a different story). Without that parport_pc "ping" hack, the whole stuff looks like a BIOS problem. But parport_pc behaviour makes it.. more interesting... ;) Kernel is 2.6.11. BTW, we have another prob with this very Netmos card and this very machine: sometimes, the whole machine hangs hard when using serial driver, so only power button helps. Happens with 2.4.* kernels (it assigns IRQ18 to the card) and with earlier 2.6.x kernels. Dunno if the two are related. /mjt # lspci 0000:00:00.0 Host bridge: Intel Corp. E7501 Memory Controller Hub (rev 01) 0000:00:02.0 PCI bridge: Intel Corp. E7500/E7501 Hub Interface B PCI-to-PCI Bridge (rev 01) 0000:00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 02) 0000:00:1e.0 PCI bridge: Intel Corp. 82801 PCI Bridge (rev 42) 0000:00:1f.0 ISA bridge: Intel Corp. 82801CA LPC Interface Controller (rev 02) 0000:00:1f.1 IDE interface: Intel Corp. 82801CA Ultra ATA Storage Controller (rev 02) 0000:00:1f.3 SMBus: Intel Corp. 82801CA/CAM SMBus Controller (rev 02) 0000:01:00.0 Serial controller: NetMos Technology PCI 9835 Multi-I/O Controller (rev 01) 0000:01:02.0 VGA compatible controller: ATI Technologies Inc Rage XL (rev 27) 0000:02:1c.0 PIC: Intel Corp. 82870P2 P64H2 I/OxAPIC (rev 04) 0000:02:1d.0 PCI bridge: Intel Corp. 82870P2 P64H2 Hub PCI Bridge (rev 04) 0000:02:1e.0 PIC: Intel Corp. 82870P2 P64H2 I/OxAPIC (rev 04) 0000:02:1f.0 PCI bridge: Intel Corp. 82870P2 P64H2 Hub PCI Bridge (rev 04) 0000:04:01.0 Ethernet controller: Intel Corp. 82545EM Gigabit Ethernet Controller (Copper) (rev 01) 0000:04:04.0 SCSI storage controller: Adaptec AIC-7902 U320 (rev 03) 0000:04:04.1 SCSI storage controller: Adaptec AIC-7902 U320 (rev 03) # lspci -vv 0000:00:00.0 Host bridge: Intel Corp. E7501 Memory Controller Hub (rev 01) Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- Reset- FastB2B- 0000:00:1d.0 USB Controller: Intel Corp. 82801CA/CAM USB (Hub #1) (rev 02) (prog-if 00 [UHCI]) Subsystem: Hewlett-Packard Company: Unknown device 2480 Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- SERR- TAbort- SERR- Reset- FastB2B- 0000:00:1f.0 ISA bridge: Intel Corp. 82801CA LPC Interface Controller (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- Region 1: I/O ports at Region 2: I/O ports at Region 3: I/O ports at Region 4: I/O ports at ffa0 [size=16] Region 5: Memory at 80000000 (32-bit, non-prefetchable) [disabled] [size=1K] 0000:00:1f.3 SMBus: Intel Corp. 82801CA/CAM SMBus Controller (rev 02) Subsystem: Hewlett-Packard Company: Unknown device 2480 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- Reset- FastB2B- Capabilities: [50] PCI-X bridge device. Secondary Status: 64bit+, 133MHz+, SCD-, USC-, SCO-, SRD- Freq=1 Status: Bus=2 Dev=29 Func=0 64bit+ 133MHz+ SCD- USC-, SCO-, SRD- : Upstream: Capacity=65535, Commitment Limit=65535 : Downstream: Capacity=65535, Commitment Limit=65535 0000:02:1e.0 PIC: Intel Corp. 82870P2 P64H2 I/OxAPIC (rev 04) (prog-if 20 [IO(X)-APIC]) Subsystem: Intel Corp. 82870P2 P64H2 I/OxAPIC Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz+ UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- TAbort- SERR- Reset- FastB2B- Capabilities: [50] PCI-X bridge device. Secondary Status: 64bit+, 133MHz+, SCD-, USC-, SCO-, SRD- Freq=3 Status: Bus=2 Dev=31 Func=0 64bit+ 133MHz+ SCD- USC-, SCO-, SRD- : Upstream: Capacity=65535, Commitment Limit=65535 : Downstream: Capacity=65535, Commitment Limit=65535 0000:04:01.0 Ethernet controller: Intel Corp. 82545EM Gigabit Ethernet Controller (Copper) (rev 01) Subsystem: Hewlett-Packard Company: Unknown device 1001 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-