Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5367172rwb; Wed, 7 Sep 2022 01:28:59 -0700 (PDT) X-Google-Smtp-Source: AA6agR4h7rET083C0ljMigf7n4ArnIz4lKskoDR4xu6Z6+8sIWPwIBKo4zdJxz2GKvmisSU9bUWM X-Received: by 2002:a17:907:2cf1:b0:73d:d962:86d8 with SMTP id hz17-20020a1709072cf100b0073dd96286d8mr1625986ejc.121.1662539338833; Wed, 07 Sep 2022 01:28:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662539338; cv=none; d=google.com; s=arc-20160816; b=ObqSbWa7k7qEAWrkSKd1+wWRngAiz2XulOIfhmLNJxoRwdMFbuVcV1NOePuoaPF+4y KnjJo0G07/zO9HzADj11DSlK28LTK0OpUZ88MsZEa485iHxLGF7SNBdqFitMovlpSd5S gjYbJDJ0Uzc3Ilo1w8QagniByppagp9D1VEilKyWSEryfnMGtobEMMkaRRwdEcReVpqG vfbxGY3RdOkLq/TOdf8jab6G5sATnbwitYP8rOGJCkpSMfNqUFEULHhCQBGeuHpjnBVm AVe7owqxo0FYf4BT0mOMRmfvAy43HUcoHCXJFOTBRD3GHcGwuxU+0PsHBAczuTIZhE9/ MARw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=PMffZexfhPxUf0YHZ8IhoN7MwL1ZPf0n44VkkEDS57M=; b=Fez/No3CiHM5s8VESTb47LStwcHZbHlQgsXDYUJ2MWz2yJMoo4aA3CFlc5pC7Yb20H DVCvLlkOsByT5JMeZEpIILtT9AUUSfl/FWm81HsG1HvAA2DvX5rP0KaDMISu+6j2D2A3 cS6dMPDWKZFJlCrWw+KS+1+VgDJ8pUySnL8nkCpfWe5noOw3q1PIkkrLIhU/fuwCNnDB DRWh/Jan8B3wcZV3MxzplqpXHnDPSwV8J2TsD65Pj0wzujJuTNpuizbPtMp9d8jdSuZM QVZ6Fq6QnB1sIWn8znoo1izRTcukd2uQCpYOnXF0dwda3RwshteaG7CiVKouAfYEWWqq 6WcQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yYH6ZJP1; 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 gs36-20020a1709072d2400b00741ee06f0e6si4741632ejc.416.2022.09.07.01.28.33; Wed, 07 Sep 2022 01:28:58 -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=yYH6ZJP1; 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 S229824AbiIGIXj (ORCPT + 99 others); Wed, 7 Sep 2022 04:23:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229649AbiIGIX2 (ORCPT ); Wed, 7 Sep 2022 04:23:28 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE73AA9C37 for ; Wed, 7 Sep 2022 01:23:26 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id z25so21274879lfr.2 for ; Wed, 07 Sep 2022 01:23:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date; bh=PMffZexfhPxUf0YHZ8IhoN7MwL1ZPf0n44VkkEDS57M=; b=yYH6ZJP1hi7hz49sPr0A7ZzxmO+zviqS3k4RQfh7vETXvcV+RtB8a68Y1PvcZSocoE aJKF76dJdcbpQ7uuFSRU3UpQyjj2/jDe4sC6Uy9EQQ/5o2wpFGTalTiKmIcZ7wEJsNNx 4j1bF8ySH8V47EtLL/NhRr8vbNgnJrZAQMnD+F4nqge42pwNjPDD4EJRELgw0XXzkJ08 J1Ygh73Vq2NCFycDpuo1Jcm8m12CUTVPQGi1oAolgyUKgU77+oDm98/IEir++HoW9btl nMtsmsYMkWyfVjMBBi8Mux7KY0wKQ7KnfqMO+2ofOFIInL4eIyUz4V1EaNoCrMbyHvKA LEHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date; bh=PMffZexfhPxUf0YHZ8IhoN7MwL1ZPf0n44VkkEDS57M=; b=cxbBXnW5mrC2TeZJRv6Cewr//+D0RtAAXdnMJS9z89Lkiern5zpySZNKfDe1e/ubcU +2MypeK8LSCy1PI+2i1mUrbEKQgH9vxE7YilRECJUZkhMkqv26hTS8gjFcxnspl5gC/j xJzbn9Pc+lzToE9cgpAaL9ipKrLQMBv4QsuarPF74N8bulpS4O1fNUEHQCI4rdX5126G in7A/1FyAppOZETCxMB2576vctPv3yt3CHzZAmY37DQ2mvGxxMsH3lDUpK0K4PFvayFd 0wlje2elqh7Fj/eVpY8yOrebU9LewOHwFZJ4IZRROT1x/3TOIkmR3MxNY/2PgXM5DeO2 CtSA== X-Gm-Message-State: ACgBeo1fOdcx2xTdb+DaadRdH+aNacBZrottKkgpXhlSYOiNXELm2Nvq GnXxRMDRUFeirny3AQSVZkNf+Q== X-Received: by 2002:a19:380e:0:b0:497:7968:e789 with SMTP id f14-20020a19380e000000b004977968e789mr715368lfa.242.1662539005327; Wed, 07 Sep 2022 01:23:25 -0700 (PDT) Received: from [192.168.0.21] (78-11-189-27.static.ip.netia.com.pl. [78.11.189.27]) by smtp.gmail.com with ESMTPSA id g5-20020a056512118500b00492df78f311sm2312204lfr.57.2022.09.07.01.23.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Sep 2022 01:23:24 -0700 (PDT) Message-ID: Date: Wed, 7 Sep 2022 10:23:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.13.0 Subject: Re: [PATCH] remoteproc: report firmware name on load failures Content-Language: en-US To: Mathieu Poirier Cc: Bjorn Andersson , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org References: <20220831161736.749932-1-krzysztof.kozlowski@linaro.org> <20220906194622.GB64477@p14s> From: Krzysztof Kozlowski In-Reply-To: <20220906194622.GB64477@p14s> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,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 06/09/2022 21:46, Mathieu Poirier wrote: > 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 Hm, it's not in deferred probe reasons, so where can I find it in sysfs? > but if you are really keen on it > please do the same for rproc_trigger_auto_boot(). Sure. Best regards, Krzysztof