Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp778324pxb; Wed, 13 Apr 2022 12:08:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy1ns1VbOC0xqqUL5bx9lSzv5xMabgkqLo9ZJeoWM0gWfawf3zz03YTrJRCLJ17qASCbXzH X-Received: by 2002:a05:6402:4391:b0:419:2f2d:a1da with SMTP id o17-20020a056402439100b004192f2da1damr45262100edc.298.1649876890965; Wed, 13 Apr 2022 12:08:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649876890; cv=none; d=google.com; s=arc-20160816; b=0gSX+SmiQZZ5+Fc7El618xJ/wyYmoAePU3nGjuMAqR1Ab9/IAbVzDJrllv57Cw+J/q kloq7aL1Pr+465ZyuFu/o+4E6YOooIZLFxACl2wQTXZKD0XMXfpuLm8Y56EdrlUrdneK eQ3ZvtGfpRa5agzkJq/FIF7ccfXu58shUIZqeygv0NAEglCsR+lVo974exuuVvsopFD2 HdiPaZ60LOOm3yD0lLfZ9oElF+ZY2YDfFpg1xRMhfuVfLXBoXbIGY/qqdTd4hj8rxPZZ rPIEVcoup6kBLtubEbJoXFUmkSnrDQn5eCJ7vlOgTSOjHTeqlr0ZcJWLHYt957a6pKAW SUzQ== 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=oPjJy3dQKXL/NVMdEMFDpnuu4GwZdQiN6uOaWjrqUgM=; b=GT2C/cWiMuR7JLj0blWp2akTAmFnlq6fuZT/wghldzxc5etp6t4jRhRqyuYDa1X5Bi 77otuObYg6rGtcaTqIlBfJM8ZfYWUb9KB9L+Pf2038HF7trLaQEhbiEcE8pUHfrkZhdi bZi8uQ9asfIDDj9Fq1j00uZTKUF187UZ5UveGMQdqmQj27pkDz+WrF6Tbh9SF0RDMm5j hN5PsD0WcDDwC6fce3w+kdMb7vjX4cwQZP73p6oCd0jINh81fMym1HcfSwCxiYXia/BW aaq125wApSuiKxvXliDdKWwXhjFEEgXPa2dguNjLB7t0/z7OW7H6LxkmYNto2+XEuL6t fa3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AA6I0Xev; 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 f9-20020a056402354900b00418fc3fa036si2348496edd.186.2022.04.13.12.07.45; Wed, 13 Apr 2022 12:08:10 -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=AA6I0Xev; 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 S236117AbiDMRaq (ORCPT + 99 others); Wed, 13 Apr 2022 13:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236470AbiDMRan (ORCPT ); Wed, 13 Apr 2022 13:30:43 -0400 Received: from mail-pl1-x630.google.com (mail-pl1-x630.google.com [IPv6:2607:f8b0:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A584B6C1DD for ; Wed, 13 Apr 2022 10:28:17 -0700 (PDT) Received: by mail-pl1-x630.google.com with SMTP id y6so2545039plg.2 for ; Wed, 13 Apr 2022 10:28:17 -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=oPjJy3dQKXL/NVMdEMFDpnuu4GwZdQiN6uOaWjrqUgM=; b=AA6I0XevM8oRDN4X6QpC2zn0EDmfUSOh0wPDMo7EAoisQ4gpanTJOM/J/IgotusHeG pIWQz/2UrFV3BIZ16i6WaD4U9iUIO3GIV8P5FgTikbYexkuD5SUM+cICxG6Zamg6DOL5 bvIkpd6EJMdpd9185XVU5KsKltnBvI5KMDnncM8p+g5yH/yv9Zigb7i48PvvBBgHOhaR 98LGwsGGwQtBAVJe/dUn/2+ur+wGraNR2a6+uk73CI/mGec59GMXAE+8TkdE4rUlNVcu 7DduURr4pL6qohv5csvfNJHmJWgKNPZMMahVAFHb7BHLZWT+pkui0Y8f2gSWUpGZRPfH Sqrg== 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=oPjJy3dQKXL/NVMdEMFDpnuu4GwZdQiN6uOaWjrqUgM=; b=ZuTXgZJ5z3w4TnobaoKcnktV8aZHFviMm2V5m/SYyVhf41njFfUTeJlC55YEfp7kKv q3gtLf6rNe0j3X5o6L8DHDmQDFqIJcTsZJ5VNafU7fHtEoHCTnuOyXLflR9Ujfw8pOh0 WA5fXLEiw9o2RsvBSF7lQGwN7YZ9lZ0PjleIwQrfZwEfeXdQKgOIQ6rkWcLMv4jrkDkq EzSAxVo/i0yIiYoFXFwIp4nuPWAKdiTO2YLr0YIQelYeMNq9DqW5gvLw//40tT7q/bw9 0sQ29TokZg72o4VJlMQWVauuhL8pkIO6Y7WYZ0j9Sk1sNKDWnOLxmh8R8xmC0pwwLZ1Y qOVQ== X-Gm-Message-State: AOAM530wZH7ujR0R9R9a1L5zF5GeH9+GmNUeqy61HYBRBzRpkPmKStBS t8m3V66Xu8RqiAdXFS4u8BRv2w== X-Received: by 2002:a17:90a:eb0e:b0:1cb:7d07:52f6 with SMTP id j14-20020a17090aeb0e00b001cb7d0752f6mr11993279pjz.66.1649870897150; Wed, 13 Apr 2022 10:28:17 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id 26-20020a630f5a000000b0039d83ab8655sm6778661pgp.0.2022.04.13.10.28.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Apr 2022 10:28:16 -0700 (PDT) Date: Wed, 13 Apr 2022 11:28:13 -0600 From: Mathieu Poirier To: "Peng Fan (OSS)" Cc: bjorn.andersson@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-remoteproc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, shengjiu.wang@nxp.com, Peng Fan Subject: Re: [PATCH V2 0/2] remoteproc: elf: ignore PT_LOAD type segment with memsz as 0 Message-ID: <20220413172813.GB547134@p14s> References: <20220413033038.1715945-1-peng.fan@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220413033038.1715945-1-peng.fan@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=unavailable 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, Apr 13, 2022 at 11:30:36AM +0800, Peng Fan (OSS) wrote: > From: Peng Fan > > V2: > Add R-b/A-b tag > Drop inaccurate comment in patch 1 > > i.MX DSP firmware has segments with PT_LOAD and memsz/filesz as zero. > It is valid case the memsz set to zero according to elf spec: > https://refspecs.linuxbase.org/elf/elf.pdf page 40 > > So we could let remoteproc elf loader handle this case, then no > duplicate code in imx dsp rproc driver > > Tested i.MX8MP DSP and M7 remoteproc > > Peng Fan (2): > remoteproc: elf_loader: skip segment with memsz as zero > remoteproc: imx_dsp_rproc: use common rproc_elf_load_segments > > drivers/remoteproc/imx_dsp_rproc.c | 95 +--------------------- > drivers/remoteproc/remoteproc_elf_loader.c | 2 +- > 2 files changed, 2 insertions(+), 95 deletions(-) > I have applied this set but as I pointed out in the previous revision, it will have to be backed-out if something breaks. Hopefully it won't get to that. Thanks, Mathieu > -- > 2.25.1 >