[SeaBIOS] [PATCH 0/6] pci patches

Alexey Korolev alexey.korolev at endace.com
Tue May 22 08:21:17 CEST 2012


Hi,

> On 05/18/12 03:50, Alexey Korolev wrote:
>> Hi,
>>
>> It looks Win2008 R2 is not working with this patches if 64bit devices are present and going to occupy a 64bit range.
>> I've got the same BSOD as before.
>> Is there any information I could collect to help you debug this issue?
> Is win2k8 fine with the fixed entry (the reverted patch)?
If patches are reverted no BSOD occurs, but no 64bit resources available too :(.
>
> You can try add DBUG("...") calls into the _CRS Method to figure the
> problematic call.  That adds debug output to the seabios log.  Doesn't
> work with winxp, works with win7 (and linux).  Lets hope that w2k8 is
> closer to win7 ...
I tried but log doesn't have any DBUG messages inside.
I've just outputed the seabios log to serial port. Is it suitable?


Here is the log.... (it repeats as Windows rebooted after the BSOD)

Start bios (version rel-0.6.2-341-g8922086-dirty-20120522_180815-core-3000-3.et.endace.com)
enabling shadow ram
qemu_cfg_present=1
Find memory size
Ram Size=0xe0000000 (0x0000000120000000 high)
malloc setup
Relocating init from 0x000df5e0 to 0xdffe0800 (size 63180)
malloc fixup reloc
init ivt
init bda
init pic
init timer
CPU Mhz=2799
math cp init
init mtrr
pci setup
=== PCI bus & bridge init ===
PCI: pci_bios_init_bus_rec bus = 0x0
=== PCI device probing ===
PCI probe
PCI device 00:00.0 (vd=8086:1237 c=0600)
PCI device 00:01.0 (vd=8086:7000 c=0601)
PCI device 00:01.1 (vd=8086:7010 c=0101)
PCI device 00:01.2 (vd=8086:7020 c=0c03)
PCI device 00:01.3 (vd=8086:7113 c=0680)
PCI device 00:02.0 (vd=1013:00b8 c=0300)
PCI device 00:03.0 (vd=10ec:8139 c=0200)
PCI device 00:04.0 (vd=eace:eace c=0280)
PCI device 00:05.0 (vd=eace:eace c=0280)
PCI device 00:06.0 (vd=1af4:1002 c=0500)
PCI device 00:07.0 (vd=eace:eace c=0280)
PCI device 00:08.0 (vd=eace:eace c=0280)
Found 12 PCI devices (max PCI bus is 00)
=== PCI new allocation pass #1 ===
PCI: check devices
=== PCI new allocation pass #2 ===
PCI: map device bdf=00:04.0  bar 1, addr 200000000, size 20000000 [mem]
PCI: map device bdf=00:05.0  bar 1, addr 220000000, size 20000000 [mem]
PCI: map device bdf=00:07.0  bar 1, addr 240000000, size 20000000 [mem]
PCI: map device bdf=00:08.0  bar 1, addr 260000000, size 20000000 [mem]
PCI: map device bdf=00:03.0  bar 0, addr 0000c000, size 00000100 [io]
PCI: map device bdf=00:01.2  bar 4, addr 0000c100, size 00000020 [io]
PCI: map device bdf=00:06.0  bar 0, addr 0000c120, size 00000020 [io]
PCI: map device bdf=00:01.1  bar 4, addr 0000c140, size 00000010 [io]
PCI: map device bdf=00:02.0  bar 6, addr feb90000, size 00010000 [mem]
PCI: map device bdf=00:03.0  bar 6, addr feba0000, size 00010000 [mem]
PCI: map device bdf=00:04.0  bar 0, addr febb0000, size 00010000 [mem]
PCI: map device bdf=00:05.0  bar 0, addr febc0000, size 00010000 [mem]
PCI: map device bdf=00:07.0  bar 0, addr febd0000, size 00010000 [mem]
PCI: map device bdf=00:08.0  bar 0, addr febe0000, size 00010000 [mem]
PCI: map device bdf=00:02.0  bar 1, addr febf0000, size 00001000 [mem]
PCI: map device bdf=00:03.0  bar 1, addr febf1000, size 00001000 [mem]
PCI: map device bdf=00:02.0  bar 0, addr fc000000, size 02000000 [prefmem]
PCI: init bdf=00:00.0 id=8086:1237
PCI: init bdf=00:01.0 id=8086:7000
PCI: init bdf=00:01.1 id=8086:7010
PCI: init bdf=00:01.2 id=8086:7020
PCI: init bdf=00:01.3 id=8086:7113
PCI: init bdf=00:02.0 id=1013:00b8
PCI: init bdf=00:03.0 id=10ec:8139
PCI: init bdf=00:04.0 id=eace:eace
PCI: init bdf=00:05.0 id=eace:eace
PCI: init bdf=00:06.0 id=1af4:1002
PCI: init bdf=00:07.0 id=eace:eace
PCI: init bdf=00:08.0 id=eace:eace
PIIX3/PIIX4 init: elcr=00 0c
init smm
boot order:
1: /pci at i0cf8/ide at 1,1/drive at 0/disk at 0
2: /pci at i0cf8/ide at 1,1/drive at 1/disk at 0
Found 2 cpu(s) max supported 2 cpu(s)
init bios32
init PMM
init PNPBIOS table
init keyboard
init mouse
init PIR table
init MPTable
MP table addr=0x000fd9d0 MPC table addr=0x000fd9e0 size=284
init SMBIOS tables
SMBIOS ptr=0x000fd9b0 table=0x000fd850 size=346
init ACPI tables
ACPI DSDT=0xdfffe3f0
ACPI tables: RSDP=0x000fd820 RSDT=0xdfffe3b0
Scan for VGA option rom
Attempting to init PCI bdf 00:02.0 (vd 1013:00b8)
Copying option rom (size 35840) from 0xfeb90000 to c0000
Running option rom at c000:0003
Turning on vga text mode console
SeaBIOS (version rel-0.6.2-341-g8922086-dirty-20120522_180815-core-3000-3.et.endace.com)

init usb
UHCI init on dev 00:01.2 (io=c100)
/dffdf000\ Start thread
/dffde000\ Start thread
/dffdc000\ Start thread
\dffdc000/ End thread
init ps2port
/dffdc000\ Start thread
init lpt
Found 0 lpt ports
init serial
Found 1 serial ports
init floppy drives
init hard drives
ATA controller 1 at 1f0/3f4/0 (irq 14 dev 9)
/dffdb000\ Start thread
ATA controller 2 at 170/374/0 (irq 15 dev 9)
/dffda000\ Start thread
init ahci
init virtio-blk
init virtio-scsi
|dffdb000| ata0-0: QEMU HARDDISK ATA-7 Hard-Disk (51200 MiBytes)
|dffdb000| Searching bootorder for: /pci at i0cf8/*@1,1/drive at 0/disk at 0
|dffdb000| Registering bootable: ata0-0: QEMU HARDDISK ATA-7 Hard-Disk (51200 MiBytes) (type:2 prio:1 data:fd7d0)
\dffdb000/ End thread
|dffda000| DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD]
|dffda000| Searching bootorder for: /pci at i0cf8/*@1,1/drive at 1/disk at 0
|dffda000| Registering bootable: DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD] (type:3 prio:2 data:fd7a0)
\dffda000/ End thread
|dffde000| set_address 0xdffe0190
|dffde000| config_usb: 0xdffddd4c
|dffde000| device rev=0100 cls=00 sub=00 proto=00 size=08
|dffde000| usb_hid_init 0xdffddd4c
\dffde000/ End thread
\dffdf000/ End thread
|dffdc000| PS2 keyboard initialized
\dffdc000/ End thread
All threads complete.
Scan for option roms
Attempting to init PCI bdf 00:00.0 (vd 8086:1237)
Attempting to init PCI bdf 00:01.0 (vd 8086:7000)
Attempting to init PCI bdf 00:01.2 (vd 8086:7020)
Attempting to init PCI bdf 00:01.3 (vd 8086:7113)
Attempting to init PCI bdf 00:03.0 (vd 10ec:8139)
Copying option rom (size 61440) from 0xfeba0000 to c9000
Running option rom at c900:0003
pmm call arg1=1
pmm01: handle=18ae1000
pmm call arg1=0
pmm00: length=f00 handle=18ae1000 flags=2
pmm call arg1=1
pmm01: handle=18ae2004
pmm call arg1=0
pmm00: length=4000 handle=18ae2004 flags=2
Attempting to init PCI bdf 00:04.0 (vd eace:eace)
Attempting to init PCI bdf 00:05.0 (vd eace:eace)
Attempting to init PCI bdf 00:06.0 (vd 1af4:1002)
Attempting to init PCI bdf 00:07.0 (vd eace:eace)
Attempting to init PCI bdf 00:08.0 (vd eace:eace)
Searching bootorder for: /pci at i0cf8/*@3
Registering bootable: iPXE (PCI 00:03.0) (type:128 prio:9999 data:c9000372)
Searching bootorder for: /rom at genroms/vapic.bin
Registering bootable: Legacy option rom (type:129 prio:101 data:ca000003)
Mapping hd drive 0x000fd7d0 to 0
drive 0x000fd7d0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 s=104857600
Mapping cd drive 0x000fd7a0
Running option rom at ca00:0003
ebda moved from 9fc00 to 9f400
finalize PMM
malloc finalize
Returned 57344 bytes of ZoneHigh
e820 map has 7 items:
  0: 0000000000000000 - 000000000009f400 = 1 RAM
  1: 000000000009f400 - 00000000000a0000 = 2 RESERVED
  2: 00000000000f0000 - 0000000000100000 = 2 RESERVED
  3: 0000000000100000 - 00000000dfffe000 = 1 RAM
  4: 00000000dfffe000 - 00000000e0000000 = 2 RESERVED
  5: 00000000fffbc000 - 0000000100000000 = 2 RESERVED
  6: 0000000100000000 - 0000000220000000 = 1 RAM
locking shadow ram
Jump to int19
enter handle_19:
  NULL
Booting from Hard Disk...
Booting from 0000:7c00
unimplemented handle_1aXX:493:
   a=0000bb00  b=0000aa55  c=0000ffff  d=00000080 ds=0000 es=0000 ss=0000
  si=00007e00 di=00000800 bp=000007be sp=00007bfe cs=0000 ip=06e7  f=3246
unimplemented handle_1aXX:493:
   a=0000bb00  b=00000000  c=00000000  d=000009a0 ds=07c0 es=09a0 ss=0000
  si=00007be4 di=00000800 bp=000007be sp=00007c00 cs=07c0 ip=00db  f=3246
unimplemented handle_1aXX:493:
   a=0000bb00  b=00000000  c=0000005e  d=00000000 ds=07c0 es=2000 ss=0000
  si=00003808 di=00000000 bp=000007be sp=00007bda cs=07c0 ip=0f54  f=3246
unimplemented handle_1aXX:493:
   a=0000bb00  b=00000000  c=00000000  d=00000000 ds=0000 es=0000 ss=23de
  si=00000000 di=00000000 bp=00000000 sp=00001462 cs=2000 ip=0a39  f=3256
unimplemented handle_1aXX:493:
   a=0000bb00  b=00000000  c=00000000  d=00000000 ds=0000 es=0000 ss=23de
  si=00000000 di=00000000 bp=00000000 sp=00001462 cs=2000 ip=0a39  f=3256
invalid handle_legacy_disk:847:
   a=00001500  b=00000000  c=00000000  d=00000000 ds=0000 es=0000 ss=23de
  si=00000000 di=00000000 bp=00000000 sp=00001462 cs=2000 ip=0a1d  f=3246
invalid handle_legacy_disk:847:
   a=00001500  b=00000000  c=00000000  d=00000001 ds=0000 es=0000 ss=23de
  si=00000000 di=00000000 bp=00000000 sp=00001462 cs=2000 ip=0a1d  f=3246
Changing serial settings was 0/0 now 3/0
In resume (status=0)
In 32bit resume
Attempting a hard reboot
enabling shadow ram
Changing serial settings was 0/0 now 3/0
Start bios (version rel-0.6.2-341-g8922086-dirty-20120522_180815-core-3000-3.et.endace.com)
enabling shadow ram
qemu_cfg_present=1
Find memory size
Ram Size=0xe0000000 (0x0000000120000000 high)
malloc setup
Relocating init from 0x000df5e0 to 0xdffe0800 (size 63180)
malloc fixup reloc
init ivt
init bda
init pic
init timer
CPU Mhz=2800
math cp init
init mtrr
pci setup
=== PCI bus & bridge init ===
PCI: pci_bios_init_bus_rec bus = 0x0
=== PCI device probing ===
PCI probe
PCI device 00:00.0 (vd=8086:1237 c=0600)
PCI device 00:01.0 (vd=8086:7000 c=0601)
PCI device 00:01.1 (vd=8086:7010 c=0101)
PCI device 00:01.2 (vd=8086:7020 c=0c03)
PCI device 00:01.3 (vd=8086:7113 c=0680)
PCI device 00:02.0 (vd=1013:00b8 c=0300)
PCI device 00:03.0 (vd=10ec:8139 c=0200)
PCI device 00:04.0 (vd=eace:eace c=0280)
PCI device 00:05.0 (vd=eace:eace c=0280)
PCI device 00:06.0 (vd=1af4:1002 c=0500)
PCI device 00:07.0 (vd=eace:eace c=0280)
PCI device 00:08.0 (vd=eace:eace c=0280)
Found 12 PCI devices (max PCI bus is 00)
=== PCI new allocation pass #1 ===
PCI: check devices
=== PCI new allocation pass #2 ===
PCI: map device bdf=00:04.0  bar 1, addr 200000000, size 20000000 [mem]
PCI: map device bdf=00:05.0  bar 1, addr 220000000, size 20000000 [mem]
PCI: map device bdf=00:07.0  bar 1, addr 240000000, size 20000000 [mem]
PCI: map device bdf=00:08.0  bar 1, addr 260000000, size 20000000 [mem]
PCI: map device bdf=00:03.0  bar 0, addr 0000c000, size 00000100 [io]
PCI: map device bdf=00:01.2  bar 4, addr 0000c100, size 00000020 [io]
PCI: map device bdf=00:06.0  bar 0, addr 0000c120, size 00000020 [io]
PCI: map device bdf=00:01.1  bar 4, addr 0000c140, size 00000010 [io]
PCI: map device bdf=00:02.0  bar 6, addr feb90000, size 00010000 [mem]
PCI: map device bdf=00:03.0  bar 6, addr feba0000, size 00010000 [mem]
PCI: map device bdf=00:04.0  bar 0, addr febb0000, size 00010000 [mem]
PCI: map device bdf=00:05.0  bar 0, addr febc0000, size 00010000 [mem]
PCI: map device bdf=00:07.0  bar 0, addr febd0000, size 00010000 [mem]
PCI: map device bdf=00:08.0  bar 0, addr febe0000, size 00010000 [mem]
PCI: map device bdf=00:02.0  bar 1, addr febf0000, size 00001000 [mem]
PCI: map device bdf=00:03.0  bar 1, addr febf1000, size 00001000 [mem]
PCI: map device bdf=00:02.0  bar 0, addr fc000000, size 02000000 [prefmem]
PCI: init bdf=00:00.0 id=8086:1237
PCI: init bdf=00:01.0 id=8086:7000
PCI: init bdf=00:01.1 id=8086:7010
PCI: init bdf=00:01.2 id=8086:7020
PCI: init bdf=00:01.3 id=8086:7113
PCI: init bdf=00:02.0 id=1013:00b8
PCI: init bdf=00:03.0 id=10ec:8139
PCI: init bdf=00:04.0 id=eace:eace
PCI: init bdf=00:05.0 id=eace:eace
PCI: init bdf=00:06.0 id=1af4:1002
PCI: init bdf=00:07.0 id=eace:eace
PCI: init bdf=00:08.0 id=eace:eace
PIIX3/PIIX4 init: elcr=00 0c
init smm
boot order:
1: /pci at i0cf8/ide at 1,1/drive at 0/disk at 0
2: /pci at i0cf8/ide at 1,1/drive at 1/disk at 0
Found 2 cpu(s) max supported 2 cpu(s)
init bios32
init PMM
init PNPBIOS table
init keyboard
init mouse
init PIR table
init MPTable
MP table addr=0x000fd9d0 MPC table addr=0x000fd9e0 size=284
init SMBIOS tables
SMBIOS ptr=0x000fd9b0 table=0x000fd850 size=346
init ACPI tables
ACPI DSDT=0xdfffe3f0
ACPI tables: RSDP=0x000fd820 RSDT=0xdfffe3b0
Scan for VGA option rom
Attempting to init PCI bdf 00:02.0 (vd 1013:00b8)
Copying option rom (size 35840) from 0xfeb90000 to c0000
Running option rom at c000:0003
Turning on vga text mode console
SeaBIOS (version rel-0.6.2-341-g8922086-dirty-20120522_180815-core-3000-3.et.endace.com)

init usb
UHCI init on dev 00:01.2 (io=c100)
/dffdf000\ Start thread
/dffde000\ Start thread
/dffdc000\ Start thread
\dffdc000/ End thread
init ps2port
/dffdc000\ Start thread
init lpt
Found 0 lpt ports
init serial
Found 1 serial ports
init floppy drives
init hard drives
ATA controller 1 at 1f0/3f4/0 (irq 14 dev 9)
/dffdb000\ Start thread
ATA controller 2 at 170/374/0 (irq 15 dev 9)
/dffda000\ Start thread
init ahci
init virtio-blk
init virtio-scsi
|dffdb000| ata0-0: QEMU HARDDISK ATA-7 Hard-Disk (51200 MiBytes)
|dffdb000| Searching bootorder for: /pci at i0cf8/*@1,1/drive at 0/disk at 0
|dffdb000| Registering bootable: ata0-0: QEMU HARDDISK ATA-7 Hard-Disk (51200 MiBytes) (type:2 prio:1 data:fd7d0)
\dffdb000/ End thread
|dffda000| DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD]
|dffda000| Searching bootorder for: /pci at i0cf8/*@1,1/drive at 1/disk at 0
|dffda000| Registering bootable: DVD/CD [ata1-0: QEMU DVD-ROM ATAPI-4 DVD/CD] (type:3 prio:2 data:fd7a0)
\dffda000/ End thread
|dffde000| set_address 0xdffe0190
|dffde000| config_usb: 0xdffddd4c
|dffde000| device rev=0100 cls=00 sub=00 proto=00 size=08
|dffde000| usb_hid_init 0xdffddd4c
\dffde000/ End thread
\dffdf000/ End thread
|dffdc000| PS2 keyboard initialized
\dffdc000/ End thread
All threads complete.
Scan for option roms
Attempting to init PCI bdf 00:00.0 (vd 8086:1237)
Attempting to init PCI bdf 00:01.0 (vd 8086:7000)
Attempting to init PCI bdf 00:01.2 (vd 8086:7020)
Attempting to init PCI bdf 00:01.3 (vd 8086:7113)
Attempting to init PCI bdf 00:03.0 (vd 10ec:8139)
Copying option rom (size 61440) from 0xfeba0000 to c9000
Running option rom at c900:0003
pmm call arg1=1
pmm01: handle=18ae1000
pmm call arg1=0
pmm00: length=f00 handle=18ae1000 flags=2
pmm call arg1=1
pmm01: handle=18ae2004
pmm call arg1=0
pmm00: length=4000 handle=18ae2004 flags=2
Attempting to init PCI bdf 00:04.0 (vd eace:eace)
Attempting to init PCI bdf 00:05.0 (vd eace:eace)
Attempting to init PCI bdf 00:06.0 (vd 1af4:1002)
Attempting to init PCI bdf 00:07.0 (vd eace:eace)
Attempting to init PCI bdf 00:08.0 (vd eace:eace)
Searching bootorder for: /pci at i0cf8/*@3
Registering bootable: iPXE (PCI 00:03.0) (type:128 prio:9999 data:c9000372)
Searching bootorder for: /rom at genroms/vapic.bin
Registering bootable: Legacy option rom (type:129 prio:101 data:ca000003)
Mapping hd drive 0x000fd7d0 to 0
drive 0x000fd7d0: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 s=104857600
Mapping cd drive 0x000fd7a0
Running option rom at ca00:0003
ebda moved from 9fc00 to 9f400
finalize PMM
malloc finalize
Returned 57344 bytes of ZoneHigh
e820 map has 7 items:
  0: 0000000000000000 - 000000000009f400 = 1 RAM
  1: 000000000009f400 - 00000000000a0000 = 2 RESERVED
  2: 00000000000f0000 - 0000000000100000 = 2 RESERVED
  3: 0000000000100000 - 00000000dfffe000 = 1 RAM
  4: 00000000dfffe000 - 00000000e0000000 = 2 RESERVED
  5: 00000000fffbc000 - 0000000100000000 = 2 RESERVED
  6: 0000000100000000 - 0000000220000000 = 1 RAM
locking shadow ram
Jump to int19
enter handle_19:
  NULL
Booting from Hard Disk...
Booting from 0000:7c00
unimplemented handle_1aXX:493:
   a=0000bb00  b=0000aa55  c=0000ffff  d=00000080 ds=0000 es=0000 ss=0000
  si=00007e00 di=00000800 bp=000007be sp=00007bfe cs=0000 ip=06e7  f=3246
unimplemented handle_1aXX:493:
   a=0000bb00  b=00000000  c=00000000  d=000009a0 ds=07c0 es=09a0 ss=0000
  si=00007be4 di=00000800 bp=000007be sp=00007c00 cs=07c0 ip=00db  f=3246
unimplemented handle_1aXX:493:
   a=0000bb00  b=00000000  c=0000005e  d=00000000 ds=07c0 es=2000 ss=0000
  si=00003808 di=00000000 bp=000007be sp=00007bda cs=07c0 ip=0f54  f=3246
unimplemented handle_1aXX:493:
   a=0000bb00  b=00000000  c=00000000  d=00000000 ds=0000 es=0000 ss=23de
  si=00000000 di=00000000 bp=00000000 sp=00001462 cs=2000 ip=0a39  f=3256




More information about the SeaBIOS mailing list