Skip to contentSkip to conversation

Ensure PCIR is aligned to 4 bytes

PATCH In review David Woodhouse 5 participants 12 messages Jan 20, 2013 – Nov 25, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Ensure PCIR is aligned to 4 bytes

The PCI Firmware Specification apparently requires that the PCI Data Structure be DWORD-aligned. The implementation in OVMF also requires this, so vgabios ROMs don't work there. With this fixed, I can now initialise the VGA ROM from EFI, and EFI can display using INT 10h services.

vgabios.c renamed from vgabios.c.orig +1 -0
@@ -204,6 +204,7 @@ vgabios_website:
 .byte	0x00
 
 #ifdef PCIBIOS
+.align 4 // DWORD alignment required by PCI Firmware Specification
 vgabios_pci_data:
 .ascii "PCIR"
 #ifdef CIRRUS
Signature · 2 lines
David Woodhouse                            Open Source Technology Centre
[email protected]                              Intel Corporation
#1 lore raw
Quoted 9 lines · David Woodhouse

The PCI Firmware Specification apparently requires that the PCI Data Structure be DWORD-aligned. The implementation in OVMF also requires this, so vgabios ROMs don't work there. With this fixed, I can now initialise the VGA ROM from EFI, and EFI can display using INT 10h services.

vgabios.c vgabios_website: · line 210

Quoted 7 lines
vgabios.c renamed from vgabios.c.orig +1 -0
@@ -204,6 +204,7 @@ vgabios_website:
  .byte	0x00
 
  #ifdef PCIBIOS
+.align 4 // DWORD alignment required by PCI Firmware Specification
  vgabios_pci_data:
  .ascii "PCIR"
  #ifdef CIRRUS

We have had this in the OpenBSD port of QEMU for awhile now. Is it possible to have this reviewed and commited?

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#2 lore raw
Quoted 12 lines · Brad Smith
Quoted 11 lines · David Woodhouse

The PCI Firmware Specification apparently requires that the PCI Data Structure be DWORD-aligned. The implementation in OVMF also requires this, so vgabios ROMs don't work there. With this fixed, I can now initialise the VGA ROM from EFI, and EFI can display using INT 10h services.

--- vgabios-0.6c/vgabios.c.orig 2013-01-20 11:33:36.138548472
-0600 +++ vgabios-0.6c/vgabios.c 2013-01-20 11:36:26.060270163
-0600 @@ -204,6 +204,7 @@ vgabios_website:
.byte 0x00

Quoted 8 lines
Quoted 5 lines

#ifdef PCIBIOS
+.align 4 // DWORD alignment required by PCI Firmware Specification
vgabios_pci_data:
.ascii "PCIR"
#ifdef CIRRUS

We have had this in the OpenBSD port of QEMU for awhile now. Is it possible to have this reviewed and commited?

This change was commited to upstream vgabios back in February [1].

[1]
http://cvs.savannah.gnu.org/viewvc/vgabios/vgabios.c?root=vgabios&view=log

Sebastian

#3 lore raw
Quoted 19 lines · Sebastian Herbszt
Quoted 18 lines · Brad Smith
Quoted 16 lines · David Woodhouse

The PCI Firmware Specification apparently requires that the PCI Data Structure be DWORD-aligned. The implementation in OVMF also requires this, so vgabios ROMs don't work there. With this fixed, I can now initialise the VGA ROM from EFI, and EFI can display using INT 10h services.

--- vgabios-0.6c/vgabios.c.orig 2013-01-20 11:33:36.138548472
-0600 +++ vgabios-0.6c/vgabios.c 2013-01-20 11:36:26.060270163
-0600 @@ -204,6 +204,7 @@ vgabios_website:

   .byte	0x00

   #ifdef PCIBIOS
+.align 4 // DWORD alignment required by PCI Firmware Specification
   vgabios_pci_data:
   .ascii "PCIR"
   #ifdef CIRRUS
Quoted 4 lines
Quoted 2 lines

We have had this in the OpenBSD port of QEMU for awhile now. Is it possible to have this reviewed and commited?

This change was commited to upstream vgabios back in February [1].

But that has not resulted in it being brought into QEMU.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#4 lore raw
Quoted 20 lines · Brad Smith
Quoted 19 lines · Sebastian Herbszt
Quoted 18 lines · Brad Smith
Quoted 16 lines · David Woodhouse

The PCI Firmware Specification apparently requires that the PCI Data Structure be DWORD-aligned. The implementation in OVMF also requires this, so vgabios ROMs don't work there. With this fixed, I can now initialise the VGA ROM from EFI, and EFI can display using INT 10h services.

--- vgabios-0.6c/vgabios.c.orig 2013-01-20
11:33:36.138548472 -0600 +++ vgabios-0.6c/vgabios.c

2013-01-20 11:36:26.060270163 -0600 @@ -204,6 +204,7 @@

vgabios_website: .byte 0x00

   #ifdef PCIBIOS
+.align 4 // DWORD alignment required by PCI Firmware
Specification vgabios_pci_data:
   .ascii "PCIR"
   #ifdef CIRRUS
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

We have had this in the OpenBSD port of QEMU for awhile now. Is it possible to have this reviewed and commited?

This change was commited to upstream vgabios back in February [1].

But that has not resulted in it being brought into QEMU.

Gerd, Anthony, care to update QEMU's vgabios repository [1] with changes from upstream CVS repository [2]?

[1] http://git.qemu.org/?p=vgabios.git
[2] http://cvs.savannah.gnu.org/viewvc/?root=vgabios

Sebastian

#5 lore raw
Quoted 26 lines · Sebastian Herbszt
Quoted 25 lines · Brad Smith
Quoted 23 lines · Sebastian Herbszt
Quoted 12 lines · Brad Smith
Quoted 11 lines · David Woodhouse

The PCI Firmware Specification apparently requires that the PCI Data Structure be DWORD-aligned. The implementation in OVMF also requires this, so vgabios ROMs don't work there. With this fixed, I can now initialise the VGA ROM from EFI, and EFI can display using INT 10h services.

--- vgabios-0.6c/vgabios.c.orig 2013-01-20
11:33:36.138548472 -0600 +++ vgabios-0.6c/vgabios.c

2013-01-20 11:36:26.060270163 -0600 @@ -204,6 +204,7 @@

vgabios_website: .byte 0x00

Quoted 8 lines
Quoted 5 lines
    #ifdef PCIBIOS
+.align 4 // DWORD alignment required by PCI Firmware
Specification vgabios_pci_data:
    .ascii "PCIR"
    #ifdef CIRRUS

We have had this in the OpenBSD port of QEMU for awhile now. Is it possible to have this reviewed and commited?

This change was commited to upstream vgabios back in February [1].

Quoted 7 lines
Quoted 1 line

But that has not resulted in it being brought into QEMU.

Gerd, Anthony, care to update QEMU's vgabios repository [1] with changes from upstream CVS repository [2]?

[1] http://git.qemu.org/?p=vgabios.git
[2] http://cvs.savannah.gnu.org/viewvc/?root=vgabios

Any comment?

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#6 lore raw
Quoted 29 lines · Brad Smith
Quoted 28 lines · Sebastian Herbszt
Quoted 26 lines · Brad Smith
Quoted 19 lines · Sebastian Herbszt
Quoted 18 lines · Brad Smith
Quoted 16 lines · David Woodhouse

The PCI Firmware Specification apparently requires that the PCI Data Structure be DWORD-aligned. The implementation in OVMF also requires this, so vgabios ROMs don't work there. With this fixed, I can now initialise the VGA ROM from EFI, and EFI can display using INT 10h services.

--- vgabios-0.6c/vgabios.c.orig 2013-01-20
11:33:36.138548472 -0600 +++ vgabios-0.6c/vgabios.c

2013-01-20 11:36:26.060270163 -0600 @@ -204,6 +204,7 @@

vgabios_website: .byte 0x00

    #ifdef PCIBIOS
+.align 4 // DWORD alignment required by PCI Firmware
Specification vgabios_pci_data:
    .ascii "PCIR"
    #ifdef CIRRUS
Quoted 4 lines
Quoted 2 lines

We have had this in the OpenBSD port of QEMU for awhile now. Is it possible to have this reviewed and commited?

This change was commited to upstream vgabios back in February [1].

But that has not resulted in it being brought into QEMU.

Quoted 7 lines
Quoted 5 lines

Gerd, Anthony, care to update QEMU's vgabios repository [1] with changes from upstream CVS repository [2]?

[1] http://git.qemu.org/?p=vgabios.git
[2] http://cvs.savannah.gnu.org/viewvc/?root=vgabios

Any comment?

ping.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#7 lore raw

