From: Takashi Iwai <tiwai@suse.de>
To: Ralf Gerbig <rge@quengel.org>
Cc: "Linus Torvalds" <torvalds@osdl.org>,
"Lenar Lõhmus" <lenar@vision.ee>,
"Linux Kernel Mailinglist" <linux-kernel@vger.kernel.org>
Subject: Re: irq 7: nobody cared! (intel8x0 sound / 2.6.2-rc3-mm1)
Date: Fri, 13 Feb 2004 12:05:02 +0100 [thread overview]
Message-ID: <s5hbro38ckh.wl@alsa2.suse.de> (raw)
In-Reply-To: <m3hdxx5qcj.fsf-news@hsp-law.de>
[-- Attachment #1: Type: text/plain, Size: 438 bytes --]
At 11 Feb 2004 21:11:08 +0100,
Ralf Gerbig wrote:
>
> - return IRQ_NONE; /* not for us */
> + return IRQ_RETVAL(status); /* not for us */
after checking the code again, using status as IRQ_RETVAL() isn't a
good way, because it has also some static status bits.
the attached patch would be better to avoid the confusion.
it will return IRQ_HANDLED only when some irq bits are really
acknowledged.
Takashi
[-- Attachment #2: Type: text/plain, Size: 993 bytes --]
Index: alsa-kernel/pci/intel8x0.c
===================================================================
RCS file: /suse/tiwai/cvs/alsa/alsa-kernel/pci/intel8x0.c,v
retrieving revision 1.115
diff -u -r1.115 intel8x0.c
--- alsa-kernel/pci/intel8x0.c 6 Feb 2004 17:47:49 -0000 1.115
+++ alsa-kernel/pci/intel8x0.c 13 Feb 2004 10:32:46 -0000
@@ -804,10 +804,20 @@
spin_lock(&chip->reg_lock);
status = igetdword(chip, chip->int_sta_reg);
if ((status & chip->int_sta_mask) == 0) {
- if (status)
+ static int status_ack = 0;
+ static int err_count = 10;
+ if (status) {
iputdword(chip, chip->int_sta_reg, status);
+ status_ack = igetdword(chip, chip->int_sta_reg);
+ }
spin_unlock(&chip->reg_lock);
- return IRQ_NONE;
+ status ^= status_ack;
+ if (status && err_count) {
+ err_count--;
+ snd_printd("intel8x0: unknown IRQ bits 0x%x (sta_mask=0x%x)\n",
+ status, chip->int_sta_mask);
+ }
+ return IRQ_RETVAL(status);
}
for (i = 0; i < chip->bdbars_count; i++) {
next prev parent reply other threads:[~2004-02-13 11:12 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-06 16:19 irq 7: nobody cared! (intel8x0 sound / 2.6.2-rc3-mm1) Lenar Lõhmus
2004-02-09 18:56 ` Takashi Iwai
2004-02-10 17:26 ` Lenar Lõhmus
2004-02-10 19:05 ` Takashi Iwai
2004-02-10 19:50 ` Ralf Gerbig
2004-02-10 20:23 ` Linus Torvalds
2004-02-10 20:49 ` Ralf Gerbig
2004-02-11 10:42 ` Takashi Iwai
2004-02-11 20:11 ` Ralf Gerbig
2004-02-13 11:05 ` Takashi Iwai [this message]
2004-02-10 19:09 ` Ralf Gerbig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hbro38ckh.wl@alsa2.suse.de \
--to=tiwai@suse.de \
--cc=lenar@vision.ee \
--cc=linux-kernel@vger.kernel.org \
--cc=rge@quengel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.