Only one CPU core detected when booting on UEFI
Hi Xen developers,
I have been having a problem where only one CPU core is being detected. I'm using a Lenovo W520 with a UEFI firmware and an Intel Core i7 2720qm (4 real cores, 4 virtual cores). When I boot, I see "Dom0 has maximum 1 VCPUs", or something similar, scroll by.
In addition, only 10 GB out of my 12 GB of memory is recognized and ACPI is not working properly (CPU frequency scaling and battery info are not reported).
This problem has been reported before (for the same laptop too) here:
http://lists.xen.org/archives/html/xen-devel/2012-06/msg00087.html but unfortunately, the person who sent the message didn't reply with more information.
Here are the outputs of dmesg with and without Xen:
Without Xen: http://paste.kde.org/626222/raw/
With Xen: http://paste.kde.org/626228/raw/
and some information from xl:
xl vcpu-list: http://paste.kde.org/626234/raw/
xl info: http://paste.kde.org/626240/raw/
xl dmesg: http://paste.kde.org/626246/raw/
This is my first time venturing into Xen territory, so please let me know if there's any other information needed.
I'm not sure if it helps, but I'd also like to point out that I had a similar problem with Linux back around July 20, 2011, when I got my computer. I could work around the issue by booting with "noapic". I'm not sure which kernel version fixed the issue as I booted with that option for quite a while. The kernel version, at the time, was 3.0.
I am glad to help in any way I can. I'm excited to get Xen working! I'm confortable with compiling the kernel or xen if necessary.
Thanks in advance!
Xiao-Long Chen
Quoted 6 lines · Xiao-Long Chen
Hi Xen developers,
I have been having a problem where only one CPU core is being detected. I'm using a Lenovo W520 with a UEFI firmware and an Intel Core i7 2720qm (4 real cores, 4 virtual cores). When I boot, I see "Dom0 has maximum 1 VCPUs", or something similar, scroll by.
Ooh.
Quoted 10 lines
In addition, only 10 GB out of my 12 GB of memory is recognized and ACPI is not working properly (CPU frequency scaling and battery info are not reported).
This problem has been reported before (for the same laptop too) here:
http://lists.xen.org/archives/html/xen-devel/2012-06/msg00087.html but unfortunately, the person who sent the message didn't reply with more information.
Quoted 4 lines
Here are the outputs of dmesg with and without Xen:
Without Xen: http://paste.kde.org/626222/raw/
With Xen: http://paste.kde.org/626228/raw/
Hm, this:
[ 0.000000] ACPI BIOS Bug: Error: A valid RSDP was not found (20120913/tbxfroot-219)
is a problem. The workaround was mentioned on the mailing list to use the acpi_rsdp=0xbabfe000
Quoted 6 lines
and some information from xl:
xl vcpu-list: http://paste.kde.org/626234/raw/
xl info: http://paste.kde.org/626240/raw/
xl dmesg: http://paste.kde.org/626246/raw/
And Xen has the same issue:
(XEN) ACPI Error (tbxfroot-0218): A valid RSDP was not found [20070126]
And it looks to be running in a legacy state - with no calls to EFI.
Quoted 3 lines
This is my first time venturing into Xen territory, so please let me know if there's any other information needed.
Did you try to boot xen.efi by itself - without using the GRUB loader? There is a nice writeup of how to do this in docs/misc/efi.markdown.
Also CC-ing Daniel if he has some ideas.
Quoted 19 lines
I'm not sure if it helps, but I'd also like to point out that I had a similar problem with Linux back around July 20, 2011, when I got my computer. I could work around the issue by booting with "noapic". I'm not sure which kernel version fixed the issue as I booted with that option for quite a while. The kernel version, at the time, was 3.0.
I am glad to help in any way I can. I'm excited to get Xen working! I'm confortable with compiling the kernel or xen if necessary.
Thanks in advance!
Xiao-Long Chen
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Thanks for the reply! I'll respond inline.
Quoted 25 lines · Konrad Rzeszutek Wilk
Quoted 6 lines · Xiao-Long Chen
Hi Xen developers,
I have been having a problem where only one CPU core is being detected. I'm using a Lenovo W520 with a UEFI firmware and an Intel Core i7 2720qm (4 real cores, 4 virtual cores). When I boot, I see "Dom0 has maximum 1 VCPUs", or something similar, scroll by.
Ooh.
Quoted 9 lines
In addition, only 10 GB out of my 12 GB of memory is recognized and ACPI is not working properly (CPU frequency scaling and battery info are not reported).
This problem has been reported before (for the same laptop too) here:
http://lists.xen.org/archives/html/xen-devel/2012-06/msg00087.html but unfortunately, the person who sent the message didn't reply with more information.Quoted 4 lines
Here are the outputs of dmesg with and without Xen:
Without Xen: http://paste.kde.org/626222/raw/
With Xen: http://paste.kde.org/626228/raw/
Quoted 7 lines
Hm, this:
[ 0.000000] ACPI BIOS Bug: Error: A valid RSDP was not found(20120913/tbxfroot-219)
is a problem. The workaround was mentioned on the mailing list to use the acpi_rsdp=0xbabfe000
I tried booting with this, but the kernel immediately crashed (I think). I booted with 'acpi_rsdp=0xbabfe000' and without 'quiet' and the system hangs while loading the initramfs. I could not see any sort of response on the system and could not ssh in.
Quoted 12 lines
Quoted 7 lines
and some information from xl:
xl vcpu-list: http://paste.kde.org/626234/raw/
xl info: http://paste.kde.org/626240/raw/
xl dmesg: http://paste.kde.org/626246/raw/And Xen has the same issue:
(XEN) ACPI Error (tbxfroot-0218): A valid RSDP was not found [20070126]
Quoted 8 lines
And it looks to be running in a legacy state - with no calls to EFI.
Quoted 3 lines
This is my first time venturing into Xen territory, so please let me know if there's any other information needed.
Did you try to boot xen.efi by itself - without using the GRUB loader? There is a nice writeup of how to do this in docs/misc/efi.markdown.
Booting from xen.efi, I see "Dom0 has maximum 8 VCPUs" as expected, but Linux is still seeing only one core. In addition, my keyboard and mouse do not work (internal laptop PS/2). I was able to get the dmesg and 'xl dmesg' outputs from ssh though:
dmesg (no xen): http://paste.kde.org/629684/raw/
dmesg (xen.efi): http://paste.kde.org/629690/raw/
xl dmesg: http://paste.kde.org/629696/raw/
The system is incredibly sluggish as when booted with GRUB, but that may just be due to one core being available.
Quoted 3 lines
Also CC-ing Daniel if he has some ideas.
Thanks a lot!
Xiao-Long Chen
Quoted 12 lines
Quoted 12 lines
I'm not sure if it helps, but I'd also like to point out that I had a similar problem with Linux back around July 20, 2011, when I got my computer. I could work around the issue by booting with "noapic". I'm not sure which kernel version fixed the issue as I booted with that option for quite a while. The kernel version, at the time, was 3.0.
I am glad to help in any way I can. I'm excited to get Xen working! I'm confortable with compiling the kernel or xen if necessary.
Thanks in advance!
Quoted 8 lines
Quoted 7 lines
Xiao-Long Chen
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Hi,
Quoted 11 lines · Xiao-Long Chen
Quoted 6 lines
Hm, this:
[ 0.000000] ACPI BIOS Bug: Error: A valid RSDP was not found(20120913/tbxfroot-219)
is a problem. The workaround was mentioned on the mailing list to use the acpi_rsdp=0xbabfe000
I tried booting with this, but the kernel immediately crashed (I think). I booted with 'acpi_rsdp=0xbabfe000' and without 'quiet' and the system hangs while loading the initramfs. I could not see any sort of response on the system and could not ssh in.
I posted the workaround, and it was not 'acpi_rsdp=0xbabfe000', but 'acpi_rsdp=the-value-xen-reports' (it could be 0xbabfe000 for a specific machine)
Quoted 2 lines
Quoted 2 lines
Did you try to boot xen.efi by itself - without using the GRUB loader? There is a nice writeup of how to do this in docs/misc/efi.markdown.
GRUB2 still may be used, but only for chain-loading the xen.efi. This give little gain over booting xen.efi directly from the firmware, though.
Quoted 1 line
Booting from xen.efi, I see "Dom0 has maximum 8 VCPUs" as expected,
Now xen can find the ACPI RSDP
Quoted 1 line
but Linux is still seeing only one core.
That is because Xen doesn't pass all the information obtained via EFI to the kernel.
Quoted 1 line
xl dmesg: http://paste.kde.org/629696/raw/
the important part:
Quoted 1 line
(XEN) ACPI: RSDP BABFE014, 0024 (r2 LENOVO)
Try booting xen.efi and passing 'acpi_rsdp=0xBABFE014' to the kernel via the kernel command-line.
This should fix other problems with the kernel too, as ACPI is important for initializing many kernel subsystems.
Greets,
Jacek
Thanks for the reply!
Quoted 19 lines · Jacek Konieczny
Hi,
Quoted 11 lines · Xiao-Long Chen
Quoted 6 lines
Hm, this:
[ 0.000000] ACPI BIOS Bug: Error: A valid RSDP was not found(20120913/tbxfroot-219)
is a problem. The workaround was mentioned on the mailing list to use the acpi_rsdp=0xbabfe000
I tried booting with this, but the kernel immediately crashed (I think). I booted with 'acpi_rsdp=0xbabfe000' and without 'quiet' and the system hangs while loading the initramfs. I could not see any sort of response on the system and could not ssh in.
I posted the workaround, and it was not 'acpi_rsdp=0xbabfe000', but 'acpi_rsdp=the-value-xen-reports' (it could be
0xbabfe000for a specific machine)
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Did you try to boot xen.efi by itself - without using the GRUB loader? There is a nice writeup of how to do this in docs/misc/efi.markdown.
GRUB2 still may be used, but only for chain-loading the xen.efi. This give little gain over booting xen.efi directly from the firmware, though.
Good to know. I currently boot xen.efi from the efi shell.
Quoted 10 lines
Quoted 2 lines
Booting from xen.efi, I see "Dom0 has maximum 8 VCPUs" as expected,
Now xen can find the ACPI RSDP
Quoted 1 line
but Linux is still seeing only one core.
That is because Xen doesn't pass all the information obtained via EFI to the kernel.
Quoted 9 lines
Quoted 1 line
xl dmesg: http://paste.kde.org/629696/raw/
the important part:
Quoted 1 line
(XEN) ACPI: RSDP BABFE014, 0024 (r2 LENOVO)
Try booting xen.efi and passing 'acpi_rsdp=0xBABFE014' to the kernel via the kernel command-line.
I rebooted into xen.efi to make sure that it still reported:
(XEN) ACPI: RSDP BABFE014, 0024 (r2 LENOVO)
then I changed my xen.efi config to this: http://paste.kde.org/629996/raw/
which, unfortunately, still causes the hang.
Quoted 7 lines
This should fix other problems with the kernel too, as ACPI is important for initializing many kernel subsystems.
Greets,
Jacek
Best regards,
Xiao-Long Chen
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 6 lines · Xiao-Long Chen
I rebooted into xen.efi to make sure that it still reported:
(XEN) ACPI: RSDP BABFE014, 0024 (r2 LENOVO)
then I changed my xen.efi config to this: http://paste.kde.org/629996/raw/
which, unfortunately, still causes the hang.
Have you tried 'acpi_rsdp=0xbabfe014' instead of 'acpi_rsdp=babfe014'?
Do you have the kernel console output from the failed boot with these settings?
Also, I don't think 'video=vesa:off vga=normal' options make much sense under EFI and Xen.
Greets,
Jacek
Quoted 6 lines · Jacek Konieczny
Quoted 4 lines · Xiao-Long Chen
I rebooted into xen.efi to make sure that it still reported:
(XEN) ACPI: RSDP BABFE014, 0024 (r2 LENOVO)
Quoted 9 lines
Quoted 1 line
then I changed my xen.efi config to this:
http://paste.kde.org/629996/raw/
Quoted 1 line
which, unfortunately, still causes the hang.
Have you tried 'acpi_rsdp=0xbabfe014' instead of 'acpi_rsdp=babfe014'?
Do you have the kernel console output from the failed boot with these settings?
Unfortunately, that doesn't help either. I don't see any output from the failed boot. Without the acpi_rsdp option, the kernel starts printing out messages as soon as xen.efi's output is finished displaying. With acpi_rsdp, the screen clears after xen.efi's messages scroll by and then nothing happens.
Quoted 4 lines
Also, I don't think 'video=vesa:off vga=normal' options make much sense under EFI and Xen.
Thanks, I took those out. Those were added automatically by the proprietary NVIDIA drivers and I copied them into the xen.efi config.
Cheers,
Xiao-Long Chen
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel