1 |
On 1/21/2011 3:05 PM, meino.cramer@×××.de wrote: |
2 |
|
3 |
> solfire:/root>dmesg | grep -i ahci |
4 |
> ahci 0000:00:11.0: version 3.0 |
5 |
> *0* ahci 0000:00:11.0: PCI INT A -> GSI 19 (level, low) -> IRQ 19 |
6 |
> *1* ahci 0000:00:11.0: irq 78 for MSI/MSI-X |
7 |
> *2* ahci 0000:00:11.0: AHCI 0001.0200 32 slots 6 ports 3 Gbps 0x3f impl SATA mode |
8 |
> *3* ahci 0000:00:11.0: flags: 64bit ncq sntf ilck pm led clo pmp pio slum part |
9 |
|
10 |
> ahci 0000:07:00.0: PCI INT A -> GSI 44 (level, low) -> IRQ 44 |
11 |
> *4* ahci 0000:07:00.0: AHCI 0001.0000 32 slots 2 ports 3 Gbps 0x3 impl SATA mode |
12 |
> *5* ahci 0000:07:00.0: flags: 64bit ncq pm led clo pmp pio slum part |
13 |
> *6* ahci 0000:07:00.0: setting latency timer to 64 |
14 |
|
15 |
> For me bare eye this looks like the kernel ha switched all seven ports |
16 |
> to AHCI. |
17 |
|
18 |
To say that the kernel "switched" the ports is probably misleading. The |
19 |
kernel is just trying to hook up the devices it finds to the device |
20 |
drivers it has available. |
21 |
|
22 |
You told the kernel it was ok to use the AHCI driver. The kernel |
23 |
located those ports, detected that they supported the AHCI interface, |
24 |
and thus, attached the AHCI SATA driver to them. If you had told your |
25 |
BIOS that those ports should be operated as IDE instead of AHCI, then |
26 |
the kernel wouldn't have found any supported AHCI hardware and you |
27 |
probably wouldn't be able to boot. |
28 |
|
29 |
> Why is line *1* of the first block missing in the second block, |
30 |
> Volker? Why is line *2* talking about "0x3f" while line *4* is using |
31 |
> "0x3", Volker? Why differ line *5* from line *3*, Volker? What does |
32 |
> all these flags mean? |
33 |
|
34 |
You could also dig into the internals of the libahci.c driver to figure |
35 |
out what all of those display items mean. In this case, your seeing two |
36 |
different PCI busses with slightly different capabilities; just off the |
37 |
top of my head, one is probably a 6-port PCI-X bus and the other a |
38 |
2-port PCI bus, but I'd have to go look up the specs to your motherboard |
39 |
to really find out. |
40 |
|
41 |
--Mike |