* dom0 kernel fails to recognize DVD drive on piix controller
@ 2016-04-21 9:37 Olaf Hering
2016-04-21 9:49 ` Jan Beulich
2016-04-21 9:55 ` Juergen Gross
0 siblings, 2 replies; 8+ messages in thread
From: Olaf Hering @ 2016-04-21 9:37 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1: Type: text/plain, Size: 954 bytes --]
On my Fujitsu Esprimo Mobile M9400 laptop the upstream dom0 kernel does
not find the DVD drive. The DVD drive is found with native kernels and
also with xenlinux based kernels, like 4.1 based openSUSE Leap.
[ 6.242286] ata_piix 0000:00:1f.1: version 2.13
[ 6.242625] xen: registering gsi 19 triggering 0 polarity 1
[ 6.242635] Already setup the GSI :19
[ 6.250792] ata_piix: probe of 0000:00:1f.1 failed with error -22
After some investigation it turned out that irq_to_desc() returns
nothing for the piix PCI device, as a result EINVAL is returned.
The callchain is like:
piix_init_one
ata_pci_sff_activate_host (legacy_mode case)
devm_request_threaded_irq
irq_to_desc
This happens with 4.4, 4.5 and 4.6 based dom0 kernels.
Any idea whats happening here, where to look further?
I'm attaching a collection of logfiles, like dmesg, lspci and the used
debug patch, along with the used .config for the dom0 kernel.
Thanks,
Olaf
[-- Attachment #2: esprimo-piix.tar.xz --]
[-- Type: application/x-xz, Size: 72988 bytes --]
[-- Attachment #3: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 kernel fails to recognize DVD drive on piix controller
2016-04-21 9:37 dom0 kernel fails to recognize DVD drive on piix controller Olaf Hering
@ 2016-04-21 9:49 ` Jan Beulich
2016-04-21 9:52 ` Olaf Hering
2016-04-21 9:55 ` Juergen Gross
1 sibling, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2016-04-21 9:49 UTC (permalink / raw)
To: Olaf Hering; +Cc: xen-devel
>>> On 21.04.16 at 11:37, <olaf@aepfle.de> wrote:
> On my Fujitsu Esprimo Mobile M9400 laptop the upstream dom0 kernel does
> not find the DVD drive. The DVD drive is found with native kernels and
> also with xenlinux based kernels, like 4.1 based openSUSE Leap.
>
> [ 6.242286] ata_piix 0000:00:1f.1: version 2.13
> [ 6.242625] xen: registering gsi 19 triggering 0 polarity 1
> [ 6.242635] Already setup the GSI :19
> [ 6.250792] ata_piix: probe of 0000:00:1f.1 failed with error -22
>
> After some investigation it turned out that irq_to_desc() returns
> nothing for the piix PCI device, as a result EINVAL is returned.
> The callchain is like:
> piix_init_one
> ata_pci_sff_activate_host (legacy_mode case)
> devm_request_threaded_irq
> irq_to_desc
>
> This happens with 4.4, 4.5 and 4.6 based dom0 kernels.
>
> Any idea whats happening here, where to look further?
Does the device actually use IRQ19, or does it instead use IRQ14
and IRQ15 (which then may require some special casing somewhere)?
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 kernel fails to recognize DVD drive on piix controller
2016-04-21 9:49 ` Jan Beulich
@ 2016-04-21 9:52 ` Olaf Hering
2016-04-21 10:10 ` Jan Beulich
0 siblings, 1 reply; 8+ messages in thread
From: Olaf Hering @ 2016-04-21 9:52 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel
On Thu, Apr 21, Jan Beulich wrote:
> Does the device actually use IRQ19, or does it instead use IRQ14
> and IRQ15 (which then may require some special casing somewhere)?
How do I find out?
Olaf
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 kernel fails to recognize DVD drive on piix controller
2016-04-21 9:37 dom0 kernel fails to recognize DVD drive on piix controller Olaf Hering
2016-04-21 9:49 ` Jan Beulich
@ 2016-04-21 9:55 ` Juergen Gross
2016-04-21 11:00 ` Olaf Hering
1 sibling, 1 reply; 8+ messages in thread
From: Juergen Gross @ 2016-04-21 9:55 UTC (permalink / raw)
To: Olaf Hering, xen-devel
On 21/04/16 11:37, Olaf Hering wrote:
> On my Fujitsu Esprimo Mobile M9400 laptop the upstream dom0 kernel does
> not find the DVD drive. The DVD drive is found with native kernels and
> also with xenlinux based kernels, like 4.1 based openSUSE Leap.
>
> [ 6.242286] ata_piix 0000:00:1f.1: version 2.13
> [ 6.242625] xen: registering gsi 19 triggering 0 polarity 1
> [ 6.242635] Already setup the GSI :19
> [ 6.250792] ata_piix: probe of 0000:00:1f.1 failed with error -22
>
> After some investigation it turned out that irq_to_desc() returns
> nothing for the piix PCI device, as a result EINVAL is returned.
> The callchain is like:
> piix_init_one
> ata_pci_sff_activate_host (legacy_mode case)
> devm_request_threaded_irq
> irq_to_desc
>
> This happens with 4.4, 4.5 and 4.6 based dom0 kernels.
>
> Any idea whats happening here, where to look further?
You might want to test Stefano's patch trying to fix a similar issue:
http://lists.xen.org/archives/html/xen-devel/2016-04/msg02512.html
Juergen
>
> I'm attaching a collection of logfiles, like dmesg, lspci and the used
> debug patch, along with the used .config for the dom0 kernel.
>
> Thanks,
>
> Olaf
>
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 kernel fails to recognize DVD drive on piix controller
2016-04-21 9:52 ` Olaf Hering
@ 2016-04-21 10:10 ` Jan Beulich
2016-04-21 10:35 ` Olaf Hering
0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2016-04-21 10:10 UTC (permalink / raw)
To: Olaf Hering; +Cc: xen-devel
>>> On 21.04.16 at 11:52, <olaf@aepfle.de> wrote:
> On Thu, Apr 21, Jan Beulich wrote:
>
>> Does the device actually use IRQ19, or does it instead use IRQ14
>> and IRQ15 (which then may require some special casing somewhere)?
>
> How do I find out?
Check what the native kernel uses.
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 kernel fails to recognize DVD drive on piix controller
2016-04-21 10:10 ` Jan Beulich
@ 2016-04-21 10:35 ` Olaf Hering
2016-04-21 10:48 ` Jan Beulich
0 siblings, 1 reply; 8+ messages in thread
From: Olaf Hering @ 2016-04-21 10:35 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel
On Thu, Apr 21, Jan Beulich wrote:
> >>> On 21.04.16 at 11:52, <olaf@aepfle.de> wrote:
> > On Thu, Apr 21, Jan Beulich wrote:
> >
> >> Does the device actually use IRQ19, or does it instead use IRQ14
> >> and IRQ15 (which then may require some special casing somewhere)?
> >
> > How do I find out?
>
> Check what the native kernel uses.
Yeah, silly question. Sorry.
Its indeed 14/15:
14: 139 115 IO-APIC 14-edge ata_piix
15: 0 0 IO-APIC 15-edge ata_piix
So does that special handling have to be done in Xen or in dom0?
Olaf
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 kernel fails to recognize DVD drive on piix controller
2016-04-21 10:35 ` Olaf Hering
@ 2016-04-21 10:48 ` Jan Beulich
0 siblings, 0 replies; 8+ messages in thread
From: Jan Beulich @ 2016-04-21 10:48 UTC (permalink / raw)
To: Olaf Hering; +Cc: xen-devel
>>> On 21.04.16 at 12:35, <olaf@aepfle.de> wrote:
> On Thu, Apr 21, Jan Beulich wrote:
>
>> >>> On 21.04.16 at 11:52, <olaf@aepfle.de> wrote:
>> > On Thu, Apr 21, Jan Beulich wrote:
>> >
>> >> Does the device actually use IRQ19, or does it instead use IRQ14
>> >> and IRQ15 (which then may require some special casing somewhere)?
>> >
>> > How do I find out?
>>
>> Check what the native kernel uses.
>
> Yeah, silly question. Sorry.
>
> Its indeed 14/15:
> 14: 139 115 IO-APIC 14-edge ata_piix
> 15: 0 0 IO-APIC 15-edge ata_piix
>
> So does that special handling have to be done in Xen or in dom0?
In Dom0 I would guess - Xen can't do anything about Dom0's
understanding of interrupts, and from the looks of it Dom0 only
sets up IRQ19 here, ignoring the two legacy interrupts.
Jan
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: dom0 kernel fails to recognize DVD drive on piix controller
2016-04-21 9:55 ` Juergen Gross
@ 2016-04-21 11:00 ` Olaf Hering
0 siblings, 0 replies; 8+ messages in thread
From: Olaf Hering @ 2016-04-21 11:00 UTC (permalink / raw)
To: Juergen Gross; +Cc: xen-devel
On Thu, Apr 21, Juergen Gross wrote:
> http://lists.xen.org/archives/html/xen-devel/2016-04/msg02512.html
Thanks, this helps.
Olaf
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-04-21 11:00 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-21 9:37 dom0 kernel fails to recognize DVD drive on piix controller Olaf Hering
2016-04-21 9:49 ` Jan Beulich
2016-04-21 9:52 ` Olaf Hering
2016-04-21 10:10 ` Jan Beulich
2016-04-21 10:35 ` Olaf Hering
2016-04-21 10:48 ` Jan Beulich
2016-04-21 9:55 ` Juergen Gross
2016-04-21 11:00 ` Olaf Hering
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.