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

DEV9: Set/Clear SEEK bit in all relevent commands #11931

Merged
merged 3 commits into from
Oct 23, 2024

Conversation

TheLastRar
Copy link
Contributor

Description of Changes

Set/Clear the seek bit any any command could need to seek to complete
Implement holding the value of the SEEK bit when en error occurs

Rationale behind Changes

PS2Linux actually checks for the SEEK bit to determine if a DMA command completed.
The SEEK bit will be set/cleared based on what happens with the command
With the exception of the Flush command, I've opted not to factor in the actions of the write cache.

The holding/locking of the reported value of the SEEK bit as added here is specified in older version of the ATA spec.

The last of my PSBBN prs, Fixes #11924

Suggested Testing Steps

Test HDD software/games

@github-actions github-actions bot added the DEV9 label Oct 20, 2024
@F0bes F0bes merged commit a044b7c into PCSX2:master Oct 23, 2024
12 checks passed
@TheLastRar TheLastRar deleted the DEV9-Seeker branch November 9, 2024 12:28
SternXD pushed a commit to EmulationCollective/XBSX2 that referenced this pull request Dec 7, 2024
* DEV9: Set SEEK on all successful seeks

* DEV9: Complete HDD_Flush immediately when write queue is empty

Also set SEEK when write queue isn't empty

* DEV9: Lock reported value of SEEK when errored
RedPanda4552 pushed a commit to RedPanda4552/pcsx2 that referenced this pull request Dec 20, 2024
* DEV9: Set SEEK on all successful seeks

* DEV9: Complete HDD_Flush immediately when write queue is empty

Also set SEEK when write queue isn't empty

* DEV9: Lock reported value of SEEK when errored
SternXD pushed a commit to EmulationCollective/XBSX2 that referenced this pull request Dec 22, 2024
* DEV9: Set SEEK on all successful seeks

* DEV9: Complete HDD_Flush immediately when write queue is empty

Also set SEEK when write queue isn't empty

* DEV9: Lock reported value of SEEK when errored
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.

[BUG]: The HDD seek completed bit is not set after a DMA command
2 participants