From: Laszlo Ersek <lersek@redhat.com>
To: Jordan Justen <jordan.l.justen@intel.com>,
edk2-devel-01 <edk2-devel@lists.01.org>
Cc: Gary Ching-Pang Lin <glin@suse.com>
Subject: Re: [PATCH 2/3] OvmfPkg: introduce FD_SIZE_4MB (mainly) for Windows HCK
Date: Mon, 1 May 2017 02:06:54 +0200 [thread overview]
Message-ID: <8c838d90-083f-8ab2-c5cd-8874ab4be0f5@redhat.com> (raw)
In-Reply-To: <149351328512.20670.1563878734495138189@jljusten-skl>
On 04/30/17 02:48, Jordan Justen wrote:
> Today, we give 128k to non-volatile storage, which due to various
> reasons results in 56k of variable storage. Personally I already
> consider this generous, especially when I look at the 128k size of the
> seabios bios.bin. :)
I'd like to comment on the seabios analogy; I just needed a bit more
time to gather data for this (BZs and build logs, mainly).
In RHEL-6, we shipped (and have been shipping) 128KB SeaBIOS binaries.
Preparing for RHEL-7.0, we increased the SeaBIOS binary size to 256KB,
anticipating future features that would no longer fit into 128KB. This
is the BZ for it:
https://bugzilla.redhat.com/show_bug.cgi?id=1038604
The exact "seabios-1.7.2.2-5.el7" build, dated 2013-Dec-10, in which the
BZ was addressed, is no longer available in our build archives (it was
not a released version, just a development build, so that's OK), but
"seabios-1.7.2.2-6.el7", i.e. the build right after, is available. At
that time, we were still under 128KB:
> Total size: 117472 Fixed: 58792 Free: 144672
> (used 44.8% of 256KiB rom)
Today, looking at the build log of "seabios-1.10.2-2.el7" (built
2017-Mar-30), I find:
> Total size: 149664 Fixed: 75392 Free: 112480
> (used 57.1% of 256KiB rom)
Had we not increased the size in advance (via CONFIG_ROM_SIZE), we'd
have run out of it over the past ~3.5 years.
In OVMF, the address range of the non-volatile area depends on SECFV's
size, FVMAIN_COMPACT's size, and on the NV area's size; they come in
this order downwards from 4GB.
SECFV is safe as-is; it has seen negligible growth in years, and is
currently at about 14% in a DEBUG build.
I'd like to future-proof the other two (FVMAIN_COMPACT and NV) sizes
now, with a large -- approx. seven year -- margin.
Thanks
Laszlo
next prev parent reply other threads:[~2017-05-01 0:06 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-29 20:14 [PATCH 0/3] OvmfPkg: add FD_SIZE_4MB for Windows HCK SB tests, and for future proofing Laszlo Ersek
2017-04-29 20:14 ` [PATCH 1/3] OvmfPkg/OvmfPkg.fdf.inc: extract VARS_LIVE_SIZE and VARS_SPARE_SIZE macros Laszlo Ersek
2017-04-29 20:14 ` [PATCH 2/3] OvmfPkg: introduce FD_SIZE_4MB (mainly) for Windows HCK Laszlo Ersek
2017-04-30 0:48 ` Jordan Justen
2017-04-30 14:42 ` Laszlo Ersek
2017-04-30 21:16 ` Jordan Justen
2017-05-01 10:51 ` Laszlo Ersek
2017-05-01 17:15 ` Jordan Justen
2017-05-01 17:23 ` Jordan Justen
2017-05-01 18:40 ` Laszlo Ersek
2017-05-01 19:20 ` Jordan Justen
2017-05-01 23:07 ` Laszlo Ersek
2017-05-01 23:38 ` Jordan Justen
2017-05-02 14:39 ` Laszlo Ersek
2017-05-02 18:22 ` Jordan Justen
2017-05-02 19:31 ` Laszlo Ersek
2017-05-02 21:45 ` Jordan Justen
2017-05-03 13:46 ` Laszlo Ersek
2017-05-01 0:06 ` Laszlo Ersek [this message]
2017-04-29 20:15 ` [PATCH 3/3] OvmfPkg: raise max variable size (auth & non-auth) to 33KB for FD_SIZE_4MB Laszlo Ersek
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=8c838d90-083f-8ab2-c5cd-8874ab4be0f5@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