Newsgroup: it.comp.os.linux.iniziare
Titolo: Re: Conflitto?

salvuz wrote:
 > [...] posti un cat /proc/interrupts ?
root@neper ~ # cat /proc/interrupts
            CPU0
   0:   20858338          XT-PIC  timer
   1:      48785          XT-PIC  i8042
   2:          0          XT-PIC  cascade
   3:          5          XT-PIC  0.0
   6:          6          XT-PIC  eth0
   7:          5          XT-PIC  parport0
   8:          2          XT-PIC  rtc
   9:       5547          XT-PIC  acpi
  10:          6          XT-PIC  yenta, ohci_hcd, ohci_hcd
  11:    1741714          XT-PIC  ALi M5455, yenta, ohci1394, ohci_hcd, 
ehci_hcd, nvidia, serial
  12:     542829          XT-PIC  i8042
  14:      21218          XT-PIC  ide0
  15:     737129          XT-PIC  ide1
NMI:          0
LOC:          0
ERR:          0
 > lspci -v cosa dice?
Riportato in fondo.
 > Distro? Kernel?
root@neper ~ # uname -a
Linux theMatrix 2.6.11-gentoo-r4 #28 Wed Apr 20 22:28:18 UTC 2005 i686 
Genuine Intel(R) CPU 2.66GHz GenuineIntel GNU/Linux
 > Comunque, non credo sia IT qui...
Ok, proverò su linux.iniziare
Grazie
Ciao
root@neper ~ # lspci -v
0000:00:00.0 Host bridge: ALi Corporation M1681 P4 Northbridge 
[AGP8X,HyperTransport and SDR/DDR]
	Flags: bus master, fast devsel, latency 0
	Memory at f0000000 (32-bit, prefetchable)
	Capabilities: [40] #08 [2101]
	Capabilities: [b0] AGP version 2.0
0000:00:01.0 PCI bridge: ALi Corporation PCI to AGP Controller (prog-if 
00 [Normal decode])
	Flags: bus master, 66Mhz, fast devsel, latency 99
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=68
	Memory behind bridge: e9000000-e9ffffff
	!!! Unknown prefetchable memory range types f800/fc0f
0000:00:02.0 PCI bridge: ALi Corporation M5249 HTT to PCI Bridge 
(prog-if 00 [Normal decode])
	Flags: bus master, fast devsel, latency 0
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=64
	Capabilities: [b0] #08 [0020]
	Capabilities: [f0] #08 [8000]
0000:00:03.0 ISA bridge: ALi Corporation M1563 HyperTransport South 
Bridge (rev 20)
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, medium devsel, latency 64
0000:00:03.1 Bridge: ALi Corporation M7101 Power Management Controller [PMU]
	Subsystem: Unknown device 17ff:0168
	Flags: medium devsel
0000:00:04.0 Multimedia audio controller: ALi Corporation M5455 PCI 
AC-Link Controller Audio Device (rev 03)
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, medium devsel, latency 64, IRQ 11
	I/O ports at 8400
	Memory at e8004000 (32-bit, non-prefetchable) [size=4K]
	Capabilities: [40] Power Management version 2
0000:00:04.1 Modem: ALi Corporation M5457 AC'97 Modem Controller (rev 
10) (prog-if 00 [Generic])
	Subsystem: Unknown device 17ff:0168
	Flags: medium devsel, IRQ 11
	Memory at e8005000 (32-bit, non-prefetchable)
	I/O ports at 8800 [size=256]
	Capabilities: [40] Power Management version 2
0000:00:05.0 CardBus bridge: O2 Micro, Inc. OZ711M2 4-in-1 MemoryCardBus 
Controller (rev 20)
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, stepping, slow devsel, latency 168, IRQ 11
	Memory at e8006000 (32-bit, non-prefetchable)
	Bus: primary=00, secondary=03, subordinate=06, sec-latency=176
	Memory window 0: e8400000-e85ff000 (prefetchable)
	Memory window 1: e8200000-e83ff000
	I/O window 0: 00009000-000090ff
	I/O window 1: 00008c00-00008cff
	16-bit legacy interface ports at 0001
0000:00:05.1 CardBus bridge: O2 Micro, Inc. OZ711M2 4-in-1 MemoryCardBus 
Controller (rev 20)
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, stepping, slow devsel, latency 168, IRQ 10
	Memory at e8007000 (32-bit, non-prefetchable)
	Bus: primary=00, secondary=07, subordinate=0a, sec-latency=176
	Memory window 0: e8800000-e89ff000 (prefetchable)
	Memory window 1: e8600000-e87ff000
	I/O window 0: 00009800-000098ff
	I/O window 1: 00009400-000094ff
	16-bit legacy interface ports at 0001
0000:00:05.2 System peripheral: O2 Micro, Inc. OZ711Mx 4-in-1 
MemoryCardBus Accelerator
	Subsystem: Unknown device 17ff:0168
	Flags: slow devsel, IRQ 11
	Memory at e8008000 (32-bit, non-prefetchable)
	Capabilities: [a0] Power Management version 2
0000:00:07.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 
IEEE-1394a-2000 Controller (PHY/Link) (prog-if 10 [OHCI])
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, medium devsel, latency 64, IRQ 11
	Memory at e800c000 (32-bit, non-prefetchable)
	Memory at e8000000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
0000:00:0e.0 IDE interface: ALi Corporation M5229 IDE (rev c5) (prog-if 
8a [Master SecP PriP])
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, medium devsel, latency 64, IRQ 255
	I/O ports at 8080 [size=16]
0000:00:0e.1 Ethernet controller: ALi Corporation M5261 Ethernet 
Controller (rev 30)
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, medium devsel, latency 165, IRQ 6
	I/O ports at 9c00
	Memory at e800c800 (32-bit, non-prefetchable) [size=256]
	Capabilities: [50] Power Management version 2
0000:00:0f.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) 
(prog-if 10 [OHCI])
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 11
	Memory at e8009000 (32-bit, non-prefetchable)
	Capabilities: [60] Power Management version 2
0000:00:0f.1 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) 
(prog-if 10 [OHCI])
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 10
	Memory at e800a000 (32-bit, non-prefetchable)
	Capabilities: [60] Power Management version 2
0000:00:0f.2 USB Controller: ALi Corporation USB 1.1 Controller (rev 03) 
(prog-if 10 [OHCI])
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 10
	Memory at e800b000 (32-bit, non-prefetchable)
	Capabilities: [60] Power Management version 2
0000:00:0f.3 USB Controller: ALi Corporation USB 2.0 Controller (rev 01) 
(prog-if 20 [EHCI])
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 11
	Memory at e800cc00 (32-bit, non-prefetchable)
	Capabilities: [50] Power Management version 2
	Capabilities: [58] #0a [2090]
0000:01:00.0 VGA compatible controller: nVidia Corporation NV17 
[GeForce4 420 Go 32M] (rev a3) (prog-if 00 [VGA])
	Subsystem: Unknown device 17ff:0168
	Flags: bus master, 66Mhz, medium devsel, latency 248, IRQ 11
	Memory at e9000000 (32-bit, non-prefetchable)
	Memory at f8000000 (32-bit, prefetchable) [size=64M]
	Memory at fc000000 (32-bit, prefetchable) [size=512K]
	Capabilities: [60] Power Management version 2
	Capabilities: [44] AGP version 2.0

Scusate. Involontariamente ho sbagliato newsgroup.

>Come posso "pulire" il suono da questo rumore?


 Riportato in fondo.
Ok, volevo vedere che periferiche avevi... Poi vediamo se c'e` da impostare
la latenza delle periferiche sul bus PCI.
ciao
-- 
          salvuz
     POST FATA RESVRGO
 Linux registered user #291700 | machine #174619
 get counted on ---> 
http://counter.li.org/
 <---

 Come mai usi XT-PIC? Hai problemi con APIC?
Buono!! Non è mica mal pensata come idea!!
Sinceramente non so perchè uso XT-PIC, era semplicemente già lì.
Come parametri del kernel non ho un "noapic". Ho provato ad aggiungere 
"apic" a "kernel /boot/my_kernel" in /boot/grub/grub.conf ma una volta 
riavviato vedo che vengono usati sempre gli XT-PIC. Ho provato il 
parametro "lapic" ma linux non si avvia di brutto.
Come faccio ad usare APIC in modo tale che ogni periferica abbia il suo irq?
Il kernel penso sia configurato correttamente: in "Processor type and 
features", "Local APIC support on uniprocessor" è settato ("IO-APIC 
support on uniprocesso" però no). Forse manca qualcosa?
Grazie
Ciao

 support on uniprocesso" però no). Forse manca qualcosa?
Manca proprio il supporto per l' APIC:
Dall'help su make menuconfig:
CONFIG_X86_UP_IOAPIC:
An IO-APIC (I/O Advanced Programmable Interrupt Controller) is an
SMP-capable replacement for PC-style interrupt controllers. Most 
SMP systems and many recent uniprocessor systems have one.
If you have a single-CPU system with an IO-APIC, you can say Y here
to use it. If you say Y here even though your machine doesn't have an
IO-APIC, then the kernel will still run with no slowdown at all.
Dopo una ricompilazione, dovrebbe usare APIC di default, senza parametri al
boot. Fammi sapere se va...
Ciao


 boot. Fammi sapere se va...
Ricompilato. il tipo di interrupt non cambia, rimane XT-PIC.
Cmq il problema è quello, l'hai beccato. C'è un conflitto di 
condivisione irq fra la scheda audio e la scheda video. Infatti ho 
eseguito un mp3 senza interfaccia grafica e si sentiva bene, poi ho 
subito avviato kde e magicamente il "rumore" di fondo è apparso...
Adesso mi documento un po' per usare gli interrupts di tipo I/O-APIC 
anzichè gli XT-PIC. Cmq il problema credo sia risolto.  Grazie!
Ciao

 anzichè gli XT-PIC. Cmq il problema credo sia risolto.  Grazie!
Tempo fa (quando i PC usavano quasi tutti XT-PIC) in alcune schede madri
nel BIOS potevi settare a mano l'IRQ per ogni slot... chissa` con un
notebook, pero`.
Prova ad inserire tra i parametri di boot
nohlt
che non fa "spegnere" il processore quando e` idle. Cio` ti fara` consumare
più corrente, ma come prova si puo` fare.
Se ancora non si elimina o riduce, puoi provare  la via della latenza PCI
con setpci...
Vedi 
http://www-128.ibm.com/developerworks/library/l-hw2.html
ciao
