LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-08-2008, 04:21 AM   #1
i.you
Member
 
Registered: Oct 2006
Posts: 46

Rep: Reputation: 15
How to know if IRQ full or blocked?


Hi guys,

is there any command or something to survey whether IRQ in system is full?

I've got a small Linux box (none distribution).
A micro controller reacts to it when I push a button B, but Kernel doesn't seem to receive the interrupt.
In case I push the other button A, receives the interrupt well.
So I thought IRQ full in system.
or something may be blocking its interrupt.

Also if IRQ full or blocked, can I edit it to receive the interrupt from the button B?
Please let me know it if possible.

Any advice?

Thanks in advance.
 
Old 04-08-2008, 09:37 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
cat /proc/interrupts list should be small so post the output pls
 
Old 04-08-2008, 09:48 PM   #3
i.you
Member
 
Registered: Oct 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks a lot aus9,

Here's the output :

~# cat /proc/interrupts
CPU0
0: 7552517 Mv Timer Tick
3: 3221 serial
12: 0 ehci_hcd:usb2
17: 0 ehci_hcd:usb1
21: 427927 eth0
28: 0 cesa
29: 10428 mvSata
34: 1 MiCon
Err: 0
 
Old 04-09-2008, 12:07 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
well I am looking but can not see a conflict.

can you expand on your no distro pls?

2) are you wanting to map keyboard press button a to b when allegedly button a already works?

3) do not post full logs but can you snip any logs that relate to your hw that is not being recognised or when you press a key if any log shows that pls
 
Old 04-09-2008, 12:15 AM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
some research but relates to non micro controllers
http://www.linux.org/docs/ldp/howto/...y-HOWTO-7.html

you can reduce your tty by adjusting your /etc/inittab.

setserial may be required but so far I can not see the issue.
http://tldp.org/HOWTO/Serial-HOWTO-1...sets_boot_time
 
Old 04-09-2008, 12:25 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
changing keys is
http://dev-loki.blogspot.com/2006/04...h-xmodmap.html

however you have not mentioned your hw specs so it may be a laptop thingee....maybe you intend to do a memory card = system cf card install?

http://www.linuxquestions.org/questi...orking-478361/
 
Old 04-10-2008, 04:19 AM   #7
i.you
Member
 
Registered: Oct 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks for lots of replies aus9,

at first, my linux box is :

cpu: ARM9
mem: 256MB
HDD: over 250GB (rootfs is in sdb2)
kernel: 2.6.16
no display, no keyboard, etc...

Quote:
2) are you wanting to map keyboard press button a to b when allegedly button a already works?
no, button a and b are not related.
also they are not keyboard - power and reset.
I just wonder the interrupt works for button a but does not for button b although the micro controller works for both.

Quote:
3) do not post full logs but can you snip any logs that relate to your hw that is not being recognised or when you press a key if any log shows that pls
in case of button b, no logs as I have tested because the interrupt not occurs
but for button a, I could see the micro controller interrupt :
kernelmon: cmd=micon_interrupts

from dmesg :
Quote:
...
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
serial8250: ttyS1 at MMIO 0x0 (irq = 4) is a 16550A
RAMDISK driver initialized: 3 RAM disks of 16384K size 1024 blocksize
loop: loaded (max 8 devices)
...

By the way, the serial console may affect this problem?

Last edited by i.you; 04-10-2008 at 04:20 AM.
 
Old 04-10-2008, 05:56 AM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
well I know zip about arm hardware.

but you may be right...the kernel or its modules do impact on serio and serial and power functions....but so too does your bios...I assume your system uses the bios?

for example I have mine set to need 4 seconds of continual pressing to do a full shutdown by holding the power button in the bios.

maybe you could have said it was the power button or the reset that was the trouble in the first post? thats why I was thinking you had a keyboard layout error but have wasted your time thinking it.

2) because it is so large...post only the section of your /boot/config if you have such a thing....the kernel config file for this part pls
# Power management options

I am not an expert in this area ....it is possible you are lacking (y for yes or m for modules)
CONFIG_PM=y
CONFIG_ACPI=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y

altho when you read the docs they seem to relate more to suspend and hibernate functions.
 
Old 04-11-2008, 01:37 AM   #9
i.you
Member
 
Registered: Oct 2006
Posts: 46

Original Poster
Rep: Reputation: 15
Thanks a lot aus9!

my system uses a u-boot in flash mem not the bios.
as I hear you I suspect the power management.
in fact this problem occurs only when got up from sleep mode (so does when sleep mode).
i.e. both buttons work after first boot.
once the system sleep and get up, the interrupt not works for reset button.

this power management is not of the kernel:
something like application.
i.e. sleep mode means the initrd mode with hdd off (initrd is copied to ram disk).
but I think the application is not related to the power management of the kernel.

.config in kernel directory:
Quote:
# Power management options

# CONFIG_PM is not set
# CONFIG_APM is not set
the kernel is not changed when sleep or get up.

Last edited by i.you; 04-11-2008 at 01:39 AM.
 
Old 04-11-2008, 09:54 AM   #10
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
I hope you realise that "the kernel is not changed when sleep or get up" is never going to change....what you have in the kernel stays in the kernel unless it has force unload kernel setting....modules tho can be moved in and out.

try recompiling kernel to have power management options but I do not know what bootloader you are using....to enable grub or lilo boot parameters....aka cheatcodes
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
always blocked ... melainine Linux - Security 2 02-12-2008 12:02 AM
SCSI Errors when IRQ Shared - How do I not share IRQ MQMan Linux - Hardware 2 01-09-2006 12:42 AM
Blocked bhughesiii Linux - Networking 9 05-12-2005 02:44 PM
Sound Gets Blocked Crashed_Again Linux - General 2 10-26-2003 11:12 AM
think I'm getting blocked at the switch jdh Linux - Networking 19 12-19-2001 03:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration