public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* "Ghost" devices in /sys/firmware/edd
@ 2006-02-24 19:14 Andrey Borzenkov
  2006-02-25  5:07 ` Matt Domsch
  0 siblings, 1 reply; 3+ messages in thread
From: Andrey Borzenkov @ 2006-02-24 19:14 UTC (permalink / raw)
  To: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have single drive hda; still EDD shows valid and the _same_ MBR signature 
for all possible 16 drives:

{pts/0}% cat /sys/firmware/edd/*/mbr_*
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a
0x7fca3a0a

other attributes are correctly present for the drive 0x80 only.

Not being expert in x86 assembly, but comparing main loops for signature and 
other info:

signature:
        int     $0x13
        sti                     # work around buggy BIOSes
        popw    %dx
        popw    %es
        popw    %bx
        jc      edd_mbr_sig_done                # on failure, we're done.

extended EDD info:

edd_check_ext:
        movb    $CHECKEXTENSIONSPRESENT, %ah    # Function 41
        movw    $EDDMAGIC1, %bx                 # magic
        int     $0x13                           # make the call
        jc      edd_done                        # no more BIOS devices

Is it possible that carry flag is cleared between return from int 0x13 and 
querying for it in the former case? This would perfectly explain that EDD 
does not notice failure of reading sector and simply copies the same 
signature from the very first drive.

- -andrey
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)

iD8DBQFD/1smR6LMutpd94wRAncjAJ0b9wLmKK9V2bc93ghAIUa7dY5VWQCfZ8BP
aiT8y5TX3DE05ZN8wfnfg7E=
=uB1I
-----END PGP SIGNATURE-----

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

end of thread, other threads:[~2006-02-25 14:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-24 19:14 "Ghost" devices in /sys/firmware/edd Andrey Borzenkov
2006-02-25  5:07 ` Matt Domsch
2006-02-25 14:26   ` Andrey Borzenkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox