From: <Valentina.FernandezAlanis@microchip.com>
To: <ganboing@gmail.com>
Cc: <linux-riscv@lists.infradead.org>, <linux-kernel@vger.kernel.org>,
<devicetree@vger.kernel.org>, <linux-remoteproc@vger.kernel.org>,
<paul.walmsley@sifive.com>, <palmer@dabbelt.com>,
<aou@eecs.berkeley.edu>, <peterlin@andestech.com>,
<dminus@andestech.com>, <Conor.Dooley@microchip.com>,
<conor+dt@kernel.org>, <ycliang@andestech.com>,
<jassisinghbrar@gmail.com>, <robh@kernel.org>,
<krzk+dt@kernel.org>, <andersson@kernel.org>,
<mathieu.poirier@linaro.org>
Subject: Re: [PATCH v1 0/5] Add Microchip IPC mailbox and remoteproc support
Date: Tue, 17 Sep 2024 10:45:02 +0000 [thread overview]
Message-ID: <1f269bea-ad97-424a-97cb-970194dd54a8@microchip.com> (raw)
In-Reply-To: <fe87c66d-e5f6-46bd-828a-6fac2b0aa0ac@gmail.com>
On 16/09/2024 23:28, Bo Gan wrote:
> EXTERNAL EMAIL: Do not click links or open attachments unless you know
> the content is safe
>
> Hi Valentina,
Hi Bo,
>
> On 9/12/24 10:00, Valentina Fernandez wrote:
>> Additional details on the Microchip vendor extension and the IPC
>> function IDs described in the driver can be found in the following
>> documentation:
>>
>> https://github.com/linux4microchip/microchip-sbi-ecall-extension
>>
>> The IPC remoteproc platform driver allows for starting and stopping
>> firmware on the remote cluster(s) and facilitates RPMsg communication.
>> The remoteproc attach/detach operations are also supported for use cases
>> where the firmware is loaded by the Hart Software Services
>> (zero-stage bootloader) before Linux boots.
>
> Would you mind help clarifying the need for SBI_EXT_RPROC_STATE/STOP/...?
Sure, I provided a detailed explanation below.
> If I'm not mistaken, the HW you are targeting is described in
> https://ww1.microchip.com/downloads/aemDocuments/documents/MPU64/
> ProductDocuments/SupportingCollateral/Asymmetric_Multi-
> Processing_on_PIC64GX_White_Paper.pdf
> (typo in the page 4, U51 -> E51)
Yes, this is the HW that these drivers are targeted for.
> In SBI, do you put hart1-3 and hart4 into 2 separate domains? If not,
> I don't see why you can't just use HSM extension from SBI to kick rproc.
The first AMP context (harts 1-3) is in one OpenSBI domain. The second
AMP context may or may not be in an OpenSBI domain. Typical AMP use case
applications have Linux SMP in one AMP context and an RTOS or BM
application running in the other context.
BM/RTOS applications running in m-mode won't have OpenSBI, which means
they may not necessarily have an HSM. However, if the BM/RTOS is running
in s-mode, then we do register them in another OpenSBI domain.
We use the SBI_EXT_RPROC_START and SBI_EXT_RPROC_STOP functions to
handle both scenarios.
> Also, how stable is this microchip-sbi-ecall-extension? Is it subject
> to changes down the road?
All the FIDs described in the microchip-sbi-ecall-extension repository
are stable and agreed upon between different business units within
Microchip, so they will not change. There might be additional FIDs added
in the future to extend functionality if ever needed, but we won't
change existing FIDs.
I don't see a probe() like SBI function, so
> the kernel kind of assume it can call those microchip extensions without
> causing unintended effects. This means those extension FIDs must be
> stable and can no longer change once this code is in. Perhaps checking-in
> the microchip SBI extensions to major SBI implementations such as openSBI
> first would be better?
Are you referring to the remoteproc driver? If that's the case, then
yes, I believe we should call
sbi_probe_extension(SBI_EXT_MICROCHIP_TECHNOLOGY) within the probe
function. I will look into this for v2.
Thanks,
Valentina
>
> Bo
next prev parent reply other threads:[~2024-09-17 10:45 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-12 17:00 [PATCH v1 0/5] Add Microchip IPC mailbox and remoteproc support Valentina Fernandez
2024-09-12 17:00 ` [PATCH v1 1/5] riscv: asm: vendorid_list: Add Microchip Technology to the vendor list Valentina Fernandez
2024-09-12 17:16 ` Conor Dooley
2024-09-12 17:00 ` [PATCH v1 2/5] dt-bindings: mailbox: add binding for Microchip IPC mailbox driver Valentina Fernandez
2024-09-12 17:15 ` Conor Dooley
2024-09-12 21:23 ` Samuel Holland
2024-09-16 16:31 ` Conor Dooley
2024-09-18 15:35 ` Rob Herring
2024-09-19 7:40 ` Conor Dooley
2024-09-12 17:00 ` [PATCH v1 3/5] mailbox: add Microchip IPC support Valentina Fernandez
2024-09-12 21:30 ` Samuel Holland
2024-09-16 9:25 ` Valentina.FernandezAlanis
2024-09-16 20:21 ` Krzysztof Kozlowski
2024-09-12 17:00 ` [PATCH v1 4/5] dt-bindings: remoteproc: add binding for Microchip IPC remoteproc Valentina Fernandez
2024-09-16 20:14 ` Krzysztof Kozlowski
2024-10-15 12:09 ` Valentina.FernandezAlanis
2024-10-15 13:35 ` Krzysztof Kozlowski
2024-10-15 20:22 ` Conor Dooley
2024-09-12 17:00 ` [PATCH v1 5/5] remoteproc: add support for Microchip IPC remoteproc platform driver Valentina Fernandez
2024-09-16 20:18 ` Krzysztof Kozlowski
2024-09-18 15:51 ` Valentina.FernandezAlanis
2024-09-22 20:21 ` Krzysztof Kozlowski
2024-09-13 14:44 ` [PATCH v1 0/5] Add Microchip IPC mailbox and remoteproc support Mathieu Poirier
2024-09-16 15:04 ` Mathieu Poirier
2024-09-16 22:28 ` Bo Gan
2024-09-17 10:45 ` Valentina.FernandezAlanis [this message]
2024-09-17 12:42 ` Conor Dooley
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=1f269bea-ad97-424a-97cb-970194dd54a8@microchip.com \
--to=valentina.fernandezalanis@microchip.com \
--cc=Conor.Dooley@microchip.com \
--cc=andersson@kernel.org \
--cc=aou@eecs.berkeley.edu \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dminus@andestech.com \
--cc=ganboing@gmail.com \
--cc=jassisinghbrar@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=mathieu.poirier@linaro.org \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=peterlin@andestech.com \
--cc=robh@kernel.org \
--cc=ycliang@andestech.com \
/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