Skip to content

Clean headers#257

Open
Dmitry Baryshkov (lumag) wants to merge 7 commits into
qualcomm:developmentfrom
lumag:clean-headers
Open

Clean headers#257
Dmitry Baryshkov (lumag) wants to merge 7 commits into
qualcomm:developmentfrom
lumag:clean-headers

Conversation

@lumag

Copy link
Copy Markdown
Contributor

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

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 <dmitry.baryshkov@oss.qualcomm.com>
Stop declaring non-API functions in a fastrpc_notif.h

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
The dspqueue_sahred.h header is only used by dspqueue_cpu.c. Inline
header contents into the corresponding file.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
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 <dmitry.baryshkov@oss.qualcomm.com>
@lumag

Copy link
Copy Markdown
Contributor Author

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

Extract local API into a BSD-licensed copy of the upstream
misc/fastrpc.h header.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Drop several headers (and source files) which are not longer user by
anything.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Clean the API of fastrpc_ioctl.h header, dropping unused (or useless)
defines.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

lgtm

Comment thread inc/misc/fastrpc.h
Comment thread src/Makefile.am
@@ -98,10 +98,12 @@ libsdsp_default_listener_la_CFLAGS = $(SDSP_CFLAGS) -DUSE_SYSLOG

GDSP_CFLAGS = $(LIBDSPRPC_CFLAGS) -DDEFAULT_DOMAIN_ID=5

Copy link
Copy Markdown
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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@github-actions

Copy link
Copy Markdown

This pull request has been marked as stale due to 60 days of inactivity.

@github-actions github-actions Bot added the Stale label Jan 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants