Skip to content

uadk: use blk_nostart for zip tail flush status#760

Merged
Liulongfang merged 1 commit intoLinaro:developfrom
yuzh1105:develop
Apr 28, 2026
Merged

uadk: use blk_nostart for zip tail flush status#760
Liulongfang merged 1 commit intoLinaro:developfrom
yuzh1105:develop

Conversation

@yuzh1105
Copy link
Copy Markdown
Contributor

When the last decompression block is fully consumed and the stream context still holds cached data, the driver asks the user to send a zero-input request to flush the remaining data from hardware.

This case is not caused by insufficient output space. The hardware treats the cached data as possibly incomplete and needs another request to continue processing, so qm_parse_zip_sqe() and qm_parse_zip_sqe_v3() should return WCRYPTO_DECOMP_BLK_NOSTART instead of WCRYPTO_DECOMP_END_NOSPACE.

When the last decompression block is fully consumed and the stream
context still holds cached data, the driver asks the user to send
a zero-input request to flush the remaining data from hardware.

This case is not caused by insufficient output space. The hardware
treats the cached data as possibly incomplete and needs another
request to continue processing, so qm_parse_zip_sqe() and
qm_parse_zip_sqe_v3() should return WCRYPTO_DECOMP_BLK_NOSTART
instead of WCRYPTO_DECOMP_END_NOSPACE.

Signed-off-by: yuzh1105 <yuzh.aurora@gmail.com>
@IAMHCHCH
Copy link
Copy Markdown

lgtm

1 similar comment
@tomismyfriend
Copy link
Copy Markdown

lgtm

@Liulongfang Liulongfang merged commit 6c79655 into Linaro:develop Apr 28, 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.

4 participants