From: Boris Derzhavets Subject: Re: pv_ops dom0 kernel failure with ata_piix / irq problems Date: Mon, 2 Feb 2009 22:16:32 -0800 (PST) Message-ID: <126999.4411.qm@web56104.mail.re3.yahoo.com> References: <4987D709.3020300@goop.org> Reply-To: bderzhavets@yahoo.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1265935105==" Return-path: In-Reply-To: <4987D709.3020300@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: =?iso-8859-1?Q?Pasi_K=E4rkk=E4inen?= , Jeremy Fitzhardinge Cc: Todd Deshane , xen-devel@lists.xensource.com, Andrew Lyon , Ian Campbell List-Id: xen-devel@lists.xenproject.org --===============1265935105== Content-Type: multipart/alternative; boundary="0-1335876425-1233641792=:4411" --0-1335876425-1233641792=:4411 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Pasi, =A0=20 =A0 I saw similar output on the console during booting up. Could you advise to what logfile this data has been sent by system at boot time . Boris. --- On Tue, 2/3/09, Jeremy Fitzhardinge wrote: From: Jeremy Fitzhardinge Subject: Re: [Xen-devel] pv_ops dom0 kernel failure with ata_piix / irq pro= blems To: "Pasi K=E4rkk=E4inen" Cc: "Todd Deshane" , xen-devel@lists.xensource.com, "An= drew Lyon" , "Ian Campbell" Date: Tuesday, February 3, 2009, 12:32 AM Pasi K=E4rkk=E4inen wrote: > On Mon, Feb 02, 2009 at 10:42:30AM +0200, Pasi K=E4rkk=E4inen wrote: > =20 >> On Fri, Jan 30, 2009 at 10:50:51AM -0800, Jeremy Fitzhardinge wrote: >> =20 >>> Ian Campbell wrote: >>> =20 >>>> On Fri, 2009-01-30 at 18:12 +0000, Ian Campbell wrote: >>>> =20 >>>>> Possibly the correct fix might be to use xen_register_gsi() here >>>>> instead of xen_allocate_pirq() and get rid of the special case for IRQ >>>>> 14 and 15 in xen_pci_pirq_enable(). Maybe only 14 and 15 need this >>>>> special treatment. >>>>> =20 >>>> FWIW this also Works For Me. >>>> =20 >>> OK. I'd noticed that the native code just sets up all the legacy interrupts at once. I guess we should follow the lead to avoid thes= e kinds of init order problems. >>>=20 >>> =20 >> OK. >>=20 >> I've been busy, and haven't yet had time to try the patch. >>=20 >> Hopefully I can try it later today! >>=20 >> =20 >=20 > And now I tried the latest bits.=20 > I also applied Ian's legacy irq fix/patch.=20 > bootlog: > http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_ops-dom0-bootlog-8-xen331= -linux-2.6.29-rc3.txt >=20 > Now my (IDE) disk is detected, but it ata_piix still seems to fail.. >=20 > I guess I'll compile new kernel again with libata debug enabled..=20 > Important parts of the dom0 kernel bootlog below. >=20 > -- Pasi >=20 > xen_allocate_pirq: returning irq 30 for gsi 18 > xen_set_ioapic_routing: irq 30 gsi 18 vector 160 ioapic 0 pin 18 triggering > 0 polarity 1 > ata_piix 0000:00:1f.1: PCI INT A -> GSI 18 (level, low) -> IRQ 30 > xen: PCI device 0000:00:1f.1 pin 1 -> irq 30 > scsi4 : ata_piix > scsi5 : ata_piix > ata5: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xf000 irq 14 > ata6: PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xf008 irq 15 > ata5.00: qc timeout (cmd 0x27) > ata5.00: failed to read native max address (err_mask=3D0x4) > ata5.00: HPA support seems broken, skipping HPA handling > ata5.00: configured for UDMA/100 > scsi 4:0:0:0: Direct-Access ATA ST3120022A 3.06 PQ: 0 ANSI= : 5 > sd 4:0:0:0: [sda] 234441648 512-byte hardware sectors: (120 GB/111 GiB) > sd 4:0:0:0: [sda] Write Protect is off > sd 4:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support > DPO or FUA > sd 4:0:0:0: [sda] 234441648 512-byte hardware sectors: (120 GB/111 GiB) > sd 4:0:0:0: [sda] Write Protect is off > sd 4:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support > DPO or FUA > sda:<3>ata5.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen > ata5.00: cmd c8/00:08:00:00:00/00:00:00:00:00/e0 tag 0 dma 4096 in > res 40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout) > ata5.00: status: { DRDY } > ata5: soft resetting link > =20 Interesting. That's similar to what I see with AHCI. I don't know if there's any deeper connection... J _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel =0A=0A=0A --0-1335876425-1233641792=:4411 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Pasi,
 
  I saw similar outp= ut on the console during booting up.
Could you advise to what logfile th= is data has been sent
by system at boot time .

Boris.

--- = On Tue, 2/3/09, Jeremy Fitzhardinge <jeremy@goop.org> w= rote:
From: Jeremy Fitzhardinge <jeremy@goop= .org>
Subject: Re: [Xen-devel] pv_ops dom0 kernel failure with ata_pi= ix / irq problems
To: "Pasi K=E4rkk=E4inen" <pasik@iki.fi>
Cc: = "Todd Deshane" <deshantm@gmail.com>, xen-devel@lists.xensource.com, "= Andrew Lyon" <andrew.lyon@gmail.com>, "Ian Campbell" <Ian.Campbell= @citrix.com>
Date: Tuesday, February 3, 2009, 12:32 AM

Pa=
si K=E4rkk=E4inen wrote:
> On Mon, Feb 02, 2009 at 10:42:30AM +0200, = Pasi K=E4rkk=E4inen wrote:
>
>> On Fri, Jan 30, 2009 at 10:50= :51AM -0800, Jeremy Fitzhardinge wrote:
>>
>>> Ia= n Campbell wrote:
>>>
>>>> On Fri, 2009-0= 1-30 at 18:12 +0000, Ian Campbell wrote:
>>>>
&= gt;>>>> Possibly the correct fix might be to use
xen_registe= r_gsi() here
>>>>> instead of xen_allocate_pirq() and get= rid of the special
case for IRQ
>>>>> 14 and 15 in xe= n_pci_pirq_enable(). Maybe only 14 and 15
need this
>>>>&= gt; special treatment.
>>>>>
>>>= ;> FWIW this also Works For Me.
>>>>
>>= ;> OK. I'd noticed that the native code just sets up all the
legacy = interrupts at once. I guess we should follow the lead to avoid these
ki= nds of init order problems.
>>>
>>> =20
>> OK.
>>
>> I've been busy, and haven't yet = had time to try the patch.
>>
>> Hopefully I can try it = later today!
>>
>>
>
> And now I tried= the latest bits.
> I also applied Ian's legacy irq fix/patch.
&= gt; bootlog:
>
http://pasik.reaktio.net/xen/pv_ops-dom0-debug/pv_o= ps-dom0-bootlog-8-xen331-linux-2.6.29-rc3.txt
>
> Now my (IDE)= disk is detected, but it ata_piix still seems to fail..
>
> I= guess I'll compile new kernel again with libata debug enabled..
> I= mportant parts of the dom0 kernel bootlog below.
>
> -- Pasi>
> xen_allocate_pirq: returning irq 30 for gsi 18
> xen_= set_ioapic_routing: irq 30 gsi 18 vector 160 ioapic 0 pin 18
triggering<= br>> 0 polarity 1
> ata_piix 0000:00:1f.1: PCI INT A -> GSI 18 = (level, low) -> IRQ 30
> xen: PCI device 0000:00:1f.1 pin 1 -> irq 30
> scsi4 : ata_piix
> scsi5 : ata_piix
> ata= 5: PATA max UDMA/100 cmd 0x1f0 ctl 0x3f6 bmdma 0xf000 irq 14
> ata6: = PATA max UDMA/100 cmd 0x170 ctl 0x376 bmdma 0xf008 irq 15
> ata5.00: = qc timeout (cmd 0x27)
> ata5.00: failed to read native max address (e= rr_mask=3D0x4)
> ata5.00: HPA support seems broken, skipping HPA hand= ling
> ata5.00: configured for UDMA/100
> scsi 4:0:0:0: Direct-= Access ATA ST3120022A 3.06 PQ: 0 ANSI:
5
> sd 4:0:0= :0: [sda] 234441648 512-byte hardware sectors: (120 GB/111 GiB)
> sd = 4:0:0:0: [sda] Write Protect is off
> sd 4:0:0:0: [sda] Write cache: = enabled, read cache: enabled, doesn't
support
> DPO or FUA
>= sd 4:0:0:0: [sda] 234441648 512-byte hardware sectors: (120 GB/111 GiB)> sd 4:0:0:0: [sda] Write Protect is off
> sd 4:0:0:0: [sda] Writ= e cache: enabled, read cache: enabled, doesn't
support
> DPO or FUA
> sda:<3>ata5.00: exception Emask 0x0 SAct 0x0 SErr 0x= 0 action 0x6
frozen
> ata5.00: cmd c8/00:08:00:00:00/00:00:00:00:0= 0/e0 tag 0 dma 4096 in
> res 40/00:00:00:00:00/00:00:00:00:0= 0/00 Emask 0x4 (timeout)
> ata5.00: status: { DRDY }
> ata5: so= ft resetting link
>

Interesting. That's similar to what I = see with AHCI. I don't know if
there's any deeper connection...

= J

_______________________________________________
Xen-devel ma= iling list
Xen-devel@lists.xensource.com
http://lists.xensource.com/x= en-devel

=0A=0A --0-1335876425-1233641792=:4411-- --===============1265935105== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1265935105==--