Skip to content

Conversation

jwnrt
Copy link

@jwnrt jwnrt commented Oct 8, 2025

The SPI device design only considers the PAYLOAD_EN bit of a slot for the passthrough mode, not for uploaded flash commands which always upload their payloads.

@jwnrt jwnrt requested review from AlexJones0 and rivos-eblot and removed request for AlexJones0 October 8, 2025 09:19
Copy link

@AlexJones0 AlexJones0 left a comment

Choose a reason for hiding this comment

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

References for review:

The documentation of the upload field loosely suggests that uploading only really cares about the address, but it doesn't make that very clear:

If upload field in the command info entry is set, the cmdparse activates the upload submodule when the opcode is received. addr_en, addr_4B_affected, and addr_4b_forced (TBD) affect the upload functionality. The three address related configs defines the command address field size.

RTL:

@jwnrt jwnrt force-pushed the jw/spi-dev-upload-payload branch from e2fd360 to a44d544 Compare October 8, 2025 16:01
@jwnrt jwnrt requested a review from AlexJones0 October 8, 2025 16:02
@jwnrt
Copy link
Author

jwnrt commented Oct 8, 2025

Changed to check is_upload instead of has_input_payload

The SPI device design only considers the `PAYLOAD_EN` bit of a slot for
the passthrough mode, not for uploaded flash commands which always
upload their payloads.

Signed-off-by: James Wainwright <james.wainwright@lowrisc.org>
@jwnrt jwnrt force-pushed the jw/spi-dev-upload-payload branch from a44d544 to 03bfc14 Compare October 9, 2025 10:50
@jwnrt jwnrt merged commit 5ae68c6 into lowRISC:ot-9.2.0 Oct 9, 2025
9 checks passed
@rivos-eblot
Copy link

rivos-eblot commented Oct 9, 2025

It seems that clang-format complains about the line length on the comments.
This is a known issue: GitLab CI stops whenever ot-format.sh generates a diff, but we have not integrated this is GitHub CI. The check would better be done in ot-format.sh itself I believe.

- test -z "$(git status -s)" || git diff

@jwnrt
Copy link
Author

jwnrt commented Oct 9, 2025

Ah my bad, I didn't re-run ot-format after copying this comment!

#226

@rivos-eblot
Copy link

Ah my bad, I didn't re-run ot-format after copying this comment!

I keep doing this mistake, I think we need to address it @ CI level.

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.

3 participants