Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update bios for LiteSATA multi-sector read/write changes #1715

Merged
merged 3 commits into from
Jun 28, 2023

Conversation

gsomlo
Copy link
Collaborator

@gsomlo gsomlo commented Jun 20, 2023

Please only apply after enjoy-digital/litesata#25

Once the LiteSATA gateware is updated to accept a sector-count register, we can issue multi-sector read and write requests in a single DMA operation.

This PR also adds a pair of multi-sector SATAdisk - to - Memory transfer commands to the bios.

@gsomlo
Copy link
Collaborator Author

gsomlo commented Jun 22, 2023

@enjoy-digital -- Only "software/liblitesata: update to multi-sector read, write" is mandatory after LiteSATA PR 25 is applied. The other two: "software/bios/cmd_litesata: add multi-sector xfer between SATA and memory" and "software/bios/cmd_litesata: add multisector read/write test" are increasingly optional, and I'm OK if you drop or modify them before (or after) applying this PR :)

Thanks,
--Gabriel

The LiteSATA gateware now supports multi-sector transfers, and expects
a sector count register to be populated by the software before a DMA
transfer is initiated.

This patch also fixes checks for `done` and `error` during writes by
using the correct `mem2sector` read function (instead of `sector2mem`,
which is for use during read operations).

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
…mory

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
gsomlo added a commit to litex-hub/linux that referenced this pull request Jun 22, 2023
gsomlo added a commit to litex-hub/linux that referenced this pull request Jun 23, 2023
gsomlo added a commit to litex-hub/linux that referenced this pull request Jun 23, 2023
gsomlo added a commit to litex-hub/linux that referenced this pull request Jun 27, 2023
@enjoy-digital enjoy-digital merged commit b7cbd6c into enjoy-digital:master Jun 28, 2023
@enjoy-digital
Copy link
Owner

Thanks @gsomlo!

@gsomlo gsomlo deleted the gls-sata-multisector branch June 28, 2023 22:28
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