Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] AHCI/IDE-question
Date: Fri, 21 Jan 2011 19:10:05
Message-Id: AANLkTi=2H0jjdO7QasjPEGToMygZGxaHzz-FCLpgpjwO@mail.gmail.com
In Reply to: [gentoo-user] AHCI/IDE-question by meino.cramer@gmx.de
1 On Fri, Jan 21, 2011 at 10:45 AM, <meino.cramer@×××.de> wrote:
2 >
3 > Hi,
4 >
5 > I got a little confused about the sense or nonsense of AHCI vs. IDE.
6 >
7 > I run a ASUS Crosshair IV Formula, which BIOS has a menu entry to
8 > configure the SATA ports either for IDE or AHCI or RAID. Forget RAID
9 > for a momen -- I dont use it (nothing against RAID ! ;)
10 >
11 > My box uses a linux 2.6.37 vanilla kernel.
12 >
13 > The kernel config has been set to
14 >
15 >    CONFIG_SATA_AHCI=y
16 >    # CONFIG_SATA_AHCI_PLATFORM is not set
17 >
18 > In the dmesg output I found this:
19 >
20 >    pci 0000:00:11.0: set SATA to AHCI mode
21 >    ahci 0000:00:11.0: AHCI 0001.0200 32 slots 4 ports 3 Gbps 0xf impl SATA mode
22 >    ahci 0000:07:00.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
23 >
24 > despite the fact that AHCI is disabled in the BIOS settings (using
25 > IDE).
26 >
27 > I did an experiment an disabled AHCI in the kernel (to make the kernel
28 > settings consistent with the BIOS.)
29 >
30 > Result: The kernel did not find the root partition.
31 >
32 > In the meanwhile I do not understand all this never more.
33 >
34 > Why does the kernel boots only, if the BIOS says "IDE!" and linux
35 > insists on "AHCI!"...and waht ist the result?
36 >
37 > Best regards,
38 > mcc
39
40 Hi meino,
41 It's disappointing that Volker insists on sending these pissy
42 little responses which don't advance the conversation. Sorry for that.
43
44 Not sure I can lend any weight to the argument but it's my belief
45 that your installation of Gentoo Linux isn't using BIOS to access the
46 disk at all. Once the system boots and loads the kernel, then the
47 kernel loads drivers (or uses what you built into the kernel) and
48 takes over control of the hardware using the AHCI drivers. If the
49 kernel doesn't use BIOS disk calls (INT13?) then it doesn't care what
50 the BIOS thinks because the BIOS is not longer involved. It just talks
51 directly to the hardware.
52
53 I'm happy to be corrected (by Volker I'm sure) but that's my guess
54 as to what you're seeing.
55
56 Good luck!
57
58 Cheers,
59 Mark

Replies

Subject Author
Re: [gentoo-user] AHCI/IDE-question Volker Armin Hemmann <volkerarmin@××××××××××.com>
Re: [gentoo-user] AHCI/IDE-question meino.cramer@×××.de