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-bugs

[Xen-bugs] [Bug 1727] Hypevisor hangs on boot.

To: xen-bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-bugs] [Bug 1727] Hypevisor hangs on boot.
From: bugzilla-daemon@xxxxxxxxxxxxxxxxxxx
Date: Sat, 29 Jan 2011 01:09:31 -0800
Delivery-date: Sat, 29 Jan 2011 01:09:39 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <bug-1727-3@xxxxxxxxxxxxxxxxxxxxxxxxxxx/bugzilla/>
List-help: <mailto:xen-bugs-request@lists.xensource.com?subject=help>
List-id: Xen Bugzilla <xen-bugs.lists.xensource.com>
List-post: <mailto:xen-bugs@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-bugs>, <mailto:xen-bugs-request@lists.xensource.com?subject=unsubscribe>
Reply-to: bugs@xxxxxxxxxxxxxxxxxx
Sender: xen-bugs-bounces@xxxxxxxxxxxxxxxxxxx
http://bugzilla.xensource.com/bugzilla/show_bug.cgi?id=1727





------- Comment #8 from dmitry.trikoz@xxxxxxxxxxx  2011-01-29 01:09 -------
Looking into the linux diff..
The only thing it does is enable "acpi mode" early in the boot process.
It's doing it before local apic setup on boot cpu and before booting other
cpus.
I tried to do the same in 3.0.1 code and it works great. Problem fixed.
Here is the ugly version of the fix just to demonstrates what needs to be done:
in xen/arch/x86/setup.c
add lines in __start_xen():

    arch_init_memory();

+    {
+       extern u32 acpi_smi_cmd;
+       extern u8 acpi_enable_value;
+       u32 value = 0;
+       int i;
+       acpi_hw_register_read(ACPI_REGISTER_PM1_CONTROL, &value);
+       if (!(value & 1)) {
+          printk("Enabling ACPI mode.\n");
+          outb(acpi_enable_value, acpi_smi_cmd);
+          // wait for 3 seconds max
+          for(i = 0; i < 300; i++) {
+              acpi_hw_register_read(ACPI_REGISTER_PM1_CONTROL, &value);
+              if(value & 1) {
+                  printk("Entered ACPI mode\n");
+                  break;
+              }
+              mdelay(10);
+          }
+          if(i == 300) {
+             printk("Failed to enter ACPI mode\n");
+          }
+       }
+    }

    identify_cpu(&boot_cpu_data);


-- 
Configure bugmail: 
http://bugzilla.xensource.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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