Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Interrupt conflicts - [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Kisil
n00b
n00b


Joined: 23 Dec 2005
Posts: 44

PostPosted: Sun Jul 30, 2006 9:39 pm    Post subject: Interrupt conflicts - [SOLVED] Reply with quote

For some reason, all my important devices are being assigned irq 11. I dual boot windows, and I don't have the same problem there, so I'd rather not twiddle with bios - I ought to be able to configure linux to spread them better. This thread seems to describe my issue, but I'm having trouble translating that into what I should change. Can anyone give me any insight?

Here's the info I think is relevant; I'm happy to provide more if needed.

Code:
$ cat /proc/interrupts
           CPU0       
  0:     275211          XT-PIC  timer
  1:       2272          XT-PIC  i8042
  2:          0          XT-PIC  cascade
  7:          0          XT-PIC  parport0
  8:          0          XT-PIC  rtc
  9:          0          XT-PIC  acpi
 11:     107261          XT-PIC  ehci_hcd:usb1, ohci_hcd:usb2, ohci_hcd:usb3, EM
U10K1, nvidia
 12:      71797          XT-PIC  i8042
 14:      63034          XT-PIC  ide0
 15:         42          XT-PIC  ide1
NMI:          0
ERR:          0

Code:
$ cat /usr/src/linux/.config | grep -i apic
CONFIG_X86_GOOD_APIC=y
# CONFIG_X86_UP_APIC is not set

Code:
$ cat /usr/src/linux/.config | grep -i apm
# Power management options (ACPI, APM)
# APM (Advanced Power Management) BIOS Support
# CONFIG_APM is not set

Code:
$ cat /usr/src/linux/.config | grep -i acpi
# Power management options (ACPI, APM)
# ACPI (Advanced Configuration and Power Interface) Support
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
# CONFIG_ACPI_SLEEP_PROC_SLEEP is not set
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
# CONFIG_ACPI_HOTKEY is not set
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
# CONFIG_ACPI_CONTAINER is not set
CONFIG_PNPACPI=y
# CONFIG_SERIAL_8250_ACPI is not set


Thanks for looking :)
_________________
Your bible is broken. I'm fixing it.


Last edited by Kisil on Tue Aug 01, 2006 12:04 am; edited 1 time in total
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Mon Jul 31, 2006 6:11 am    Post subject: Reply with quote

If you have a somewhat recent system, try setting these:

Code:
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_UP_APIC=y
CONFIG_X86_UP_IOAPIC=y
CONFIG_X86_LOCAL_APIC=y
CONFIG_X86_IO_APIC=y


Especially helpful should be IO_APIC. An example from my system:

Code:
           CPU0
  0:   65608625    IO-APIC-edge  timer
  1:     270533    IO-APIC-edge  i8042
  8:          2    IO-APIC-edge  rtc
  9:          0   IO-APIC-level  acpi
 12:    3733996    IO-APIC-edge  i8042
 14:    3059977    IO-APIC-edge  ide0
 15:    3124924    IO-APIC-edge  ide1
169:    4595169   IO-APIC-level  eth0
177:   46183748   IO-APIC-level  aic7xxx, ohci1394, nvidia
185:         31   IO-APIC-level  ehci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:usb4
193:          9   IO-APIC-level  Bt87x audio, bttv0
201:     140818   IO-APIC-level  VIA8233
NMI:          0
LOC:   65610613
ERR:          0
MIS:          0


Yes, the high IRQs are routed over IRQ 9 but I've never had any issues like that.

One question remains, though: What actual problems is the behaviour on your system causing you?
_________________
If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting.
Back to top
View user's profile Send private message
Kisil
n00b
n00b


Joined: 23 Dec 2005
Posts: 44

PostPosted: Mon Jul 31, 2006 10:40 am    Post subject: Reply with quote

The actual problem is audio jittering with my usb audio card - when my usb network card is working, it is even worse, but even normally it is almost unusable. I had the same problem in Windows until I sorted out the IRQ issues there, at which point everything worked fine.

I don't see most of those APIC options in my menuconfig - just GOOD_APIC and UP_APIC - are they hiding somewhere I haven't checked? I'll try setting UP_APIC tonight after work, see what that does. Have no time now.

