devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Julien Massot <julien.massot@iot.bzh>
To: Mathieu Poirier <mathieu.poirier@linaro.org>
Cc: bjorn.andersson@linaro.org, robh+dt@kernel.org,
	geert+renesas@glider.be, linux-renesas-soc@vger.kernel.org,
	linux-remoteproc@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH v1 3/3] remoteproc: Add Renesas rcar driver
Date: Wed, 24 Nov 2021 12:07:05 +0100	[thread overview]
Message-ID: <8f3f6316-f2fd-4762-83ce-ccd9ce223472@iot.bzh> (raw)
In-Reply-To: <20211122183758.GC2686563@p14s>

Hi Mathieu,
Thanks for the review !

>> +config RCAR_REMOTEPROC
>> +	tristate "Renesas R-CAR Gen3 remoteproc support"
>> +	depends on ARCH_RENESAS
>> +	depends on REMOTEPROC
> 
> You should be able to remove the dependency on REMOTEPROC since this is already in
> the "if REMOTEPROC" block.
Will fix.

...
> 
>> +
>> +	dev_dbg(dev, "map memory: %pa+%lx\n", &mem->dma, mem->len);
>> +	va = ioremap_wc(mem->dma, mem->len);
>> +	if (IS_ERR_OR_NULL(va)) {
>> +		dev_err(dev, "Unable to map memory region: %pa+%lx\n",
> 
> The sparse checker doesn't like %lx so probably be better to go with just %x.
> Apologies for suggesting to use %lx.

With %x gcc complains on arm64 build will go back to %zx.

> 
>> +			&mem->dma, mem->len);
>> +		return -ENOMEM;
>> +	}
>> +
>> +	/* Update memory entry va */
>> +	mem->va = va;
> 
> Talking about the sparse checker, you will see complaints about @va not being of
> type "void __iomem *".  You can ignore those as this would likely require to
> refactor the rproc_mem_entry structure, which is outside the scope of this work.

Ok, to be honest, I was not aware of the sparse tool, thanks a lot to point me to
this tool.

> 
> This set is just as clean as the RFC.  If it wasn't for the DTS bindings that
> need to be ack'ed by Rob, I probably would have made the above modifications and
> applied this patch.
> 
> Thanks,
> Mathieu

No problem will send a v2.

Regards,
Julien
-- 
Julien Massot [IoT.bzh]


  reply	other threads:[~2021-11-24 11:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-15 13:50 [PATCH v1 0/3] Initial Renesas R-Car remoteproc support Julien Massot
2021-11-15 13:50 ` [PATCH v1 1/3] dt-bindings: remoteproc: Add Renesas R-Car Julien Massot
2021-11-29 22:01   ` Rob Herring
2021-11-30  8:51     ` Julien Massot
2021-11-15 13:50 ` [PATCH v1 2/3] arm64: dts: renesas: r8a77951: Add CR7 realtime processor Julien Massot
2022-01-10 13:00   ` Geert Uytterhoeven
2021-11-15 13:50 ` [PATCH v1 3/3] remoteproc: Add Renesas rcar driver Julien Massot
2021-11-15 14:12   ` Biju Das
2021-11-15 14:41     ` Julien Massot
2021-11-15 15:17       ` Biju Das
2021-11-22 18:37   ` Mathieu Poirier
2021-11-24 11:07     ` Julien Massot [this message]
2021-11-24 17:35       ` Mathieu Poirier
2021-11-15 18:10 ` [PATCH v1 0/3] Initial Renesas R-Car remoteproc support Mathieu Poirier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8f3f6316-f2fd-4762-83ce-ccd9ce223472@iot.bzh \
    --to=julien.massot@iot.bzh \
    --cc=bjorn.andersson@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=linux-remoteproc@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=mathieu.poirier@linaro.org \
    --cc=robh+dt@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).