From: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
To: Ling Xu <quic_lxu5@quicinc.com>,
srini@kernel.org, amahesh@qti.qualcomm.com, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, andersson@kernel.org,
konradybcio@kernel.org, arnd@arndb.de,
gregkh@linuxfoundation.org
Cc: quic_kuiw@quicinc.com, devicetree@vger.kernel.org,
linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v9 3/5] misc: fastrpc: Remove kernel-side domain checks from capability ioctl
Date: Tue, 12 Aug 2025 11:26:56 +0530 [thread overview]
Message-ID: <78b335f9-7f6d-415b-bf56-5e9dc2c38f3d@oss.qualcomm.com> (raw)
In-Reply-To: <20250716132836.1008119-4-quic_lxu5@quicinc.com>
On 7/16/2025 6:58 PM, Ling Xu wrote:
> Domain ID in the uAPI is misleading. Remove checks and log messages
> related to 'domain' field in capability structure. Update UAPI to
> mark the field as unused.
>
> Signed-off-by: Ling Xu <quic_lxu5@quicinc.com>
> ---
> drivers/misc/fastrpc.c | 14 +-------------
> include/uapi/misc/fastrpc.h | 2 +-
> 2 files changed, 2 insertions(+), 14 deletions(-)
>
> diff --git a/drivers/misc/fastrpc.c b/drivers/misc/fastrpc.c
> index 378923594f02..495ac47e7f90 100644
> --- a/drivers/misc/fastrpc.c
> +++ b/drivers/misc/fastrpc.c
> @@ -1723,7 +1723,6 @@ static int fastrpc_get_info_from_kernel(struct fastrpc_ioctl_capability *cap,
> uint32_t attribute_id = cap->attribute_id;
> uint32_t *dsp_attributes;
> unsigned long flags;
> - uint32_t domain = cap->domain;
> int err;
>
> spin_lock_irqsave(&cctx->lock, flags);
> @@ -1741,7 +1740,7 @@ static int fastrpc_get_info_from_kernel(struct fastrpc_ioctl_capability *cap,
> err = fastrpc_get_info_from_dsp(fl, dsp_attributes, FASTRPC_MAX_DSP_ATTRIBUTES);
> if (err == DSP_UNSUPPORTED_API) {
> dev_info(&cctx->rpdev->dev,
> - "Warning: DSP capabilities not supported on domain: %d\n", domain);
> + "Warning: DSP capabilities not supported\n");
> kfree(dsp_attributes);
> return -EOPNOTSUPP;
> } else if (err) {
> @@ -1769,17 +1768,6 @@ static int fastrpc_get_dsp_info(struct fastrpc_user *fl, char __user *argp)
> return -EFAULT;
>
> cap.capability = 0;
> - if (cap.domain >= FASTRPC_DEV_MAX) {
> - dev_err(&fl->cctx->rpdev->dev, "Error: Invalid domain id:%d, err:%d\n",
> - cap.domain, err);
> - return -ECHRNG;
> - }
> -
> - /* Fastrpc Capablities does not support modem domain */
> - if (cap.domain == MDSP_DOMAIN_ID) {
> - dev_err(&fl->cctx->rpdev->dev, "Error: modem not supported %d\n", err);
> - return -ECHRNG;
> - }
>
> if (cap.attribute_id >= FASTRPC_MAX_DSP_ATTRIBUTES) {
> dev_err(&fl->cctx->rpdev->dev, "Error: invalid attribute: %d, err: %d\n",
> diff --git a/include/uapi/misc/fastrpc.h b/include/uapi/misc/fastrpc.h
> index f33d914d8f46..c6e2925f47e6 100644
> --- a/include/uapi/misc/fastrpc.h
> +++ b/include/uapi/misc/fastrpc.h
> @@ -134,7 +134,7 @@ struct fastrpc_mem_unmap {
> };
>
> struct fastrpc_ioctl_capability {
> - __u32 domain;
> + __u32 unused; /* deprecated, ignored by the kernel */
> __u32 attribute_id;
> __u32 capability; /* dsp capability */
> __u32 reserved[4];
Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com>
next prev parent reply other threads:[~2025-08-12 5:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-07-16 13:28 [PATCH v9 0/5] Add support for gdsp remoteproc on sa8775p Ling Xu
2025-07-16 13:28 ` [PATCH v9 1/5] dt-bindings: misc: qcom,fastrpc: Add GDSP label Ling Xu
2025-08-12 5:55 ` Ekansh Gupta
2025-07-16 13:28 ` [PATCH v9 2/5] arm64: dts: qcom: sa8775p: add GDSP fastrpc-compute-cb nodes Ling Xu
2025-08-12 5:56 ` Ekansh Gupta
2025-07-16 13:28 ` [PATCH v9 3/5] misc: fastrpc: Remove kernel-side domain checks from capability ioctl Ling Xu
2025-07-16 15:00 ` Dmitry Baryshkov
2025-07-16 15:21 ` Konrad Dybcio
2025-07-16 15:31 ` Dmitry Baryshkov
2025-08-12 5:56 ` Ekansh Gupta [this message]
2025-07-16 13:28 ` [PATCH v9 4/5] misc: fastrpc: Cleanup the domain names Ling Xu
2025-07-16 15:05 ` Dmitry Baryshkov
2025-08-12 5:58 ` Ekansh Gupta
2025-07-16 13:28 ` [PATCH v9 5/5] misc: fastrpc: add support for gdsp remoteproc Ling Xu
2025-08-12 5:59 ` Ekansh Gupta
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=78b335f9-7f6d-415b-bf56-5e9dc2c38f3d@oss.qualcomm.com \
--to=ekansh.gupta@oss.qualcomm.com \
--cc=amahesh@qti.qualcomm.com \
--cc=andersson@kernel.org \
--cc=arnd@arndb.de \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=gregkh@linuxfoundation.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=quic_kuiw@quicinc.com \
--cc=quic_lxu5@quicinc.com \
--cc=robh@kernel.org \
--cc=srini@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
all inboxes | Powered by JetHome®