Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: barney on September 30, 2011, 02:11:57 PM

Title: HDToolbox: What should the "Mask" setting be set at?
Post by: barney on September 30, 2011, 02:11:57 PM
I accidentally changed the "Mask" value on my partition in HDToolbox.  I have a GVP 68030 card/accelerator.  Does anybody know what the typical setting this should be set at?  Thanks.
Title: Re: HDToolbox: What should the "Mask" setting be set at?
Post by: amiman99 on September 30, 2011, 04:28:37 PM
0x1FE00 or 0xFE00for IDE devices on A600 and A1200.
SCSI, I'm not sure if is the same.
I had problems with A600 and WHDLoad when upgraded to ACA630, when the values were changed everything worked fine.
Title: Re: HDToolbox: What should the "Mask" setting be set at?
Post by: pVC on September 30, 2011, 05:45:06 PM
Quote from: amiman99;661996
0x1FE00 or 0xFE00for IDE devices on A600 and A1200.
SCSI, I'm not sure if is the same.
I had problems with A600 and WHDLoad when upgraded to ACA630, when the values were changed everything worked fine.


Mask, not Max transfer...
Title: Re: HDToolbox: What should the "Mask" setting be set at?
Post by: Thomas on September 30, 2011, 08:43:06 PM
Quote from: barney;661970
I accidentally changed the "Mask" value on my partition in HDToolbox.  I have a GVP 68030 card/accelerator.  Does anybody know what the typical setting this should be set at?  Thanks.



For controllers without DMA it can be set to 0xffffffff. For DMA controllers it should be set to whatever the controller needs (read the manual).

Also check the manuals of SFS and/or PFS3. They contain a quite good explanation of Mask and MaxTransfer and what they are good for.
Title: Re: HDToolbox: What should the "Mask" setting be set at?
Post by: amiman99 on September 30, 2011, 09:50:26 PM
Quote from: pVC;662000
Mask, not Max transfer...
Darn...:whack:
Title: Re: HDToolbox: What should the "Mask" setting be set at?
Post by: Zac67 on September 30, 2011, 10:53:09 PM
Try 0xFFFFFFFC - any 32 bit RAM, 32 bit aligned. Fast RAM priority will take care of using the fastest chunk first. That mask is also fine with PIO/IDE controllers.
Zorro II DMA controllers need to be restricted to 24 bit address (in case you've got or may get 32 bit RAM), so it'll be 0x00FFFFFC.
Title: Re: HDToolbox: What should the "Mask" setting be set at?
Post by: barney on October 01, 2011, 12:34:48 AM
The hardware I am using is as follows: GVP 68030 SCSI / Accelerator card w 16mb GVP RAM.  Hard drive is a 2.1 IBM 50 pin HD.
The reason I am having trouble is because when I went to change my Max Transfer, I accidentally changed the Mask instead.  Now my mask reads: 0x1FE00 and my Max Transfer reads: 0X7fffffff

Do these numbers make any sense?  By the way Zac67, I tried 0xFFFFFFFC  like you suggested but it didn't take (would not allow me to save).  Any more number combonations you might know?
Title: Re: HDToolbox: What should the "Mask" setting be set at?
Post by: LoadWB on October 01, 2011, 01:03:01 AM
Quote from: barney;662052
The hardware I am using is as follows: GVP 68030 SCSI / Accelerator card w 16mb GVP RAM.  Hard drive is a 2.1 IBM 50 pin HD.
The reason I am having trouble is because when I went to change my Max Transfer, I accidentally changed the Mask instead.  Now my mask reads: 0x1FE00 and my Max Transfer reads: 0X7fffffff

Do these numbers make any sense?  By the way Zac67, I tried 0xFFFFFFFC  like you suggested but it didn't take (would not allow me to save).  Any more number combonations you might know?


Why were you changing your MaxTransfer, in the first place?  IIRC, I always used Mask=0x7fffffff and MaxTransfer=0xffffffff on my old GVP SCSI stuff (A500HD+, A530 Turbo, and G-Force 040.)
Title: Re: HDToolbox: What should the "Mask" setting be set at?
Post by: Zac67 on October 01, 2011, 10:44:52 AM
As it seems, your values have been swapped...

As mask you can use 0x7FFFFFFC as well (haven't been doing this for a while), the upper 2 GB address space isn't used anyway.

The function of the mask value is quite simple: it is applied (bitwise AND) to the address of a potential buffer and if it matches (the address value isn't changed) that address is good.

However, the implications are not so simple. Essentially, zeroing leading bits forces the buffer to a lower address. A mask of 0x001FFFFF (2x 1M - 1) forces the buffer to the lowest 2 MB - chip RAM; 0x00FFFFFF (16x 1M - 1) to the lowest 16 MB (24 bit space) etc.
Zeroing trailing bits affects the alignment of the buffer. 0x.......F matches any address, so there's no alignment (which usually slows down 16 or 32 bit transfers). 0x.......E (lowest bit zeroed) makes the address divisible by 2 so it's 16 bit aligned; 0x.......C makes it 32 bit aligned - depending of the hardware in use this may not be a benefit but it doesn't hurt.
Title: Re: HDToolbox: What should the "Mask" setting be set at?
Post by: Framiga on October 01, 2011, 12:30:05 PM
Quote from: barney;662052
 By the way Zac67, I tried 0xFFFFFFFC  like you suggested but it didn't take (would not allow me to save).  Any more number combonations you might know?


when you need to change values in HDToolbox, type the new value and hit RETURN, or it won't keep/save the changes.