qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Dennis Wölfing" <denniswoelfing@gmx.de>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [PATCH] vga: Allow writing VBE_DISPI_ID5 to ID register
Date: Mon, 14 Jun 2021 15:23:21 +0200	[thread overview]
Message-ID: <5079879c-942b-1f6f-0306-c64a09708108@gmx.de> (raw)
In-Reply-To: <20210607115303.228659-1-denniswoelfing@gmx.de>

Ping
https://lore.kernel.org/qemu-devel/20210607115303.228659-1-denniswoelfing@gmx.de/

On 07.06.21 13:53, Dennis Wölfing wrote:
> The highest VBE_DISPI_INDEX_ID version supported by QEMU is
> VBE_DISPI_ID5. But currently QEMU only allows writing values up to
> VBE_DISPI_ID4 to the VBE_DISPI_INDEX_ID register.
>
> As a result of this when a lower version is written to this register and
> later VBE_DISPI_ID5 is written back, reads from the register will
> continue to report the lower version.
>
> Indeed SeaBIOS is doing that during VGA initialization which causes
> guests to always read VBE_DISPI_ID0 instead of the correct version.
>
> Signed-off-by: Dennis Wölfing <denniswoelfing@gmx.de>
> ---
>   hw/display/vga.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/hw/display/vga.c b/hw/display/vga.c
> index 28a90e30d0..9d1f66af40 100644
> --- a/hw/display/vga.c
> +++ b/hw/display/vga.c
> @@ -752,7 +752,8 @@ void vbe_ioport_write_data(void *opaque, uint32_t addr, uint32_t val)
>                   val == VBE_DISPI_ID1 ||
>                   val == VBE_DISPI_ID2 ||
>                   val == VBE_DISPI_ID3 ||
> -                val == VBE_DISPI_ID4) {
> +                val == VBE_DISPI_ID4 ||
> +                val == VBE_DISPI_ID5) {
>                   s->vbe_regs[s->vbe_index] = val;
>               }
>               break;
> --
> 2.31.1
>


      reply	other threads:[~2021-06-14 13:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-07 11:53 [PATCH] vga: Allow writing VBE_DISPI_ID5 to ID register Dennis Wölfing
2021-06-14 13:23 ` Dennis Wölfing [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-all 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=5079879c-942b-1f6f-0306-c64a09708108@gmx.de \
    --to=denniswoelfing@gmx.de \
    --cc=kraxel@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /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;
as well as URLs for NNTP newsgroup(s).