public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: devel@edk2.groups.io, leif@nuviainc.com
Cc: Jordan Justen <jordan.l.justen@intel.com>,
	Laszlo Ersek <lersek@redhat.com>,
	Ard Biesheuvel <ard.biesheuvel@arm.com>
Subject: Re: [edk2-devel] [PATCH 1/1] OvmfPkg: drop redundant VendorID check in VirtioMmioDeviceLib
Date: Mon, 14 Sep 2020 20:04:21 +0200	[thread overview]
Message-ID: <58d1de2f-a48b-6563-684c-657a0ef99b0a@redhat.com> (raw)
In-Reply-To: <20200912164022.5048-1-leif@nuviainc.com>

On 9/12/20 6:40 PM, Leif Lindholm wrote:
> There is a DEBUG warning printout in VirtioMmioDeviceLib if the current
> device's VendorID does not match the traditional 16-bit Red Hat PCIe
> vendor ID used with virtio-pci. The virtio-mmio vendor ID is 32-bit and
> has no connection to the PCIe registry.
> 
> Most specifically, this causes a bunch of noise when booting an AArch64
> QEMU platform, since QEMU's virtio-mmio implementation used 'QEMU' as
> the vendor ID:
> VirtioMmioInit: Warning:
>   The VendorId (0x554D4551) does not match the VirtIo VendorId (0x1AF4).
> 
> Drop the warning message.
> 
> Cc: Jordan Justen <jordan.l.justen@intel.com>
> Cc: Laszlo Ersek <lersek@redhat.com>
> Cc: Ard Biesheuvel <ard.biesheuvel@arm.com>
> Signed-off-by: Leif Lindholm <leif@nuviainc.com>

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>

> ---
>  .../VirtioMmioDeviceLib/VirtioMmioDevice.c        | 15 ---------------
>  1 file changed, 15 deletions(-)
> 
> diff --git a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c
> index 2f20272c1445..6dbbba008c75 100644
> --- a/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c
> +++ b/OvmfPkg/Library/VirtioMmioDeviceLib/VirtioMmioDevice.c
> @@ -58,7 +58,6 @@ VirtioMmioInit (
>    )
>  {
>    UINT32     MagicValue;
> -  UINT32     VendorId;
>    UINT32     Version;
>  
>    //
> @@ -84,20 +83,6 @@ VirtioMmioInit (
>      return EFI_UNSUPPORTED;
>    }
>  
> -  //
> -  // Double-check MMIO-specific values
> -  //
> -  VendorId = VIRTIO_CFG_READ (Device, VIRTIO_MMIO_OFFSET_VENDOR_ID);
> -  if (VendorId != VIRTIO_VENDOR_ID) {
> -    //
> -    // The ARM Base and Foundation Models do not report a valid VirtIo VendorId.
> -    // They return a value of 0x0 for the VendorId.
> -    //
> -    DEBUG((DEBUG_WARN, "VirtioMmioInit: Warning: The VendorId (0x%X) does not "
> -                       "match the VirtIo VendorId (0x%X).\n",
> -                       VendorId, VIRTIO_VENDOR_ID));
> -  }
> -
>    return EFI_SUCCESS;
>  }
>  
> 


      parent reply	other threads:[~2020-09-14 18:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-12 16:40 [PATCH 1/1] OvmfPkg: drop redundant VendorID check in VirtioMmioDeviceLib Leif Lindholm
2020-09-14 15:35 ` Laszlo Ersek
2020-09-17 12:03   ` Leif Lindholm
2020-09-14 18:04 ` Philippe Mathieu-Daudé [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=58d1de2f-a48b-6563-684c-657a0ef99b0a@redhat.com \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox