From: Paul Menzel <paulepanter@users.sourceforge.net>
To: grub-devel@gnu.org
Subject: SATA disk on cntroller in AHCI mode not found: `disk/ahci.c:225: couldn't start CR`
Date: Fri, 05 Apr 2013 12:54:55 +0200 [thread overview]
Message-ID: <1365159295.20168.36.camel@mattotaupa> (raw)
[-- Attachment #1: Type: text/plain, Size: 2647 bytes --]
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
?=0
boot_once=true
color_highlight=black/white
color_normal=white/black
debug=ahci,ata
default=1>Debian GNU/Linux, with Linux 3.2.0-4-686-pae
feature_200_final=y
feature_all_video_module=y
feature_chainloader_bpb=y
feature_default_font_path=y
feature_menuentry_id=y
feature_menuentry_options=y
feature_ntldr=y
feature_platform_search_hint=y
grub_cpu=i386
grub_platform=coreboot
lang=
locale_dir=
menu_color_highlight=white/blue
menu_color_normal=cyan/blue
menuentry_id_option=--id
pager=
prefix=(memdisk)/boot/grub
prev_saved_entry=
root=mduuid/fb7f3dc5d183cab6121231201a2207b9
saved_entry=
secondary_locale_dir=
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].
=== 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 @@
}
dev->hba->ports[dev->port].command &= ~GRUB_AHCI_HBA_PORT_CMD_ST;
- endtime = grub_get_time_ms () + 1000;
+ endtime = 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’ll 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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next reply other threads:[~2013-04-05 10:55 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-05 10:54 Paul Menzel [this message]
2013-04-18 11:11 ` SATA disk on cntroller in AHCI mode not found: `disk/ahci.c:225: couldn't start CR` Paul Menzel
2013-04-19 14:40 ` SATA disk on cntroller in AHCI mode not found: Hang at `AHCI status <1 0 150>` Paul Menzel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1365159295.20168.36.camel@mattotaupa \
--to=paulepanter@users.sourceforge.net \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).