Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp936201ybz; Fri, 17 Apr 2020 12:42:12 -0700 (PDT) X-Google-Smtp-Source: APiQypIM2Y6Qlb29g7cZHzOErBNcqM5CyuNqGrFpiXxAsQliSOc4QKjN91zUjT7wrVTHmKAiLeV3 X-Received: by 2002:a50:cc87:: with SMTP id q7mr4462809edi.96.1587152532212; Fri, 17 Apr 2020 12:42:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587152532; cv=none; d=google.com; s=arc-20160816; b=weDbArczqCu0XhhoNrNh8XU5r8r8mR1obXPI9PDHcISWAmtydsUT4k6aDUlqNb4kbT xeYXiCR2GrMFXDLhJvs+KbmMJx5wI+i+vIWvsGVdCUjiedlScmkiaRFlYDtbtoD7mq+n BDpE8UHrfFGFjlAVjVPhNdF23f7rRhpCNkXKIyDYJnDbDO26JRAWCVFo86XISKZyT+0A mKM/yEPruUXYJU5vU47rE3NEHZ7P/fMnUoeRz1+g3KxRAD/3DqfLzeIymDjO5z9sYJ0b NbvyCZ8HPfI5cWeB04D6YZ7wLD1X9ZnjRElDHtOupgTr6Lt2MQdoms8LNw9kIJLfsWYc 9XvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=HHki1/clwzRpcS2KonbHjBcGr0VzFjzzuxJR5A2/dPA=; b=F+7Ak/nt3xslgF01rIh8qD51nG3R/6sTsx0ROmMtPcvoTR0KyBvXoJidHUpLXG2xfE 8OFJ39IH+dxTqznjC6KAXWkEEinnTBDPUIqzpS4xXhSd317dew00zFzQjvwYWgqNiWXa hE3v1wzAXLnDoJ6UcGS+ZPwTBzwfwbV8cHnLRgFObi6FFiWHEW6dN71KDEDz3miP2kIH iqfPgObgFazpWqhC1wxZXN8hNUxaZs0Fp4mvO4GmnMVzDoyjQFUrEygjWMCYmXMaYKaD jSOta01PowCA1elQ03tBO4Ec6dB8Vqv3UBwwZXj8HKFF9asSgL1ThMucSvooIoeFQmSq jBNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r4LN2nQ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si4911780edq.609.2020.04.17.12.41.47; Fri, 17 Apr 2020 12:42:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r4LN2nQ9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1730449AbgDQTkB (ORCPT + 99 others); Fri, 17 Apr 2020 15:40:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730336AbgDQTkA (ORCPT ); Fri, 17 Apr 2020 15:40:00 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AA9FC061A0F for ; Fri, 17 Apr 2020 12:40:00 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id x26so1575363pgc.10 for ; Fri, 17 Apr 2020 12:40:00 -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:user-agent; bh=HHki1/clwzRpcS2KonbHjBcGr0VzFjzzuxJR5A2/dPA=; b=r4LN2nQ95y2i7LQKYDZSCrOF1+aJbkcHn8LCmMGH5TDF42dLiCIBWRd2P4qx3Zho14 7aTfN3Dbs/37d0JoOeKq+VExwsd6kY6dH1Qz4jilxwT/Bxh3rMmY49ZW79bjC1vl3LbT 5G2Emdx+5v6CRsbJqLe1LdQMiaww+5mxwukoE63zp0IHWuMqAVMrW0cvOky6dgc+LJVf 9skxFnsl79e9lKvrA6j0H8BAJ2xjDdU85/hC3M1AsS/J6J9ghWcEY0P21vE1V0hxUk9W xY/mmXYk0D0xNvjl70Zq17IIdmRqiJcE/c1KQoH4TyRsl5AOSMTIl4f0zau7IBIeJMcR hGoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=HHki1/clwzRpcS2KonbHjBcGr0VzFjzzuxJR5A2/dPA=; b=AqKRgq8J7c2eQzHnZehYz7dTDUJhATIN3EKImaZIcq716yHwMojYGyDz2Z8GB4OUFO D8f2oD2ehQbMNbabgJtw7Ba7lc5dQQXt4NgtmstZiH1c4dZAT4vg6NZboHJXCqiAgDrM KXayZdkDgCB8V6zLVpEKTSbORmGoFsjdvot9Lh5O8bFgm2fGCpSuqwLcPmND9PC4BMxa ecIKOJuIW00GrCbDx9Qq49TZVkw0nFWiKIoLtKI1rbCA9ZXkdaZDQWoj17c+E7mU/s6D 5wriu3xQglfz4YRgSnpgifnqZGnF1kcEXSU5ZjCEmfR+Ckv/7eKAd1jGybOlUHkDEAKM N6UQ== X-Gm-Message-State: AGi0PublofZF1BW0xAqI/dFFBPhRv2gYPjvcNKPr/5/e/btBhWFvO6aS 96WVf2M3S08LoLWvzYhv4Fwkaw== X-Received: by 2002:a63:c007:: with SMTP id h7mr4549793pgg.428.1587152399831; Fri, 17 Apr 2020 12:39:59 -0700 (PDT) Received: from xps15 (S0106002369de4dac.cg.shawcable.net. [68.147.8.254]) by smtp.gmail.com with ESMTPSA id i9sm2358018pfk.199.2020.04.17.12.39.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Apr 2020 12:39:59 -0700 (PDT) Date: Fri, 17 Apr 2020 13:39:57 -0600 From: Mathieu Poirier To: Clement Leger Cc: Andy Gross , Bjorn Andersson , Ohad Ben-Cohen , Maxime Coquelin , Alexandre Torgue , linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 2/2] remoteproc: use rproc_coredump_set_elf_info in drivers Message-ID: <20200417193957.GC6797@xps15> References: <20200410102433.2672-1-cleger@kalray.eu> <20200410102433.2672-3-cleger@kalray.eu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200410102433.2672-3-cleger@kalray.eu> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 10, 2020 at 12:24:33PM +0200, Clement Leger wrote: > Modify drivers which are using remoteproc coredump functionnality to use s/functionnality/functionality > rproc_coredump_set_elf_info in order to create correct elf coredump > format. > > Signed-off-by: Clement Leger > --- > drivers/remoteproc/qcom_q6v5_adsp.c | 1 + > drivers/remoteproc/qcom_q6v5_mss.c | 3 +++ > drivers/remoteproc/qcom_q6v5_pas.c | 1 + > drivers/remoteproc/qcom_wcnss.c | 1 + > drivers/remoteproc/stm32_rproc.c | 1 + > 5 files changed, 7 insertions(+) > > diff --git a/drivers/remoteproc/qcom_q6v5_adsp.c b/drivers/remoteproc/qcom_q6v5_adsp.c > index 2b01f2282062..8c3bd0954a13 100644 > --- a/drivers/remoteproc/qcom_q6v5_adsp.c > +++ b/drivers/remoteproc/qcom_q6v5_adsp.c > @@ -423,6 +423,7 @@ static int adsp_probe(struct platform_device *pdev) > dev_err(&pdev->dev, "unable to allocate remoteproc\n"); > return -ENOMEM; > } > + rproc_coredump_set_elf_info(rproc, ELFCLASS32, EM_NONE); > > adsp = (struct qcom_adsp *)rproc->priv; > adsp->dev = &pdev->dev; > diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c > index 03ffc6db4c68..5a7ff1092362 100644 > --- a/drivers/remoteproc/qcom_q6v5_mss.c > +++ b/drivers/remoteproc/qcom_q6v5_mss.c > @@ -1355,6 +1355,8 @@ static int qcom_q6v5_register_dump_segments(struct rproc *rproc, > return ret; > } > > + rproc_coredump_set_elf_info(rproc, ELFCLASS32, EM_NONE); > + > ehdr = (struct elf32_hdr *)fw->data; > phdrs = (struct elf32_phdr *)(ehdr + 1); > qproc->dump_complete_mask = 0; > @@ -1632,6 +1634,7 @@ static int q6v5_probe(struct platform_device *pdev) > } > > rproc->auto_boot = false; > + rproc_coredump_set_elf_info(rproc, ELFCLASS32, EM_NONE); > > qproc = (struct q6v5 *)rproc->priv; > qproc->dev = &pdev->dev; > diff --git a/drivers/remoteproc/qcom_q6v5_pas.c b/drivers/remoteproc/qcom_q6v5_pas.c > index a41860d2243a..991f57e8e55b 100644 > --- a/drivers/remoteproc/qcom_q6v5_pas.c > +++ b/drivers/remoteproc/qcom_q6v5_pas.c > @@ -390,6 +390,7 @@ static int adsp_probe(struct platform_device *pdev) > } > > rproc->auto_boot = desc->auto_boot; > + rproc_coredump_set_elf_info(rproc, ELFCLASS32, EM_NONE); > > adsp = (struct qcom_adsp *)rproc->priv; > adsp->dev = &pdev->dev; > diff --git a/drivers/remoteproc/qcom_wcnss.c b/drivers/remoteproc/qcom_wcnss.c > index 0c7afd038f0d..5d65e1a9329a 100644 > --- a/drivers/remoteproc/qcom_wcnss.c > +++ b/drivers/remoteproc/qcom_wcnss.c > @@ -480,6 +480,7 @@ static int wcnss_probe(struct platform_device *pdev) > dev_err(&pdev->dev, "unable to allocate remoteproc\n"); > return -ENOMEM; > } > + rproc_coredump_set_elf_info(rproc, ELFCLASS32, EM_NONE); > > wcnss = (struct qcom_wcnss *)rproc->priv; > wcnss->dev = &pdev->dev; > diff --git a/drivers/remoteproc/stm32_rproc.c b/drivers/remoteproc/stm32_rproc.c > index 6a66dbf2df40..0f9d02ca4f5a 100644 > --- a/drivers/remoteproc/stm32_rproc.c > +++ b/drivers/remoteproc/stm32_rproc.c > @@ -625,6 +625,7 @@ static int stm32_rproc_probe(struct platform_device *pdev) > if (!rproc) > return -ENOMEM; > > + rproc_coredump_set_elf_info(rproc, ELFCLASS32, EM_NONE); With the above: Reviewed-by: Mathieu Poirier > rproc->has_iommu = false; > ddata = rproc->priv; > ddata->workqueue = create_workqueue(dev_name(dev)); > -- > 2.17.1 >