Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp3125748ybc; Mon, 18 Nov 2019 09:55:35 -0800 (PST) X-Google-Smtp-Source: APXvYqx7EV+0gFl8Dsel+5XCw4bDSWf8VSlJqS5TEtwi15QwOjYhBOLppRJPCgyvcTbaAmdIiC/2 X-Received: by 2002:a17:906:e297:: with SMTP id gg23mr28905272ejb.41.1574099735035; Mon, 18 Nov 2019 09:55:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574099735; cv=none; d=google.com; s=arc-20160816; b=JlBJ761h2KyPu+F13wLOH7B9IFpcuKJvNxqFTjmRHSsf8zGL/TsuF+AWRr7kjpH7IE RTpWGQOPv159haHeGOUWqDh/rTtRrWvDIZZ5MKFeASgZKJGpLts5urVxXba4ZB6xlVlS Zq8faPIxenVtOiNrfSEF3sbkVsDasc2xhgUTqUO0jwhWgGwJHmJYidajjXowoGGnw2br xajHoAK3vRz/wQCFS8xde6Thre4S8TVgKNBhqOp7tZoMmvcHIRK3ORAQEiN1Hw0xb5RP k9kg+VMkAxKrQZTUWKcmJw0LGlEq5ylZRXebZfPzU4WirdCJZYwJOohtThmzLlB3zSmB kdvg== 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:dkim-signature; bh=LghOZTpTs8f6WSO8T1+TljVk5v3xTM9zHdapo+U6wnM=; b=Xq9PTxk6blFie9z4F6RWq7yZmkWWMwR8ZG2G1dMWBfh2Gbl5cZcEkZhmg+uhnAMV83 X0Xk+8eFGS3HZfpDBCWfAhtkfv3KVBIuz0iuvyCZ+PAhZFlWkAqm/CjS0jlj9mGaUuQu V576ThAA3BO+Q0IEuWanyXZSuaVTq1p+Ske7jdKP3SR/4mDu7xGmtKwLWCDolK6gP/Y9 IWS9jnqCR4k1VzFVZbCSnS6b0+ujLKxPFQWs+jinVihTc+aTS+6UoEmJO7TX8zq3JTid XNB3hr3BeDzSzOWpNUxxzoZjBBmWjwzXH1laS1biFK6i27o2vv3WfVNWYJ/IKy4mk/wb fkTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=hXYTo37l; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si11927542ejq.189.2019.11.18.09.55.10; Mon, 18 Nov 2019 09:55:35 -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; dkim=pass header.i=@kernel.org header.s=default header.b=hXYTo37l; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726962AbfKRRx1 (ORCPT + 99 others); Mon, 18 Nov 2019 12:53:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:41154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbfKRRx1 (ORCPT ); Mon, 18 Nov 2019 12:53:27 -0500 Received: from localhost (unknown [89.205.134.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id C725521D7A; Mon, 18 Nov 2019 17:53:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574099607; bh=IcSOwVKmLuKmo7u5Mvb/UEAyIjJhWl+5hSzY+nuG6yA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hXYTo37lu/39G6GjfYUjFHCvBhsC4D2NaKVBQK8gCYd+DjLWXLgUKP6FDEY2gOJFK HWhPJiO1WGXAaCXI9ObGdshatVlz8iqH6d4WNiPQpv2qsBcSHNc7JNcbY7zHCxtslN UUMYTjsXUls172Y4frryqdf8uoUuRAaOe3yCCcXc= Date: Mon, 18 Nov 2019 18:53:12 +0100 From: Greg KH To: "Robin H. Johnson" Cc: mcgrof@kernel.org, linux-kernel@vger.kernel.org, sir@cmpwn.com, ~sircmpwn/public-inbox@lists.sr.ht, rafael@kernel.org Subject: Re: [PATCH v3] firmware: log name & outcome of loaded firmware Message-ID: <20191118175312.GA602012@kroah.com> References: <20191117234734.27101-1-robbat2@gentoo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191117234734.27101-1-robbat2@gentoo.org> User-Agent: Mutt/1.12.2 (2019-09-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Nov 17, 2019 at 03:47:34PM -0800, Robin H. Johnson wrote: > It's non-trivial to figure out names of firmware that was actually > loaded, add a debug statement at the end of _request_firmware that logs > the name & result of each firmware. > > This is esp. valuable early in boot, before logging of UEVENT is > available. > > v3: > - Log at dev_dbg level per maintainer. > - HOWTO: Enable at boot via kernel boot param > dyndbg="func _request_firmware +p" > - Credit to Drew DeVault for parallel creation and help promoting the > idea. These "v3.." lines need to go below the --- line. > > Alternate-Creation: Drew DeVault Is that a valid tag? You can have co-developed-by (or something like that, read the documentation for the real name), but I have never seen this one before. > Signed-off-by: Robin H. Johnson > --- > drivers/base/firmware_loader/main.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/base/firmware_loader/main.c b/drivers/base/firmware_loader/main.c > index bf44c79beae9..84a879608ca4 100644 > --- a/drivers/base/firmware_loader/main.c > +++ b/drivers/base/firmware_loader/main.c > @@ -791,6 +791,13 @@ _request_firmware(const struct firmware **firmware_p, const char *name, > fw = NULL; > } > > + /* Provide a consistent way to capture the result of trying to load any > + * firmware. As a potential future improvement, this might include > + * persistent state that firmware is loaded (or failed to load for some > + * reason). See Message-ID: <20191113205010.GY11244@42.do-not-panic.com> Just provide a lore link with the message id if you really want this. But really, this type of thing belongs in the changelog text, not in a comment, right? > + * for background */ > + dev_dbg(device, "%s %s ret=%d\n", __func__, name, ret); That does not provide any real information as to what is going on, why doesn't ftrace suffice for this? thanks, greg k-h