Am 09.10.2013 03:56, schrieb Brad Smith:

Quoted 33 lines · Brad Smith
Quoted 32 lines · Sebastian Herbszt
Quoted 31 lines
Quoted 20 lines · Brad Smith
Quoted 19 lines · Sebastian Herbszt
Quoted 18 lines · Brad Smith
Quoted 16 lines · David Woodhouse

The PCI Firmware Specification apparently requires that the PCI Data Structure be DWORD-aligned. The implementation in OVMF also requires this, so vgabios ROMs don't work there. With this fixed, I can now initialise the VGA ROM from EFI, and EFI can display using INT 10h services.

--- vgabios-0.6c/vgabios.c.orig 2013-01-20
11:33:36.138548472 -0600 +++ vgabios-0.6c/vgabios.c

2013-01-20 11:36:26.060270163 -0600 @@ -204,6 +204,7 @@

vgabios_website: .byte 0x00

    #ifdef PCIBIOS
+.align 4 // DWORD alignment required by PCI Firmware
Specification vgabios_pci_data:
    .ascii "PCIR"
    #ifdef CIRRUS
Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

We have had this in the OpenBSD port of QEMU for awhile now. Is it possible to have this reviewed and commited?

This change was commited to upstream vgabios back in February [1].

But that has not resulted in it being brought into QEMU.

Gerd, Anthony, care to update QEMU's vgabios repository [1] with changes from upstream CVS repository [2]?

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

[1] http://git.qemu.org/?p=vgabios.git
[2] http://cvs.savannah.gnu.org/viewvc/?root=vgabios

Any comment?

ping.

Same for http://patchwork.ozlabs.org/patch/273758/ - vgabios seems to be falling through the cracks...

Andreas

Signature · 2 lines
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
#8 lore raw
Quoted 5 lines · Andreas Färber

Same for http://patchwork.ozlabs.org/patch/273758/ - vgabios seems to be falling through the cracks...

Andreas

Is this patch still required?
I was under the impression that no patch is needed for Win 8 after reading the thread on SeaBIOS list.

Sebastian

#9 lore raw
Quoted 10 lines · Sebastian Herbszt
Quoted 5 lines · Andreas Färber

Same for http://patchwork.ozlabs.org/patch/273758/ - vgabios seems to be falling through the cracks...

Andreas

Is this patch still required?
I was under the impression that no patch is needed for Win 8 after reading the thread on SeaBIOS list.

There are two implementations, the lgpl vgabios and the seavgabios. The prebuild roms in the qemu git repo are lgpl vgabios roms. Probably I'll go switch to seavgabios with the next major (non-stable-branch) seabios update.

cheers,
Gerd

#10 lore raw
Quoted 8 lines · Gerd Hoffmann
Quoted 7 lines · Sebastian Herbszt
Quoted 5 lines · Andreas Färber

Same for http://patchwork.ozlabs.org/patch/273758/ - vgabios seems to be falling through the cracks...

Andreas

Quoted 8 lines
Quoted 3 lines

Is this patch still required?
I was under the impression that no patch is needed for Win 8 after reading the thread on SeaBIOS list.

There are two implementations, the lgpl vgabios and the seavgabios. The prebuild roms in the qemu git repo are lgpl vgabios roms. Probably I'll go switch to seavgabios with the next major (non-stable-branch) seabios update.

When will that switch happen? Looking at the archive this proposal for switching to SeaVGABIOS has already been dragging on for a long time as it is.

Signature · 3 lines
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
#11 lore raw
Quoted 13 lines · Brad Smith
Quoted 12 lines · Gerd Hoffmann
Quoted 10 lines · Sebastian Herbszt
Quoted 5 lines · Andreas Färber

Same for http://patchwork.ozlabs.org/patch/273758/ - vgabios seems to be falling through the cracks...

Andreas

Is this patch still required?
I was under the impression that no patch is needed for Win 8 after reading the thread on SeaBIOS list.

Quoted 8 lines
Quoted 4 lines

There are two implementations, the lgpl vgabios and the seavgabios. The prebuild roms in the qemu git repo are lgpl vgabios roms. Probably I'll go switch to seavgabios with the next major (non-stable-branch) seabios update.

When will that switch happen? Looking at the archive this proposal for switching to SeaVGABIOS has already been dragging on for a long time as it is.

When the next seabios release is out, hopefully early in the 1.8 devel cycle.

cheers,
Gerd