Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1584632pxb; Thu, 14 Apr 2022 09:11:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI0tNy3aUqxYYe44Y+PgoUutPhXhvbutTIKw5kQK/sQcoGxbafKnbgeb1spMNmHCnsdPZ8 X-Received: by 2002:a17:906:2bc1:b0:6cf:d009:7f6b with SMTP id n1-20020a1709062bc100b006cfd0097f6bmr2885801ejg.17.1649952655714; Thu, 14 Apr 2022 09:10:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649952655; cv=none; d=google.com; s=arc-20160816; b=YI3FLI1ynhr6U5WYtHP38g36GZ1khN+tWlbkdH1ECEK0TOAVcWkS+VImRUCZBCj2Ep 1S6hjglZhWSWxdbIrPwNq0L0nAlNZ3HXJoyXVvvcR4cc9P/BEZfZHC1S6eo9E6Nl9kn1 uf4NNF1esAnH2tr6wobNbAfi1n6RRieohgjJHYeWaU4eeeIa5vCbVi0gvjEGvHE2mlyv bMsSk1kqCn/lHahrdJv29vygJlfDe8v5OQumdqNm/C3q61YN6MM/NESKLk6Me3K+9gYv J/bpHvJ/+2F7wiU3TfsV+bP7lCbluoSNEiHQa2BFu9UA6sYTvjzeEPqltGVUcFdH8Wvn +OsA== 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=Svs19TUafKQm/jCU2RrZAsQ5QwXjh0iyJjgadXLqin0=; b=K8c1HPADbDHYV1vIrutjMGNf19V4VnQ20OFUqxxKnYOzCbpKGSJ4QakWto2voFHpgO 5awHPLLEWPSru7hLz2qSUM7F9Pz9OS4PKAm743yJ9XiGs4g0HLS2LfS39ozc1908/EI0 qdpHWYZm4XbG938Q6W9qiAi9MZbq0FcXI3HTiYGyCUz2uNJ1MIfSXCewzu0A1H0zvlJP GciDOVPwemwS4DM3RSv7Zyub+3+jhRyIZ1Gf7aibQ8cANUGiADVsDoeuXuk3uZST1aQA lTN2+lwJdN6FneXeiUen1pKSe7ytArH5uHXJme0DZqhydtH7r+4+3hHvcnsXuuv+ufep fdnQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xLqG+MWj; 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 ah9-20020a1709069ac900b006e8007de332si2375107ejc.224.2022.04.14.09.10.25; Thu, 14 Apr 2022 09:10:55 -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=xLqG+MWj; 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 S237625AbiDMSDc (ORCPT + 99 others); Wed, 13 Apr 2022 14:03:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237604AbiDMSC2 (ORCPT ); Wed, 13 Apr 2022 14:02:28 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E3483FDB0 for ; Wed, 13 Apr 2022 11:00:04 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id n8so2618054plh.1 for ; Wed, 13 Apr 2022 11:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Svs19TUafKQm/jCU2RrZAsQ5QwXjh0iyJjgadXLqin0=; b=xLqG+MWjB+1ONdwrTD0/w1/RC8Cfa0ESVVwZNBb5TYNlChKDlGlurbuIAhq0g3JOLY HBalb10a9q5otPR4Ue4esCZJhdzZn3erpsytC0MtHM/NGjzOEojXQxx2TbJoL5PJ8x1n UJsuKYLvVWQiFf8eN47eWokol4IH5IeBctvKmR1hR7FpwfyJJ0VYotDpdg3xdere/5Du sbagu6ImkoKzwNfliSHrNBSzt0HwvxAWijAdaBWaHf0ne/1d0iEFTdmT2otr9T8AEKAV zO4XuNE+MQ7TquLYInmTp5lGFGMxdCBFaEsle5Ae7QbwHAS//6uDL6aqvyYwPcfU7nxj X8qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Svs19TUafKQm/jCU2RrZAsQ5QwXjh0iyJjgadXLqin0=; b=zIJZ8YlaySGzUOxwpG0x3XbhSkrYL9wKUJ0LzWTLfy8pVtS9ltOd2amrs9bzwo+L6F apDXq/L0nXgLHg1rzWioluVLDAq0X0sCQVzJeturEXa47DyeF5vl+azZMRMVauKekbjz A3dDANFgvfxWhlghcdZcwi7DT8AVxYdYmkA83vRoFxhsz2F9ofNu/p766tfMMPYOc11h /vVsf4CYkVtieaaPTxHcrCfXZ9DF4ecyBv8sGChm1L/p3VT0Sgsc0ZH9sS8jyl9M2mA1 UkqGDA7+7Q4Jj+6H7AT+wtgIu4JRY4RPP7IL+dW0VxtT5S2mQ8IgQHyG7MWl/2iB3F5I x4iA== X-Gm-Message-State: AOAM530r3WlLFhcwEFISfsGMy3H1DInVzzjqjOSF2LAOEjYNbOwiLRJK 6XiQsq0GYFlklOob5xAfxZfTgA== X-Received: by 2002:a17:90b:384b:b0:1c7:41fd:9991 with SMTP id nl11-20020a17090b384b00b001c741fd9991mr12251421pjb.199.1649872802844; Wed, 13 Apr 2022 11:00:02 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id k5-20020a17090ac50500b001cd5ffcca96sm1930645pjt.27.2022.04.13.11.00.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 11:00:01 -0700 (PDT) Date: Wed, 13 Apr 2022 11:59:59 -0600 From: Mathieu Poirier To: Daniel Baluta Cc: linux-remoteproc@vger.kernel.org, bjorn.andersson@linaro.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-kernel@vger.kernel.org, shengjiu.wang@nxp.com, daniel.baluta@gmail.com, Daniel Baluta Subject: Re: [PATCH] remoteproc: imx_dsp_rproc: Make rsc_table optional Message-ID: <20220413175959.GC547134@p14s> References: <20220331103237.340796-1-daniel.baluta@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220331103237.340796-1-daniel.baluta@oss.nxp.com> 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 Hi Daniel, On Thu, Mar 31, 2022 at 01:32:37PM +0300, Daniel Baluta wrote: > From: Daniel Baluta > > There are cases when we want to test a simple "hello world" > app on the DSP and we do not need a resource table. > > remoteproc core allows us having an optional rsc_table. > > Signed-off-by: Daniel Baluta > --- > drivers/remoteproc/imx_dsp_rproc.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) > > diff --git a/drivers/remoteproc/imx_dsp_rproc.c b/drivers/remoteproc/imx_dsp_rproc.c > index 2abee78df96e..987ab1add761 100644 > --- a/drivers/remoteproc/imx_dsp_rproc.c > +++ b/drivers/remoteproc/imx_dsp_rproc.c > @@ -802,6 +802,14 @@ static void imx_dsp_rproc_kick(struct rproc *rproc, int vqid) > dev_err(dev, "%s: failed (%d, err:%d)\n", __func__, vqid, err); > } > > +static int imx_dsp_rproc_parse_fw(struct rproc *rproc, const struct firmware *fw) > +{ > + if (rproc_elf_load_rsc_table(rproc, fw)) > + dev_warn(&rproc->dev, "no resource table found for this firmware\n"); > + > + return 0; > +} > + > static const struct rproc_ops imx_dsp_rproc_ops = { > .prepare = imx_dsp_rproc_prepare, > .unprepare = imx_dsp_rproc_unprepare, > @@ -809,7 +817,7 @@ static const struct rproc_ops imx_dsp_rproc_ops = { > .stop = imx_dsp_rproc_stop, > .kick = imx_dsp_rproc_kick, > .load = imx_dsp_rproc_elf_load_segments, > - .parse_fw = rproc_elf_load_rsc_table, > + .parse_fw = imx_dsp_rproc_parse_fw, Applied. Thanks, Mathieu > .sanity_check = rproc_elf_sanity_check, > .get_boot_addr = rproc_elf_get_boot_addr, > }; > -- > 2.27.0 >