Falcon SCSI write issues

Problems with your machine in general.
User avatar
exxos
Site Admin
Site Admin
Posts: 28344
Joined: 16 Aug 2017 23:19
Location: UK

Re: Falcon SCSI write issues

Post by exxos »

I have been talking to @jookie and he's going to write a custom sector test program so we can work out what the actual failure point is more accurately..

Currently there is a bit of a contradiction, because I can seemingly copy a 6.7MB file fine(*), but 8MB+ fails. But @jookie program fails at 4MB.. So we really need to figure out what the actual failure point is and then have other people confirm...

(*) While the file copy did complete, the data was not verified so I don't really know if it trashed anything or not doing that file size..


EDIT:

Uwe says the limit in HD12.72 will be 8MB.. So people can try with that soon as well..
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3043
Joined: 19 Nov 2019 12:09

Re: Falcon SCSI write issues

Post by Badwolf »

exxos wrote: 25 Sep 2025 16:44 I have been talking to @jookie and he's going to write a custom sector test program so we can work out what the actual failure point is more accurately..

Currently there is a bit of a contradiction, because I can seemingly copy a 6.7MB file fine(*), but 8MB+ fails. But @jookie program fails at 4MB.. So we really need to figure out what the actual failure point is and then have other people confirm...

(*) While the file copy did complete, the data was not verified so I don't really know if it trashed anything or not doing that file size..
Bear in mind (as per my earlier digging through the source) you'll be subject to the filesystem's contiguous free clusters too. Best tested with an empty partition else you might find a larger file is split into smaller blocks to fit in around occupied clusters and the problem doesn't manifest.

BW
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
User avatar
exxos
Site Admin
Site Admin
Posts: 28344
Joined: 16 Aug 2017 23:19
Location: UK

Re: Falcon SCSI write issues

Post by exxos »

Badwolf wrote: 25 Sep 2025 17:09 Bear in mind (as per my earlier digging through the source) you'll be subject to the filesystem's contiguous free clusters too. Best tested with an empty partition else you might find a larger file is split into smaller blocks to fit in around occupied clusters and the problem doesn't manifest.
Yes it will be blank disk.. Fragmentation etc was already talked about.
mikro
Posts: 820
Joined: 28 Aug 2017 23:22
Location: Kosice, Slovakia

Re: Falcon SCSI write issues

Post by mikro »

Great work @Badwolf and @exxos. So 16383 sectors, hmm. We have seen that number in the AHDI source code, too, right? So that could be a sort of official confirmation by Atari.
User avatar
stephen_usher
Site sponsor
Site sponsor
Posts: 7376
Joined: 13 Nov 2017 19:19
Location: Oxford, UK.

Re: Falcon SCSI write issues

Post by stephen_usher »

Badwolf wrote: 25 Sep 2025 13:28
stephen_usher wrote: 25 Sep 2025 12:52 I know that this is not relevant to Jookie’s test but it should be made clear that:

Size of file != Size of transfer.

I’m very surprised that Atari drivers are trying to send such large chunks all in the one transfer. It’s very unusual.
Here's how EmuTOS does it:

The sector count, calculated from file size and contiguous available clusters (1), is passed directly to the hardware and it's set off (2).

1. https://github.com/emutos/emutos/blob/m ... fsio.c#L84
2. https://github.com/emutos/emutos/blob/m ... csi.c#L167

So on a nice clean drive, a large file will be perhaps only three transfers depending on cluster boundaries (head, middle [the big bit], tail).

BW
This only works because it’s a single tasking OS due to the fact that the machine is effectively just waiting for the I/O to complete.


I’m guessing that MiNT performance would be awful if it used the underlying driver. Any large disk access would halt it.
Intro retro computers since before they were retro...
ZX81->Spectrum->Memotech MTX->Sinclair QL->520STM->BBC Micro->TT030->PCs & Sun Workstations.
Added code to the MiNT kernel (still there the last time I checked) + put together MiNTOS.
Collection now with added Macs, Amigas, Suns and Acorns.
User avatar
exxos
Site Admin
Site Admin
Posts: 28344
Joined: 16 Aug 2017 23:19
Location: UK

Re: Falcon SCSI write issues

Post by exxos »

mikro wrote: 25 Sep 2025 18:39 Great work @Badwolf and @exxos. So 16383 sectors, hmm. We have seen that number in the AHDI source code, too, right? So that could be a sort of official confirmation by Atari.
Uwe is adament that its going to be 8MB limit as thats what's in AHDI. I don't know if it's different in other versions, or even if they updated it in falcon years..

More testing needs to be done when Uwe and Jookie finish updates.
mikro
Posts: 820
Joined: 28 Aug 2017 23:22
Location: Kosice, Slovakia

Re: Falcon SCSI write issues

Post by mikro »

Let me contribute with my experience.

First, that "Fast SCSI" option is close to being useless:

HD Driver 12.71, slow scsi: 1790 kb/s, st high
HD Driver 12.71, fast scsi: 1850 kb/s, st high

Which is kind of expected, 64 KB blocks are more than enough for any serious copy operation.

Second, I have created a set of files to test the transfer (IDE -> BlueSCSI):

3M - ok
4M - ok
5M - ok
6M - ok
7M - ok
8M - nok
16M - nok

So I'd say that the AHDI's statement holds here.

My SCSI controller is marked as LOGIC (triangle)SA8C
L53C80JC 2
5638 9250 A

I'll try to conduct the same test on my other Falcons.
User avatar
Badwolf
Site sponsor
Site sponsor
Posts: 3043
Joined: 19 Nov 2019 12:09

Re: Falcon SCSI write issues

Post by Badwolf »

mikro wrote: 25 Sep 2025 22:41 Second, I have created a set of files to test the transfer (IDE -> BlueSCSI):
Similarly, I've done an experiment writing increasingly large sizes of a big old buffer to disc under HDDriver 11.14.

Almost same result as @mikro, basically (my 8MB purports to complete -- haven't checked the contents):

IMG_9313.jpeg

SCSI hangs at this point. Interestingly the cursor continues to flash. I presume we simply never get the transfer completed interrupt.

Upon reboot, SCSI remains crashed:

IMG_9314.jpeg

I think @SteveBagley's code archeology was spot on.

dml wrote: 25 Sep 2025 07:59 Amazing. I guess any long term Falcon SCSI users settled on AHDI by experimentation, with its secret DMA size limits, or were not getting very much done productively? 8MB+ files weren't exactly rare even when this would have been a typical setup.
There was some muttering earlier in the thread about seasoned Cubase users' rule of thumb was that HDDriver 8 was the best. Perhaps that and versions prior didn't do the same 'all the ST-RAM' trick so the problem was less of an issue back in the day?</speculation>

BW
You do not have the required permissions to view the files attached to this post.
DFB1 Open source 50MHz 030 and TT-RAM accelerator for the Falcon
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
SteveBagley
Posts: 31
Joined: 26 Jul 2024 15:53

Re: Falcon SCSI write issues

Post by SteveBagley »

Found another interesting comment in the various bits of AHDI source about
;+
; Dec-10-1991 ml. Don't need to have extra long timeout because
; extended read and write are not supported due
; to the 8 bit counter in the DMAC.
;
; Feb-13-1992 ml. Put code back in because DMAC has been modified
; to have a 14-bit counter.
Steve
User avatar
exxos
Site Admin
Site Admin
Posts: 28344
Joined: 16 Aug 2017 23:19
Location: UK

Re: Falcon SCSI write issues

Post by exxos »

SteveBagley wrote: 25 Sep 2025 22:57 Found another interesting comment in the various bits of AHDI source about
;+
; Dec-10-1991 ml. Don't need to have extra long timeout because
; extended read and write are not supported due
; to the 8 bit counter in the DMAC.
;
; Feb-13-1992 ml. Put code back in because DMAC has been modified
; to have a 14-bit counter.
Steve
Interesting.. Wonder what DMA chips they was actually referring to though.. Assume falcon going by the dates..

The Linux guys must have known about all this as well then... But how.. Unless just experimenting..

Return to “HARDWARE ISSUES”

Who is online

Users browsing this forum: ClaudeBot and 5 guests