Received: from list by lists.gnu.org with archive (Exim 4.71) id 1UO4IU-0003sI-Vk for mharc-grub-devel@gnu.org; Fri, 05 Apr 2013 06:55:06 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33462) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO4IT-0003qX-Gm for grub-devel@gnu.org; Fri, 05 Apr 2013 06:55:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UO4IM-0006Fo-GQ for grub-devel@gnu.org; Fri, 05 Apr 2013 06:55:05 -0400 Received: from mail.gw90.de ([188.40.100.199]:35496) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UO4IM-0006Fh-A0 for grub-devel@gnu.org; Fri, 05 Apr 2013 06:54:58 -0400 Received: from e178064088.adsl.alicedsl.de ([85.178.64.88] helo=[192.168.2.49]) by mail.gw90.de with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1UO4IL-0005AA-S5 for grub-devel@gnu.org; Fri, 05 Apr 2013 10:54:58 +0000 Message-ID: <1365159295.20168.36.camel@mattotaupa> Subject: SATA disk on cntroller in AHCI mode not found: `disk/ahci.c:225: couldn't start CR` From: Paul Menzel To: grub-devel@gnu.org Date: Fri, 05 Apr 2013 12:54:55 +0200 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-XLyyCfPD7ofbS9njaJYe" X-Mailer: Evolution 3.4.4-3 Mime-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 188.40.100.199 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 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: Fri, 05 Apr 2013 10:55:05 -0000 --=-XLyyCfPD7ofbS9njaJYe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Dear GRUB developers, as reported to the coreboot mailing list already [1][2], using GRUB (4778) as a payload [3] on the AMD SB800 based ASRock E350M1 [4], the SATA disk attached to the SATA controller is not found when the controller is in AHCI mode. Using IDE mode works. grub> set ?=3D0 boot_once=3Dtrue color_highlight=3Dblack/white color_normal=3Dwhite/black debug=3Dahci,ata default=3D1>Debian GNU/Linux, with Linux 3.2.0-4-686-pae feature_200_final=3Dy feature_all_video_module=3Dy feature_chainloader_bpb=3Dy feature_default_font_path=3Dy feature_menuentry_id=3Dy feature_menuentry_options=3Dy feature_ntldr=3Dy feature_platform_search_hint=3Dy grub_cpu=3Di386 grub_platform=3Dcoreboot lang=3D locale_dir=3D menu_color_highlight=3Dwhite/blue menu_color_normal=3Dcyan/blue menuentry_id_option=3D--id pager=3D prefix=3D(memdisk)/boot/grub prev_saved_entry=3D root=3Dmduuid/fb7f3dc5d183cab6121231201a2207b9 saved_entry=3D secondary_locale_dir=3D grub> insmod ahci disk/ahci.c:291: Requesting AHCI ownership disk/ahci.c:294: Waiting for BIOS to give up ownership disk/ahci.c:305: AHCI ownership obtained disk/ahci.c:311: AHCI is in compat mode. Switching disk/ahci.c:357: 6 AHCI ports disk/ahci.c:367: status 0:123 disk/ahci.c:184: found device ahci0 (port 0) disk/ahci.c:225: couldn't start CR Increasing to timeout unfortunately does not help [2]. =3D=3D=3D modified file 'grub-core/disk/ahci.c' --- grub-core/disk/ahci.c 2013-03-25 09:32:56 +0000 +++ grub-core/disk/ahci.c 2013-03-31 21:32:18 +0000 @@ -193,7 +193,7 @@ } =20 dev->hba->ports[dev->port].command &=3D ~GRUB_AHCI_HBA_PORT_CMD_= ST; - endtime =3D grub_get_time_ms () + 1000; + endtime =3D grub_get_time_ms () + 10000; while ((dev->hba->ports[dev->port].command & GRUB_AHCI_HBA_PORT_= CMD_CR)) if (grub_get_time_ms () > endtime) { SeaBIOS [5] has no problem initializing the controller and strangely it seems to work on Intel based hardware too. I=E2=80=99ll gladly test patches and provide more information. Thanks, Paul [1] http://www.coreboot.org/pipermail/coreboot/2013-March/075583.html [2] http://www.coreboot.org/pipermail/coreboot/2013-April/075592.html [3] http://www.coreboot.org/GRUB2 [4] http://www.coreboot.org/ASRock_E350M1 --=-XLyyCfPD7ofbS9njaJYe Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEABECAAYFAlFerX8ACgkQPX1aK2wOHVhRaACbBsU6ztv9g7MTtk8nntTRlXJZ HVUAniBqeNFVJTqrpwhKegAwVZhZXgpv =cIk3 -----END PGP SIGNATURE----- --=-XLyyCfPD7ofbS9njaJYe--