All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alon Levy <alevy@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/3] qxl: add fb_size_mb and fb_size
Date: Mon, 11 Jun 2012 11:26:07 +0300	[thread overview]
Message-ID: <20120611082606.GS20536@garlic.redhat.com> (raw)
In-Reply-To: <4FD5A164.6060403@redhat.com>

On Mon, Jun 11, 2012 at 09:42:28AM +0200, Gerd Hoffmann wrote:
>   Hi,
> 
> > +        if (d->fb_size < fb) {
> > +            d->fb_size = fb;
> > +        }
> > +        if (fb <= d->fb_size) {
> 
> This check doesn't make sense, it will always be true.

My mistake. Will remove the first three lines, so fb_size setting will
be required to get larger modes.

> 
> > +    if (qxl->fb_size_mb != -1 &&
> > +        qxl->fb_size_mb * 1024 * 1024 < qxl->vga.vram_size) {
> > +        qxl->fb_size = qxl->fb_size_mb * 1024 * 1024;
> > +    } else {
> > +        qxl->fb_size = VGA_RAM_SIZE;
> > +    }
> 
> Reminds me that I have some pending work to make vga ram size
> configurable which I should finish and repost ...
> 
> Current state pushed to http://www.kraxel.org/cgit/qemu/log/?h=vga.1
> 
> It probably makes sense to base this on top.

So I can rebase on top and send the patches, with the understanding you
will do any later changes and repost the whole thing.

> 
> > +        DEFINE_PROP_UINT32("fb_size_mb", PCIQXLDevice, fb_size_mb, -1),
> 
> Maybe also rename this to vgamem_mb for consistency with standard vga.

Will change.

> 
> cheers,
>   Gerd
> 

  reply	other threads:[~2012-06-11  8:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-11  6:23 [Qemu-devel] [PATCH 0/3] qxl fb size and async fix Alon Levy
2012-06-11  6:23 ` [Qemu-devel] [PATCH 1/3] qxl: add fb_size_mb and fb_size Alon Levy
2012-06-11  7:42   ` Gerd Hoffmann
2012-06-11  8:26     ` Alon Levy [this message]
2012-06-11  8:29       ` Gerd Hoffmann
2012-06-11  8:35         ` Alon Levy
2012-06-11  9:33         ` Alon Levy
2012-06-11 10:18           ` Gerd Hoffmann
2012-06-11 10:23             ` Alon Levy
2012-06-11  6:24 ` [Qemu-devel] [PATCH 2/3] qxl: refuse to create primary larger then fb size Alon Levy
2012-06-11  6:24 ` [Qemu-devel] [PATCH 3/3] qxl: reset current_async on qxl_soft_reset Alon Levy

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=20120611082606.GS20536@garlic.redhat.com \
    --to=alevy@redhat.com \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.