From: Alexander Graf <agraf@suse.de>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
Joerg Roedel <Joerg.Roedel@amd.com>,
Sebastian Herbszt <herbszt@gmx.de>,
qemu-devel Developers <qemu-devel@nongnu.org>,
Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] Re: [PATCH 8/8] ahci: fix !msi interrupts
Date: Mon, 17 Jan 2011 17:33:31 +0100 [thread overview]
Message-ID: <4D346F5B.7090502@suse.de> (raw)
In-Reply-To: <4D346C31.8060300@siemens.com>
Jan Kiszka wrote:
> On 2011-01-17 17:04, Alexander Graf wrote:
>
>> Jan Kiszka wrote:
>>
>>> On 2011-01-17 17:00, Alexander Graf wrote:
>>>
>>>
>>>> Jan Kiszka wrote:
>>>>
>>>>
>>>>> On 2010-12-20 22:13, Alexander Graf wrote:
>>>>>
>>>>>
>>>>>
>>>>>> When not using MSI, receiving an interrupt while the interrupt line is active
>>>>>> pulses the interrupt line. Without this, guests don't realize that a new
>>>>>> interrupt occured.
>>>>>>
>>>>>>
>>>>>>
>>>>> This doesn't look OK. The device model should look at the currently used
>>>>> mode and switch between edge and level triggering accordingly. As it
>>>>> appears like this is what it already does, this change may just paper
>>>>> over the real issue.
>>>>>
>>>>>
>>>>>
>>>> Well, I have this internal abstraction to make edge and level triggered
>>>> interrupt triggering easier. irq_lower is a simple nop for the edge case.
>>>>
>>>>
>>>>
>>> I'm concerned about the artificial edge you generate for the level
>>> triggered case. That's not like real hw behaves. If you need it,
>>> something else might still be broken.
>>>
>>>
>> Hrm. So worst case we generate a spurious interrupt?
>>
>>
>
> Worse might also be that unknown issue that force you to inject an IRQ
> here. We don't know. That's probably worst.
>
Well, IIRC the issue was that usually a level high interrupt line would
simply retrigger an interrupt after enabling the interrupt line in the
APIC again. Unless my memory completely fails on me, that didn't happen,
so I added the manual retrigger on a partial command ACK in ahci code.
Alex
next prev parent reply other threads:[~2011-01-17 16:33 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 21:13 [Qemu-devel] [PATCH 0/8] Some more AHCI work Alexander Graf
2010-12-20 21:13 ` [Qemu-devel] [PATCH 1/8] ahci: split ICH9 from core Alexander Graf
2010-12-23 8:23 ` Stefan Hajnoczi
2010-12-23 10:32 ` Alexander Graf
2010-12-27 11:51 ` Sebastian Herbszt
2010-12-20 21:13 ` [Qemu-devel] [PATCH 2/8] ahci: split ICH and AHCI even more Alexander Graf
2011-01-18 12:19 ` [Qemu-devel] " Kevin Wolf
2011-02-01 14:12 ` Alexander Graf
2010-12-20 21:13 ` [Qemu-devel] [PATCH 3/8] ahci: send init d2h fis on fis enable Alexander Graf
2011-01-18 12:25 ` [Qemu-devel] " Kevin Wolf
2011-01-18 12:42 ` Alexander Graf
2010-12-20 21:13 ` [Qemu-devel] [PATCH 4/8] ahci: use qiov instead of dma helpers Alexander Graf
2011-01-18 12:35 ` [Qemu-devel] " Kevin Wolf
2011-01-18 12:45 ` Alexander Graf
2011-01-18 13:14 ` Stefan Hajnoczi
2011-01-18 13:30 ` Kevin Wolf
2010-12-20 21:13 ` [Qemu-devel] [PATCH 5/8] ahci: Implement HBA reset Alexander Graf
2010-12-20 21:13 ` [Qemu-devel] [PATCH 6/8] ahci: make number of ports runtime determined Alexander Graf
2011-01-18 12:40 ` [Qemu-devel] " Kevin Wolf
2011-01-18 12:46 ` Alexander Graf
2011-01-18 13:33 ` Kevin Wolf
2011-01-18 13:09 ` Gerd Hoffmann
2010-12-20 21:13 ` [Qemu-devel] [PATCH 7/8] ahci: free dynamically allocated iovs Alexander Graf
2011-01-18 12:41 ` [Qemu-devel] " Kevin Wolf
2010-12-20 21:13 ` [Qemu-devel] [PATCH 8/8] ahci: fix !msi interrupts Alexander Graf
2011-01-17 14:37 ` [Qemu-devel] " Jan Kiszka
2011-01-17 16:00 ` Alexander Graf
2011-01-17 16:03 ` Jan Kiszka
2011-01-17 16:04 ` Alexander Graf
2011-01-17 16:20 ` Jan Kiszka
2011-01-17 16:33 ` Alexander Graf [this message]
2011-01-17 16:48 ` Jan Kiszka
2011-01-17 16:50 ` Alexander Graf
2011-01-18 9:08 ` Gerd Hoffmann
2011-01-18 12:05 ` Alexander Graf
2011-01-18 12:58 ` Jan Kiszka
2011-01-22 13:13 ` Aurelien Jarno
2011-01-22 14:14 ` Edgar E. Iglesias
2011-01-22 14:32 ` Alexander Graf
2011-01-22 14:40 ` Aurelien Jarno
2011-01-23 3:34 ` Edgar E. Iglesias
2011-01-22 14:28 ` Alexander Graf
2011-01-22 14:34 ` Aurelien Jarno
2011-01-18 13:02 ` Gerd Hoffmann
2011-01-17 13:25 ` [Qemu-devel] [PATCH 0/8] Some more AHCI work Gerd Hoffmann
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=4D346F5B.7090502@suse.de \
--to=agraf@suse.de \
--cc=Joerg.Roedel@amd.com \
--cc=herbszt@gmx.de \
--cc=jan.kiszka@siemens.com \
--cc=kraxel@redhat.com \
--cc=kwolf@redhat.com \
--cc=qemu-devel@nongnu.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).