[edk2-devel] [PATCH edk2-stable202002] OvmfPkg/QemuVideoDxe: unbreak "secondary-vga" and "bochs-display" support

Liming Gao liming.gao at intel.com
Tue Feb 25 13:20:37 UTC 2020


Laszlo:
  Seemly, this is a regression issue. I am ok to catch it into stable tag edk2-stable202002. 

Thanks
Liming
> -----Original Message-----
> From: devel at edk2.groups.io <devel at edk2.groups.io> On Behalf Of Ard Biesheuvel
> Sent: Tuesday, February 25, 2020 1:21 AM
> To: Laszlo Ersek <lersek at redhat.com>
> Cc: edk2-devel-groups-io <devel at edk2.groups.io>; Gerd Hoffmann <kraxel at redhat.com>; Justen, Jordan L <jordan.l.justen at intel.com>;
> Chen, Marc W <marc.w.chen at intel.com>; Philippe Mathieu-Daudé <philmd at redhat.com>
> Subject: Re: [edk2-devel] [PATCH edk2-stable202002] OvmfPkg/QemuVideoDxe: unbreak "secondary-vga" and "bochs-display" support
> 
> On Mon, 24 Feb 2020 at 18:17, Laszlo Ersek <lersek at redhat.com> wrote:
> >
> > In edk2 commit 333f32ec23dd, QemuVideoDxe gained support for QEMU's
> > "secondary-vga" device model (originally introduced in QEMU commit
> > 63e3e24db2e9).
> >
> > In QEMU commit 765c94290863, the "bochs-display" device was introduced,
> > which would work with QemuVideoDxe out of the box, reusing the
> > "secondary-vga" logic.
> >
> > Support for both models has been broken since edk2 commit 662bd0da7fd7.
> > Said patch ended up requiring VGA IO Ports -- i.e., at least one of
> > EFI_PCI_IO_ATTRIBUTE_VGA_IO and EFI_PCI_IO_ATTRIBUTE_VGA_IO_16 -- even if
> > the device wasn't actually VGA compatible.
> >
> > Restrict the IO Ports requirement to VGA compatible devices.
> >
> > Cc: Ard Biesheuvel <ard.biesheuvel at linaro.org>
> > Cc: Gerd Hoffmann <kraxel at redhat.com>
> > Cc: Jordan Justen <jordan.l.justen at intel.com>
> > Cc: Marc W Chen <marc.w.chen at intel.com>
> > Cc: Philippe Mathieu-Daudé <philmd at redhat.com>
> > Fixes: 662bd0da7fd77e4d2cf9ef4a78015af5cad7d9db
> > Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=2555
> > Signed-off-by: Laszlo Ersek <lersek at redhat.com>
> 
> Acked-by: Ard Biesheuvel <ard.biesheuvel at linaro.org>
> 
> > ---
> >
> > Notes:
> >     Repo:   https://github.com/lersek/edk2.git
> >     Branch: vga_io_bz_2555
> >
> >  OvmfPkg/QemuVideoDxe/Driver.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/OvmfPkg/QemuVideoDxe/Driver.c b/OvmfPkg/QemuVideoDxe/Driver.c
> > index 6a4a860b3c25..37bbbbe843c9 100644
> > --- a/OvmfPkg/QemuVideoDxe/Driver.c
> > +++ b/OvmfPkg/QemuVideoDxe/Driver.c
> > @@ -292,7 +292,7 @@ QemuVideoControllerDriverStart (
> >    }
> >
> >    SupportedVgaIo &= (UINT64)(EFI_PCI_IO_ATTRIBUTE_VGA_IO | EFI_PCI_IO_ATTRIBUTE_VGA_IO_16);
> > -  if (SupportedVgaIo == 0) {
> > +  if (SupportedVgaIo == 0 && IS_PCI_VGA (&Pci)) {
> >      Status = EFI_UNSUPPORTED;
> >      goto ClosePciIo;
> >    }
> >
> > base-commit: 1d3215fd24f47eaa4877542a59b4bbf5afc0cfe8
> > --
> > 2.19.1.3.g30247aa5d201
> >
> 
> 


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#54787): https://edk2.groups.io/g/devel/message/54787
Mute This Topic: https://groups.io/mt/71515873/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-





More information about the edk2-devel-archive mailing list