From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E87B9CA9EB0 for ; Sun, 3 Nov 2019 17:55:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BC02C2086D for ; Sun, 3 Nov 2019 17:55:20 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=cmpwn.com header.i=@cmpwn.com header.b="kFhdAD88" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727962AbfKCRzT (ORCPT ); Sun, 3 Nov 2019 12:55:19 -0500 Received: from mail.cmpwn.com ([45.56.77.53]:37738 "EHLO mail.cmpwn.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727758AbfKCRzT (ORCPT ); Sun, 3 Nov 2019 12:55:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=cmpwn.com; s=cmpwn; t=1572803718; bh=MGuxCWQzSNeVxIqwqCpa7bikLB+K0iCdvBhW6Ol153o=; h=In-Reply-To:Date:Subject:From:To:Cc; b=kFhdAD88qqxarFQEazbEIieC/wU2asm7jGSTmfIuNiAhPbyk4+B5Q9883qt1UiPnC kZH1pFJrnEMo3gMyka7PrtVaE5otIewtR6GSzgTrnT6Xj7B3pEFRxX90jv/P4JZTFM 7/RQ09qp05zA+2m+wpqQeUY+lXbvRyWdlCdqCO6Q= Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 In-Reply-To: <20191103175011.GA751209@kroah.com> Date: Sun, 03 Nov 2019 12:55:18 -0500 Subject: Re: [PATCH] firmware loader: log path to loaded firmwares From: "Drew DeVault" To: "Greg Kroah-Hartman" Cc: "Luis Chamberlain" , , "Rafael J. Wysocki" , <~sircmpwn/public-inbox@lists.sr.ht> Message-Id: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun Nov 3, 2019 at 6:50 PM Greg Kroah-Hartman wrote: > And it's totally noisy :( >=20 > Please just make this a debug call, that way you can turn it on > dynamically if you really want to see what firmware is attempting to be > loaded. The typical setup won't need more than say, 10-20 firmwares? On my system I need 13, and 12 of them are just for AMDGPU. In the 20 minutes since I rebooted to this kernel, it constitutes less than 1% of my dmesg volume, and will only get less so over time unless I start hotplugging stuff (in which case, their respective drivers are likely to make noise, too). In practice, I don't think it'll be especially noisy. On the other hand, enabling debug logs just to get this information would generate heaps of noise for a little bit of signal. This use-case isn't the exceptional case for me, on my systems I only install the firmwares I need so this is something I would reach for every time I set up a new system. > Also, if you have a 'struct device' you should always use the dev_*() > calls instead, which will show you exactly what device is asking for > what. Understood.