Received: by 2002:a05:6520:4d:b0:139:a872:a4c9 with SMTP id i13csp3480731lkm; Tue, 21 Sep 2021 17:12:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0ThzIaBN1BCrPAJ0GeHYPezF4nPo4RxyXzS3ECYtbA5CEJIfFzQTstYBeX19c9IGtHkFV X-Received: by 2002:a17:906:660f:: with SMTP id b15mr37747484ejp.491.1632269519917; Tue, 21 Sep 2021 17:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632269519; cv=none; d=google.com; s=arc-20160816; b=NQEUTdgjwdgiEgxix+2YCFk4J91nXBP4D7uHkZrZ4REiho01FMbrnfFeESIiU7tM2a HTPaRM7hC9TnMetDBwjJHdSOpP4YxsFtSoPpZD1eOc48/vnWpmBMtMOz28XMQr5FOv0Q XCbXSYD/J+s5Kuq25E51m3Aaq2ZHEBuhKq8Xc9AgQqsmT8Kf7XQjFy4CIDFRMkUXiTMd /Obbjv8Dx8H+keZxMB7CTttiRm3OPtFVWuN0Kvq7bcEuUpHPkQpeUe3F0FMtc1ce13jE DjIQyFwyX8Bjzy1s6KktxJQb2MZ4fj1rcIgH2RLM7PeLd1TJfG82NAwiho0EswnK5sUk E4Fg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=dmNoREXEsTQk/U8Gj8hxJgkwpIFQVacQIWPFX9WwIhE=; b=VWBMTma9ZfLulnFICG0kQW/XT6Ff/yi87DdiAcL8PAYsWtOINfWQ+XMDb9eDlD2Agu yv0C+NPOFNRpz7FN+uQOonL3dn1/0BFSzhKI0U0SWv1NYSzPJRoKdoYdYNFMysyYEG92 AZ7d7SEMNhpSRXCrZBK5dQvu6FidvE4GGP/yYKd4tQIHrx1ZKHdwgEu/RqWaGWWvI0VQ 1NdU2ujVPDom2zLCBXHPBENRg0hnjesULOaUF7GwWi0fdtCQo9D/Sw9w5AGkAr+duRwT qOSowMx4t3wAmmt4CB6DJaWg0YH17yKLRUOo47gK/Fph7fOwqmsH2GF2p/kkPHp9vzbx va8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BmvKqba0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id os28si740518ejb.737.2021.09.21.17.11.06; Tue, 21 Sep 2021 17:11:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=BmvKqba0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234190AbhIUWJI (ORCPT + 99 others); Tue, 21 Sep 2021 18:09:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58542 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232154AbhIUWJH (ORCPT ); Tue, 21 Sep 2021 18:09:07 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A250CC061574 for ; Tue, 21 Sep 2021 15:07:38 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id c7so2785167qka.2 for ; Tue, 21 Sep 2021 15:07:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dmNoREXEsTQk/U8Gj8hxJgkwpIFQVacQIWPFX9WwIhE=; b=BmvKqba0wk3fHOJkzodZkWkwcRiEGryCgimWoPwoR/3fuUIA+dSginnReDiVPyee7m d0wKi27PG+BRcSjcBjJGq+L+WHKcqjtrvpWTSmYtPhmc8evGnsfH/85hixjGh0cAWjdh GtyZsqwLpWRGBoTJ8GV2gLHI8D56ItDf8ldGs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dmNoREXEsTQk/U8Gj8hxJgkwpIFQVacQIWPFX9WwIhE=; b=FXcgCEyOvOCH19p2mIdXLwDV2glbYlVETI/BJwSxAGSDwCtbz/Q5gBrPh19sla7hX+ 4MbgefW9GNhTd1Dnm04f3b2aOfuSFGUFJS8ha3/0pAwg4JjS1qtAMTOgR3COPBdkJ6Fi al4lgHe8NHKCyftoJ2I2SCVA8ZY7cRMLi7EtwtE+u0MIO332lIv6ClD0b7X1Dg5bFKXu 3SE5YTgy2TsNIZ8bXLbufGs9X49g7lKssaadKvuynUsb6xlpUDIIwz6u6sgAHzn9SsmL oSeyzIevRBNKmv1PlmP7CwkKfiH2TDSetpwb0Bf+KQ+GzHQbDzS/p+y0jQNCLpGbMBDH f0tA== X-Gm-Message-State: AOAM5317UaYmpYx3HPNQBkit5zm042/NGT9Lx5CGs9sZF7PuBXITBKW+ ONATt/EdjSdXxXZPjeoSOyc8WMWuPBbMT4pWNUsSVziESWETAA== X-Received: by 2002:a25:afcd:: with SMTP id d13mr41652428ybj.504.1632262057588; Tue, 21 Sep 2021 15:07:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Julius Werner Date: Tue, 21 Sep 2021 15:07:25 -0700 Message-ID: Subject: Re: [SPECIFICATION RFC v3] The firmware and bootloader log specification To: Alec Brown Cc: "coreboot@coreboot.org" , "grub-devel@gnu.org" , "linux-kernel@vger.kernel.org" , "systemd-devel@lists.freedesktop.org" , "trenchboot-devel@googlegroups.com" , "u-boot@lists.denx.de" , "x86@kernel.org" , "xen-devel@lists.xenproject.org" , Aleksandr Burmashev , "allen.cryptic@gmail.com" , "andrew.cooper3@citrix.com" , "andy.shevchenko@gmail.com" , "ardb@kernel.org" , "btrotter@gmail.com" , Daniel Kiper , "dpsmith@apertussolutions.com" , Eric DeVolder , Eric Snowberg , "frowand.list@gmail.com" , "hpa@zytor.com" , "hun@n-dimensional.de" , "james.dutton@gmail.com" , "javierm@redhat.com" , Joao Martins , "jwerner@chromium.org" , Kanth Ghatraju , Konrad Wilk , "krystian.hebel@3mdeb.com" , "leif@nuviainc.com" , "lukasz.hawrylko@intel.com" , "luto@amacapital.net" , "michal.zygowski@3mdeb.com" , "mjg59@google.com" , "mtottenh@akamai.com" , "nico.h@gmx.de" , "phcoder@gmail.com" , "piotr.krol@3mdeb.com" , "pjones@redhat.com" , "pmenzel@molgen.mpg.de" , "rasmus.villemoes@prevas.dk" , "rdunlap@infradead.org" , "roger.pau@citrix.com" , Ross Philipson , "sjg@chromium.org" , "trini@konsulko.com" , "tyhicks@linux.microsoft.com" , "ulrich.windl@rz.uni-regensburg.de" , "wvervoorn@eltan.com" , "xypron.glpk@gmx.de" , "rharwood@redhat.com" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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). 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.