My system isn't that recent - Biostar Nforce2-based MB, Athlon XP 2600, etc.
_________________
Your bible is broken. I'm fixing it.
Back to top
View user's profile Send private message
Philantrop
Retired Dev
Retired Dev


Joined: 21 Dec 2004
Posts: 1130
Location: Germany

PostPosted: Mon Jul 31, 2006 12:59 pm    Post subject: Reply with quote

Kisil, I'd still call that system recent. :-)

Which kernel sources and version are you trying to use?
_________________
If you feel the issues discussed in this thread have been resolved, please add a "[Solved]" to the subject of your original posting.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Mon Jul 31, 2006 1:08 pm    Post subject: Reply with quote

Kisil,

Some of those options are permanently hidden and one is a sub option.
Turn on
Code:
Local APIC support on uniprocessors
and its sub option
Code:
IO-APIC support on uniprocessors
You get the rest automatically. This is one of the places that a single option controls several .config file flags.

You may also need to add lapic to your kernel command line.

The other thing you can try is to increase the audio buffer size setting in your sound applications.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Kisil
n00b
n00b


Joined: 23 Dec 2005
Posts: 44

PostPosted: Mon Jul 31, 2006 11:26 pm    Post subject: Reply with quote

I'm using gentoo sources, 2.6.16-r9. I'm recompiling with those two options enabled as we speak; I have to go, but I'll post the results when I reboot.

What do you mean by "add lapic to your kernel command line" ? Use flag, environmental variable? I'm pretty green with this.


I played a lot with the buffer sizes in jack, but I couldn't get any substantial performance increase, even at latencies that are way slower than I can accept for what I want to do.
_________________
Your bible is broken. I'm fixing it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Mon Jul 31, 2006 11:37 pm    Post subject: Reply with quote

Kisil,

In /boot/grub/grub.conf like this
Code:
title=Kernel 2.6.17-gentoo-r4 (hd0)
root (hd0,0)
kernel (hd0,0)/2.6.17-gentoo-r4 root=/dev/md1 lapic
you may need to add lapic as a kernel option
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Kisil
n00b
n00b


Joined: 23 Dec 2005
Posts: 44

PostPosted: Mon Jul 31, 2006 11:38 pm    Post subject: Reply with quote

Rebooted.
Code:
 $ cat /proc/interrupts
           CPU0       
  0:      34391    IO-APIC-edge  timer
  1:        115    IO-APIC-edge  i8042
  7:          0    IO-APIC-edge  parport0
  8:          0    IO-APIC-edge  rtc
  9:          0   IO-APIC-level  acpi
 12:       5315    IO-APIC-edge  i8042
 14:       7228    IO-APIC-edge  ide0
 15:         42    IO-APIC-edge  ide1
 16:          0   IO-APIC-level  ohci_hcd:usb3
 17:       3437   IO-APIC-level  ehci_hcd:usb1
 18:         14   IO-APIC-level  ohci_hcd:usb2
 19:       6635   IO-APIC-level  nvidia
 20:          0   IO-APIC-level  EMU10K1
NMI:          0
LOC:      34109
ERR:          0
MIS:          0


That looks good to me, although it's odd that the IRQs are above 16 - do you know why that is?

Also, what would the lapic switch do?

I'm going to test my audio gear now.
_________________
Your bible is broken. I'm fixing it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54834
Location: 56N 3W

PostPosted: Mon Jul 31, 2006 11:46 pm    Post subject: Reply with quote

Kisil,

The IO-APIC provides up to 255 IRQs.
It stands for Input/Output-Advanced Peripheral Interrupt Controller. In its defualt state, it mimics the two XT-PIC fitted to AT PCs to give the well known 15 IRQs.
When its enabled into its IO-APIC state, you get a lot more IRQs, so things don't share, with the increased latencey that causes.

The lapic on the kernel line, tells the kernel to use it, even if its been disabled by the BIOS.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Kisil
n00b
n00b


Joined: 23 Dec 2005
Posts: 44

PostPosted: Tue Aug 01, 2006 12:03 am    Post subject: Reply with quote

Wyrd.

My problems are gone, at least as far as interrupts (alsa still doesn't seem to like my usx2y card, but Jack does at least.)

Thanks for all the help and info; I know this would have taken me days of twiddling to figure out. Much obliged.

Changing status to solved.
_________________
Your bible is broken. I'm fixing it.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum