Hi all, I''ve been trying to boot Linux 2.6.16.16 as dom0 for a few days now but I can''t work out how to get XenLinux to recognise my disk. It''s looking like a bug in Xen, as booting the same version of Linux without Xen works fine. Does anyone know of any issues with the ata_piix (Intel ICH5/6) driver and SATA disks? Has anyone got this configuration going? Boot messages follow. This is with Xen 3.0.2-2. Thanks, Adam. Messages from Xen kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ICH6: IDE controller at PCI slot 0000:00:1f.1 ICH6: chipset revision 3 ICH6: not 100% native mode: will probe irqs later ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio hda: TEAC DVD+RW DV-W58E, ATAPI CD/DVD-ROM drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hda: ATAPI 40X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20 Adaptec aacraid driver (1.1-4 Jun 5 2006 11:53:11) ata1: SATA max UDMA/133 cmd 0xFE00 ctl 0xFE12 bmdma 0xFEA0 irq 5 ata2: SATA max UDMA/133 cmd 0xFE20 ctl 0xFE32 bmdma 0xFEA8 irq 5 ata1: dev 0 ATA-6, max UDMA/133, 78125000 sectors: LBA ata1: qc timeout (cmd 0xef) <-- bad ata1: failed to set xfermode, disabled <-- bad ata1: dev 0 configured for UDMA/133 scsi0 : ata_piix ATA: abnormal status 0xFF on port 0xFE27 <-- normal ata2: disabling port scsi1 : ata_piix Messages from native kernel: Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ICH6: IDE controller at PCI slot 0000:00:1f.1 ACPI: PCI Interrupt 0000:00:1f.1[A] -> GSI 16 (level, low) -> IRQ 169 ICH6: chipset revision 3 ICH6: not 100% native mode: will probe irqs later ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio hda: TEAC DVD+RW DV-W58E, ATAPI CD/DVD-ROM drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 hda: ATAPI 40X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33) Uniform CD-ROM driver Revision: 3.20 Adaptec aacraid driver (1.1-4 Jun 6 2006 11:16:39) ACPI: PCI Interrupt 0000:00:1f.2[C] -> GSI 20 (level, low) -> IRQ 217 ata1: SATA max UDMA/133 cmd 0xFE00 ctl 0xFE12 bmdma 0xFEA0 irq 217 ata2: SATA max UDMA/133 cmd 0xFE20 ctl 0xFE32 bmdma 0xFEA8 irq 217 ata1: dev 0 ATA-6, max UDMA/133, 78125000 sectors: LBA ata1: dev 0 configured for UDMA/133 scsi0 : ata_piix ATA: abnormal status 0xFF on port 0xFE27 ata2: disabling port scsi1 : ata_piix Vendor: ATA Model: WDC WD400JD-75HK Rev: 14.0 Type: Direct-Access ANSI SCSI revision: 05 SCSI device sda: 78125000 512-byte hdwr sectors (40000 MB) sda: Write Protect is off SCSI device sda: drive cache: write back SCSI device sda: 78125000 512-byte hdwr sectors (40000 MB) sda: Write Protect is off SCSI device sda: drive cache: write back sda: sda1 sda2 sda3 sda4 sd 0:0:0:0: Attached scsi disk sda _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Adam Nielsen
2006-Jun-09 02:22 UTC
Re: [Xen-devel] ata_piix SATA driver - Invalid opcode?!
> Does anyone know of any issues with the ata_piix (Intel ICH5/6) driver > and SATA disks? Has anyone got this configuration going?I just tried switching the BIOS on this PC to SATA ''combination'' mode, which I''ve used in the past to access the disks using the normal PIIX IDE driver. Unfortunately that results in a bad crash - it looks like Xen just isn''t going to work on this PC :-( Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx ide0: I/O resource 0x1F0-0x1F7 not free. ide0: ports already in use, skipping probe (XEN) BUG at irq.c:541 (XEN) ----[ Xen-3.0.2-2 Not tainted ]---- (XEN) CPU: 0 (XEN) EIP: e008:[<ff11dea5>] pirq_guest_unbind+0x1f5/0x320 (XEN) EFLAGS: 00010096 CONTEXT: hypervisor (XEN) eax: 00000000 ebx: ffbe6380 ecx: 00000001 edx: 00000000 (XEN) esi: ff18bd00 edi: ff162e00 ebp: 00000246 esp: ff175f04 (XEN) cr0: 8005003b cr3: 3ee77000 (XEN) ds: e010 es: e010 fs: 0000 gs: 0000 ss: e010 cs: e008 (XEN) Xen stack trace from esp=ff175f04: (XEN) ff159779 ff162e00 0000021d 00000001 00000001 00000000 00000058 ffbf4ac0 (XEN) 00000010 00000000 ffbf0080 ff1053e3 ffbf0080 00000009 ffbe9080 ff114ab7 (XEN) 14d473e0 00000000 00000000 ffffffda ff175f84 c1521ea4 c1520000 ff105637 (XEN) ffbf0080 00000010 c1521ea4 ff105c7a ff175f88 c1521ea4 0000001c 00000000 (XEN) 00000003 00000010 00000000 00000000 00000000 00000000 00000000 ffbe9080 (XEN) ffbe9080 00000009 00000010 ff14a463 c1521ea4 00000000 fbfc5000 00000009 (XEN) 00000010 c1520000 00000010 000d0000 c0101207 00000061 00000203 c1521ea0 (XEN) 0000e021 0000007b 0000007b 00000000 00000000 00000000 ffbe9080 (XEN) Xen call trace: (XEN) [<ff11dea5>] pirq_guest_unbind+0x1f5/0x320 (XEN) [<ff1053e3>] __evtchn_close+0x73/0x2a0 (XEN) [<ff114ab7>] reprogram_timer+0x27/0xd0 (XEN) [<ff105637>] evtchn_close+0x27/0x30 (XEN) [<ff105c7a>] do_event_channel_op+0xda/0x140 (XEN) [<ff14a463>] hypercall+0x53/0x57 (XEN) (XEN) ************************************ (XEN) CPU0 FATAL TRAP 6 (invalid opcode), ERROR_CODE 0000, IN INTERRUPT CONTEXT. (XEN) System shutting down -- need manual reset. (XEN) ************************************ Cheers, Adam. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On 9 Jun 2006, at 03:22, Adam Nielsen wrote:>> Does anyone know of any issues with the ata_piix (Intel ICH5/6) driver >> and SATA disks? Has anyone got this configuration going? > > I just tried switching the BIOS on this PC to SATA ''combination'' mode, > which I''ve used in the past to access the disks using the normal PIIX > IDE driver. Unfortunately that results in a bad crash - it looks like > Xen just isn''t going to work on this PC :-(Looks like a bug in some of the new irq logic I added a short while back to work around issues with some machines. Can you reproduce this every time you boot? I may bug you to gather more info if so. This is definitely fixable. -- Keir _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> I''ve been trying to boot Linux 2.6.16.16 as dom0 for a few days nowbut> I can''t work out how to get XenLinux to recognise my disk. It''s > looking like a bug in Xen, as booting the same version of Linuxwithout> Xen works fine. > > Does anyone know of any issues with the ata_piix (Intel ICH5/6) driver > and SATA disks? Has anyone got this configuration going? > > Boot messages follow. This is with Xen 3.0.2-2.I think things go wrong earlier than the boot sequence than the excerpt you posted -- it looks like the kernel has decided not to use ACPI. Please can you compare messages earlier in the sequence. Thanks, Ian> Thanks, > Adam. > > Messages from Xen kernel: > > Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 > ide: Assuming 33MHz system bus speed for PIO modes; override with > idebus=xx > ICH6: IDE controller at PCI slot 0000:00:1f.1 > ICH6: chipset revision 3 > ICH6: not 100% native mode: will probe irqs later > ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio > hda: TEAC DVD+RW DV-W58E, ATAPI CD/DVD-ROM drive > ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 > hda: ATAPI 40X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33) > Uniform CD-ROM driver Revision: 3.20 > Adaptec aacraid driver (1.1-4 Jun 5 2006 11:53:11) > ata1: SATA max UDMA/133 cmd 0xFE00 ctl 0xFE12 bmdma 0xFEA0 irq 5 > ata2: SATA max UDMA/133 cmd 0xFE20 ctl 0xFE32 bmdma 0xFEA8 irq 5 > ata1: dev 0 ATA-6, max UDMA/133, 78125000 sectors: LBA > ata1: qc timeout (cmd 0xef) <-- bad > ata1: failed to set xfermode, disabled <-- bad > ata1: dev 0 configured for UDMA/133 > scsi0 : ata_piix > ATA: abnormal status 0xFF on port 0xFE27 <-- normal > ata2: disabling port > scsi1 : ata_piix > > Messages from native kernel: > > Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2 > ide: Assuming 33MHz system bus speed for PIO modes; override with > idebus=xx > ICH6: IDE controller at PCI slot 0000:00:1f.1 > ACPI: PCI Interrupt 0000:00:1f.1[A] -> GSI 16 (level, low) -> IRQ 169 > ICH6: chipset revision 3 > ICH6: not 100% native mode: will probe irqs later > ide0: BM-DMA at 0xffa0-0xffa7, BIOS settings: hda:DMA, hdb:pio > hda: TEAC DVD+RW DV-W58E, ATAPI CD/DVD-ROM drive > ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 > hda: ATAPI 40X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33) > Uniform CD-ROM driver Revision: 3.20 > Adaptec aacraid driver (1.1-4 Jun 6 2006 11:16:39) > ACPI: PCI Interrupt 0000:00:1f.2[C] -> GSI 20 (level, low) -> IRQ 217 > ata1: SATA max UDMA/133 cmd 0xFE00 ctl 0xFE12 bmdma 0xFEA0 irq 217 > ata2: SATA max UDMA/133 cmd 0xFE20 ctl 0xFE32 bmdma 0xFEA8 irq 217 > ata1: dev 0 ATA-6, max UDMA/133, 78125000 sectors: LBA > ata1: dev 0 configured for UDMA/133 > scsi0 : ata_piix > ATA: abnormal status 0xFF on port 0xFE27 > ata2: disabling port > scsi1 : ata_piix > Vendor: ATA Model: WDC WD400JD-75HK Rev: 14.0 > Type: Direct-Access ANSI SCSI revision: 05 > SCSI device sda: 78125000 512-byte hdwr sectors (40000 MB) > sda: Write Protect is off > SCSI device sda: drive cache: write back > SCSI device sda: 78125000 512-byte hdwr sectors (40000 MB) > sda: Write Protect is off > SCSI device sda: drive cache: write back > sda: sda1 sda2 sda3 sda4 > sd 0:0:0:0: Attached scsi disk sda > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel_______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> I think things go wrong earlier than the boot sequence than the > excerpt you posted -- it looks like the kernel has decided not to use > ACPI. Please can you compare messages earlier in the sequence.That would (sort of) make sense - when compiling the dom0 kernel, the options for enabling ACPI are all greyed out, so I can''t actually enable it. The Xen kernel does print a few ACPI messages though, and it detects an APIC and HPET, etc. so it looks like the Xen kernel is detecting things properly. There don''t seem to be any sort of error or problem messages, but it could just be my untrained eye. If you''d like me to e-mail you both logs off-list, let me know. The Xen-only messages are below. Thanks, Adam. (XEN) Command line: /boot/xen-3.0.gz dom0_mem=524288 com1=115200,8n1 (XEN) Physical RAM map: (XEN) 0000000000000000 - 00000000000a0000 (usable) (XEN) 00000000000f0000 - 0000000000100000 (reserved) (XEN) 0000000000100000 - 000000003f688c00 (usable) (XEN) 000000003f688c00 - 000000003f68ac00 (ACPI NVS) (XEN) 000000003f68ac00 - 000000003f68cc00 (ACPI data) (XEN) 000000003f68cc00 - 0000000040000000 (reserved) (XEN) 00000000e0000000 - 00000000f0000000 (reserved) (XEN) 00000000fec00000 - 00000000fed00400 (reserved) (XEN) 00000000fed20000 - 00000000feda0000 (reserved) (XEN) 00000000fee00000 - 00000000fef00000 (reserved) (XEN) 00000000ffb00000 - 0000000100000000 (reserved) (XEN) System RAM: 1014MB (1038496kB) (XEN) Xen heap: 10MB (10568kB) (XEN) Using scheduler: Simple EDF Scheduler (sedf) (XEN) PAE disabled. (XEN) found SMP MP-table at 000fe710 (XEN) DMI 2.3 present. (XEN) Using APIC driver default (XEN) ACPI: RSDP (v000 DELL ) @ 0x000fec00 (XEN) ACPI: RSDT (v001 DELL GX280 0x00000006 ASL 0x00000061) @ 0x000fcbfd (XEN) ACPI: FADT (v001 DELL GX280 0x00000006 ASL 0x00000061) @ 0x000fcc3d (XEN) ACPI: SSDT (v001 DELL st_ex 0x00001000 MSFT 0x0100000d) @ 0xfffd1fe6 (XEN) ACPI: MADT (v001 DELL GX280 0x00000006 ASL 0x00000061) @ 0x000fccb1 (XEN) ACPI: BOOT (v001 DELL GX280 0x00000006 ASL 0x00000061) @ 0x000fcd23 (XEN) ACPI: ASF! (v016 DELL GX280 0x00000006 ASL 0x00000061) @ 0x000fcd4b (XEN) ACPI: MCFG (v001 DELL GX280 0x00000006 ASL 0x00000061) @ 0x000fcdb2 (XEN) ACPI: HPET (v001 DELL GX280 0x00000006 ASL 0x00000061) @ 0x000fcdf0 (XEN) ACPI: DSDT (v001 DELL dt_ex 0x00001000 MSFT 0x0100000d) @ 0x00000000 (XEN) ACPI: Local APIC address 0xfee00000 (XEN) ACPI: LAPIC (acpi_id[0x01] lapic_id[0x00] enabled) (XEN) Processor #0 15:3 APIC version 20 (XEN) ACPI: LAPIC (acpi_id[0x02] lapic_id[0x01] enabled) (XEN) Processor #1 15:3 APIC version 20 (XEN) ACPI: LAPIC (acpi_id[0x03] lapic_id[0x01] disabled) (XEN) ACPI: LAPIC (acpi_id[0x04] lapic_id[0x07] disabled) (XEN) ACPI: LAPIC_NMI (acpi_id[0xff] high level lint[0x1]) (XEN) ACPI: IOAPIC (id[0x08] address[0xfec00000] gsi_base[0]) (XEN) IOAPIC[0]: apic_id 8, version 32, address 0xfec00000, GSI 0-23 (XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl) (XEN) ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level) (XEN) ACPI: IRQ0 used by override. (XEN) ACPI: IRQ2 used by override. (XEN) ACPI: IRQ9 used by override. (XEN) Enabling APIC mode: Flat. Using 1 I/O APICs (XEN) ACPI: HPET id: 0x8086a201 base: 0xfed00000 (XEN) Using ACPI (MADT) for SMP configuration information (XEN) Initializing CPU#0 (XEN) Detected 3593.440 MHz processor. (XEN) CPU: Trace cache: 12K uops, L1 D cache: 16K (XEN) CPU: L2 cache: 1024K (XEN) CPU: Physical Processor ID: 0 (XEN) Intel machine check architecture supported. (XEN) Intel machine check reporting enabled on CPU#0. (XEN) CPU0: Intel P4/Xeon Extended MCE MSRs (12) available (XEN) CPU0: Thermal monitoring enabled (XEN) CPU0: Intel(R) Pentium(R) 4 CPU 3.60GHz stepping 04 (XEN) Booting processor 1/1 eip 90000 (XEN) Initializing CPU#1 (XEN) CPU: Trace cache: 12K uops, L1 D cache: 16K (XEN) CPU: L2 cache: 1024K (XEN) CPU: Physical Processor ID: 0 (XEN) Intel machine check architecture supported. (XEN) Intel machine check reporting enabled on CPU#1. (XEN) CPU1: Intel P4/Xeon Extended MCE MSRs (12) available (XEN) CPU1: Thermal monitoring enabled (XEN) CPU1: Intel(R) Pentium(R) 4 CPU 3.60GHz stepping 04 (XEN) Total of 2 processors activated. (XEN) ENABLING IO-APIC IRQs (XEN) -> Using new ACK method (XEN) ..TIMER: vector=0xF0 apic1=0 pin1=2 apic2=-1 pin2=-1 (XEN) checking TSC synchronization across 2 CPUs: passed. (XEN) Platform timer is 14.318MHz HPET (XEN) Brought up 2 CPUs (XEN) Machine check exception polling timer started. (XEN) Using IPI Shortcut mode (XEN) *** LOADING DOMAIN 0 *** (XEN) Domain 0 kernel supports features = { 0000001f }. (XEN) Domain 0 kernel requires features = { 00000000 }. (XEN) PHYSICAL MEMORY ARRANGEMENT: (XEN) Dom0 alloc.: 3e800000->3f000000 (129024 pages to be allocated) (XEN) VIRTUAL MEMORY ARRANGEMENT: (XEN) Loaded kernel: c0100000->c05f7308 (XEN) Init. ramdisk: c05f8000->c0696c00 (XEN) Phys-Mach map: c0697000->c0717000 (XEN) Start info: c0717000->c0718000 (XEN) Page tables: c0718000->c071b000 (XEN) Boot stack: c071b000->c071c000 (XEN) TOTAL: c0000000->c0800000 (XEN) ENTRY ADDRESS: c0100000 (XEN) Dom0 has maximum 2 VCPUs (XEN) Initrd len 0x9ec00, start at 0xc05f8000 (XEN) Scrubbing Free RAM: ...........done. (XEN) Xen trace buffers: disabled (XEN) *** Serial input -> DOM0 (type ''CTRL-a'' three times to switch input to Xen). _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Adam Nielsen
2006-Jun-13 02:43 UTC
Re: [Xen-devel] ata_piix SATA driver - Invalid opcode?!
Hi Keir,> Looks like a bug in some of the new irq logic I added a short while > back to work around issues with some machines. Can you reproduce this > every time you boot? I may bug you to gather more info if so. This is > definitely fixable.I''ve only tried the once, but I''m pretty confident that it''s reproducible, given my luck so far :-) Feel free to bug me for more info! Cheers, Adam. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel