linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* weird /proc/ide/hdx/settings
@ 2001-02-23 14:02 David Balazic
  2001-02-25  5:10 ` Andre Hedrick
  0 siblings, 1 reply; 3+ messages in thread
From: David Balazic @ 2001-02-23 14:02 UTC (permalink / raw)
  To: linux-kernel

Running kernel 2.4.2 :

cat /proc/ide/hdc/settings

name                    value           min             max             mode
----                    -----           ---             ---             ----
bios_cyl                89355           0               65535           rw
bios_head               16              0               255             rw
bios_sect               63              0               63              rw
breada_readahead        4               0               127             rw
bswap                   0               0               1               r
current_speed           69              0               69              rw
file_readahead          0               0               2097151         rw
ide_scsi                0               0               1               rw
init_speed              12              0               69              rw
io_32bit                1               0               3               rw
keepsettings            0               0               1               rw
lun                     0               0               7               rw
max_kb_per_request      128             1               127             rw
multcount               0               0               8               rw
nice1                   1               0               1               rw
nowerr                  0               0               1               rw
number                  2               0               3               rw
pio_mode                write-only      0               255             w
slow                    0               0               1               rw
unmaskirq               1               0               1               rw
using_dma      
--------------------%X---------------

max_kb_per_request  has value 128 , but max is 127 !?

max for multcount is 8 , but my drive supports 16 sectors. ( see hdparm output below )
If I set multcount to 8 sectors ( hdparm -m 8 /dev/hdc ) 
then /proc/ide/hdc/settings will show :
multcount               4               0               8               rw

The values are divided by 2. Why ?


hdparm -i /dev/hdc  :

/dev/hdc:

 Model=IBM-DTLA-307045, FwRev=TX6OA60A, SerialNo=YMEYMML9342
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=40
 BuffType=DualPortCache, BuffSize=1916kB, MaxMultSect=16, MultSect=off
 CurCHS=16383/16/63, CurSects=-66060037, LBA=yes, LBAsects=90069840
 IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes: pio0 pio1 pio2 pio3 pio4 
 DMA modes: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 

IDE interface is VIA xxx686b ( ATA-100 )
IDE driver is VIA IDE v4.3

-- 
David Balazic
--------------
"Be excellent to each other." - Bill & Ted
- - - - - - - - - - - - - - - - - - - - - -

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: weird /proc/ide/hdx/settings
  2001-02-23 14:02 weird /proc/ide/hdx/settings David Balazic
@ 2001-02-25  5:10 ` Andre Hedrick
  2001-02-26 19:29   ` David Balazic
  0 siblings, 1 reply; 3+ messages in thread
From: Andre Hedrick @ 2001-02-25  5:10 UTC (permalink / raw)
  To: David Balazic; +Cc: linux-kernel


Zero is a counting number. 0->255 == 1->256.
On Fri, 23 Feb 2001, David Balazic wrote:

> Running kernel 2.4.2 :
> 
> cat /proc/ide/hdc/settings
> 
> name                    value           min             max             mode
> ----                    -----           ---             ---             ----
> bios_cyl                89355           0               65535           rw
> bios_head               16              0               255             rw
> bios_sect               63              0               63              rw
> breada_readahead        4               0               127             rw
> bswap                   0               0               1               r
> current_speed           69              0               69              rw
> file_readahead          0               0               2097151         rw
> ide_scsi                0               0               1               rw
> init_speed              12              0               69              rw
> io_32bit                1               0               3               rw
> keepsettings            0               0               1               rw
> lun                     0               0               7               rw
> max_kb_per_request      128             1               127             rw
> multcount               0               0               8               rw
> nice1                   1               0               1               rw
> nowerr                  0               0               1               rw
> number                  2               0               3               rw
> pio_mode                write-only      0               255             w
> slow                    0               0               1               rw
> unmaskirq               1               0               1               rw
> using_dma      
> --------------------%X---------------
> 
> max_kb_per_request  has value 128 , but max is 127 !?
> 
> max for multcount is 8 , but my drive supports 16 sectors. ( see hdparm output below )
> If I set multcount to 8 sectors ( hdparm -m 8 /dev/hdc ) 
> then /proc/ide/hdc/settings will show :
> multcount               4               0               8               rw
> 
> The values are divided by 2. Why ?
> 
> 
> hdparm -i /dev/hdc  :
> 
> /dev/hdc:
> 
>  Model=IBM-DTLA-307045, FwRev=TX6OA60A, SerialNo=YMEYMML9342
>  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
>  RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=40
>  BuffType=DualPortCache, BuffSize=1916kB, MaxMultSect=16, MultSect=off
>  CurCHS=16383/16/63, CurSects=-66060037, LBA=yes, LBAsects=90069840
>  IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
>  PIO modes: pio0 pio1 pio2 pio3 pio4 
>  DMA modes: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 
> 
> IDE interface is VIA xxx686b ( ATA-100 )
> IDE driver is VIA IDE v4.3
> 
> -- 
> David Balazic
> --------------
> "Be excellent to each other." - Bill & Ted
> - - - - - - - - - - - - - - - - - - - - - -
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

Andre Hedrick
Linux ATA Development
ASL Kernel Development
-----------------------------------------------------------------------------
ASL, Inc.                                     Toll free: 1-877-ASL-3535
1757 Houret Court                             Fax: 1-408-941-2071
Milpitas, CA 95035                            Web: www.aslab.com


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: weird /proc/ide/hdx/settings
  2001-02-25  5:10 ` Andre Hedrick
