Linux as 32-bit Dom0?
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Jan Beulich
Jürgen, Boris,
am I trying something that's not allowed, but selectable via
Kconfig? On system with multiple IO-APICs (I assume that's what triggers the problem) I getKernel panic - not syncing: Max apic_id exceeded!
Generally I don't think 32 bit dom0 is forbidden, but rarely used. I wouldn't be too sad in case we'd decide to drop that support. ;-)
Can you please be a little bit more specific?
How many IOAPICs? From the code I guess this is an INTEL system with not too recent IOAPIC versions (<0x14)?
Having a little bit more of the boot log might help, too.
Juergen
Quoted 33 lines
CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.1-2017-11-21-xen0 #6 Hardware name: ... Call Trace: ? show_stack+0x20/0x50 ? dump_stack+0x7e/0xc0 ? panic+0x99/0x220 ? io_apic_get_unique_id+0x207/0x210 ? __raw_callee_save_xen_restore_fl+0x6/0x8 ? xen_flush_tlb_single+0x6f/0x80 ? set_pte_vaddr+0xef/0x110 ? xen_io_apic_read+0x36/0x90 ? mp_register_ioapic+0x2b7/0x410 ? acpi_os_map_iomem+0x14d/0x210 ? acpi_parse_ioapic+0x6b/0x6f ? acpi_parse_entries_array+0xa1/0x16d ? acpi_tb_get_table+0x95/0x9d ? acpi_ut_release_mutex+0x109/0x10e ? acpi_table_parse_entries_array+0x98/0xa8 ? acpi_table_parse_entries+0x30/0x35 ? acpi_boot_init+0x65/0x65 ? acpi_table_parse_madt+0x1b/0x1f ? acpi_boot_init+0x65/0x65 ? acpi_parse_madt_ioapic_entries+0x4a/0x119 ? mutex_lock+0x8/0x30 ? acpi_process_madt+0xbe/0x105 ? acpi_boot_init+0x3d/0x65 ? setup_arch+0x67a/0x83f ? 0xc1000000 ? start_kernel+0x46/0x361 ? x86_early_init_platform_quirks+0x4d/0x90 ? i386_start_kernel+0x22/0x88 ? xen_start_kernel+0x453/0x639
Quoted 7 lines
(XEN) Hardware Dom0 crashed: 'noreboot' set - not rebooting.
I admit I have a few custom patches in that tree, but I'm reasonably certain that none of them comes even close to having such an effect.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 13 lines
Quoted 1 line
Quoted 1 line · On 22.11.17 at 15:40, <[email protected]> wrote:
Quoted 7 lines · Jan Beulich
Jürgen, Boris,
am I trying something that's not allowed, but selectable via
Kconfig? On system with multiple IO-APICs (I assume that's what triggers the problem) I getKernel panic - not syncing: Max apic_id exceeded!Generally I don't think 32 bit dom0 is forbidden, but rarely used. I wouldn't be too sad in case we'd decide to drop that support. ;-)
Quoted 6 lines
Can you please be a little bit more specific?
How many IOAPICs? From the code I guess this is an INTEL system with not too recent IOAPIC versions (<
0x14)?Having a little bit more of the boot log might help, too.
Full log attached, which should answer all questions. This is a Haswell system, so not too old an IO-APIC flavor I would say.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Quoted 11 lines · Juergen Gross
Quoted 7 lines · Jan Beulich
Jürgen, Boris,
am I trying something that's not allowed, but selectable via
Kconfig? On system with multiple IO-APICs (I assume that's what triggers the problem) I getKernel panic - not syncing: Max apic_id exceeded!Generally I don't think 32 bit dom0 is forbidden, but rarely used. I wouldn't be too sad in case we'd decide to drop that support. ;-)
Quoted 6 lines
Can you please be a little bit more specific?
How many IOAPICs? From the code I guess this is an INTEL system with not too recent IOAPIC versions (<
0x14)?Having a little bit more of the boot log might help, too.
I just booted a 3-IOAPIC Intel box with a 32-bit 4.13 kernel.
(well, it actually didn't quite boot as it hang somewhere further down the line, so that's a problem).
I do see
...
[ 0.000000] ACPI: LAPIC_NMI (acpi_id[0xff] dfl dfl lint[0x1]) [ 0.000000] IOAPIC[0]: apic_id 0 already used, trying 1 [ 0.000000] IOAPIC[0]: Unable to change apic_id! [ 0.000000] IOAPIC[0]: apic_id 255, version 32, address 0xfec00000, GSI 0-23 [ 0.000000] IOAPIC[1]: apic_id 1 already used, trying 3 [ 0.000000] IOAPIC[1]: Unable to change apic_id! [ 0.000000] IOAPIC[1]: apic_id 255, version 32, address 0xfec3f000, GSI 24-47 [ 0.000000] IOAPIC[2]: apic_id 2 already used, trying 5 [ 0.000000] IOAPIC[2]: Unable to change apic_id! [ 0.000000] IOAPIC[2]: apic_id 255, version 32, address 0xfec7f000,
GSI 48-71
-boris
Quoted 43 lines
Juergen
Quoted 39 lines
CPU: 0 PID: 0 Comm: swapper Not tainted 4.14.1-2017-11-21-xen0 #6 Hardware name: ... Call Trace: ? show_stack+0x20/0x50 ? dump_stack+0x7e/0xc0 ? panic+0x99/0x220 ? io_apic_get_unique_id+0x207/0x210 ? __raw_callee_save_xen_restore_fl+0x6/0x8 ? xen_flush_tlb_single+0x6f/0x80 ? set_pte_vaddr+0xef/0x110 ? xen_io_apic_read+0x36/0x90 ? mp_register_ioapic+0x2b7/0x410 ? acpi_os_map_iomem+0x14d/0x210 ? acpi_parse_ioapic+0x6b/0x6f ? acpi_parse_entries_array+0xa1/0x16d ? acpi_tb_get_table+0x95/0x9d ? acpi_ut_release_mutex+0x109/0x10e ? acpi_table_parse_entries_array+0x98/0xa8 ? acpi_table_parse_entries+0x30/0x35 ? acpi_boot_init+0x65/0x65 ? acpi_table_parse_madt+0x1b/0x1f ? acpi_boot_init+0x65/0x65 ? acpi_parse_madt_ioapic_entries+0x4a/0x119 ? mutex_lock+0x8/0x30 ? acpi_process_madt+0xbe/0x105 ? acpi_boot_init+0x3d/0x65 ? setup_arch+0x67a/0x83f ? 0xc1000000 ? start_kernel+0x46/0x361 ? x86_early_init_platform_quirks+0x4d/0x90 ? i386_start_kernel+0x22/0x88 ? xen_start_kernel+0x453/0x639(XEN) Hardware Dom0 crashed: 'noreboot' set - not rebooting.
I admit I have a few custom patches in that tree, but I'm reasonably certain that none of them comes even close to having such an effect.
Jan
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 15 lines · Jan Beulich
Quoted 15 lines
Quoted 1 line
Quoted 1 line · On 22.11.17 at 15:40, <[email protected]> wrote:
Quoted 7 lines · Jan Beulich
Jürgen, Boris,
am I trying something that's not allowed, but selectable via
Kconfig? On system with multiple IO-APICs (I assume that's what triggers the problem) I getKernel panic - not syncing: Max apic_id exceeded!Generally I don't think 32 bit dom0 is forbidden, but rarely used. I wouldn't be too sad in case we'd decide to drop that support. ;-)
Can you please be a little bit more specific?
Quoted 7 lines
Quoted 4 lines
How many IOAPICs? From the code I guess this is an INTEL system with not too recent IOAPIC versions (<
0x14)?Having a little bit more of the boot log might help, too.
Full log attached, which should answer all questions. This is a Haswell system, so not too old an IO-APIC flavor I would say.
From this data I can't explain why the system is crashing.
Right now I have 3 possible explanations, all could be proofed by adding some printk statements in io_apic_get_unique_id(). Could you please print the value returned by get_physical_broadcast() and the complete apic_id_map right before the panic() call?
The possibilities IMHO are:
- the LAPIC version is limiting the number of available apicids
- apic_id_map is somehow filled up completely with all bits set
- a compiler bug leading to a false positive
Juergen
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel