Hello, On Wed, 24 Feb 2010, Felix Miata wrote:
00:1f.5 IDE interface: Intel Corporation 82801H (ICH8 Family) 2 port SATA IDE Controller (rev 02)
That tells me what controller the OM is attached to, but AFAICT not whether it's on a PATA or SATA port. I might infer that because it listed the 2 port rather than the 4 port, but the fact is the OM device is on an SATA port on the fi965 host.
From the model numbers I know that big31 and gx270 have PATA OM, and fi965 has SATA OM. How from any kind of cmdline script or utility, without using the OM device's model number, can I find out whether the port the OM device is connected to is PATA or SATA?
Try 'lspci -v'. Does that show subdevices or some such? Otherwise, you
could try to rummage about in /sys/ (and/or /proc), if there is any
stuff by which you can discern ICH8 PATA from ICH8 SATA...
BTW: what's the lcpci line for the SATA stuff, is it 'IDE interface'
after the PCI-ID too? With an AMD 770 Chipset you get:
# lspci -v
00:11.0 SATA controller: ATI Technologies Inc SB700/SB800 SATA
Controller [AHCI mode] (prog-if 01 [AHCI 1.0])
Subsystem: Giga-byte Technology Device b002
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 22
I/O ports at ff00 [size=8]
I/O ports at fe00 [size=4]
I/O ports at fd00 [size=8]
I/O ports at fc00 [size=4]
I/O ports at fb00 [size=16]
Memory at fe02f000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [60] Power Management version 2
Capabilities: [70] SATA HBA <?>
Kernel driver in use: ahci
00:14.1 IDE interface: ATI Technologies Inc SB700/SB800 IDE Controller (prog-if 8a [Master SecP PriP])
Subsystem: Giga-byte Technology Device 5002
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 16
I/O ports at 01f0 [size=8]
I/O ports at 03f4 [size=1]
I/O ports at 0170 [size=8]
I/O ports at 0374 [size=1]
I/O ports at fa00 [size=16]
Capabilities: [70] MSI: Enable- Count=1/1 Maskable- 64bit-
Kernel driver in use: pata_atiixp
both are "onboard" in the ATI/AMD SB700 (SB710?) "Southbridge" (like
the ICH). With IDE-mode instead of ahci, IIRC the module would be some
sata_* module. So, have a look at what shows up as "Kernel driver"
with your ICH8. Oh, and you could also have a look at the 'lspci [-v]
-n' output if (sub-) IDs differ. AFAIR, they should.
# lspci -v -n ### annotated
[..]
00:11.0 0106: 1002:4391 (prog-if 01 [AHCI 1.0])
^^^^^^^^^
Subsystem: 1458:b002
^^^^^^^^^
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 22
I/O ports at ff00 [size=8]
I/O ports at fe00 [size=4]
I/O ports at fd00 [size=8]
I/O ports at fc00 [size=4]
I/O ports at fb00 [size=16]
Memory at fe02f000 (32-bit, non-prefetchable) [size=1K]
Capabilities: [60] Power Management version 2
Capabilities: [70] SATA HBA <?>
Kernel driver in use: ahci
[..]
00:14.1 0101: 1002:439c (prog-if 8a [Master SecP PriP])
^^^^^^^^^
Subsystem: 1458:5002
^^^^^^^^^
Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 16
I/O ports at 01f0 [size=8]
I/O ports at 03f4 [size=1]
I/O ports at 0170 [size=8]
I/O ports at 0374 [size=1]
I/O ports at fa00 [size=16]
Capabilities: [70] MSI: Enable- Count=1/1 Maskable- 64bit-
Kernel driver in use: pata_atiixp
I wonder what the 'prog-if' is ... ;)
Once you have those characteristics, you should be able to enhance my
awk script accordingly (or ask with the relevant lspci [-v] [-n]
output).
HTH,
-dnh
--
I have this sinking feeling that I'm going to be sitting in a corner one
day...glazed eyes, drooling and sucking on a 30-pin SIMM.
-- Andrew