problem so zvukom a pcmcia

Sekcia: Konfigurácia 12.11.2005 | 19:38
Samuel Cengel   Návštevník
rozbehal som sietovku v notebooku xircom, nainstaloval som balik pcmcia-cs spustil demona pcmcia a dal nahravat modul xirc2ps_cs sietovka ide no ked pustim mp3 v xmms tak zvvk zuci hrci a podobne, ked vypnem sietovku je to ok. diky ak niekto poradi, kde je problem
    • Re: problem so zvukom a pcmcia 11.11.2005 | 23:01
      peter golis   Návštevník
      nie je problem v zdielanom preruseni sietovky s zvukovkou? cat /proc/interrupts asi bude treba vnutit systemu aby nezdielal dane prerusenie. ako sa tvari podpora apic irq routing?
      • Re: Re: problem so zvukom a pcmcia 12.11.2005 | 09:21
        Avatar Samuel Cengel <b>Archlinux</b>  Používateľ
        # cat /proc/interrupts CPU0 0: 1228137 XT-PIC timer 1: 690 XT-PIC i8042 2: 0 XT-PIC cascade 3: 4 XT-PIC xirc2ps_cs 5: 1 XT-PIC CS4231 11: 194842 XT-PIC yenta, yenta, uhci_hcd 12: 60602 XT-PIC i8042 14: 7610 XT-PIC ide0 15: 31 XT-PIC ide1 NMI: 0 LOC: 0 ERR: 0 MIS: 0 #dmesg usbcore: registered new driver usbfs usbcore: registered new driver hub cs: IO port probe 0x0c00-0x0cff: clean. cs: IO port probe 0x0800-0x08ff: clean. cs: IO port probe 0x0100-0x04ff: excluding 0x130-0x137 0x220-0x22f 0x388-0x38f 0x3b8-0x3df 0x4d0-0x4d7 cs: IO port probe 0x0a00-0x0aff: clean. cs: memory probe 0xa0000000-0xa0ffffff: excluding 0xa0000000-0xa0ffffff cs: memory probe 0x60000000-0x60ffffff: clean. eth0: Xircom: port 0x300, irq 3, hwaddr 00:10:A4:EC:6D:D6 eth0: autonegotiation failed; using 10mbs eth0: MII selected eth0: media 10BaseT, silicon revision 4 Disabled Privacy Extensions on device c06b7be0(lo) USB Universal Host Controller Interface driver v2.2 PCI: Found IRQ 11 for device 0000:00:07.2 uhci_hcd 0000:00:07.2: Intel Corp. 82371AB/EB/MB PIIX4 USB uhci_hcd 0000:00:07.2: irq 11, io base 0x8400 uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1 hub 1-0:1.0: USB hub found hub 1-0:1.0: 2 ports detected usb 1-2: new full speed USB device using uhci_hcd and address 2 ohci_hcd: 2004 Nov 08 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI) drivers/usb/serial/usb-serial.c: USB Serial support registered for Generic usbcore: registered new driver usbserial_generic usbcore: registered new driver usbserial drivers/usb/serial/usb-serial.c: USB Serial Driver core v2.0 drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI SIO drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI 8U232AM Compatible drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI FT232BM Compatible drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI FT2232C Compatible drivers/usb/serial/usb-serial.c: USB Serial support registered for USB-UIRT Infrared Tranceiver drivers/usb/serial/usb-serial.c: USB Serial support registered for Home-Electronics TIRA-1 IR Transceiver ftdi_sio 1-2:1.0: FTDI FT232BM Compatible converter detected usb 1-2: FTDI FT232BM Compatible converter now attached to ttyUSB0 usbcore: registered new driver ftdi_sio drivers/usb/serial/ftdi_sio.c: v1.4.1:USB FTDI Serial Converters Driver CSLIP: code copyright 1989 Regents of the University of California PPP generic driver version 2.4.2 PPP Deflate Compression module registered # cardctl ident Socket 0: no product info available Socket 1: product info: "Xircom", "CreditCard 10/100", "CE3-10/100", "1.00" manfid: 0x0105, 0x010a function: 6 (network) # cardctl config Socket 0: not configured Socket 1: Vcc 5.0V Vpp1 0.0V Vpp2 0.0V interface type is "memory and I/O" irq 3 [exclusive] [level] function 0: config base 0x0800 option 0x41 status 0x00 io 0x0300-0x030f [16bit] apic irq routing mam hladat v jadre?
        • Re: Re: Re: problem so zvukom a pcmcia 12.11.2005 | 09:27
          Avatar Samuel Cengel <b>Archlinux</b>  Používateľ
          # cat /proc/pci PCI devices found: Bus 0, device 0, function 0: Host bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 3). Master Capable. Latency=64. Prefetchable 32 bit memory at 0x40000000 [0x43ffffff]. Bus 0, device 1, function 0: PCI bridge: Intel Corp. 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 3). Master Capable. Latency=168. Min Gnt=136. Bus 0, device 2, function 0: CardBus bridge: Texas Instruments PCI1251A (rev 0). IRQ 11. Master Capable. Latency=168. Min Gnt=192.Max Lat=5. Non-prefetchable 32 bit memory at 0x50102000 [0x50102fff]. Bus 0, device 2, function 1: CardBus bridge: Texas Instruments PCI1251A (#2) (rev 0). IRQ 11. Master Capable. Latency=168. Min Gnt=192.Max Lat=5. Non-prefetchable 32 bit memory at 0x50101000 [0x50101fff]. Bus 0, device 6, function 0: Multimedia audio controller: Cirrus Logic CS 4610/11 [CrystalClear SoundFusion Audio Accelerator] (rev 1). IRQ 11. Master Capable. Latency=32. Min Gnt=4.Max Lat=24. Non-prefetchable 32 bit memory at 0x50100000 [0x50100fff]. Non-prefetchable 32 bit memory at 0x50000000 [0x500fffff]. Bus 0, device 7, function 0: Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 2). Bus 0, device 7, function 1: IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 1). Master Capable. Latency=48. I/O at 0xfcf0 [0xfcff]. Bus 0, device 7, function 2: USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 1). IRQ 11. Master Capable. Latency=48. I/O at 0x8400 [0x841f]. Bus 0, device 7, function 3: Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 2). IRQ 9. Bus 1, device 0, function 0: VGA compatible controller: Neomagic Corporation NM2200 [MagicGraph 256AV] (rev 32). IRQ 11. Master Capable. Latency=128. Min Gnt=16.Max Lat=255. Prefetchable 32 bit memory at 0xe0000000 [0xe0ffffff]. Non-prefetchable 32 bit memory at 0x70000000 [0x703fffff]. Non-prefetchable 32 bit memory at 0x70400000 [0x704fffff].
          • Re: Re: Re: Re: problem so zvukom a pcmcia 12.11.2005 | 12:00
            Avatar Samuel Cengel <b>Archlinux</b>  Používateľ
            neviem, ci premyslam spravne, ale cat /proc/interrupts asi dava nejake obsadene irq prerusenia alebo tak nie? takze kedze tam v tom vypise nie su napr cisla 7, 8, 9, 10, co tak dat do /etc/pcmcia/config.opts riadok irq_list=7,8,9 ???? co na to poviete vy? je to spravna dedukcia?
            • Re: Re: Re: Re: Re: problem so zvukom a pcmcia 12.11.2005 | 12:16
              Avatar Samuel Cengel <b>Archlinux</b>  Používateľ
              FYI I assign IRQs as follows: 
              assigned IRQ	possible IRQs	device	name of module	
              3	3, 4	serial Mwave/ACP modem interface
              4 (*)	3, 4	serial cable interface	serial	
              4 (*)	3, 4, 5	infrared interface	
              5	5, 7, 9, 10, 11, 15 sound CODEC	
              7 or 9	?	PCMCIA modem card	xirc2ps_cs, serial	
              9	?	PCMCIA IDE "ATA flash card"	ide-cs	
              10	3, 4, 5, 7, 10, 11, 15 internal modem DSP	mwave	
              7, or none	none, 5, 7 parallel cable interface	
              (disabled)	5, 7, 9, 10, 11, 15 sound MPU-401 external
              ide to tak, ze prve cisla su assign IRQs, druhe possible IRQs, potom meno zariadenia k IRQ a modul (nie vsade je uvedeny). takze pcmcia modem card: assigned IRQ=7 or 9 possible IRQs=? nazov zariadenia=pcmcia modem card modul=xirc2ps_cs (to je moja eth0) a serial
              • Re: Re: Re: Re: Re: Re: problem so zvukom a pcmcia 12.11.2005 | 12:20
                Avatar Samuel Cengel <b>Archlinux</b>  Používateľ
                este ma zaujalo v #dmesg toto: Prefetchable 32 bit memory at 0xe0000000 [0xe0ffffff]. Non-prefetchable 32 bit memory at 0x70000000 [0x703fffff]. Non-prefetchable 32 bit memory at 0x70400000 [0x704fffff]. no nevyznam sa v tom, co to je.
                • Re: Re: Re: Re: Re: Re: Re: problem so zvukom a pc 12.11.2005 | 15:05
                  peter golis   Návštevník
                  sietovka ma irq3 (com1,3) a yenta socket - pcmcia 32 bit ma zdielane prerusenie 11 s usb 1.1 (uhci) a aj grafika sa tvari ze ma irq 11. zvukovka ma prerusenie v /proc interrupts 5 a v dmesg zasa 11 (CS4231 crystal lake) takze sa skutocne tvari ako by sa zavesila tam kde je usb a pcmcia socket. doska intel 440 mala relativne vybornu podporu pre apic, sam jednu taku pouzivam v desktope (i440 BX noname) a pouzivanie apic mi usetrilo vela problemov. takze by som odporucil pohrabat sa v biose ci tam nie je nieco o pridelovani irq pre zariadenie a zapnut podporu apic. na irq 11 je toho skutocne vela (2x pcmcia, usb, grafika a s najvecsou pravdepodobnostou aj zvukovka), okolo 5 zariadeni. pricom nie vsetky zariadenia dokazu skutocne zdielat prerusenia. jedine co ma zaraza, je ze sa ohlasuje usb ohci (1.0) tak ako by obhospodarovalo usb uhci (1.1).
                  • Re: Re: Re: Re: Re: Re: Re: Re: problem so zvukom 12.11.2005 | 15:50
                    Avatar Samuel Cengel <b>Archlinux</b>  Používateľ
                    Peto v tomto biose, ziadne take nieco neexistuje, jedine nejaka moznost zapnutia a vypnutia quick boot. Viema akurat to, ze pod win NT, ked vysiel tento book bol nejaky program pre configuraciu, ale nic take asi nie je pre linux, jednine, co som nasiel je toto odkaz a toto odkaz.
                    • Re: Re: Re: Re: Re: Re: Re: Re: Re: problem so zvu 12.11.2005 | 16:21
                      Avatar Samuel Cengel <b>Archlinux</b>  Používateľ
                      co tak toto cast z #man pcmcia There are three resource types: port, memory, and irq. By default, Card Services assumes that it can use any interrupt that is not bound by another device driver. However, it makes no assumptions about IO port and address ranges, because some Linux drivers do not register their resource usage. So, port and memory ranges must be explicitly made available for use by PCMCIA devices. So, here is a portion of a config file: include port 0x300-0x3ff, memory 0xd0000-0xdffff reserve irq 3 exclude irq 4, port 0x3f8-0x3ff This says that Card Services can allocate ports in the range 0x300 to 0x3ff, and memory in the range 0xd0000 to 0xdffff. It should not use irq 4 or ports 0x3f8-0x3ff (even if they seem to be available). And irq 3 should only be allocated if a client specifically asks for it.
                      • Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: problem so 12.11.2005 | 16:40
                        peter golis   Návštevník
                        a teraz este zmapovat vsetky zapojene zariadenia a ich systemove prostriedky (io,irq,mem) a najst nieco volne pre zvukovku alebo sietovku+pcmcia socket tak aby sa neblokovali. taky maly trojrozmerny sach. ps.: lspci by malo byt v baliku pciutils, dost pomoze ale iba pre pci zariadenia
                        • Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: proble 12.11.2005 | 16:59
                          Avatar Samuel Cengel <b>Archlinux</b>  Používateľ
                          skusim to dat na 7 a 11 zakazat include port 0x300-0x3ff, memory 0xd0000-0xdffff include 7 exclude irq 11
                        • Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: proble 12.11.2005 | 17:00
                          Avatar Samuel Cengel <b>Archlinux</b>  Používateľ
                          skusim to dat na 7 a 11 zakazat include port 0x300-0x3ff, memory 0xd0000-0xdffff include 7 exclude irq 11 no ale este ako dosta usb prec z 11?
                          • Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: pr 12.11.2005 | 18:47
                            peter golis   Návštevník
                            ak to nepodporuje bios, tak ostava iba zapnut apic irq routing. to zabezpeci ze sa budu smerovat poziadavky na prerusenia priamo cez pci zbernicu a virtualne ich bude viac ako do 15ky ako bolo v tom case zvykom.
                            • Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re 12.11.2005 | 19:27
                              Avatar Samuel Cengel <b>Archlinux</b>  Používateľ
                              nasiel som tu http://tpctl.sourceforge.net/PS2-ref.txt reference k tomu programu, ktorym sa nastavovali thinkpady 600x pod dosom v rokoch jeho vydania, je tam sekcia IRQ, ktora obsahu je taku tabulku a v nej su IRQ a zariadenia a je tam, ze
                                                               11
                              PCI IRQ                     0    
                              
                              0: currently assigned
                              X: will be assigned after "enable" is selected
                              
                              pri PCI IRQ nie je moznost X, co z najvacsou pravdepodobnostou znamena, ze PCI zariadenia maju vsetky IRQ 11 a nejdu zmenit, takze preto ich je v 11 tak vela, ale zevraj aj maju fungovat takze sietovku som poslal z 11 do hajan cez exclude 11 a zuk ide vyzera, ze to usb tam ma byt lebo ho vyhadzuje ako PCI zariadenie takze by to malo byt asi vsetko v poriadku Diky za spolupracu, Peto. Dakujem, lebo iba ty si spolupracoval, ako sam mozes vidiet:-) Fakt mas velmi dobre znalosti, klobuk dole.
                              • Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re 12.11.2005 | 19:38
                                Avatar Samuel Cengel <b>Archlinux</b>  Používateľ
                                sorry, s najvacsou, obcas mi to ujede v rychlosti