Skip to content

Commit 698de37

Browse files
quic-lxu5gregkh
authored andcommitted
misc: fastrpc: add support for gdsp remoteproc
Some platforms (like lemans) feature one or more GPDSPs (General Purpose DSPs). Similar to other kinds of Hexagon DSPs, they provide a FastRPC implementation, allowing code execution in both signed and unsigned protection domains. Extend the checks to allow domain names starting with "gdsp" (possibly followed by an index). Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Reviewed-by: Ekansh Gupta <ekansh.gupta@oss.qualcomm.com> Signed-off-by: Ling Xu <quic_lxu5@quicinc.com> Signed-off-by: Srinivas Kandagatla <srini@kernel.org> Link: https://lore.kernel.org/r/20250912131302.303199-5-srini@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent fb4679f commit 698de37

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

drivers/misc/fastrpc.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#define MDSP_DOMAIN_ID (1)
2828
#define SDSP_DOMAIN_ID (2)
2929
#define CDSP_DOMAIN_ID (3)
30+
#define GDSP_DOMAIN_ID (4)
3031
#define FASTRPC_MAX_SESSIONS 14
3132
#define FASTRPC_MAX_VMIDS 16
3233
#define FASTRPC_ALIGN 128
@@ -2249,6 +2250,8 @@ static int fastrpc_get_domain_id(const char *domain)
22492250
return MDSP_DOMAIN_ID;
22502251
else if (!strncmp(domain, "sdsp", 4))
22512252
return SDSP_DOMAIN_ID;
2253+
else if (!strncmp(domain, "gdsp", 4))
2254+
return GDSP_DOMAIN_ID;
22522255

22532256
return -EINVAL;
22542257
}
@@ -2318,13 +2321,14 @@ static int fastrpc_rpmsg_probe(struct rpmsg_device *rpdev)
23182321
case ADSP_DOMAIN_ID:
23192322
case MDSP_DOMAIN_ID:
23202323
case SDSP_DOMAIN_ID:
2321-
/* Unsigned PD offloading is only supported on CDSP */
2324+
/* Unsigned PD offloading is only supported on CDSP and GDSP */
23222325
data->unsigned_support = false;
23232326
err = fastrpc_device_register(rdev, data, secure_dsp, domain);
23242327
if (err)
23252328
goto err_free_data;
23262329
break;
23272330
case CDSP_DOMAIN_ID:
2331+
case GDSP_DOMAIN_ID:
23282332
data->unsigned_support = true;
23292333
/* Create both device nodes so that we can allow both Signed and Unsigned PD */
23302334
err = fastrpc_device_register(rdev, data, true, domain);

0 commit comments

Comments
 (0)