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.lindholm@linaro.org,
	Pete Batard <pete@akeo.ie>
Cc: ard.biesheuvel@linaro.org
Subject: Re: [edk2-devel] [edk2-platforms PATCH 1/1] Platforms/RPi3: DisplayDxe virtual resolution improvements
Date: Tue, 1 Oct 2019 15:35:09 +0200	[thread overview]
Message-ID: <a0d63bbd-dc07-2cd4-dbde-66a1170b36f4@redhat.com> (raw)
In-Reply-To: <20191001131057.GT25504@bivouac.eciton.net>

On 10/1/19 3:10 PM, Leif Lindholm wrote:
> On Mon, Sep 30, 2019 at 10:32:03AM +0100, Pete Batard wrote:
>> Hi Leif,
>>
>> On 2019.09.29 00:05, Leif Lindholm wrote:
>>> On Fri, Sep 27, 2019 at 10:20:15AM +0100, Pete Batard wrote:
>>>> From: Andrei Warkentin <andrey.warkentin@gmail.com>
>>>>
>>>> The Pi GPU decouples requested resolution from actual physical resolution
>>>> and can perform scaling of virtual resolutions. This enables platform users
>>>> to do something like ask for 1024x768 and get a framebuffer of that size,
>>>> regardless of the actual output (which could be a very blurry SDTV).
>>>>
>>>> Specifically, this patch allows selecting which specific virtual
>>>> resolutions to enable, thus replacing the old all-or-nothing behaviour
>>>> with either all virtual resolutions supported, or just the native one.
>>>>
>>>> This patch also adds enables the common 7" Pi (800x480) screen to be used
>>>> at 800x600 resolution, instead of forcing 640x480 as the only usable
>>>> resolution.

Slightly too late nit: " ... also ..." suggest the 7" display forced to 
800x600 change could have go in a separate patch.

>>>
>>> I am basically OK with this patch, but I note that the change in
>>> variable name/content means existing users will end up with stale
>>> variables.
>>>
>>> So I wonder if it would be worth explicitly adding a stanza deleting
>>> the old variable if found?
>>
>> That would be a valid point *if* the Pi 3 was using actual NVRAM storage to
>> write those variables.
>>
>> However, we have no such thing on the hardware, so we currently store those
>> variables on the SD card, within the firmware file itself.
>>
>> Which means, the minute you "install" a new firmware (by replacing the
>> existing RPI_EFI.fd on your SD card with a new one), you're losing all your
>> existing variables anyway, including stale ones.
> 
> Ah. That is sort of unique, but I see how it could still be useful.
> It was the EFI_VARIABLE_NON_VOLATILE that threw me.
> 
>> Maybe with the Pi 4 and its 512 KB EEPROM, we'll be able to look into
>> preserving the variables. Or we may also look into writing variables to a
>> separate virtual NVRAM file on the SD card, instead of just reusing the .fd
>> (which we are doing for convenience). But for our current model, what you
>> highlight is a non issue, as the only "upgrade" path forces users to always
>> start with a virtual NVRAM that has been reset and that is therefore free
>> from any stale variable.
> 
> Sure. this works.
> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
> Pushed as 777573818e0c.

Thanks Leif.

Regards,

Phil.


      reply	other threads:[~2019-10-01 13:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-27  9:20 [edk2-platforms PATCH 1/1] Platforms/RPi3: DisplayDxe virtual resolution improvements Pete Batard
2019-09-27 16:38 ` [edk2-devel] " Philippe Mathieu-Daudé
2019-09-27 17:49   ` Leif Lindholm
2019-09-27 20:23     ` Philippe Mathieu-Daudé
2019-09-27 20:41       ` Pete Batard
2019-10-01 10:20         ` Philippe Mathieu-Daudé
2019-10-01 13:18           ` Leif Lindholm
2019-09-27 17:51   ` Pete Batard
2019-09-28 23:05 ` Leif Lindholm
2019-09-30  9:32   ` Pete Batard
2019-10-01 13:10     ` Leif Lindholm
2019-10-01 13:35       ` 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=a0d63bbd-dc07-2cd4-dbde-66a1170b36f4@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