@ 2001-02-26 19:29   ` David Balazic
  0 siblings, 0 replies; 3+ messages in thread
From: David Balazic @ 2001-02-26 19:29 UTC (permalink / raw)
  To: Andre Hedrick; +Cc: linux-kernel

Andre Hedrick wrote:
> 
> Zero is a counting number. 0->255 == 1->256.

I don't understand.
This doesn't explain (value) is bigger than (max).

Are you saying that (value) is counted from 1 , while
(max) ( and min too ? ) is counted from 0 ?

david

> On Fri, 23 Feb 2001, David Balazic wrote:
> 
> > Running kernel 2.4.2 :
> >
> > cat /proc/ide/hdc/settings
> >
> > name                    value           min             max             mode
> > ----                    -----           ---             ---             ----
> > bios_cyl                89355           0               65535           rw
> > bios_head               16              0               255             rw
> > bios_sect               63              0               63              rw
> > breada_readahead        4               0               127             rw
> > bswap                   0               0               1               r
> > current_speed           69              0               69              rw
> > file_readahead          0               0               2097151         rw
> > ide_scsi                0               0               1               rw
> > init_speed              12              0               69              rw
> > io_32bit                1               0               3               rw
> > keepsettings            0               0               1               rw
> > lun                     0               0               7               rw
> > max_kb_per_request      128             1               127             rw
> > multcount               0               0               8               rw
> > nice1                   1               0               1               rw
> > nowerr                  0               0               1               rw
> > number                  2               0               3               rw
> > pio_mode                write-only      0               255             w
> > slow                    0               0               1               rw
> > unmaskirq               1               0               1               rw
> > using_dma
> > --------------------%X---------------
> >
> > max_kb_per_request  has value 128 , but max is 127 !?
> >
> > max for multcount is 8 , but my drive supports 16 sectors. ( see hdparm output below )
> > If I set multcount to 8 sectors ( hdparm -m 8 /dev/hdc )
> > then /proc/ide/hdc/settings will show :
> > multcount               4               0               8               rw
> >
> > The values are divided by 2. Why ?
> >
> >
> > hdparm -i /dev/hdc  :
> >
> > /dev/hdc:
> >
> >  Model=IBM-DTLA-307045, FwRev=TX6OA60A, SerialNo=YMEYMML9342
> >  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
> >  RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=40
> >  BuffType=DualPortCache, BuffSize=1916kB, MaxMultSect=16, MultSect=off
> >  CurCHS=16383/16/63, CurSects=-66060037, LBA=yes, LBAsects=90069840
> >  IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
> >  PIO modes: pio0 pio1 pio2 pio3 pio4
> >  DMA modes: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5
> >
> > IDE interface is VIA xxx686b ( ATA-100 )
> > IDE driver is VIA IDE v4.3
> >
> > --
> > David Balazic
> > --------------
> > "Be excellent to each other." - Bill & Ted
> > - - - - - - - - - - - - - - - - - - - - - -
> > -
> > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> > the body of a message to majordomo@vger.kernel.org
> > More majordomo info at  http://vger.kernel.org/majordomo-info.html
> > Please read the FAQ at  http://www.tux.org/lkml/
> >
> 
> Andre Hedrick
> Linux ATA Development
> ASL Kernel Development
> -----------------------------------------------------------------------------
> ASL, Inc.                                     Toll free: 1-877-ASL-3535
> 1757 Houret Court                             Fax: 1-408-941-2071
> Milpitas, CA 95035                            Web: www.aslab.com


-- 
David Balazic
--------------
"Be excellent to each other." - Bill & Ted
- - - - - - - - - - - - - - - - - - - - - -

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2001-02-26 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-23 14:02 weird /proc/ide/hdx/settings David Balazic
2001-02-25  5:10 ` Andre Hedrick
2001-02-26 19:29   ` David Balazic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).