[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [External] : Re: [SPECIFICATION RFC v3] The firmware and bootloader log specification
- To: Julius Werner <jwerner@xxxxxxxxxxxx>
- From: Alec Brown <alec.r.brown@xxxxxxxxxx>
- Date: Thu, 28 Oct 2021 20:29:13 -0400
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9wUGV/buFXwauNHjy4oujs13zhdzLIE363Ppd2jIzmU=; b=F8i7WaaCl173bq70zmVfdXgZ+iX+KtrN9Usg9SP2ZJmWxpeRTyc6hj0iOjDDqJAdB1wIWDi3qZAdBJwgTyypPXB/IBc5Mc9bE0j87af8BNlLV4YuOfdgadKQCvgXo+e7MPhQQb/RBNbQQk594MUeJLeKZYwnbB7joLmjal7d4VemJmL2uoySrs1LiMike/dXGFNovaXPlxy90siE+Z6/7Tus2peBms5m22VBniWg0TvC4CA5mZV+p6sanVGuKqIFkqKkmt3RiJaLX6xWOEwQs0Pfvf9VwaRviGZiAtsq25IEpRh63SPTU8GBXe31y3uGfdbhh81nSGd5vdPKZXav6Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=neOsaePSKc2m3S0xfO2mE76+tPejnvvMIOMvQjQdHlqCdSpshayZcPhZL4UlInw9UX3qC9kA5f4XwjidOf8TSF4mOtkyXoqtRi8/PoJ+QEqyTdW3MF/qwZGgKotd/1xcJNCD+MzeNr70qCeLrbOThgCWxjXS4Efh2EwM5bIcY3/wVKFcdc4Z8cmn/ZmWrwT5VTDlO549gGEswY0njJVv8sUyjMsdCaMbqLqijxKfPC38SMes6/7wz8/K0mGzVtwgVwiHZ3e0Fit9lt9msyk7rHtnwAnuxJP8qtDVAktGf5DgE7srh0CgHEFzbyhtmud0hwkMDsfxDfWQm59qJyDyYQ==
- Authentication-results: chromium.org; dkim=none (message not signed) header.d=none;chromium.org; dmarc=none action=none header.from=oracle.com;
- Cc: "coreboot@xxxxxxxxxxxx" <coreboot@xxxxxxxxxxxx>, "grub-devel@xxxxxxx" <grub-devel@xxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, "systemd-devel@xxxxxxxxxxxxxxxxxxxxx" <systemd-devel@xxxxxxxxxxxxxxxxxxxxx>, "trenchboot-devel@xxxxxxxxxxxxxxxx" <trenchboot-devel@xxxxxxxxxxxxxxxx>, "u-boot@xxxxxxxxxxxxx" <u-boot@xxxxxxxxxxxxx>, "x86@xxxxxxxxxx" <x86@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Aleksandr Burmashev <alexander.burmashev@xxxxxxxxxx>, "allen.cryptic@xxxxxxxxx" <allen.cryptic@xxxxxxxxx>, "andrew.cooper3@xxxxxxxxxx" <andrew.cooper3@xxxxxxxxxx>, "andy.shevchenko@xxxxxxxxx" <andy.shevchenko@xxxxxxxxx>, "ardb@xxxxxxxxxx" <ardb@xxxxxxxxxx>, "btrotter@xxxxxxxxx" <btrotter@xxxxxxxxx>, Daniel Kiper <daniel.kiper@xxxxxxxxxx>, "dpsmith@xxxxxxxxxxxxxxxxxxxx" <dpsmith@xxxxxxxxxxxxxxxxxxxx>, Eric DeVolder <eric.devolder@xxxxxxxxxx>, Eric Snowberg <eric.snowberg@xxxxxxxxxx>, "frowand.list@xxxxxxxxx" <frowand.list@xxxxxxxxx>, "hpa@xxxxxxxxx" <hpa@xxxxxxxxx>, "hun@xxxxxxxxxxxxxxxx" <hun@xxxxxxxxxxxxxxxx>, "james.dutton@xxxxxxxxx" <james.dutton@xxxxxxxxx>, "javierm@xxxxxxxxxx" <javierm@xxxxxxxxxx>, Joao Martins <joao.m.martins@xxxxxxxxxx>, Kanth Ghatraju <kanth.ghatraju@xxxxxxxxxx>, Konrad Wilk <konrad.wilk@xxxxxxxxxx>, "krystian.hebel@xxxxxxxxx" <krystian.hebel@xxxxxxxxx>, "leif@xxxxxxxxxxxx" <leif@xxxxxxxxxxxx>, "lukasz.hawrylko@xxxxxxxxx" <lukasz.hawrylko@xxxxxxxxx>, "luto@xxxxxxxxxxxxxx" <luto@xxxxxxxxxxxxxx>, "michal.zygowski@xxxxxxxxx" <michal.zygowski@xxxxxxxxx>, "mjg59@xxxxxxxxxx" <mjg59@xxxxxxxxxx>, "mtottenh@xxxxxxxxxx" <mtottenh@xxxxxxxxxx>, "nico.h@xxxxxx" <nico.h@xxxxxx>, "phcoder@xxxxxxxxx" <phcoder@xxxxxxxxx>, "piotr.krol@xxxxxxxxx" <piotr.krol@xxxxxxxxx>, "pjones@xxxxxxxxxx" <pjones@xxxxxxxxxx>, "pmenzel@xxxxxxxxxxxxx" <pmenzel@xxxxxxxxxxxxx>, "rasmus.villemoes@xxxxxxxxx" <rasmus.villemoes@xxxxxxxxx>, "rdunlap@xxxxxxxxxxxxx" <rdunlap@xxxxxxxxxxxxx>, "roger.pau@xxxxxxxxxx" <roger.pau@xxxxxxxxxx>, Ross Philipson <ross.philipson@xxxxxxxxxx>, "sjg@xxxxxxxxxxxx" <sjg@xxxxxxxxxxxx>, "trini@xxxxxxxxxxxx" <trini@xxxxxxxxxxxx>, "tyhicks@xxxxxxxxxxxxxxxxxxx" <tyhicks@xxxxxxxxxxxxxxxxxxx>, "ulrich.windl@xxxxxxxxxxxxxxxxxxxx" <ulrich.windl@xxxxxxxxxxxxxxxxxxxx>, "wvervoorn@xxxxxxxxx" <wvervoorn@xxxxxxxxx>, "xypron.glpk@xxxxxx" <xypron.glpk@xxxxxx>, "rharwood@xxxxxxxxxx" <rharwood@xxxxxxxxxx>
- Delivery-date: Fri, 29 Oct 2021 00:30:23 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Tue, Sep 21, 2021 at 03:07:25PM -0700, Julius Werner wrote:
> > Since it doesn't seem possible to have each boot component using the same
> > log
> > format, we added a log_format and log_phys_addr fields to give flexibility
> > in
> > how logs are stored. An example of a different log format that can be used
> > is
> > the cbmem_console log format used by coreboot:
>
> I am not exactly sure how you expect this interoperability you seem to
> be suggesting here to work. Are you saying that your bf_log_header can
> sometimes point to the bf_log_buffer structure you define, and
> sometimes to a coreboot CBMEM console buffer? But that's a completely
> different format that requires a different reader implementation, how
> is that supposed to work? If this proposal is just "we define a
> wrapper structure that points to everyone's custom firmware log
> implementation", then I don't really see the point (the only benefit
> still left then might be discovery of the log buffer, but that's the
> part you leave open in your design while all those other
> implementations already have working discovery mechanisms of their own
> anyway).
>
Depending on the preferred logging format by the boot component, bf_log_header
can point to our bf_log_buffer, a Coreboot CBMEM console buffer, or some other
preferred logging format. We are looking at ways to pass all logs through one
mechanism to make it simpler to discover all logs along the boot chain. From our
understanding, the CBMEM console is passed to the OS via a CBMEM table stored in
lower memory in a forwarding entry and is discovered by a user space tool
looking through /dev/mem. Is this correct? We aren't entirely sure how other
implementations of log buffers accomplish this, but we think that an explicit
mechanism can be beneficial. This is something we'll need to expand upon in the
specification.
> For the other structures you have defined, the same feedback that I
> think was already mentioned on the last iteration of this thread still
> applies: it seems incredibly bloated for a simple firmware logging
> mechanism. You have a whooping 24+n bytes of overhead *per line* which
> probably comes out to somewhere between 30-50% of total space wasted
> on overhead for the average log buffer. I guess there are just
> fundamentally different opinions on how featureful a firmware log
> mechanism needs to be so we're probably not gonna find a format that
> makes everyone happy here, but at least for the coreboot project I see
> little reason for us to implement something like this when we already
> have a well-working existing solution with tooling and wideranged
> support.
Since, the logging format we are proposing won't be the best for each boot
component environment, we are giving the option for boot components to use other
logging formats that best suits their environment.
|