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

mmr4000le unable to complete disk formatting, "NcrInterruptServiceRoutine: Unexpected bus disconnect" #13190

Open
chungy opened this issue Jan 6, 2025 · 13 comments

Comments

@chungy
Copy link
Contributor

chungy commented Jan 6, 2025

In standard MAME 0.273, the mmr4000le machine always has an "NcrInterruptServiceRoutine: Unexpected bus disconnect" error after disk formatting reaches 100% by running cd:\mips\arcinst on any of the Windows NT CD-ROMs (which are presently just in the ibm5170_cdrom set...).

To do this, run the program cd:\mips\arcinst (this is the partitioning stage for NT on MIPS), and it will take a long time, but once it reaches 100%, it'll fail with "NcrInterruptServiceRoutine: Unexpected bus disconnect"

image

The kicker here, this used to work, until commit 8a9c1aa. By reverting this commit, formatting, and all disk access afterward, works as expected:

image

Given this commit's comment, it seems that the correct SCSI controller was changed to by @ajrhacker and perhaps it's just unusably buggy in the present MAME code. If that's the case, reverting the commit is a hack that defies MAME's accuracy goals, but it remains irritating that the hack is required to get a working system.

Tagging @pmackinlay also at @cuavas's suggestion.

@ajrhacker
Copy link
Contributor

From my limited testing of this system, I could see that it wasn't reading the 53CF94 ID byte correctly. I just pushed a fix which might help (fd93123).

@chungy
Copy link
Contributor Author

chungy commented Jan 7, 2025

That seems to have broken it even more. Running cd:\mips\arcinst just results in this now

image

@ajrhacker
Copy link
Contributor

I've pushed another commit to hopefully deal with this issue (9bbb3b4).

@chungy
Copy link
Contributor Author

chungy commented Jan 7, 2025

Now it doesn't even POST anymore.

@cuavas
Copy link
Member

cuavas commented Jan 7, 2025

@ajrhacker is there a system where you’ve actually verified these changes are improvements? It seems to just be getting more broken with each change.

@angelosa
Copy link
Member

angelosa commented Jan 7, 2025

Are you sure it's 53CF94 to begin with? Reference at https://gunkies.org/wiki/MIPS_Magnum claims standard 53C94

@ajrhacker
Copy link
Contributor

@angelosa: The "quick rundown of what I've been able to pull together" on that wiki page doesn't strike me as a necessarily reliable source of technical information. I don't think it's impossible, however, that some PCBs did use a standard 53C94.

@cuavas
Copy link
Member

cuavas commented Jan 8, 2025

What’s your reference for it being a 53CF94?

@ajrhacker
Copy link
Contributor

ajrhacker commented Jan 8, 2025

Emulex FAS216, mentioned in the driver notes, is nearly equivalent to 53CF94. The SCSI chip test code does try to read the ID (which does happen to be different for both) from the extra register not found on previous 53C9x models (such as Emulex's earlier ESP216, which more closely resembles 53C94).

It looks like emulation of 53CF94-specific features just hasn't been fleshed out enough to be completely trustworthy; little more than the 24-bit extension of the transfer counter has been added so far.

@chungy
Copy link
Contributor Author

chungy commented Jan 11, 2025

Seems to be the 53C94, not 53CF94:

https://www.si.edu/object/microsoft-windows-nt-development-board-jazz-rev-1-mips-r4000-processor:nmah_742557

Second photo, bottom right.

@ajrhacker
Copy link
Contributor

mmr4000le with Windows NT definitely supports both 53C94 and 53CF94, though it expects the latter to be clocked faster. (The emulation was having trouble booting because it failed to do the appropriate clock conversion.)

@chungy
Copy link
Contributor Author

chungy commented Jan 11, 2025

Do you have evidence that boards shipped with the 53CF94 chip?

@ajrhacker
Copy link
Contributor

This was a generic platform supported by several different manufacturers. At least one Olivetti model did in fact use FAS216, which as stated above is similar to but not quite the same as 53CF94. Some evidence for that is here:

http://mail-index.netbsd.org/port-arc/2000/10/07/0003.html

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

No branches or pull requests

4 participants