From: Mathieu Poirier <mathieu.poirier@linaro.org>
To: Tanmay Shah <tanmay.shah@amd.com>
Cc: andersson@kernel.org, linux-remoteproc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] remoteproc: xlnx: allow single core use in split mode
Date: Fri, 13 Jun 2025 11:18:08 -0600 [thread overview]
Message-ID: <aExdUKf4JYjZt_nf@p14s> (raw)
In-Reply-To: <20250610192738.3095247-1-tanmay.shah@amd.com>
Good day,
On Tue, Jun 10, 2025 at 12:27:38PM -0700, Tanmay Shah wrote:
> It's a valid use case to have only one core enabled in cluster in split
> mode. Remove exact core count expecatation from the driver.
I suggest:
"When operating in split mode, it is a valid usecase to have only one core
enabled in the cluster. Remove..."
>
> Signed-off-by: Tanmay Shah <tanmay.shah@amd.com>
> ---
>
> Change in v2:
> - limit core_count to max 2
>
> drivers/remoteproc/xlnx_r5_remoteproc.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/remoteproc/xlnx_r5_remoteproc.c b/drivers/remoteproc/xlnx_r5_remoteproc.c
> index 1af89782e116..a1beaa2acc96 100644
> --- a/drivers/remoteproc/xlnx_r5_remoteproc.c
> +++ b/drivers/remoteproc/xlnx_r5_remoteproc.c
> @@ -1336,12 +1336,9 @@ static int zynqmp_r5_cluster_init(struct zynqmp_r5_cluster *cluster)
> * and ignore core1 dt node.
> */
> core_count = of_get_available_child_count(dev_node);
> - if (core_count == 0) {
> + if (core_count == 0 || core_count > 2) {
> dev_err(dev, "Invalid number of r5 cores %d", core_count);
> return -EINVAL;
> - } else if (cluster_mode == SPLIT_MODE && core_count != 2) {
> - dev_err(dev, "Invalid number of r5 cores for split mode\n");
> - return -EINVAL;
> } else if (cluster_mode == LOCKSTEP_MODE && core_count == 2) {
> dev_warn(dev, "Only r5 core0 will be used\n");
> core_count = 1;
When thinking about the specific usecase where, in split mode, a single core is
enabled - can it be either core0 or core1 or does it have to be core0?
Is the code in the driver ready to handle this configuration?
The inline comments you already have to explain the possible configurations
need to be update to address this new usecase.
Thanks,
Mathieu
>
> base-commit: dc8417021bcd01914a416bf8bab811a6c5e7d99a
> --
> 2.34.1
>
next prev parent reply other threads:[~2025-06-13 17:18 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-10 19:27 [PATCH v2] remoteproc: xlnx: allow single core use in split mode Tanmay Shah
2025-06-11 6:53 ` Peng Fan
2025-06-13 17:18 ` Mathieu Poirier [this message]
2025-06-13 18:07 ` Tanmay Shah
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=aExdUKf4JYjZt_nf@p14s \
--to=mathieu.poirier@linaro.org \
--cc=andersson@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=tanmay.shah@amd.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