Skip to content

Conversation

@harrisonmutai-arm
Copy link
Contributor

Change checksum logic from sum to XOR in C implementation, matching the specification. Update transfer_list_update_checksum and verification functions accordingly.

@jenswi-linaro
Copy link
Contributor

Please fix the style issue reported by checkpatch. Tip: you can check locally using:

./scripts/checkpatch.sh github/master..

Depending on your base branch, and that you have checkpatch.pl in your $PATH.

@harrisonmutai-arm
Copy link
Contributor Author

Thanks @jenswi-linaro, one thing I'm a bit unsure of is this line:

WARNING: line length of 82 exceeds 80 columns
#53: FILE: core/kernel/transfer_list.c:320:
+        * Zeroing the checksum is necessary because  `calc_byte_xor` works on the

total: 0 errors, 1 warnings, 0 checks, 49 lines checked

My editor indicates the line is 76 chars, does the script convert tabs to spaces?

@jenswi-linaro
Copy link
Contributor

My editor indicates the line is 76 chars, does the script convert tabs to spaces?

I guess it counts a tab as 8 spaces.

Copy link
Contributor

@etienne-lms etienne-lms left a comment

Choose a reason for hiding this comment

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

LGTM. Would you mind updating the commit message header line?

-core: kernel: use XOR for checksum
+core: kernel: use XOR for transfer list checksum

Reviewed-by: Etienne Carriere <[email protected]> once addressed.

@harrisonmutai-arm
Copy link
Contributor Author

@etienne-lms did you want me to apply the reviewed line once I'd addressed your comment?

@jenswi-linaro
Copy link
Contributor

Acked-by: Jens Wiklander <[email protected]>

Change checksum logic from sum to XOR in C implementation,
matching the specification. Update transfer_list_update_checksum
and verification functions accordingly.

Signed-off-by: Harrison Mutai <[email protected]>
Reviewed-by: Etienne Carriere <[email protected]>
Acked-by: Jens Wiklander <[email protected]>
@etienne-lms
Copy link
Contributor

LGTM. Could you rebase your P-R?

@harrisonmutai-arm
Copy link
Contributor Author

@etienne-lms, @jenswi-linaro I think we need to hold this off, there's a bit of an integration problem as U-Boot and TF-A still use the old scheme. Updating here will almost certainly break any configurations with those projects. Will get back to you once I have some clarification from this discussion [1].

[1] FirmwareHandoff/firmware_handoff#78

@github-actions
Copy link

github-actions bot commented Nov 6, 2025

This pull request has been marked as a stale pull request because it has been open (more than) 30 days with no activity. Remove the stale label or add a comment, otherwise this pull request will automatically be closed in 5 days. Note, that you can always re-open a closed issue at any time.

@github-actions github-actions bot added the Stale label Nov 6, 2025
@github-actions github-actions bot closed this Nov 11, 2025
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.

3 participants