From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Fwd: [PATCH 1/2] Framebuffer split
Date: Sat, 1 Aug 2009 17:01:18 +0200 [thread overview]
Message-ID: <20090801150118.GB23133@thorin> (raw)
In-Reply-To: <d7ead6de0907261506p4a432babk3bff3ea631812e4b@mail.gmail.com>
On Mon, Jul 27, 2009 at 12:06:17AM +0200, Vladimir 'phcoder' Serbinenko wrote:
> grub_err_t (*get_info) (struct grub_video_mode_info *mode_info);
>
> + grub_err_t (*get_info_and_fini) (struct grub_video_mode_info *mode_info,
> + void **framebuffer);
> +
> [...]
> +/* Framebuffer address may change as a part of normal operation
> + (e.g. double buffering). That's why you need to stop video subsystem to be
> + sure that framebuffer address doesn't change. To ensure this abstraction
> + grub_video_get_info_and_fini is the only function supplying framebuffer
> + address. */
> +grub_err_t grub_video_get_info_and_fini (struct grub_video_mode_info *mode_info,
> + void **framebuffer);
> +
I see that returning framebuffer address and finishing the video subsystem
must be together, but is there a reason to couple this with getting mode_info ?
If mode_info is also affected by this problem, or if getting mode info only
makes sense in a situation in which we'd also want to obtain framebuffer
address or finishing the subsystem, then the existing get_info() function
is no longer necessary.
Otherwise, users who want both things can just invoke get_info() first and then
the new function to obtain FB address.
Btw, if I understand correctly, we have a race condition right now. As a
bugfix it'd be better to merge this separately from the interface redesign if
possible.
Also, does finishing the video subsystem only affect GRUB internally, or
result in any effect at the display level? I want to avoid having visual
glitches when the payload is loaded without switching video mode.
> - modevar = grub_env_get ("gfxpayload");
> -
> - /* Now all graphical modes are acceptable.
> - May change in future if we have modes without framebuffer. */
> [...]
> - {
> - params->have_vga = GRUB_VIDEO_TYPE_TEXT;
> - params->video_width = 80;
> - params->video_height = 25;
> - }
> -
Why is this chunk of code moved down? AFAICS, this change only involves
adding an additional layer between it and the video backend. Does this
make it conflict with something else?
> +#define grub_video_render_target grub_video_fbrender_target
If we want to rename this function, I'd rather do it all the way than
keeping a compatibility macro. But then, I'd also prefer if this is
done separately from the rest (either before or after).
> +/* Select the best double buffering mode available. */
> +static void
> +double_buffering_init (int enable)
This patch also seems to add double buffering support, which is a feature
that wasn't yet implemented. I suppose it's good to have (I'm not very
clued about graphics), but I'd prefer if we can merge this separately
from the redesign changes.
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
next prev parent reply other threads:[~2009-08-01 15:01 UTC|newest]
Thread overview: 47+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <d7ead6de0907230248s9af4c51ic4a172d2279f0b8b@mail.gmail.com>
[not found] ` <d7ead6de0907230250h13df5d6du29ce32ef0e187123@mail.gmail.com>
2009-07-23 9:52 ` Fwd: [PATCH 1/2] Framebuffer split Vladimir 'phcoder' Serbinenko
2009-07-23 23:41 ` Pavel Roskin
2009-07-25 9:57 ` Vladimir 'phcoder' Serbinenko
2009-07-26 22:06 ` Vladimir 'phcoder' Serbinenko
2009-07-28 17:50 ` Robert Millan
2009-07-28 21:21 ` Vladimir 'phcoder' Serbinenko
2009-07-31 16:00 ` Robert Millan
2009-07-31 20:31 ` Vladimir 'phcoder' Serbinenko
2009-08-01 14:41 ` Robert Millan
2009-08-01 14:50 ` Michal Suchanek
2009-08-01 15:02 ` Robert Millan
2009-08-01 15:01 ` Robert Millan [this message]
2009-08-01 15:10 ` Vladimir 'phcoder' Serbinenko
2009-08-01 16:03 ` Vladimir 'phcoder' Serbinenko
2009-08-02 22:01 ` Vladimir 'phcoder' Serbinenko
2009-08-08 19:06 ` Michal Suchanek
2009-08-08 22:03 ` Michal Suchanek
2009-08-10 12:30 ` Vladimir 'phcoder' Serbinenko
2009-08-09 11:55 ` Michal Suchanek
2009-08-10 12:36 ` Vladimir 'phcoder' Serbinenko
2009-08-10 13:34 ` Michal Suchanek
2009-08-10 14:11 ` Vladimir 'phcoder' Serbinenko
2009-08-10 14:38 ` Michal Suchanek
2009-08-10 15:10 ` Vladimir 'phcoder' Serbinenko
2009-08-10 18:41 ` Michal Suchanek
2009-08-10 19:43 ` Vladimir 'phcoder' Serbinenko
2009-08-12 13:17 ` Michal Suchanek
2009-08-12 13:45 ` Vladimir 'phcoder' Serbinenko
2009-08-13 15:59 ` Vladimir 'phcoder' Serbinenko
2009-08-13 19:41 ` Robert Millan
2009-08-13 20:36 ` Vladimir 'phcoder' Serbinenko
2009-08-13 21:01 ` Robert Millan
2009-08-14 0:13 ` Michal Suchanek
2009-08-14 10:39 ` Michal Suchanek
2009-08-14 11:41 ` Vladimir 'phcoder' Serbinenko
2009-08-14 12:57 ` Michal Suchanek
2009-08-14 13:23 ` Vladimir 'phcoder' Serbinenko
2009-08-14 13:24 ` Vladimir 'phcoder' Serbinenko
2009-08-12 13:08 ` Michal Suchanek
2009-08-12 13:16 ` Vladimir 'phcoder' Serbinenko
2009-08-12 13:38 ` Michal Suchanek
2009-08-02 21:43 ` Robert Millan
2009-08-02 21:52 ` Vladimir 'phcoder' Serbinenko
2009-08-01 15:14 ` Michal Suchanek
2009-08-01 15:17 ` Vladimir 'phcoder' Serbinenko
2009-08-01 15:32 ` Michal Suchanek
2009-08-02 21:29 ` Robert Millan
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=20090801150118.GB23133@thorin \
--to=rmh@aybabtu.com \
--cc=grub-devel@gnu.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.