From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Pavel Pisa <pisa@cmp.felk.cvut.cz>,
Ingo Molnar <mingo@redhat.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
trivial@rustcorp.com.au
Subject: Re: VM86 interrupt emulation breakage and FIXes for 2.6.x kernel series
Date: Sat, 11 Dec 2004 14:19:17 +0000 [thread overview]
Message-ID: <1102774756.7267.17.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.58.0412102020190.31040@ppc970.osdl.org>
On Sad, 2004-12-11 at 04:21, Linus Torvalds wrote:
> Alan, what _are_ you arguing about? That "disable_irq()" is absolutely
> rquired, because:
> - not having it locks up the machine if the irq happens to be level.
> - not having it means that the "enable_irq()" that happens when the irq
> is reported to user space is unbalanced.
That part I missed.
> > Putting a single disable_irq in doesn't change the fact it doesn't work
> > because the IRQ is never re-enabled.
>
> Did you actually test the code? Did you ever _look_ at it?
Yes I tested it. It worked in my test code, unfortunately the enable_irq
part of it didn't show up because the other patches in that test set
included ones for dynamically detecting interrupt routing errors and
they hid it.
Alan
ps: Pavel - the X folks played with several ideas for handling
interrupts
from user space that could be shared, forwarded to user space and
handled and it always came back to either a small kernel module or an
interpretable set of
descriptions of how to test for and mask the IRQ, and in some cases to
save
several values. Something like
struct descriptor {
u8 type:2; /* 0 PCI cfg, 1 mem, 2 I/O */
u8 width:2;
u32 offset;
u32 mask;
u32 value;
}
struct irq_descriptor {
char name[16]; /* For request irq */
struct descriptor test;
struct descriptor mask;
struct descriptor save[4];
};
although nobody ever implemented it. This would also have been outside
of just vm86 as the main user would be X.
next prev parent reply other threads:[~2004-12-11 15:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-09 13:59 VM86 interrupt emulation breakage and FIXes for 2.6.x kernel series Pavel Pisa
2004-12-09 16:09 ` Linus Torvalds
2004-12-10 21:05 ` Alan Cox
2004-12-10 22:55 ` Linus Torvalds
2004-12-10 23:58 ` Alan Cox
2004-12-11 1:23 ` Linus Torvalds
2004-12-11 0:57 ` Alan Cox
2004-12-11 2:30 ` Pavel Pisa
2004-12-11 4:21 ` Linus Torvalds
2004-12-11 14:19 ` Alan Cox [this message]
2004-12-11 18:45 ` Linus Torvalds
2004-12-11 18:46 ` Alan Cox
2005-04-26 8:49 ` [PATCH] Linux 2.6.x VM86 interrupt emulation fixes - the second round Pavel Pisa
2004-12-11 2:07 ` VM86 interrupt emulation breakage and FIXes for 2.6.x kernel series Pavel Pisa
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=1102774756.7267.17.camel@localhost.localdomain \
--to=alan@lxorguk.ukuu.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=pisa@cmp.felk.cvut.cz \
--cc=torvalds@osdl.org \
--cc=trivial@rustcorp.com.au \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox