All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "David Heidelberg" <david@ixit.cz>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] misc: fastrpc: Don't fail probe when the SDSP memory assign fails
Date: Tue, 22 Sep 2026 22:46:04 +0000	[thread overview]
Message-ID: <20260922224604.9C7231F000FF@smtp.kernel.org> (raw)
In-Reply-To: <20260923-fastrpc-fail-slow-v1-1-f3f6fabba6e3@ixit.cz>

Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [High] misc: fastrpc: overly broad error suppression for qcom_scm_assign_mem
--

commit 14fb4cbe62a25ea5813ad10df366839d89bc56bf
Author: David Heidelberg <david@ixit.cz>

misc: fastrpc: Don't fail probe when the SDSP memory assign fails

This commit modifies the SDSP domain initialization in fastrpc_rpmsg_probe()
to warn rather than fail when qcom_scm_assign_mem() returns an error. The
intent is to prevent an endless probe failure loop when a subsystem restart
triggers a secondary memory assignment attempt.

> diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c
> index 90fd669636ec1..41943a3d496af 100644
> --- a/drivers/misc/fastrpc.c
> +++ b/drivers/misc/fastrpc.c
> @@ -2595,7 +2595,9 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev)
>  			err = qcom_scm_assign_mem(res.start, resource_size(&res), &src_perms,
>  				    data->vmperms, data->vmcount);
>  			if (err)
> -				goto err_free_data;
> +				dev_warn(rdev,
> +					 "assign memory to SDSP failed: %d\n",
> +					 err);

[Severity: High]
Does unconditionally bypassing this error risk breaking DSP execution under
different failure conditions?

If a legitimate failure occurs in qcom_scm_assign_mem() (such as -ENOMEM
during SCM communication, rather than an -EINVAL from a redundant
assignment), the memory region remains unassigned to the DSP. When the DSP
subsequently attempts to access that memory, wouldn't it trigger a fatal
SMMU fault and crash the remote processor?

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20260923-fastrpc-fail-slow-v1-1-f3f6fabba6e3@ixit.cz?part=1

  reply	other threads:[~2026-09-22 22:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-22 22:38 [PATCH] misc: fastrpc: Don't fail probe when the SDSP memory assign fails David Heidelberg via B4 Relay
2026-09-22 22:38 ` David Heidelberg
2026-09-22 22:46 ` sashiko-bot [this message]
2026-09-23  8:49 ` Konrad Dybcio
2026-09-23 14:40   ` David Heidelberg
2026-09-23  9:44 ` Frieder Hannenheim

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=20260922224604.9C7231F000FF@smtp.kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=david@ixit.cz \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.