Re: Weird: 30 sec delay during early boot

From: Jeff Garzik
Date: Tue Jul 13 2004 - 17:39:35 EST


Matt Domsch wrote:
David, Jeff, would you mind trying the patch below on your systems
which exhibit the long delays in the EDD real-mode code?

This does a few things:
1) it uses an int13 fn15 "Get Disk Type" command prior to doing the
fn02 "Read Sectors" command, to try to determine if there is a disk
present or not before reading its signature.

2) A few registers are more fully zeroed out, in case the BIOS cared
about things it shouldn't have.

Crossing my fingers that the delays are gone...

Can you attach the patch, or switch mailers?

The patch is word-wrapped and otherwise munged :(

Example:
+# Do int13 fn15 first, as BIOS should know if a disk is present or not.
+# This avoids long (>30s) delays waiting for the READ_SECTORS to a non-pre=
sent disk.
+ xor %eax, %eax
-
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/