[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <477EEF64.6030105@zytor.com>
Date: Fri, 04 Jan 2008 18:45:56 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Alan Cox <alan@...rguk.ukuu.org.uk>
CC: Gene Heskett <gene.heskett@...il.com>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: Querying the bios from booted linux kernel?
Alan Cox wrote:
>> Unfortunately, it is not trivial to produce a mapping from EDD data to
>> real-life disks. Your best bet is if the disks have an MBR signature,
>
> Untrue for all but the very earliest EDD. True for our kernel support
> which wants improving some day
>
>> in which case the EDD code will capture those; you can then correlate
>> them to real disks.
>
> EDD 1 provides the I/O base of each BIOS device so you can cross corelate
> at least each IDE device with the BIOS identifier. EDD 3 provides paths
> in multiple forms including PCI identifiers which serve the same purpose.
>
> Unfortunately our EDD boot code doesn't capture the right bits in all
> these cases.
That's true for IDE, definitely, but for other drive technologies the
information can be ether inadequate or downright misleading...
especially when dealing with complex disk topologies. Worse, as one
could expect, the information provided is downright wrong in many cases.
To make matters worse, the EDD standard doesn't have a maintainer, so
new technologies aren't assigned new identifier.
What you'd want is a way to query the disk serial number, but EDD
doesn't provide that (there is the "packet interface", but it doesn't
seem to be widely implemented.)
-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists