Skip to content

Conversation

@lumag
Copy link
Contributor

@lumag lumag commented Nov 5, 2025

Following the discussion in #253 , reorg headers and source files a bit.

lumag added 4 commits November 6, 2025 00:34
Add GDSP-related libraries to lib_LTLIBRARIES, they were missed in the
original commit.

Fixes: 1ee463d ("Add changes to support GPDSPs offloading")
Signed-off-by: Dmitry Baryshkov <[email protected]>
Stop declaring non-API functions in a fastrpc_notif.h

Signed-off-by: Dmitry Baryshkov <[email protected]>
The dspqueue_sahred.h header is only used by dspqueue_cpu.c. Inline
header contents into the corresponding file.

Signed-off-by: Dmitry Baryshkov <[email protected]>
In order to prevent extra confusion (and in preparation to integtating
QAIC into the build process in future) move all QAIC-generated files to
a separate location.

Signed-off-by: Dmitry Baryshkov <[email protected]>
@lumag
Copy link
Contributor Author

lumag commented Nov 6, 2025

Why is the code being built with the compiler from 2019? The <misc/fastrpc.h> is the standard header produced by the Linux kernel.

lumag added 3 commits November 7, 2025 04:02
Extract local API into a BSD-licensed copy of the upstream
misc/fastrpc.h header.

Signed-off-by: Dmitry Baryshkov <[email protected]>
Drop several headers (and source files) which are not longer user by
anything.

Signed-off-by: Dmitry Baryshkov <[email protected]>
Clean the API of fastrpc_ioctl.h header, dropping unused (or useless)
defines.

Signed-off-by: Dmitry Baryshkov <[email protected]>
Copy link

@Srinivas-Kandagatla Srinivas-Kandagatla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

libsdsp_default_listener_la_LDFLAGS = libsdsprpc.la -shared -module $(USE_LOG) -version-number @LT_VERSION_NUMBER@
libsdsp_default_listener_la_CFLAGS = $(SDSP_CFLAGS) -DUSE_SYSLOG

GDSP_CFLAGS = $(LIBDSPRPC_CFLAGS) -DDEFAULT_DOMAIN_ID=5
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

libgdsprpc was actually intended to not be added as we are sticking with multidomain-only approach for gdsp. Here domain is always passed explicitly and no need to rely on library to extract domain information. So we can basically reuse any existing library and just pass the domain name to make it work. (example: ./gdsprpcd rootpd gdsp0)

I think it would be better to remove libgdsprpc_la* and libgdsp_default_listener* completely and just build gdsprpcd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants