Skip to content

Conversation

@jk-ozlabs
Copy link
Member

A few fixes from testing against other implementations:

  • PDR responses only have a CRC on end parts
  • DfRead CRC is cumulative over all parts

mkj and others added 4 commits August 19, 2025 10:36
StartAndEnd packets shouldn't include the CRC.

Signed-off-by: Matt Johnston <[email protected]>
Regarding the part checksum field, DSP0240 says:

  32-bit cumulative CRC for the entirety of data received so far for this
  section (all parts concatenated together, excluding checksums). Shall be
  included with all part transfers.

So, we need to keep the checksum Digest around, and use the cumulative
value in responses & response checks.

We also shift the comment on restarting from a FIRST_PART, as it was
incorrectly placed in the non-restart case.

Signed-off-by: Jeremy Kerr <[email protected]>
Since we have FileTransferContext::new(), this doesn't do much, and is
infallible.

So, just call FileTransferContext::new() directly.

Signed-off-by: Jeremy Kerr <[email protected]>
@mkj mkj merged commit 77da3b1 into CodeConstruct:main Aug 19, 2025
4 checks passed
@jk-ozlabs jk-ozlabs deleted the pr/crc branch August 19, 2025 02:45
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.

2 participants