Re: EDD enhanchement patch

From: Andries Brouwer
Date: Wed Jul 07 2004 - 18:25:20 EST


On Wed, Jul 07, 2004 at 10:48:51PM +0200, Frediano Ziglio wrote:

> Did anyone forget about first fields? base-port and control-port ? If
> you have an IDE disk they correspond with IDE port and with slave bit
> you can know exactly which disk is. EDD 3.0 it's not required cause it's
> EDD 2.0 (supported by most recent BIOSes).

True. Below a simple example for hda and hdb.
Yes, having EDD 2.0 helps.

> lba 0 ?? cursize 0 ?? sector > 63 ??
> IMHO this disk doesn't exist...

It was hdh: IOMEGA ZIP 100 ATAPI, ATAPI FLOPPY drive, with geometry
(probably 96/64/32, don't know why C and S are interchanged)
obtained from HDIO_GET_IDENTITY.

> For 0x84 it must be hda cause it's the first IDE.

hda or hdb. Since that system boots from SCSI there is no reason to
prefer seeing the first or second IDE disk in the BIOS setup.
(Don't know anymore what the truth was.)

> I know that some boot loader can however change disk order.

Also Linux can change disk order with boot option "ide=reverse".

Andries

----------------------------------------------------------------------------------------
disk 0: len=30 api=0x1
flags 2, phys CHS 2100/255/63, totsecs 33736500, seclen 512
iobase 0x1f0 controlport 0x3f6 irq 14 sector_count 16 dma 32 pio 4
flags: 0xe0: LBA, Master; revision 1.1

disk 1: len=30 api=0x1
flags 2, phys CHS 2100/255/63, totsecs 33736500, seclen 512
iobase 0x1f0 controlport 0x3f6 irq 14 sector_count 16 dma 32 pio 4
flags: 0xf0: LBA, Slave; revision 1.1

Found 2 Linux disks

hda: Size 33750864 LinuxCHS=2100/255/63 FdiskCHS=*/0/63
LBASize 33750864 CurSize 33750864 RawCHS=33483/16/63 CurCHS=2100/255/63
hdb: Size 33750864 LinuxCHS=2100/255/63 FdiskCHS=*/255/63
LBASize 33750864 CurSize 33750864 RawCHS=33483/16/63 CurCHS=2100/255/63

Found 2 BIOS disks

0 of 2: 33720435 sectors, C/H/S 1024 / 255 / 63 C*H*S=16450560
1 of 2: 33720435 sectors, C/H/S 1024 / 255 / 63 C*H*S=16450560


hda: 0x80
hdb: 0x81
----------------------------------------------------------------------------------------

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/