Project

General

Profile

Actions

Bug #237

open

Tianocore payload displays blank screen on qemu, with X64 Exception Type - 00(#DE - Divide Error) CPU Apic ID - 00000000

Added by HCL technologies almost 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
09/18/2019
Due date:
% Done:

0%

Estimated time:
Affected versions:
Needs backport to:
Affected hardware:
Affected OS:

Description

Tianocore payload displays black screen on Qemu ,even built on i-386.
It refers to X64 Exception Type - 00(#DE - Divide Error) with CPU Apic ID - 00000000

The console log is as under:

coreboot-4.ACPI 9. 07f82000 00024000
SMBIOS 10. 07f81000 00000800
IMD small region:
IMD ROOT 0. 07ffec00 00000400
COREBOOTFWD 1. 07ffebc0 00000028
CBFS: 'Master Header Locator' located CBFS at [200:800000)
CBFS: Locating 'fallback/payload'
CBFS: Found @ offset 13b80 size af480
Checking segment from ROM address 0xff813db8
Checking segment from ROM address 0xff813dd4
Loading segment from ROM address 0xff813db8
code (compression=1)
New segment dstaddr 0x00800000 memsize 0x410000 srcaddr 0xff813df0 filesize 0xaf448
Loading Segment: addr: 0x00800000 memsz: 0x0000000000410000 filesz: 0x00000000000af448
using LZMA
Loading segment from ROM address 0xff813dd4
Entry Point 0x008008f0
10-677-g07734c91d5-dirty Mon Sep 16 07:30:41 UTC 2019 bootblock starting (log level: 7)...
CBFS: 'Master Header Locator' located CBFS at [200:800000)
CBFS: Locating 'fallback/romstage'
CBFS: Found @ offset 80 size 31d4

coreboot-4.10-677-g07734c91d5-dirty Mon Sep 16 07:30:41 UTC 2019 romstage starting (log level: 7)...
QEMU: firmware config interface detected
CBMEM:
IMD: root @ 07fff000 254 entries.
IMD: root @ 07ffeACPI 9. 07f82000 00024000
SMBIOS 10. 07f81000 00000800
IMD small region:
IMD ROOT 0. 07ffec00 00000400
COREBOOTFWD 1. 07ffebc0 00000028
CBFS: 'Master Header Locator' located CBFS at [200:800000)
CBFS: Locating 'fallback/payload'
CBFS: Found @ offset 13b80 size af480
Checking segment from ROM address 0xff813db8
Checking segment from ROM address 0xff813dd4
Loading segment from ROM address 0xff813db8
code (compression=1)
New segment dstaddr 0x00800000 memsize 0x410000 srcaddr 0xff813df0 filesize 0xaf448
Loading Segment: addr: 0x00800000 memsz: 0x0000000000410000 filesz: 0x00000000000af448
using LZMA
Loading segment from ROM address 0xff813dd4
Entry Point 0x008008f0
c00 62 entries.
MTRR Range: Start=ff800000 End=0 (Size 800000)
CBFS: 'Master Header Locator' located CBFS at [200:800000)
CBFS: Locating 'fallback/postcar'
CBFS: Found @ offset f140 size 39fc
Decompressing stage fallback/postcar @ 0x07fd3fc0 (31480 bytes)
Loading module at 07fd4000 with entry 07fd4000. filesize: 0x3810 memsize: 0x7ab8
Processing 100 relocs. Offset value of 0x05fd4000

coreboot-4.10-677-g07734c91d5-dirty Mon Sep 16 07:30:41 UTC 2019 postcar starting (log level: 7)...
QEMU: firmware config interface detected
CBFS: 'Master Header Locator' located CBFS at [200:800000)
CBFS: Locating 'fallback/ramstage'
CBFS: Found @ offset 32c0 size b7d5
Decompressing stage fallback/ramstage @ 0x07faffc0 (140776 bytes)
Loading module at 07fb0000 with entry 07fb0000. filesize: 0x170f0 memsize: 0x225a8
Processing 1431 relocs. Offset value of 0x071b0000

coreboot-4.10-677-g07734c91d5-dirty Mon Sep 16 07:30:41 UTC 2019 ramstage starting (log level: 7)...
QEMU: firmware config interface detected
Enumerating buses...
CPU_CLUSTER: 0 enabled
DOMAIN: 0000 enabled
QEMU: max_cpus is 1
CPU: APIC: 00 enabled
scan_bus: scanning of bus CPU_CLUSTER: 0 took 0 usecs
PCI: pci_scan_bus for bus 00
PCI: 00:00.0 [8086/1237] enabled
PCI: 00:01.0 [8086/7000] enabled
PCI: 00:01.1 [8086/7010] enabled
PCI: 00:01.3 [8086/7113] enabled
PCI: 00:02.0 [1234/1111] enabled
PCI: 00:03.0 [8086/100e] enabled
scan_bus: scanning of bus PCI: 00:01.0 took 0 usecs
scan_bus: scanning of bus PCI: 00:01.3 took 0 usecs
scan_bus: scanning of bus DOMAIN: 0000 took 0 usecs
scan_bus: scanning of bus Root Device took 0 usecs
done
found VGA at PCI: 00:02.0
Setting up VGA for PCI: 00:02.0
Setting PCI_BRIDGE_CTL_VGA for bridge DOMAIN: 0000
Setting PCI_BRIDGE_CTL_VGA for bridge Root Device
Allocating resources...
Reading resources...
QEMU: e820/ram: 0x00000000 + 0x08000000
QEMU: reserve ioports 0x0510-0x0511 [firmware-config]
QEMU: reserve ioports 0x5658-0x5658 [vmware-port]
QEMU: reserve ioports 0xae00-0xae0f [pci-hotplug]
QEMU: reserve ioports 0xaf00-0xaf1f [cpu-hotplug]
QEMU: reserve ioports 0xafe0-0xafe3 [piix4-gpe0]
Done reading resources.
Setting resources...
PCI: 00:01.1 20 <- [0x0000005840 - 0x000000584f] size 0x00000010 gran 0x04 io
PCI: 00:02.0 10 <- [0x00fd000000 - 0x00fdffffff] size 0x01000000 gran 0x18 prefmem
PCI: 00:02.0 18 <- [0x00fe0b0000 - 0x00fe0b0fff] size 0x00001000 gran 0x0c mem
PCI: 00:02.0 30 <- [0x00fe0a0000 - 0x00fe0affff] size 0x00010000 gran 0x10 romem
PCI: 00:03.0 10 <- [0x00fe080000 - 0x00fe09ffff] size 0x00020000 gran 0x11 mem
PCI: 00:03.0 14 <- [0x0000005800 - 0x000000583f] size 0x00000040 gran 0x06 io
PCI: 00:03.0 30 <- [0x00fe000000 - 0x00fe07ffff] size 0x00080000 gran 0x13 romem
Done setting resources.
Done allocating resources.
Enabling resources...
PCI: 00:00.0 cmd <- 00
PCI: 00:01.0 cmd <- 00
PCI: 00:01.1 cmd <- 01
PCI: 00:01.3 cmd <- 00
PCI: 00:02.0 cmd <- 03
PCI: 00:03.0 cmd <- 03
done.
Initializing devices...
Root Device init ...
CPU_CLUSTER: 0 init ...
Initializing CPU #0
CPU: vendor AMD device 663
CPU: family 06, model 06, stepping 03
Setting up local APIC...
apic_id: 0x00 done.
CPU #0 initializedcoreboot-4.10-677-g07734c91d5-dirty Mon Sep 16 07:30:41 UTC 2019 bootblock starting (log level: 7)...
CBFS: 'Master Header Locator' located CBFS at [200:800000)
CBFS: Locating 'fallback/romstage'
CBFS: Found @ offset 80 size 31d4

coreboot-4.10-677-g07734c91d5-dirty Mon Sep 16 07:30:41 UTC 2019 romstage starting (log level: 7)...
QEMU: firmware config interface detected
CBMEM:
IMD: root @ 07fff000 254 entries.
IMD: root @ 07ffec00 62 entries.
MTRR Range: Start=ff800000 End=0 (Size 800000)
CBFS: 'Master Header Locator' located CBFS at [200:800000)
CBFS: Locating 'fallback/postcar'
CBFS: Found @ offset f140 size 39fc
Decompressing stage fallback/postcar @ 0x07fd3fc0 (31480 bytes)
Loading module at 07fd4000 with entry 07fd4000. filesize: 0x3810 memsize: 0x7ab8
Processing 100 relocs. Offset value of 0x05fd4000

coreboot-4.10-677-g07734c91d5-dirty Mon Sep 16 07:30:41 UTC 2019 postcar starting (log level: 7)...
QEMU: firmware config interface detected
CBFS: 'Master Header Locator' located CBFS at [200:800000)
CBFS: Locating 'fallback/ramstage'
CBFS: Found @ offset 32c0 size b7d5
Decompressing stage fallback/ramstage @ 0x07faffc0 (140776 bytes)
Loading module at 07fb0000 with entry 07fb0000. filesize: 0x170f0 memsize: 0x225a8
Processing 1431 relocs. Offset value of 0x071b0000
Attached is the debug log and .config please find the attachments.

coreboot-4.10-677-g07734c91d5-dirty Mon Sep 16 07:30:41 UTC 2019 ramstage starting (log level: 7)...
QEMU: firmware config interface detected
Enumerating buses...
CPU_CLUSTER: 0 enabled
DOMAIN: 0000 enabled
QEMU: max_cpus is 1
CPU: APIC: 00 enabled
scan_bus: scanning of bus CPU_CLUSTER: 0 took 0 usecs
PCI: pci_scan_bus for bus 00
PCI: 00:00.0 [8086/1237] enabled
PCI: 00:01.0 [8086/7000] enabled
PCI: 00:01.1 [8086/7010] enabled
PCI: 00:01.3 [8086/7113] enabled
PCI: 00:02.0 [1234/1111] enabled
PCI: 00:03.0 [8086/100e] enabled
scan_bus: scanning of bus PCI: 00:01.0 took 0 usecs
scan_bus: scanning of bus PCI: 00:01.3 took 0 usecs
scan_bus: scanning of bus DOMAIN: 0000 took 0 usecs
scan_bus: scanning of bus Root Device took 0 usecs
done
found VGA at PCI: 00:02.0
Setting up VGA for PCI: 00:02.0
Setting PCI_BRIDGE_CTL_VGA for bridge DOMAIN: 0000
Setting PCI_BRIDGE_CTL_VGA for bridge Root Device
Allocating resources...
Reading resources...
QEMU: e820/ram: 0x00000000 + 0x08000000
QEMU: reserve ioports 0x0510-0x0511 [firmware-config]
QEMU: reserve ioports 0x5658-0x5658 [vmware-port]
QEMU: reserve ioports 0xae00-0xae0f [pci-hotplug]
QEMU: reserve ioports 0xaf00-0xaf1f [cpu-hotplug]
QEMU: reserve ioports 0xafe0-0xafe3 [piix4-gpe0]
Done reading resources.
Setting resources...
PCI: 00:01.1 20 <- [0x0000005840 - 0x000000584f] size 0x00000010 gran 0x04 io
PCI: 00:02.0 10 <- [0x00fd000000 - 0x00fdffffff] size 0x01000000 gran 0x18 prefmem
PCI: 00:02.0 18 <- [0x00fe0b0000 - 0x00fe0b0fff] size 0x00001000 gran 0x0c mem
PCI: 00:02.0 30 <- [0x00fe0a0000 - 0x00fe0affff] size 0x00010000 gran 0x10 romem
PCI: 00:03.0 10 <- [0x00fe080000 - 0x00fe09ffff] size 0x00020000 gran 0x11 mem
PCI: 00:03.0 14 <- [0x0000005800 - 0x000000583f] size 0x00000040 gran 0x06 io
PCI: 00:03.0 30 <- [0x00fe000000 - 0x00fe07ffff] size 0x00080000 gran 0x13 romem
Done setting resources.
Done allocating resources.
Enabling resources...
PCI: 00:00.0 cmd <- 00
PCI: 00:01.0 cmd <- 00
PCI: 00:01.1 cmd <- 01
PCI: 00:01.3 cmd <- 00
PCI: 00:02.0 cmd <- 03
PCI: 00:03.0 cmd <- 03
done.
Initializing devices...
Root Device init ...
CPU_CLUSTER: 0 init ...
Initializing CPU #0
CPU: vendor AMD device 663
CPU: family 06, model 06, stepping 03
Setting up local APIC...
apic_id: 0x00 done.
CPU #0 initialized
PCI: 00:00.0 init ...
Assigning IRQ 10 to PCI: 00:01.3
Assigning IRQ 11 to PCI: 00:03.0
PCI: 00:01.0 init ...
RTC Init
PCI: 00:01.1 init ...
IDE: Primary IDE interface: on
IDE: Secondary IDE interface: on
IDE: Access to legacy IDE ports: off
PCI: 00:02.0 init ...
PCI: 00:03.0 init ...
Devices initialized
Finalize devices...
Devices finalized
Copying Interrupt Routing Table to 0x000f0000... done.
Copying Interrupt Routing Table to 0x07fa6000... done.
PIRQ table: 128 bytes.
QEMU: found ACPI tables in fw_cfg.
QEMU: loading "etc/acpi/rsdp" to 0x7f82000 (len 36)
QEMU: loading "etc/acpi/tables" to 0x7f82040 (len 131072)
QEMU: loaded ACPI tables from fw_cfg.
ACPI tables: 131136 bytes.
smbios_write_tables: 07f81000
SMBIOS: Unknown CPU
DOMAIN: 0000 (QEMU Northbridge i440fx)
QEMU: found smbios tables in fw_cfg (len 329).
QEMU: coreboot type0 table found at 0x7f81020.
QEMU: loading smbios tables to 0x7f8106a
SMBIOS tables: 435 bytes.
Writing table forward entry at 0x00000500
Wrote coreboot table at: 00000500, 0x10 bytes, checksum 87e4
Writing coreboot table at 0x07fa7000

  1. 0000000000000000-0000000000000fff: CONFIGURATION TABLES
  2. 0000000000001000-000000000009ffff: RAM
  3. 00000000000c0000-0000000007f80fff: RAM
  4. 0000000007f81000-0000000007faffff: CONFIGURATION TABLES
  5. 0000000007fb0000-0000000007fd2fff: RAMSTAGE
  6. 0000000007fd3000-0000000007ffffff: CONFIGURATION TABLES
  7. 00000000ff800000-00000000ffffffff: RESERVED CBFS: 'Master Header Locator' located CBFS at [200:800000) FMAP: Found "FLASH" version 1.1 at 0. FMAP: base = ff800000 size = 800000 #areas = 3 Wrote coreboot table at: 07fa7000, 0x284 bytes, checksum b096 coreboot table: 668 bytes. IMD ROOT 0. 07fff000 00001000 IMD SMALL 1. 07ffe000 00001000 CONSOLE 2. 07fde000 00020000 TIME STAMP 3. 07fdd000 00000910 ROMSTG STCK 4. 07fdc000 00001000 AFTER CAR 5. 07fd3000 00009000 RAMSTAGE 6. 07faf000 00024000 COREBOOT 7. 07fa7000 00008000 IRQ TABLE 8. 07fa6000 00001000 ACPI 9. 07f82000 00024000 SMBIOS 10. 07f81000 00000800 IMD small region: IMD ROOT 0. 07ffec00 00000400 COREBOOTFWD 1. 07ffebc0 00000028 CBFS: 'Master Header Locator' located CBFS at [200:800000) CBFS: Locating 'fallback/payload' CBFS: Found @ offset 13b80 size af480 Checking segment from ROM address 0xff813db8 Checking segment from ROM address 0xff813dd4 Loading segment from ROM address 0xff813db8 code (compression=1) New segment dstaddr 0x00800000 memsize 0x410000 srcaddr 0xff813df0 filesize 0xaf448 Loading Segment: addr: 0x00800000 memsz: 0x0000000000410000 filesz: 0x00000000000af448 using LZMA Loading segment from ROM address 0xff813dd4 Entry Point 0x008008f0 Jumping to boot code at 008008f0(07fa7000) !!!! X64 Exception Type - 00(#DE - Divide Error) CPU Apic ID - 00000000 !!!! RIP - 0000000007547648, CS - 0000000000000038, RFLAGS - 0000000000000202 RAX - 0000000007551180, RCX - 0000000007551180, RDX - 0000000000000008 RBX - 0000000000000008, RSP - 0000000007F5B2A8, RBP - 0000000000000000 RSI - 0000000000000000, RDI - 0000000000000001 R8 - 00000000076A9B18, R9 - 00000000076A9B20, R10 - 0000000007563888 R11 - 0000000007F75B58, R12 - 0000000007F76838, R13 - 0000000007F73EF0 R14 - 0000000007F76600, R15 - 00000000076A9118 DS - 0000000000000030, ES - 0000000000000030, FS - 0000000000000030 GS - 0000000000000030, SS - 0000000000000030 CR0 - 0000000080010011, CR2 - 0000000000000000, CR3 - 0000000007801000 CR4 - 0000000000000228, CR8 - 0000000000000000 DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000 DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400 GDTR - 00000000077ED718 0000000000000047, LDTR - 0000000000000000 IDTR - 0000000007567018 0000000000000FFF, TR - 0000000000000000 FXSAVE_STATE - 0000000007F5AF00 !!!! Find image based on IP(0x7547648) /home/hcl/Desktop/Sourabh/coreboot/payloads/external/tianocore/tianocore/Build/CorebootPayloadPkgX64/RELEASE_COREBOOT/X64/UefiCpuPkg/CpuDxe/CpuDxe/DEBUG/CpuDxe.dll (ImageBase=0000000007547000, EntryPoint=000000000754ED6E) !!!! PCI: 00:00.0 init ... Assigning IRQ 10 to PCI: 00:01.3 Assigning IRQ 11 to PCI: 00:03.0 PCI: 00:01.0 init ... RTC Init PCI: 00:01.1 init ... IDE: Primary IDE interface: on IDE: Secondary IDE interface: on IDE: Access to legacy IDE ports: off PCI: 00:02.0 init ... PCI: 00:03.0 init ... Devices initialized Finalize devices... Devices finalized Copying Interrupt Routing Table to 0x000f0000... done. Copying Interrupt Routing Table to 0x07fa6000... done. PIRQ table: 128 bytes. QEMU: found ACPI tables in fw_cfg. QEMU: loading "etc/acpi/rsdp" to 0x7f82000 (len 36) QEMU: loading "etc/acpi/tables" to 0x7f82040 (len 131072) QEMU: loaded ACPI tables from fw_cfg. ACPI tables: 131136 bytes. smbios_write_tables: 07f81000 SMBIOS: Unknown CPU DOMAIN: 0000 (QEMU Northbridge i440fx) QEMU: found smbios tables in fw_cfg (len 329). QEMU: coreboot type0 table found at 0x7f81020. QEMU: loading smbios tables to 0x7f8106a SMBIOS tables: 435 bytes. Writing table forward entry at 0x00000500 Wrote coreboot table at: 00000500, 0x10 bytes, checksum 87e4 Writing coreboot table at 0x07fa7000
  8. 0000000000000000-0000000000000fff: CONFIGURATION TABLES
  9. 0000000000001000-000000000009ffff: RAM
  10. 00000000000c0000-0000000007f80fff: RAM
  11. 0000000007f81000-0000000007faffff: CONFIGURATION TABLES
  12. 0000000007fb0000-0000000007fd2fff: RAMSTAGE
  13. 0000000007fd3000-0000000007ffffff: CONFIGURATION TABLES
  14. 00000000ff800000-00000000ffffffff: RESERVED CBFS: 'Master Header Locator' located CBFS at [200:800000) FMAP: Found "FLASH" version 1.1 at 0. FMAP: base = ff800000 size = 800000 #areas = 3 Wrote coreboot table at: 07fa7000, 0x284 bytes, checksum b096 coreboot table: 668 bytes. IMD ROOT 0. 07fff000 00001000 IMD SMALL 1. 07ffe000 00001000 CONSOLE 2. 07fde000 00020000 TIME STAMP 3. 07fdd000 00000910 ROMSTG STCK 4. 07fdc000 00001000 AFTER CAR 5. 07fd3000 00009000 RAMSTAGE 6. 07faf000 00024000 COREBOOT 7. 07fa7000 00008000 IRQ TABLE 8. 07fa6000 00001000 ACPI 9. 07f82000 00024000 SMBIOS 10. 07f81000 00000800 IMD small region: IMD ROOT 0. 07ffec00 00000400 COREBOOTFWD 1. 07ffebc0 00000028 CBFS: 'Master Header Locator' located CBFS at [200:800000) CBFS: Locating 'fallback/payload' CBFS: Found @ offset 13b80 size af480 Checking segment from ROM address 0xff813db8 Checking segment from ROM address 0xff813dd4 Loading segment from ROM address 0xff813db8 code (compression=1) New segment dstaddr 0x00800000 memsize 0x410000 srcaddr 0xff813df0 filesize 0xaf448 Loading Segment: addr: 0x00800000 memsz: 0x0000000000410000 filesz: 0x00000000000af448 using LZMA Loading segment from ROM address 0xff813dd4 Entry Point 0x008008f0 Jumping to boot code at 008008f0(07fa7000) !!!! X64 Exception Type - 00(#DE - Divide Error) CPU Apic ID - 00000000 !!!! RIP - 0000000007547648, CS - 0000000000000038, RFLAGS - 0000000000000202 RAX - 0000000007551180, RCX - 0000000007551180, RDX - 0000000000000008 RBX - 0000000000000008, RSP - 0000000007F5B2A8, RBP - 0000000000000000 RSI - 0000000000000000, RDI - 0000000000000001 R8 - 00000000076A9B18, R9 - 00000000076A9B20, R10 - 0000000007563888 R11 - 0000000007F75B58, R12 - 0000000007F76838, R13 - 0000000007F73EF0 R14 - 0000000007F76600, R15 - 00000000076A9118 DS - 0000000000000030, ES - 0000000000000030, FS - 0000000000000030 GS - 0000000000000030, SS - 0000000000000030 CR0 - 0000000080010011, CR2 - 0000000000000000, CR3 - 0000000007801000 CR4 - 0000000000000228, CR8 - 0000000000000000 DR0 - 0000000000000000, DR1 - 0000000000000000, DR2 - 0000000000000000 DR3 - 0000000000000000, DR6 - 00000000FFFF0FF0, DR7 - 0000000000000400 GDTR - 00000000077ED718 0000000000000047, LDTR - 0000000000000000 IDTR - 0000000007567018 0000000000000FFF, TR - 0000000000000000 FXSAVE_STATE - 0000000007F5AF00 !!!! Find image based on IP(0x7547648) /home/hcl/Desktop/Sourabh/coreboot/payloads/external/tianocore/tianocore/Build/CorebootPayloadPkgX64/RELEASE_COREBOOT/X64/UefiCpuPkg/CpuDxe/CpuDxe/DEBUG/CpuDxe.dll (ImageBase=0000000007547000, EntryPoint=000000000754ED6E) !!!!

Attached is the debug log and .config please find the attachments.


Files

debug.log (6.16 KB) debug.log debug log HCL technologies, 09/18/2019 07:08 AM
defconfig (61 Bytes) defconfig config HCL technologies, 09/18/2019 07:08 AM

No data to display

Actions

Also available in: Atom PDF