Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1141200ybb; Fri, 10 Apr 2020 18:33:07 -0700 (PDT) X-Google-Smtp-Source: APiQypLQrMEYso+s9lZTiGcVhbxJXbMr4nmUjJ5YqsnLCFMGL66rBXjZW66R7rZiHloAjT91oRhm X-Received: by 2002:a37:a486:: with SMTP id n128mr4218317qke.140.1586568787529; Fri, 10 Apr 2020 18:33:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586568787; cv=none; d=google.com; s=arc-20160816; b=UCw4pYrdAT5RFoiuOLyosaoRHaUXoafhV5FAzkvTO0ea9h1mN+hTAOvw3bnq7SOP5J 1zzNuHv52BW4K2TAH18edsGzSdFOQLYbokJchML/ZbcYewXgp2DlgJg5CrI/4OBeIE/H Tk3bjPzBlDGHbFTpC1nZfAwZv1I1cmlktUmNbY9ErXjoWZ3xn2mpQR9Xo8lIP9r0ivt+ w9ECheoPepqZVak6xh52Vx0nJUuCESVFA7qALAcQTJeFEi3kqE+U+7C/93hYfDiJRzBS b/pOECHs5Ux0yjMNpP/maeIkCD2z1snUQZMW9DYubLmfVJEK8twHlThIPCDlLz7juX9R GKwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=oViI8SklfCpZEbbYlFvgdpzM6/kZH9ALRRalOuYsvgM=; b=cjBNCY+X2Rvw73mJHAjFizrbIVbNtlQeVxOAzOy/VVFxCOAJgA3yM0mmkjy+2gWkoY EVqPzHpWaPuDFdSx+Q+6RJfff6q77MQc/RwXIYFuuNzS0f1qRzLIMfT/6r2Np1Q0r+qv 0RTB3vcEjHHXVmiIXB4Eial5r1bPQeylpkbgtpHro4fInBaq/mYXpyDdYVEaFH0tGg9F qL2DUikbeAHYE4ibJaox1RjmUOLN5K3OCgibtxoB23+eP8j11zHK2ioZ4R2WNH+402Ma F0OqV1C5wolHJ8AniDhxdUd/AyQTjOaQo4sTbLtw/7eVcsrzRUrg2x9QVqA+Xo8jEv2i jsfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UNiShD7w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id c8si708072qth.405.2020.04.10.18.32.52; Fri, 10 Apr 2020 18:33:07 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=UNiShD7w; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1726792AbgDKB3w (ORCPT + 99 others); Fri, 10 Apr 2020 21:29:52 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44219 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726754AbgDKB3w (ORCPT ); Fri, 10 Apr 2020 21:29:52 -0400 Received: by mail-pl1-f194.google.com with SMTP id h11so1206013plr.11 for ; Fri, 10 Apr 2020 18:29:52 -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=oViI8SklfCpZEbbYlFvgdpzM6/kZH9ALRRalOuYsvgM=; b=UNiShD7wlrWrXzBNeCBUu2DcSXJtHq7Z0Y8/MbsvAvNfpVWxNN7VvKLAuR31RGhV31 LEOiAQi3VF/qJssY+mxdRur0UBNn39b9pLsPV87xF1fdZAvudU3b0CZ2rnInopThwfyR 0XyuuwJblsOtu+P+1AbiEW7/c1NwHvY+NZM2Yfy140kEFWTiqkSKfSbdXm9/RHxRv2dT aSrwEV2ox1H3Oz/URa8lu4yUXLj3AURT7dyuFqOEpYrfMklx44SQAiIFR6yGKCAs06K0 aC2AR5lgaz9SoZn9OzR3ZhLbqpuDjsRS1k5vUFBhYBtLPbOJ3BqPH9S5MlQeBTE1ux+9 OfeA== 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; bh=oViI8SklfCpZEbbYlFvgdpzM6/kZH9ALRRalOuYsvgM=; b=oTXMxVw7jF28aMPBBsiL+Xv9y086lEMNnLWSQMR+y53fl+OXIsQwYRH1XC3tfY7DJ1 dUbsYaGrlZmV4XB4Ih/WZqt8wgRHjOck/deGqwwxFw/ktPBQWTnJ+928LvVS+E/wLE/A mVffcWgBSjuM4qy4rqJfZKHeYhgeG2YKxGeB6ekw376weUuanPDR68nnSCJgX0MWmX9i 2WnirHBVeQqVhUGwaq/7RoIwKVNQqIBUy04fvWB9/s+3OgIIK10sneEWbbX3QB1lVxfw lz2WqUTM2JGjQ0wasd52bVSsIqIssqnt+76Qfh+5IiazMPVkgMYthg7RF0/WLP6fTt8T H1iw== X-Gm-Message-State: AGi0PuYpaR4QjKDrFOOC6FIY4AOoZNL66uSYO12rMKQwH1u9DWY4eOcb rYWFaluz1yq84bkCD7QL7XLL3A== X-Received: by 2002:a17:90a:6c22:: with SMTP id x31mr8469537pjj.124.1586568591685; Fri, 10 Apr 2020 18:29:51 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id s62sm2575561pgb.94.2020.04.10.18.29.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Apr 2020 18:29:51 -0700 (PDT) Date: Fri, 10 Apr 2020 18:30:01 -0700 From: Bjorn Andersson To: Clement Leger Cc: Andy Gross , 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: <20200411013001.GG576963@builder.lan> 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> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri 10 Apr 03:24 PDT 2020, Clement Leger wrote: > Modify drivers which are using remoteproc coredump functionnality to use > rproc_coredump_set_elf_info in order to create correct elf coredump > format. > Reviewed-by: Bjorn Andersson > 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); > rproc->has_iommu = false; > ddata = rproc->priv; > ddata->workqueue = create_workqueue(dev_name(dev)); > -- > 2.17.1 >