From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Q0G5g-000401-F4 for mharc-grub-devel@gnu.org; Thu, 17 Mar 2011 12:30:24 -0400 Received: from [140.186.70.92] (port=34596 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0G5Y-0003tM-8X for grub-devel@gnu.org; Thu, 17 Mar 2011 12:30:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0G5Q-0006aX-LT for grub-devel@gnu.org; Thu, 17 Mar 2011 12:30:13 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:62935) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0G5Q-0006aK-HJ for grub-devel@gnu.org; Thu, 17 Mar 2011 12:30:08 -0400 Received: by wyf19 with SMTP id 19so3271029wyf.0 for ; Thu, 17 Mar 2011 09:30:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type; bh=gep0Ym30+91bD5VYzn+L1h1s0WSbYi6JIU1id2d8Pis=; b=Gc6MLh1vTi+GFphL5vj6ZxM92BHV6czJj5/t2px4D43cHSrG739bVKsmoJ6/Ur84Sa rh23d15/KGiGqLwadfknA3oikWay7XgbDHyYMq2B88nfBefp+uCQbZPwhK0j8gk7BPGm 7EUR5CKfxiM2CYf5PG5hZnaaogYG+9nxzDbZA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; b=UlV+ZC1e3E6rkl9Jac+H1lGUfSBCEUleWhq1u3CwMPP8cf8TNatt8xybiYhX5eI4In Pd1yKQFVibFhZ9rHZJSubMRXEFZ/w7GNTaF+nO6qgRdflZFdro4UOqjiXNwWa8CO9Lym EzpTB0nfmAp0zW6DGnCBo49ubLxQZTFRGRfAo= Received: by 10.216.253.147 with SMTP id f19mr1114484wes.19.1300379407252; Thu, 17 Mar 2011 09:30:07 -0700 (PDT) Received: from debian.x201.phnet (gprs35.swisscom-mobile.ch [193.247.250.35]) by mx.google.com with ESMTPS id t11sm1175099wes.41.2011.03.17.09.30.03 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 Mar 2011 09:30:05 -0700 (PDT) Message-ID: <4D8236FF.1060001@gmail.com> Date: Thu, 17 Mar 2011 17:29:51 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20110303 Icedove/3.0.11 MIME-Version: 1.0 To: The development of GNU GRUB References: <20110316151332.GC343@caffeine.csclub.uwaterloo.ca> <4D80D75C.9080007@gmail.com> <20110316173216.GE343@caffeine.csclub.uwaterloo.ca> <4D810D54.1020008@cfl.rr.com> <20110316192358.GG343@caffeine.csclub.uwaterloo.ca> <20110316200908.GH343@caffeine.csclub.uwaterloo.ca> <4D811B40.5090302@gmail.com> <20110316220021.GI343@caffeine.csclub.uwaterloo.ca> <4D8136A5.10502@gmail.com> <20110317160924.GL343@caffeine.csclub.uwaterloo.ca> In-Reply-To: <20110317160924.GL343@caffeine.csclub.uwaterloo.ca> X-Enigmail-Version: 1.0.1 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig01795F85494E68B66EE66413" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 Subject: Re: How to debug 'out of disk' error. X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Mar 2011 16:30:22 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig01795F85494E68B66EE66413 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 17.03.2011 17:09, Lennart Sorensen wrote: > On Wed, Mar 16, 2011 at 11:16:05PM +0100, Vladimir '=CF=86-coder/phcode= r' Serbinenko wrote: > =20 >> It's not really a fixup. Correct return on no error is CF=3D0 AH=3D0. = Some >> BIOSes in some other functions returned CF=3D0, AH!=3D 0 on no error s= o it >> was a wild guess. >> =20 >>> Failed int13_ext call: ah=3D42, drive=3D80, dap=3D 6fe00 returned e= ax=3D8000 >>> =20 >>> =20 >> Error 0x80 according to >> http://www.delorie.com/djgpp/doc/rbinter/it/34/2.html means timeout. >> Following code would retry on timeout: >> =3D=3D=3D modified file 'grub-core/disk/i386/pc/biosdisk.c' >> --- grub-core/disk/i386/pc/biosdisk.c 2011-01-04 14:42:47 +0000 >> +++ grub-core/disk/i386/pc/biosdisk.c 2011-03-16 22:13:12 +0000 >> @@ -72,6 +72,8 @@ >> grub_biosdisk_rw_int13_extensions (int ah, int drive, void *dap) >> { >> struct grub_bios_int_registers regs; >> + int tries =3D 4; >> + retry: >> regs.eax =3D ah << 8; >> /* compute the address of disk_address_packet */ >> regs.ds =3D (((grub_addr_t) dap) & 0xffff0000) >> 4; >> @@ -80,6 +82,16 @@ >> regs.flags =3D GRUB_CPU_INT_FLAGS_DEFAULT; >> =20 >> grub_bios_interrupt (0x13, ®s); >> + if (!(regs.flags & GRUB_CPU_INT_FLAGS_CARRY)) >> + return 0; >> + >> + if (((regs.eax >> 8) & 0xff) =3D=3D 0x80 && tries) >> + { >> + grub_millisleep (10); >> + tries--; >> + goto retry; >> + } >> + >> return (regs.eax >> 8) & 0xff; >> } >> =20 > So that didn't make any difference to it. > > It just keeps returning 0x8000 in eax on every retry. > > =20 Another wild guess: @@ -506,6 +520,8 @@ get_safe_sectors (grub_disk_addr_t secto grub_size_t size; grub_uint32_t offset; =20 + return 1; + /* OFFSET =3D SECTOR % SECTORS */ grub_divmod64 (sector, sectors, &offset); =20 > I really want to find out what this BIOS is doing wrong so I can tell > the system maker what to fix. > > I am going to add some debuging to find out what is in the dap being > passed to the BIOS. > > =20 --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig01795F85494E68B66EE66413 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk2CNwUACgkQNak7dOguQgn98QD/dpN+j0CpZpg0xH7bIdJsmHWU A6nZCd91CV2zuD3wACgA/3whYDdweib2wGKxxnpHPS5f3YSVs5pvc4SnSQ+Io6vI =WOww -----END PGP SIGNATURE----- --------------enig01795F85494E68B66EE66413--