Skip to content

uadk: Accumulated fixes and optimizations patchset#763

Merged
Liulongfang merged 11 commits into
Linaro:masterfrom
tomismyfriend:master
May 26, 2026
Merged

uadk: Accumulated fixes and optimizations patchset#763
Liulongfang merged 11 commits into
Linaro:masterfrom
tomismyfriend:master

Conversation

@tomismyfriend
Copy link
Copy Markdown

This patchset introduces multiple fixes, cleanups, and build improvements for uadk

Weili Qian and others added 11 commits May 22, 2026 15:01
The internal asynchronous polling interface is not
used in any scenario, remove it.

Signed-off-by: Weili Qian <qianweili@huawei.com>
When wd_get_alg_type() fails, the memory allocated
by strdup() is not freed. fix it.

Signed-off-by: Weili Qian <qianweili@huawei.com>
strdup () may fail to allocate memory. Therefore, the return value
needs to be checked, fix it.

Signed-off-by: Weili Qian <qianweili@huawei.com>
The header file <sys/poll.h> is deprecated in modern Linux
systems(e.g., glibc). Current builds may trigger a compilation
warning when -Werror is enabled:

 #warning redirecting incorrect #include <sys/poll.h> to <poll.h>

Therefore, use poll.h instead of sys/poll.h.

Signed-off-by: Weili Qian <qianweili@huawei.com>
In the UADK no-SVA mode memory pool, queues are used to create
memory pools, and algorithms are employed to find the required queues.
However, a compression algorithm queue cannot simultaneously support both
compression and decompression modes—a queue must be defined as either
compression or decompression. Therefore, when allocating a memory pool,
a queue of the corresponding type must be specified for use.

To facilitate queue lookup for the memory pool, the algorithm name is
distinguished by appending a "-comp" or "-decomp" suffix. Similarly,
when users request a memory pool, the compression algorithm must also
include the corresponding suffix for querying.

Signed-off-by: Longfang Liu <liulongfang@huawei.com>
In the ZIP algorithm compression testing tool, when using no-SVA mode,
the creation of the memory pool requires the use of different device queues
based on compression and decompression operations.
We address this distinction through a convention of appending suffixes.
Therefore, when querying queues, suffixes need to be added for processing.

Signed-off-by: Longfang Liu <liulongfang@huawei.com>
Multiplying two u32 values and assigning the result to
a left-hand u64 value carries a risk of overflow,
so the right-hand value needs to be explicitly cast to u64.

Signed-off-by: Zhushuai Yin <yinzhushuai@huawei.com>
Since sess in cleanup_session() cannot
be null, the check on sess can be removed.

Signed-off-by: Weili Qian <qianweili@huawei.com>
Include missing header file: v1/wd_ecc.h v1/wd_comp.h.
Remove internal header file v1/uacce.h.

Signed-off-by: Qi Tao <taoqi10@huawei.com>
Signed-off-by: Weili Qian <qianweili@huawei.com>
The -lpthread flags should be placed in LIBADD instead of LDFLAGS to
follow libtool conventions. And add -lm for libwd_dae_la_LIBADD.

Signed-off-by: Weili Qian <qianweili@huawei.com>
The log frequency limit function iuses the alarm function.
If users use the alarm function, the log frequency limiting
function may be affected. Therefore, the log frequency
limiting function is changed to timer_settime.

Signed-off-by: Chenghai Huang <huangchenghai2@huawei.com>
@tomismyfriend
Copy link
Copy Markdown
Author

tomismyfriend commented May 22, 2026

lgtm

4 similar comments
@qwl731
Copy link
Copy Markdown

qwl731 commented May 22, 2026

lgtm

@qwl731
Copy link
Copy Markdown

qwl731 commented May 25, 2026

lgtm

@IAMHCHCH
Copy link
Copy Markdown

lgtm

@zhushuai12
Copy link
Copy Markdown

lgtm

Copy link
Copy Markdown
Collaborator

@Liulongfang Liulongfang left a comment

Choose a reason for hiding this comment

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

looks good to me

@Liulongfang Liulongfang merged commit 6eeb241 into Linaro:master May 26, 2026
2 checks passed
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.

5 participants