DFB1 Support thread
-
exxos
- Site Admin

- Posts: 28344
- Joined: 16 Aug 2017 23:19
- Location: UK
Re: DFB1 Support thread
@markus0321 What clock patch do you have in your machine ? SCSI issues are normally related to problems with the SDMA clock line AFAIK.
-
Badwolf
- Site sponsor

- Posts: 3043
- Joined: 19 Nov 2019 12:09
Re: DFB1 Support thread
It's possible this is the first SCSI drive used with DFB1. I for sure haven't tried it with SCSI as I own no SCSI devices.
I would concur with Exxos that a decent clockpatch is the most important thing, especially when loading down the bus further. The other thing that I don't know about is how data transfer from SCSI happens -- if it's a DMA transfer it won't be able to reach TT-RAM nor will the blitter work, so I think the hard disc driver may have something to say about things.
Are you using HDDriver by any chance?
BW
I would concur with Exxos that a decent clockpatch is the most important thing, especially when loading down the bus further. The other thing that I don't know about is how data transfer from SCSI happens -- if it's a DMA transfer it won't be able to reach TT-RAM nor will the blitter work, so I think the hard disc driver may have something to say about things.
Are you using HDDriver by any chance?
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
Smalliermouse ST-optimised USB mouse adapter based on SmallyMouse2
FrontBench The Frontier: Elite 2 intro as a benchmark
-
dml
- Posts: 842
- Joined: 15 Nov 2017 22:11
Re: DFB1 Support thread
If it reliably fails with FastRAM mapped, but works ok with FastRAM disabled (but with everything else still accelerated) then it is most likely the disk driver trying to initiate SCSI DMA transfers from FastRAM, which the hardware can't do.
A FastRAM-aware disk driver should prevent that (HDDriver should cover that). I think floppy access can have the same issues - I use an AUTO patch to get around that on the AB040 board.
A FastRAM-aware disk driver should prevent that (HDDriver should cover that). I think floppy access can have the same issues - I use an AUTO patch to get around that on the AB040 board.
d:m:l
BadMooD d/l: https://www.leonik.net/dml/sec_bm.py
SVO30 d/l: https://www.leonik.net/dml/sec_svo30.py
Q2 engine d/l: https://www.leonik.net/dml/sec_q2.py
AGT project: https://www.leonik.net/dml/sec_agt.py
Atari page: http://www.leonik.net/dml/sec_atari.py
YT: https://www.youtube.com/@dmlTPT
BadMooD d/l: https://www.leonik.net/dml/sec_bm.py
SVO30 d/l: https://www.leonik.net/dml/sec_svo30.py
Q2 engine d/l: https://www.leonik.net/dml/sec_q2.py
AGT project: https://www.leonik.net/dml/sec_agt.py
Atari page: http://www.leonik.net/dml/sec_atari.py
YT: https://www.youtube.com/@dmlTPT
-
markus0321
- Posts: 146
- Joined: 19 Dec 2020 11:42
- Location: Zielona Gora
Re: DFB1 Support thread
I had a 47-100ohm resistor mounted next to the clock line next to the SDMA chip. But it seems to me that if the clock signal was to be bad, the disk would not work always and not only how would I start TT-RAM?exxos wrote: 21 Nov 2022 14:53 @markus0321 What clock patch do you have in your machine ? SCSI issues are normally related to problems with the SDMA clock line AFAIK.
-
markus0321
- Posts: 146
- Joined: 19 Dec 2020 11:42
- Location: Zielona Gora
Re: DFB1 Support thread
Yes, I used HDDRIVER, I also tried using EmuTOS and then there are also problems. DMA transfers seem to work because otherwise it would not read the disk at all and here it works ok, but from time to time there are distortions in the transmitted data.Badwolf wrote: 21 Nov 2022 16:58 It's possible this is the first SCSI drive used with DFB1. I for sure haven't tried it with SCSI as I own no SCSI devices.
I would concur with Exxos that a decent clockpatch is the most important thing, especially when loading down the bus further. The other thing that I don't know about is how data transfer from SCSI happens -- if it's a DMA transfer it won't be able to reach TT-RAM nor will the blitter work, so I think the hard disc driver may have something to say about things.
Are you using HDDriver by any chance?
BW
-
markus0321
- Posts: 146
- Joined: 19 Dec 2020 11:42
- Location: Zielona Gora
Re: DFB1 Support thread
Yes, it is enough that I do not use MAPROM or FASTRAM and with active DFB1 the scsi disk works properly. I also had a problem with copying files from the IDE to a floppy disk, sometimes the files got corrupted. :-(dml wrote: 21 Nov 2022 18:04 If it reliably fails with FastRAM mapped, but works ok with FastRAM disabled (but with everything else still accelerated) then it is most likely the disk driver trying to initiate SCSI DMA transfers from FastRAM, which the hardware can't do.
A FastRAM-aware disk driver should prevent that (HDDriver should cover that). I think floppy access can have the same issues - I use an AUTO patch to get around that on the AB040 board.
Earlier I thought I had old damaged floppy disks but now I think these floppy disk problems are similar to those with a SCSI disk.
It's as if the read/write doesn't work properly when the program that handles it is running in TT-RAM.
Can this be fixed somehow?
-
markus0321
- Posts: 146
- Joined: 19 Dec 2020 11:42
- Location: Zielona Gora
Re: DFB1 Support thread
What is this patch in AUTO, maybe it will also work with DFB1? Can I try to test it?dml wrote: 21 Nov 2022 18:04 If it reliably fails with FastRAM mapped, but works ok with FastRAM disabled (but with everything else still accelerated) then it is most likely the disk driver trying to initiate SCSI DMA transfers from FastRAM, which the hardware can't do.
A FastRAM-aware disk driver should prevent that (HDDriver should cover that). I think floppy access can have the same issues - I use an AUTO patch to get around that on the AB040 board.
-
dml
- Posts: 842
- Joined: 15 Nov 2017 22:11
Re: DFB1 Support thread
I am not sure - I just remember seeing it flash by recently while booting the AB40 and remembered that floppy DMA access probably needs help to avoid FastRAM. I think it patches the GEMDOS DTA buffer or something to keep it in STRam.markus0321 wrote: 22 Nov 2022 09:01 What is this patch in AUTO, maybe it will also work with DFB1? Can I try to test it?
Anyway I'll dig it out and post a link today sometime.
d:m:l
BadMooD d/l: https://www.leonik.net/dml/sec_bm.py
SVO30 d/l: https://www.leonik.net/dml/sec_svo30.py
Q2 engine d/l: https://www.leonik.net/dml/sec_q2.py
AGT project: https://www.leonik.net/dml/sec_agt.py
Atari page: http://www.leonik.net/dml/sec_atari.py
YT: https://www.youtube.com/@dmlTPT
BadMooD d/l: https://www.leonik.net/dml/sec_bm.py
SVO30 d/l: https://www.leonik.net/dml/sec_svo30.py
Q2 engine d/l: https://www.leonik.net/dml/sec_q2.py
AGT project: https://www.leonik.net/dml/sec_agt.py
Atari page: http://www.leonik.net/dml/sec_atari.py
YT: https://www.youtube.com/@dmlTPT
-
markus0321
- Posts: 146
- Joined: 19 Dec 2020 11:42
- Location: Zielona Gora
Re: DFB1 Support thread
Cool. I will be grateful, and next time I will test if it helps and write back here on the forum. If it works, I'll let you know.dml wrote: 22 Nov 2022 09:04I am not sure - I just remember seeing it flash by recently while booting the AB40 and remembered that floppy DMA access probably needs help to avoid FastRAM. I think it patches the GEMDOS DTA buffer or something to keep it in STRam.markus0321 wrote: 22 Nov 2022 09:01 What is this patch in AUTO, maybe it will also work with DFB1? Can I try to test it?
Anyway I'll dig it out and post a link today sometime.
In the meantime, I'll make some 1.44MB ZIP files for testing.
-
dml
- Posts: 842
- Joined: 15 Nov 2017 22:11
Re: DFB1 Support thread
That seems a bit weird, for sure.markus0321 wrote: 22 Nov 2022 08:42 Yes, I used HDDRIVER, I also tried using EmuTOS and then there are also problems. DMA transfers seem to work because otherwise it would not read the disk at all and here it works ok, but from time to time there are distortions in the transmitted data.
The location of the file transfer buffers will affect SCSI and floppy access when FastRAM is present. If the buffers are in FastRAM, the disk transfer will always fail. They might move around depending on what is in your AUTO folder and how things are configured, but won't move around between disk accesses. That would be an easy test to confirm.
If transfers work most of the time but fail intermittently (and with HDDriver, which should be safe re: FastRAM) it does seem more like a signals issue.
The CPU data cache can corrupt DMA transfers if not flushed but TOS & HDDriver should also protect against that since it is a property common to all 030 machines.
[EDIT]
I had to deal with some of these issues in the AB040 driver I made years ago - the 040 just makes all the same problems worse (bigger data cache, TOS mapped to FastRAM etc. etc.). But its basically the same set of problems, including potential signals issues for SDMA.
I'll have a look through the code and see what patches it makes for disk access safety. Maybe something useful there.
d:m:l
BadMooD d/l: https://www.leonik.net/dml/sec_bm.py
SVO30 d/l: https://www.leonik.net/dml/sec_svo30.py
Q2 engine d/l: https://www.leonik.net/dml/sec_q2.py
AGT project: https://www.leonik.net/dml/sec_agt.py
Atari page: http://www.leonik.net/dml/sec_atari.py
YT: https://www.youtube.com/@dmlTPT
BadMooD d/l: https://www.leonik.net/dml/sec_bm.py
SVO30 d/l: https://www.leonik.net/dml/sec_svo30.py
Q2 engine d/l: https://www.leonik.net/dml/sec_q2.py
AGT project: https://www.leonik.net/dml/sec_agt.py
Atari page: http://www.leonik.net/dml/sec_atari.py
YT: https://www.youtube.com/@dmlTPT
Who is online
Users browsing this forum: ClaudeBot and 2 guests