Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp4817560rwb; Tue, 6 Sep 2022 13:14:09 -0700 (PDT) X-Google-Smtp-Source: AA6agR4fGDO26+nG7pl7aaaszvGyIpp76/MD4YbP4JL2r6+LdtcM/DPKnr39l2WH0rK6W4hJgMTX X-Received: by 2002:a17:906:58cf:b0:750:524b:e694 with SMTP id e15-20020a17090658cf00b00750524be694mr121562ejs.472.1662495249239; Tue, 06 Sep 2022 13:14:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662495249; cv=none; d=google.com; s=arc-20160816; b=ON0iVbmSBvXISQIS8o92jVDopwpJyadRHv0g26SrM8+drXSfKdKn1sTJk4Gosw0uIu YAHRHJTI41JztfvW0jYOqYAVtIzflXNOFfzySItlsanM/qA0QR6PUn3VjOjOCrdx+c7q aC5NYsR0c4csOXvaADVRSJsnCML/qoo15MCaXjLy898AyjI3q5jzBBMgkhm0SWvTHBTB E+6ezuX27d/ffT9fTJvfjbDMtiQM9jaLqrlW2Ys2+phRiju+oc6sdfMoxWaalxyO2gNT QmB3TKfpEu7edMDWb+F0j/rtbcAF+9/F6XRTcCgXlxKYFNcaQAO9wUcr9qQayYTWtvB2 /JBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=IBPdQANHf97tWgxor5PJdhaZzkDG3IihFINjxVsoED0=; b=GsTXGRP6L29rV4OUB0lj2+0k3d8sJI2dgcYlgAuT/prbS96zIT+y+q82HMqXD8VAOd 3fzmPZ2oKgpeDT56D/eAcqnQs3Ys+AfWNBI7G6DjI2BSMq8NRDpFKJ98IieSY2wvkfRJ Jl81ZNyUOhvdguu8ted6ooM6bs//SD54ONzGJx2v/DdmVGni/0G+cS8XbprkB5lHoCf0 CdqKeJRs8ngpTJdygq9KgBfgZNWlXaNBW8PMf5ZhJW874POjWrHDmRo7O/jpZ+bMp1Ol 7/mElFWSb6488Cx65kuG/bAM18PIYceQAiINbNURxRFM9IRyJLYXRst/8WbGGg6TNAZJ arZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tLjM42w0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw8-20020a170906478800b0074c89c5d18fsi1201201ejc.79.2022.09.06.13.13.43; Tue, 06 Sep 2022 13:14:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tLjM42w0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229576AbiIFTq3 (ORCPT + 99 others); Tue, 6 Sep 2022 15:46:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33054 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229491AbiIFTq1 (ORCPT ); Tue, 6 Sep 2022 15:46:27 -0400 Received: from mail-pl1-x636.google.com (mail-pl1-x636.google.com [IPv6:2607:f8b0:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92D1179A72 for ; Tue, 6 Sep 2022 12:46:26 -0700 (PDT) Received: by mail-pl1-x636.google.com with SMTP id io18so3617885plb.10 for ; Tue, 06 Sep 2022 12:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date; bh=IBPdQANHf97tWgxor5PJdhaZzkDG3IihFINjxVsoED0=; b=tLjM42w0h79oeklJLb6AxmbcJsxdaIdxPqO8qOG7XxoD7I85xW2QcdBt7Lxb0lDdnd 9a/DSLKMRsB0+/Gd1u0nvnI/4i79IFtQDsX3uBISupvrvBBVmw0LfkXv7ezkBzGHQ9jw hHTPnqnfx8FAmeNJ7IQuOsCOiQKP1pczrX4HE3JbXpryGkncjDWde3KOG1Z2OpSY++B/ fJrycDcdz7R68wWzCM13qah3X/Pv9LBfeXeO1Aff1pO2VqwTW8cHY11+3PuSGn/hc99V OuWD5c6lOhMfaz81qoO07RT/npj5jE52BzsLt6DHxlJqoHl5/s2lhdJiVxdBXyyfkPOA au3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date; bh=IBPdQANHf97tWgxor5PJdhaZzkDG3IihFINjxVsoED0=; b=DkjqQZGOSmYypwAqdFscKJ74+pXa3014EkeLAxQ28o/GOgYrfq6L3dZcc+KpEUey3S X56wtI+bMd4KwA18KRW012iOQY/HGcXPHLqRWj+F+U+O/eqPGhxpWza2zt1qXw7Dc3W9 qZmlcaCm6IwDdaAk5yNOXzGPMoYbBrzpQokLLdjfOTxMQbrlfwroGT26mtaNP8XwAHa5 sK1L1r7SuVOKwpezUBXuWYb3ncVvbaqksqUW+FUhTFC/FOJgB/dIYcJmtrLTaZ8RG5gL IZ57pwrrtN3+gQN3b2fKgrsabQxduLN7m0Z7VgxOZPI54kdPWMqHTv5mLv9NZ+MKWWMV 4TPg== X-Gm-Message-State: ACgBeo0SIdaTQ1QMvf3+qS9IkkqinN/xJUFj6kAurLjySloOic2iw7uu sMTJh9B5vYHcT+pWQFI5rfs57Q== X-Received: by 2002:a17:903:230d:b0:176:d7ab:cd1b with SMTP id d13-20020a170903230d00b00176d7abcd1bmr221477plh.172.1662493586079; Tue, 06 Sep 2022 12:46:26 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id l11-20020a17090aec0b00b00200b12f2bf3sm424007pjy.51.2022.09.06.12.46.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Sep 2022 12:46:24 -0700 (PDT) Date: Tue, 6 Sep 2022 13:46:22 -0600 From: Mathieu Poirier To: Krzysztof Kozlowski Cc: Bjorn Andersson , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] remoteproc: report firmware name on load failures Message-ID: <20220906194622.GB64477@p14s> References: <20220831161736.749932-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220831161736.749932-1-krzysztof.kozlowski@linaro.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Aug 31, 2022 at 07:17:36PM +0300, Krzysztof Kozlowski wrote: > remoteproc error messages like: > remoteproc remoteproc0: request_firmware failed: -2 > remoteproc remoteproc1: request_firmware failed: -2 > are difficult to debug as one actually have no clue which device > reported it and which firmware is missing. Be verbose and print the > name of the failed firmware. > > Signed-off-by: Krzysztof Kozlowski > --- > drivers/remoteproc/remoteproc_core.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c > index e5279ed9a8d7..71cd7ed7a970 100644 > --- a/drivers/remoteproc/remoteproc_core.c > +++ b/drivers/remoteproc/remoteproc_core.c > @@ -1923,7 +1923,8 @@ int rproc_trigger_recovery(struct rproc *rproc) > /* load firmware */ > ret = request_firmware(&firmware_p, rproc->firmware, dev); > if (ret < 0) { > - dev_err(dev, "request_firmware failed: %d\n", ret); > + dev_err(dev, "request_firmware %s failed: %d\n", > + rproc->firmware, ret); > goto unlock_mutex; > } > > @@ -2023,7 +2024,8 @@ int rproc_boot(struct rproc *rproc) > /* load firmware */ > ret = request_firmware(&firmware_p, rproc->firmware, dev); > if (ret < 0) { > - dev_err(dev, "request_firmware failed: %d\n", ret); > + dev_err(dev, "request_firmware %s failed: %d\n", > + rproc->firmware, ret); That information is already available in sysfs but if you are really keen on it please do the same for rproc_trigger_auto_boot(). Thanks, Mathieu > goto downref_rproc; > } > > -- > 2.34.1 >