WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Re: MSI error when reloading iwlagn module

To: Jan Beulich <JBeulich@xxxxxxxx>
Subject: Re: [Xen-devel] Re: MSI error when reloading iwlagn module
From: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>
Date: Wed, 28 Sep 2011 12:07:54 +0100
Cc: andrew.cooper3@xxxxxxxxxx, Jeremy Fitzhardinge <jeremy@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>
Delivery-date: Wed, 28 Sep 2011 04:11:25 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=iRzbtGXMVkNqm66e4Xgm+ZBZhJ0Mr92T4I8zSF0E8y4=; b=LF8hlhxkUw0U/8NGqN0OUOwGy7ExCqf8cgOsz8uwQ8RZtum3XqOzp+SUUInbfJZN6w l1lHCftCn685x4+rbWAwOY5lNm9sjUAzCzAATIOVTHyt5sVztuNFI8K5UQlv6MbqJdAs PiggL+yc2yFQB+oU5lj75Wyy+hH4F5DEKMEW0=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4E8312C4020000780005829C@xxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <4E822AA6.4010605@xxxxxxxx> <4E82F7F10200007800058259@xxxxxxxxxxxxxxxxxxxx> <4E8312C4020000780005829C@xxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Actually, I think the patch I sent shouldn't have any effect on Intel
systems, unless you've expicitly enabled one of the irq vector map
options on your Xen command line.
 -George

On Wed, Sep 28, 2011 at 11:27 AM, Jan Beulich <JBeulich@xxxxxxxx> wrote:
>>>> On 28.09.11 at 10:33, "Jan Beulich" <JBeulich@xxxxxxxx> wrote:
>>>>> On 27.09.11 at 21:57, Jeremy Fitzhardinge <jeremy@xxxxxxxx> wrote:
>>> Hi,
>>>
>>> With a fairly current kernel + xen, I'm seeing this if I rmmod iwlagn
>>> and try to reload it:
>>>
>>> [51230.646678] Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
>>> [51230.646685] Copyright(c) 2003-2011 Intel Corporation
>>> [51230.646760] xen: registering gsi 17 triggering 0 polarity 1
>>> [51230.646773] xen_map_pirq_gsi: returning irq 17 for gsi 17
>>> [51230.646777] xen: --> pirq=17 -> irq=17 (gsi=17)
>>> [51230.646781] Already setup the GSI :17
>>> [51230.646789] iwlagn 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 
>>> 17
>>> [51230.646814] iwlagn 0000:03:00.0: setting latency timer to 64
>>> [51230.646935] iwlagn 0000:03:00.0: pci_resource_len = 0x00002000
>>> [51230.646941] iwlagn 0000:03:00.0: pci_resource_base = ffffc9000671c000
>>> [51230.646945] iwlagn 0000:03:00.0: HW Revision ID = 0x35
>>> [51230.647075] iwlagn 0000:03:00.0: xen map irq failed -22 for 32752 domain
>>> [51230.647081] iwlagn 0000:03:00.0: pci_enable_msi failed
>>> [51230.647113] iwlagn 0000:03:00.0: PCI INT A disabled
>>> [51230.647126] iwlagn: probe of 0000:03:00.0 failed with error -22
>>>
>>> with this on the Xen console
>>>
>>> (XEN) physdev.c:139: dom0: can't create irq for msi!
>>>
>>>
>>> I'm running Xen as of a422e2a4451e, which your MSI changes in them,
>>> which I suspect of having caused a regression (since I don't remember
>>> having problems reloading msi-using drivers before).
>>
>> Are you certain (i.e. did you try reverting the top 1 to 3 commits from
>> there)? Alternatively, do you know what c/s last worked for you? Is
>> this one the first removal, or after several of them?
>>
>> The message solely indicates a failure of create_irq(), with either
>> find_unassigned_irq() or __assign_irq_vector() failing being the cause,
>> none of which I touched recently. Instead I wonder whether
>> 23812:32814ad7458d wouldn't be a more likely candidate (with
>> 23815:9fa77d26a813 and 23816:7f357e1ef60a being less likely ones).
>>
>> I'll nevertheless see whether this reproduces with one of the MSI
>> drivers that my machines have in use and allow easy removal/reload.
>
> A simple remove/load of mptsas doesn't reproduce this for me, so if
> George's suggested change doesn't help it would be good if you had
> more detail.
>
> Jan
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel