All of lore.kernel.org
 help / color / mirror / Atom feed
* XEN 4.0.1: BUG: IO-APIC + timer doesn't work!
@ 2010-09-07 20:17 Markus Schuster
  2010-09-08  7:07 ` Jan Beulich
  0 siblings, 1 reply; 8+ messages in thread
From: Markus Schuster @ 2010-09-07 20:17 UTC (permalink / raw)
  To: xen-devel

Hi list, 

I tried to setup XEN 4.0.1 (Debian unstable packages compiled for lenny) on 
my workstation, but run into trouble. XEN 3.4.3 works flawlessly on the same 
hardware. Booting with the noapic parameter solves the problem. 
Feel free to ask for additional information as needed. 

serial console capture:
--- cut ---
(XEN) Xen version 4.0.1 (Debian 4.0.1-1) (waldi@debian.org) (gcc version 
4.3.2 (Debian 4.3.2-1.1) ) Mon Sep  6 23:42:50 UTC 2010
(XEN) Bootloader: GNU GRUB 0.97
(XEN) Command line: apic=debug console=com1 com1=115200,8n1
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: none; EDID transfer time: 0 seconds
(XEN)  EDID info not retrieved because no DDC retrieval method detected
(XEN) Disc information:
(XEN)  Found 3 MBR signatures
(XEN)  Found 3 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 000000000009f800 (usable)
(XEN)  000000000009f800 - 00000000000a0000 (reserved)
(XEN)  00000000000f0000 - 0000000000100000 (reserved)
(XEN)  0000000000100000 - 000000007fee0000 (usable)
(XEN)  000000007fee0000 - 000000007fee3000 (ACPI NVS)
(XEN)  000000007fee3000 - 000000007fef0000 (ACPI data)
(XEN)  000000007fef0000 - 000000007ff00000 (reserved)
(XEN)  00000000e0000000 - 00000000f0000000 (reserved)
(XEN)  00000000fec00000 - 0000000100000000 (reserved)
(XEN) System RAM: 2046MB (2095612kB)
(XEN) ACPI: RSDP 000F7810, 0014 (r0 Nvidia)
(XEN) ACPI: RSDT 7FEE3040, 0034 (r1 Nvidia AWRDACPI 42302E31 AWRD        0)
(XEN) ACPI: FACP 7FEE30C0, 0074 (r1 Nvidia AWRDACPI 42302E31 AWRD        0)
(XEN) ACPI: DSDT 7FEE3180, 6786 (r1 NVIDIA AWRDACPI     1000 MSFT  100000E)
(XEN) ACPI: FACS 7FEE0000, 0040
(XEN) ACPI: SSDT 7FEE9A40, 00F7 (r1 PTLTD  POWERNOW        1  LTP        1)
(XEN) ACPI: MCFG 7FEE9B80, 003C (r1 Nvidia AWRDACPI 42302E31 AWRD        0)
(XEN) ACPI: APIC 7FEE9980, 007C (r1 Nvidia AWRDACPI 42302E31 AWRD        0)
(XEN) Domain heap initialised
(XEN) Processor #0 15:15 APIC version 16
(XEN) IOAPIC[0]: apic_id 2, version 17, address 0xfec00000, GSI 0-23
(XEN) Enabling APIC mode:  Flat.  Using 1 I/O APICs
(XEN) Using scheduler: SMP Credit Scheduler (credit)
(XEN) Detected 2210.229 MHz processor.
(XEN) Initing memory sharing.
(XEN) AMD-Vi: IOMMU not found!
(XEN) I/O virtualisation disabled
(XEN) Total of 1 processors activated.
(XEN) ENABLING IO-APIC IRQs
(XEN)  -> Using new ACK method
(XEN) ..MP-BIOS bug: 8254 timer not connected to IO-APIC
(XEN)
(XEN) ****************************************
(XEN) Panic on CPU 0:
(XEN) IO-APIC + timer doesn't work!  Boot with apic=debug and send a report.  
Then try booting with the 'noapic' 
option****************************************
(XEN)
(XEN) Reboot in five seconds...
--- cut ---

Regards,
Markus

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: XEN 4.0.1: BUG: IO-APIC + timer doesn't work!
@ 2010-09-27 11:42 Jan Beulich
  2010-09-27 23:58 ` Markus Schuster
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Beulich @ 2010-09-27 11:42 UTC (permalink / raw)
  To: Markus Schuster; +Cc: xen-devel

Ping???

>>> On 09.09.10 at 02:00, Markus Schuster <ml@markus.schuster.name> wrote:
> I think the relevant difference is:
> XEN 3.4.3:
> (XEN) ..MP-BIOS bug: 8254 timer not connected to IO-APIC
> (XEN) ...trying to set up timer (IRQ0) through the 8259A ...  failed.
> (XEN) ...trying to set up timer as Virtual Wire IRQ... failed.
> (XEN) ...trying to set up timer as ExtINT IRQ... works.
> 
> XEN 4.0.1:
> (XEN) ..MP-BIOS bug: 8254 timer not connected to IO-APIC
> (XEN) ...trying to set up timer (IRQ0) through the 8259A ...  failed.
> (XEN) ...trying to set up timer as Virtual Wire IRQ... failed.
> (XEN) ...trying to set up timer as ExtINT IRQ... failed :(.
> 
> Please have a look in the attached files for details. 

Could you try below patch (with "acpi_skip_timer_override"
removed again)?

Jan

--- a/xen/arch/x86/i8259.c
+++ b/xen/arch/x86/i8259.c
@@ -367,6 +367,13 @@ void __devinit init_8259A(int auto_eoi)
     spin_unlock_irqrestore(&i8259A_lock, flags);
 }
 
+void __init make_8259A_irq(unsigned int irq)
+{
+printk("IRQ%u -> 8259A\n", irq);//temp
+    io_apic_irqs &= ~(1 << irq);
+    irq_to_desc(irq)->handler = &i8259A_irq_type;
+}
+
 static struct irqaction __read_mostly cascade = { no_action, "cascade", NULL};
 
 void __init init_IRQ(void)
--- a/xen/arch/x86/io_apic.c
+++ b/xen/arch/x86/io_apic.c
@@ -38,9 +38,6 @@
 #include <io_ports.h>
 #include <public/physdev.h>
 
-/* Different to Linux: our implementation can be simpler. */
-#define make_8259A_irq(irq) (io_apic_irqs &= ~(1<<(irq)))
-
 int (*ioapic_renumber_irq)(int ioapic, int irq);
 atomic_t irq_mis_count;
 
@@ -1929,7 +1926,6 @@ static inline void check_timer(void)
     
     irq_desc[0].depth  = 0;
     irq_desc[0].status &= ~IRQ_DISABLED;
-    irq_desc[0].handler = &ioapic_edge_type;
 
     /*
      * Subtle, code in do_timer_interrupt() expects an AEOI
--- a/xen/include/asm-x86/irq.h
+++ b/xen/include/asm-x86/irq.h
@@ -91,6 +91,7 @@ int i8259A_irq_pending(unsigned int irq)
 void mask_8259A(void);
 void unmask_8259A(void);
 void init_8259A(int aeoi);
+void make_8259A_irq(unsigned int irq);
 int i8259A_suspend(void);
 int i8259A_resume(void);
 

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-09-27 23:58 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-07 20:17 XEN 4.0.1: BUG: IO-APIC + timer doesn't work! Markus Schuster
2010-09-08  7:07 ` Jan Beulich
2010-09-09  0:00   ` Markus Schuster
2010-09-09  6:33     ` Pasi Kärkkäinen
2010-09-10 16:14       ` [PATCH] Correct APIC error message (was: XEN 4.0.1: BUG: IO-APIC + timer doesn't work!) Markus Schuster
2010-09-14  8:31     ` XEN 4.0.1: BUG: IO-APIC + timer doesn't work! Jan Beulich
  -- strict thread matches above, loose matches on Subject: below --
2010-09-27 11:42 Jan Beulich
2010-09-27 23:58 ` Markus Schuster

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.