Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp2340622ybc; Wed, 13 Nov 2019 12:53:13 -0800 (PST) X-Google-Smtp-Source: APXvYqzEwTaDTNhpG68YfgtNSQ4/lh75Jk1ggnmaxY4+uHGFSwO9HdNTpAyxnu//o7/BEIZSyrXk X-Received: by 2002:a17:906:a457:: with SMTP id cb23mr4847529ejb.191.1573678393113; Wed, 13 Nov 2019 12:53:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573678393; cv=none; d=google.com; s=arc-20160816; b=AjKP2DetNhAZKyboPMSzmWFZdoQRaYWLeyEr2zEO4VPmUFWvM+aumh5EtmCjqEFEIU KZSrmHkWwT5Bpf6ujz667V5b6zUXsU18q1oQyL6snpL6kUboiPZhQbHAsoA5CqDKc7+Y c9xtWgfCo7TN5wfvPrrngSg5JSYw5axOIuxX5Q69FvaXjQqyLA8eTcy2EXu/Cb6IwtBq joeFblxh98KDUr3dqPVrklAOgxp+b8dfA81Y9HVwwcNzXwg4jYJR6Xi7GTD+I2JoMas9 f0IsL9Y45snbVwZreuz6Q09RW7vY8XBzVSYcVHzECQMKjKwDSdw2W9W30h1k/XF6GqUC Bsmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=YgE8GLdWFRrNduFilK05nhw+7cZeX1cpxR2N/wuTFX4=; b=zyMhm2FqKziPw7B3S3UWKABx9ROTc+jNB31oen9fxcO8I8p7ZzQy9u1QqXqVq57t8T fVxe1R65X3siWhCP5fxN1dRjLPLbhtrJJK7Pkh4mODJTFT3aPwaMSSf253AQMPVTLiko RnYFyTGpFr7hG8Pj1283uagrTiwciOHtc5cAyq7HsGhCNaiiP/hqZU970ajBdVYIURHI OLuQ5dUHiOnmJRYlH1hQoEGJKsoZ6yC0JGPmGVwXyPWgfqZGY2afqmaOfDFGV/jVvjKU aUlVh9+hGIEjOFSDlxIttLxEUrdjkbl9QgEw6RNnvF4O/h6Wx9WB/6rrfnvDRqjEkq4e 9WjA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g20si2365607eda.229.2019.11.13.12.52.48; Wed, 13 Nov 2019 12:53:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726363AbfKMUuO (ORCPT + 99 others); Wed, 13 Nov 2019 15:50:14 -0500 Received: from mail-pl1-f196.google.com ([209.85.214.196]:46343 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726162AbfKMUuN (ORCPT ); Wed, 13 Nov 2019 15:50:13 -0500 Received: by mail-pl1-f196.google.com with SMTP id l4so1550231plt.13 for ; Wed, 13 Nov 2019 12:50:13 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=YgE8GLdWFRrNduFilK05nhw+7cZeX1cpxR2N/wuTFX4=; b=m16O6WDgRnJblyl5k+V2Jt0QIK5SUhKRrn9iptcLY7x7fhv6lhM/HWlGKSGBkEuHbI ZJL5etjrd/zDtlh2gWvXS6Npy4Zu3xzKj45S61gFzomFsxBXfDI1A1FgRpKFVLwk9WDg OZEoPJfrI/4iqdk6A3zfgawR65bKmkdfSmNn6MrGgiafPC+LfZaPrPU5+OSo7RMnDRMD RlNCLF7b2xIDXK6fztzP/deFJV/3zXiRyq32RVLmquUmaGvXFrKqZDM6WsTosbPbi5dl 7jx9tLAAMvq+MszUS5FLqf7a0Rz6lhelMuXG54iPwDwwL698Z7ewt6fwE7Ky6jfiv1cY mXJA== X-Gm-Message-State: APjAAAXIvS+tWcmAOHLlrXk2k7Dtytpz8n8cMZv25KR+CXD744AJWWPs BFuz3CqTc+O3ikbEKpmacf/ylm3d X-Received: by 2002:a17:902:24b:: with SMTP id 69mr5648838plc.203.1573678212948; Wed, 13 Nov 2019 12:50:12 -0800 (PST) Received: from 42.do-not-panic.com (42.do-not-panic.com. [157.230.128.187]) by smtp.gmail.com with ESMTPSA id w62sm4464327pfb.15.2019.11.13.12.50.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2019 12:50:11 -0800 (PST) Received: by 42.do-not-panic.com (Postfix, from userid 1000) id C065C403DC; Wed, 13 Nov 2019 20:50:10 +0000 (UTC) Date: Wed, 13 Nov 2019 20:50:10 +0000 From: Luis Chamberlain To: "Robin H. Johnson" Cc: Drew DeVault , linux-kernel@vger.kernel.org, Greg Kroah-Hartman , " Rafael J. Wysocki" , ~sircmpwn/public-inbox@lists.sr.ht Subject: Re: [PATCH v2] firmware loader: log path to loaded firmwares Message-ID: <20191113205010.GY11244@42.do-not-panic.com> References: <20191103180646.34880-1-sir@cmpwn.com> <20191113005628.GT11244@42.do-not-panic.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="Kj7319i9nmIyA2yE" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Kj7319i9nmIyA2yE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Nov 13, 2019 at 08:19:07PM +0000, Robin H. Johnson wrote: > I have two uses cases overall: > - log so you know exactly when it's loaded successfully (great if > loading a firmware causes your system to lock up a few seconds later) Then you can change the driver to confirm this, not impose every driver to do the same. > - at some point in the future, being able to query what firmware was > loaded in the past, and esp. exactly what version/data was in that > firmware file. Firmware data is opaque to the firmware loader, as such details to extract generic information about firmware details can only be done by the driver, which could decode the firmware information. Many drivers print these details themselves already, if they want it. A generic interface to let us query *all* devices and currently loaded firmware through the firmware loader would only be possible today for firmware which requests (the default) caching of firmware upon suspend/resume given that we keep the device / firmware name pair around prior to suspend. For those devices it could be possible to extend the firmware loader with a driver callback which can extract firmware details in a generic codified way. To support *all* drivers though, in a more clean way for this, a separate but similar list could be kept which enables one to do this. Such items would be torn down upon driver removal. But that would then be an opt-in new mechanism. Luis --Kj7319i9nmIyA2yE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEENnNq2KuOejlQLZofziMdCjCSiKcFAl3MbHsACgkQziMdCjCS iKd3Nw//RxzcY2Mjyw2f+UtCBV8rIRfl5oyu4HTDDyy0DnCjL0zBQtWqIdTkP4oI jYd6QnYDRO929sBkagad6c5tWTKd9kup8cpyrpZsRZ/FtYoo/0QC/Jyww1pea2gJ J/aKwHpBti4lKTz5dwqWM5Vh2EVyMhQmNeMYQiXc03FhGDaFa6RRIjdkWsTQdfjK rIIj2dWiquzVwUadro4TfLPU2ZLd06vBwG7dO1FSd7IPlFMxslz+uyH2udND2NTf hEZXonNrgoDm6nfv8ZrQWRVQdb2efg5d2K5EAWS2HWz6dzemL7FFJaSxtKf9Gbsi c4cdpWGKBKsQmGSG7+Cylu2W0qQvYFzYlKVb37s8eozWPRfQPh0P9KY/QHqrPXtv avQe72l1uht70/LwBP7Q8BT1UqberV/waqqY5xLRjyntOkUnUbgyf3ztUMGZTvTj YlBVil3fpLzWtgIL527toPD+49ntQ1c0+sxryvlUg8LfWm4VxmT4aJKfIYMLIvbR 49qy/ouUqmz4iL3h0KplqEVnVvTHRdbY4DZ0DOfcT2DRc4sCjqjKDJ0odrskuNDf rHnTqjU0QasgMOeIhXQLoiUK7wr1fWJZ4/JIet2sewi9UNPhEvPMtQLC7TzXppfF 7fj2/ZxjdKh1Gxe+KDm2M0omMj4bqJJJMny4da+yftmBY7fzJqk= =sLKK -----END PGP SIGNATURE----- --Kj7319i9nmIyA2yE--