devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Biju Das <biju.das.jz@bp.renesas.com>
To: Julien Massot <julien.massot@iot.bzh>,
	"bjorn.andersson@linaro.org" <bjorn.andersson@linaro.org>,
	"mathieu.poirier@linaro.org" <mathieu.poirier@linaro.org>,
	"robh+dt@kernel.org" <robh+dt@kernel.org>,
	"geert+renesas@glider.be" <geert+renesas@glider.be>
Cc: "linux-renesas-soc@vger.kernel.org" 
	<linux-renesas-soc@vger.kernel.org>,
	"linux-remoteproc@vger.kernel.org"
	<linux-remoteproc@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>
Subject: RE: [PATCH v1 3/3] remoteproc: Add Renesas rcar driver
Date: Mon, 15 Nov 2021 15:17:04 +0000	[thread overview]
Message-ID: <OS0PR01MB5922693BB948B4E567CEF63E86989@OS0PR01MB5922.jpnprd01.prod.outlook.com> (raw)
In-Reply-To: <ebca7899-1b7e-66d4-f022-576b18b9bc95@iot.bzh>

Hi Julien,

> Subject: Re: [PATCH v1 3/3] remoteproc: Add Renesas rcar driver
> 
> Hi Biju,
> 
> >
> > One question CR7 Can be master boot processor. In that case How to
> > avoid loading and booting  CR7 processor from Linux?
> > Reading boot modes??
> >
> Thanks for the question.
> 
> I did not test this case. 

OK.

There is also other scenarios where the
> Cortex-R7 is started by an earlier component such as BL2, u-boot or OP-
> Tee.
> In these cases Linux should not try to start / stop this remote processor.


OK. But Linux can check whether CR7 is alive at frequent interval and issue
Soft-reboot, if there is a  hang.

> One idea could be to read the power status CR7PSTR / PWRSR7, or use one of
> the MFIS register as a communication register.

I know MFIS is used for communication between CR7 and CA-57. But don't know
much details.

STM32 processor use this
> last solution to indicate that the remote processor is already started, in
> that scenario remoteproc driver starts in 'detached' state instead of
> 'offline' state.
> https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kern
> el.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git%2Ftree%2F
> include%2Flinux%2Fremoteproc.h%23n418&amp;data=04%7C01%7Cbiju.das.jz%40bp.
> renesas.com%7C945a25980e5a49cc361a08d9a846020c%7C53d82571da1947e49cb4625a1
> 66a4a2a%7C0%7C0%7C637725840924834250%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wL
> jAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=yXH
> 2qBpmUI2YtZRnApFdWt6iONcFKDPSPa45AirThBw%3D&amp;reserved=0
> 
> In that state, remoteproc driver can initiate communication with this
> remote processor but will not try to start or to stop it.
> 
> That's something I have in mind, with an existing implementation there
> https://jpn01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.c
> om%2Fiotbzh%2Flinux%2Fblob%2Fiot%2Fjulien%2Frproc%2Fdrivers%2Fremoteproc%2
> Frcar_rproc.c%23L524&amp;data=04%7C01%7Cbiju.das.jz%40bp.renesas.com%7C945
> a25980e5a49cc361a08d9a846020c%7C53d82571da1947e49cb4625a166a4a2a%7C0%7C0%7
> C637725840924834250%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2
> luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&amp;sdata=WYKygEUiXyliOmX2CUxk
> Yfj5pq2QOmZC%2BGtXRAlB%2Bws%3D&amp;reserved=0
> (that is not ready for upstream yet :)).
> 
> I guess this issue also exists when one device is dedicated to the secure
> world, so the device exists, but not available for Linux. 

May be for prototyping activity, if some one wants to run an RTOS on CR7.
This will be a good solution. Linux will load and boot CR7 which
Run an RTOS which communicates with Linux. Once communication established
Linux can check the health of CR7 at frequent intervals and take necessary action.

Regards,
Biju


The most obvious
> (and dirty ?) solution is to keep the device disabled in dts.
> 
> Regards,
> Julien


  reply	other threads:[~2021-11-15 15:17 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 [this message]
2021-11-22 18:37   ` Mathieu Poirier
2021-11-24 11:07     ` Julien Massot
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=OS0PR01MB5922693BB948B4E567CEF63E86989@OS0PR01MB5922.jpnprd01.prod.outlook.com \
    --to=biju.das.jz@bp.renesas.com \
    --cc=bjorn.andersson@linaro.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=julien.massot@iot.bzh \
    --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).