qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Kyle Hubert" <khubert@gmail.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] QEMU + -std-vga + XFree86
Date: Mon, 26 Mar 2007 01:32:49 -0700	[thread overview]
Message-ID: <9a158e2e0703260132u673c6048oa33ae0b0cbd71a5@mail.gmail.com> (raw)
In-Reply-To: <46d6db660703260040r47bc25f3q9d945df9ed4bc6a9@mail.gmail.com>

> no obvious problem in the xf86config file.
> when all fails, use the framebuffer :) and Xfbdev (fbdev driver instead
> of vesa)

The framebuffer seems to miss every other vertical scan line. I'm not
sure if I make sense, but the video wraps around the screen onto
itself vertically. Thus rendering half of it on top (with vertical
black lines every other pixel)

> you might need a patch called vesafb-tng to reach such size.
> I haven't tried successfully though. Appending the proper
> parameters -append "video=vesafb:1600x1200@60", I
> basically reach at most 1280x1024.

I tried using the newer video appendage and it didn't seem to work. I
had to use the older vga=. I believe you are talking about the kernel
boot param, yes?



How about this for more information. The XFree86 VBE extension does
the following code:

    pInt->ax = 0x4F00;
    pInt->es = SEG_ADDR(RealOff);
    pInt->di = SEG_OFF(RealOff);
    pInt->num = 0x10;

    xf86ExecX86int10(pInt);

Resulting in:

    TotalMem = B_O16(vbe->TotalMem);
    /* Some BIOS'es are off by one */
    TotalMem += TotalMem & 1U;

    xf86DrvMsgVerb(screen, X_INFO, 3, "VESA VBE Total Mem: %li kB\n",
                   TotalMem * 64);

Which is annoying it ignores the X config's manual VideoRam in the
device section.

Perhaps the vgabios doesn't correctly implement this interrupt?

Looking in the 0.6a release of vgabios, you see in vbe.c:

        // VBE Total Memory (in 64b blocks)
        vbe_info_block.TotalMemory = VBE_TOTAL_VIDEO_MEMORY_DIV_64K;

So, it's intended to return correctly. Yet the XFree86 driver reports
a zero return.

Perhaps the vgabios.bin coming with QEMU is incorrect? I don't see
anything in vgabios.diff which suggests this code was changed.

-Kyle

  reply	other threads:[~2007-03-26  8:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-25 23:36 [Qemu-devel] QEMU + -std-vga + XFree86 Kyle Hubert
2007-03-26  0:41 ` Anthony Liguori
2007-03-26  6:37 ` Christian MICHON
2007-03-26  7:12   ` Kyle Hubert
2007-03-26  7:16     ` Kyle Hubert
2007-03-26  7:40     ` Christian MICHON
2007-03-26  8:32       ` Kyle Hubert [this message]
2007-03-26  8:53         ` Christian MICHON
2007-03-26  9:22           ` Kyle Hubert
  -- strict thread matches above, loose matches on Subject: below --
2007-03-26  0:44 Ben Taylor

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=9a158e2e0703260132u673c6048oa33ae0b0cbd71a5@mail.gmail.com \
    --to=khubert@gmail.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).