Welcome, Guest. Please login or register.

Author Topic: HDToolbox: What should the "Mask" setting be set at?  (Read 4624 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline barneyTopic starter

  • Hero Member
  • *****
  • Join Date: May 2008
  • Posts: 555
    • Show only replies by barney
HDToolbox: What should the "Mask" setting be set at?
« 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.
 

Offline amiman99

Re: HDToolbox: What should the "Mask" setting be set at?
« Reply #1 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.
A500 KS 2.1, 1MB Chip, 68000
A600 KS 3.1, 2MB Chip, ACA630 32MB RAM
A1000 KS 1.3, 8MB RAM
A1200 KS 3.1, Blizzard IV 50MHz 64MB RAM
A2000 KS 2.1, 68030 25MHz, 6MB RAM
A3000 KS 3.1, 68030 25MHz, 16MB RAM
A4000 KS 3.0, 68040 25MHz, 16MB RAM
CDTV KS 3.1, 4MB RAM
CD32
(AROS BOX) Dead :(
 

Offline pVC

Re: HDToolbox: What should the "Mask" setting be set at?
« Reply #2 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...
Daily MorphOS user and Amiga active.
 

Offline Thomas

Re: HDToolbox: What should the "Mask" setting be set at?
« Reply #3 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.

Offline amiman99

Re: HDToolbox: What should the "Mask" setting be set at?
« Reply #4 on: September 30, 2011, 09:50:26 PM »
Quote from: pVC;662000
Mask, not Max transfer...
Darn...:whack:
A500 KS 2.1, 1MB Chip, 68000
A600 KS 3.1, 2MB Chip, ACA630 32MB RAM
A1000 KS 1.3, 8MB RAM
A1200 KS 3.1, Blizzard IV 50MHz 64MB RAM
A2000 KS 2.1, 68030 25MHz, 6MB RAM
A3000 KS 3.1, 68030 25MHz, 16MB RAM
A4000 KS 3.0, 68040 25MHz, 16MB RAM
CDTV KS 3.1, 4MB RAM
CD32
(AROS BOX) Dead :(
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: HDToolbox: What should the "Mask" setting be set at?
« Reply #5 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.
 

Offline barneyTopic starter

  • Hero Member
  • *****
  • Join Date: May 2008
  • Posts: 555
    • Show only replies by barney
Re: HDToolbox: What should the "Mask" setting be set at?
« Reply #6 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?
« Last Edit: October 01, 2011, 12:35:27 AM by barney »
 

Offline LoadWB

  • Hero Member
  • *****
  • Join Date: Jul 2006
  • Posts: 2901
  • Country: 00
    • Show only replies by LoadWB
Re: HDToolbox: What should the "Mask" setting be set at?
« Reply #7 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.)
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: HDToolbox: What should the "Mask" setting be set at?
« Reply #8 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.
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: HDToolbox: What should the "Mask" setting be set at?
« Reply #9 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.