Date: Fri, 20 Sep 2002 01:28:00 +0200 From: Marcin Cieslak <saper@system.pl> To: freebsd-stable@freebsd.org Subject: pcm sound -> PCI IRQ problems on Sony VAIO? Message-ID: <20020919232800.GA82881@barbera.system.pl>
next in thread | raw e-mail | index | archive | help
--ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Following up the problem reported by few people running Sony VAIO FX series (601, 604 models with VIA chipsets) I made a little research. When the pcm driver is attached with the help of snd_via82c686.ko module (loaded via loader) the sound card (chip1) gets properly detected as pcm0. However, the whole thing stops when the configure() routine enables interrupts. Indeed, we are flooded with interrupts (via_intr() is getting called over and over). I've checked in VIA chip registers, the both sound card and integrated winmodem are not requesting interrupts at this time. I've written a small stub driver attaching to a winmodem (just printf() in the interrupt routine). This looks to me like VGA interrupt coming over and over. The problem is, that the only useful setting in BIOS is "PnP OS", one cannot distable VGA IRQ apparently. 1) Is FreeBSD in UP mode really sharing IRQs? (can't boot MP kernel on this notebook) 2) Why when NO driver is attached to the irq 5 the system works properly? Unfortunately, my PCI knowledge is very poor, and I got so far only thanks to the excellent VIA chipset docs. BTW. -current installation kernel crashes at startup, however some reported success via the source upgrade (no problems with pcm). -- << Marcin Cieslak // saper@system.pl >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 4.7-PRERELEASE #9: Thu Sep 19 22:46:27 GMT 2002 saper@saperski.saper.info:/usr/obj/usr/src/sys/FFM Timecounter "i8254" frequency 1193182 Hz CPU: mobile AMD Duron(tm) (1100.05-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE> AMD Features=0xc0400000<AMIE,DSP,3DNow!> real memory = 268435456 (262144K bytes) avail memory = 256446464 (250436K bytes) Preloaded elf kernel "kernel" at 0xc0498000. Preloaded elf module "linux.ko" at 0xc049809c. Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 6 entries at 0xc00fdf60 npx0: <math processor> on motherboard npx0: INT 16 interface pcib0: <Host to PCI bridge> on motherboard pci0: <PCI bus> on pcib0 pcib1: <VIA 8363 (Apollo KT133) PCI-PCI (AGP) bridge> at device 1.0 on pci0 pci1: <PCI bus> on pcib1 pci1: <ATI Mobility-1 graphics accelerator> at 0.0 irq 5 isab0: <VIA 82C686 PCI-ISA bridge> at device 7.0 on pci0 isa0: <ISA bus> on isab0 atapci0: <VIA 82C686 ATA100 controller> port 0x1c40-0x1c4f at device 7.1 on pci0 atapci0: Correcting VIA config for southbridge data corruption bug ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: <VIA 83C572 USB controller> port 0x1c00-0x1c1f irq 9 at device 7.2 on pci0 usb0: <VIA 83C572 USB controller> on uhci0 usb0: USB revision 1.0 uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uscanner0: Hewlett-Packard HP ScanJet 3300C, rev 1.00/0.00, addr 2 uhci1: <VIA 83C572 USB controller> port 0x1c20-0x1c3f irq 9 at device 7.3 on pci0 usb1: <VIA 83C572 USB controller> on uhci1 usb1: USB revision 1.0 uhub1: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered viapropm0: SMBus I/O base at 0x8100 viapropm0: <VIA VT82C686A Power Management Unit> port 0x8100-0x810f at device 7.4 on pci0 viapropm0: SMBus revision code 0x40 smb0: <SMBus general purpose I/O> on smbus0 chip1: <VIA 82C686 AC97 Audio> port 0x1c50-0x1c53,0x1c54-0x1c57,0x1000-0x10ff irq 5 at device 7.5 on pci0 chip2: <VIA 82C686 AC97 Modem> port 0x1400-0x14ff irq 5 at device 7.6 on pci0 pcic0: <TI PCI-1420 PCI-CardBus Bridge> irq 9 at device 10.0 on pci0 pcic0: PCI Memory allocated: 0x88000000 pcic0: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq] pccard0: <PC Card bus (classic)> on pcic0 pcic1: <TI PCI-1420 PCI-CardBus Bridge> irq 10 at device 10.1 on pci0 pcic1: PCI Memory allocated: 0x88001000 pcic1: TI12XX PCI Config Reg: [ring enable][speaker enable][pwr save][FUNC pci int + CSC serial isa irq] pccard1: <PC Card bus (classic)> on pcic1 pci0: <unknown card> (vendor=0x104c, dev=0x8020) at 14.0 irq 9 rl0: <RealTek 8139 10/100BaseTX> port 0x1800-0x18ff mem 0xe8004800-0xe80048ff irq 10 at device 16.0 on pci0 rl0: Ethernet address: 08:00:46:5a:c2:b1 miibus0: <MII bus> on rl0 rlphy0: <RealTek internal media interface> on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto orm0: <Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd3fff,0xdc000-0xdffff on isa0 fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 fdc0: FIFO enabled, 8 bytes threshold fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0 atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: model GlidePoint, device ID 0 vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: <System console> at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0 sio0: type 16550A 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/8 bytes threshold plip0: <PLIP network interface> on ppbus0 lpt0: <Printer> on ppbus0 lpt0: Interrupt-driven port ppi0: <Parallel I/O> on ppbus0 IPsec: Initialized Security Association Processing. ad0: 19077MB <HITACHI_DK23DA-20> [38760/16/63] at ata0-master UDMA100 acd0: CD-RW <HL-DT-ST CD-RW/DVD DRIVE GCC-4080N> at ata1-master PIO4 Mounting root from ufs:/dev/ad0s3a pccard: card inserted, slot 0 pccard: card removed, slot 0 pccard: card inserted, slot 0 an0: <Aironet PC4500/PC4800> at port 0x240-0x27f irq 9 slot 0 on pccard0 an0: Ethernet address: 00:40:96:50:35:62 --ibTvN161/egqYuK8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBPYpdgD2W2v2wY27ZAQHvLwP/dj12Hle8zi5IN6IWKxOPzFHyvami0yRy Gd9hsUBmBnhxUgJU7szq8V9M6g/5k27toRqSBUQxDXbkEhTk1dh2NJEHD3IRQEpj P7jbfKKQzLkBa5fWo6JYL47j2HCgeJ9rR7iAp8CIMSY5+wRsgrO44LyGEFNPw023 YhKgmmVjqlA= =IatP -----END PGP SIGNATURE----- --ibTvN161/egqYuK8-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020919232800.GA82881>