mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "J.A. Magallon" <jamagallon@able.es>
To: Marc Perkel <marc@perkel.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: SATA SCSI device numbering - I'm confuzed! - Help!
Date: Thu, 22 Dec 2005 01:34:32 +0100	[thread overview]
Message-ID: <20051222013432.5785b9a4@werewolf.auna.net> (raw)
In-Reply-To: <43A9444C.8000009@perkel.com>

[-- Attachment #1: Type: text/plain, Size: 4398 bytes --]

Hi....

> >On Tue, 20 Dec 2005 23:18:32 -0800, Marc Perkel <marc@perkel.com> wrote:
> >
> >  
> >
> >>OK - this really has me stumped. I have a asus A8N-SLI premium 
> >>motherboard. It has 4 SATA ports on it. The ports are numbered 1 to 4. 

Sure ? As I read in the boot log, you have 8 ports. Look harder ;).

> >>So somehow I asumed that port 1 would be /dev/sda ... port 4 would be 
> >>/dev/sdd - but when I boot up the order is very different and doesn't 
> >>make a lot of sense. How can a person predict what drives will get what 
> >>device names. Sure would be handy to be able to know that.
> >>

I will cut the relevant parts of your boot log:

> libata version 1.12 loaded.
> sata_nv version 0.8

> ACPI: PCI Interrupt 0000:00:07.0[A] -> Link [APSI] -> GSI 23 (level, low) -> IRQ 217
> ata1: SATA max UDMA/133 cmd 0x9F0 ctl 0xBF2 bmdma 0xD400 irq 217
> ata2: SATA max UDMA/133 cmd 0x970 ctl 0xB72 bmdma 0xD408 irq 217
> ata1: SATA link up 1.5 Gbps (SStatus 113)
> ata1: dev 0 configured for UDMA/133
> scsi0 : sata_nv
> ata2: SATA link down (SStatus 0)
> scsi1 : sata_nv

First PCI device found has 2 ata ports, one has a drive, nothing in the other.
Note, speed is 133.

>   Vendor: ATA       Model: Maxtor 6B200M0    Rev: BANC
>   Type:   Direct-Access                      ANSI SCSI revision: 05
> SCSI device sda: 398297088 512-byte hdwr sectors (203928 MB)
> Attached scsi disk sda at scsi0, channel 0, id 0, lun 0

Disk found at scsi0, ie, ata1.

> ACPI: PCI Interrupt 0000:00:08.0[A] -> Link [APSJ] -> GSI 22 (level, low) -> IRQ 225
> ata3: SATA link up 1.5 Gbps (SStatus 113)
> scsi2 : sata_nv
> ata4: SATA link up 1.5 Gbps (SStatus 113)
> scsi3 : sata_nv

Next PCI device, with two more ata ports.

>   Vendor: ATA       Model: Maxtor 7L300S0    Rev: BANC
>   Type:   Direct-Access                      ANSI SCSI revision: 05
> SCSI device sdb: 586114704 512-byte hdwr sectors (300091 MB)
> Attached scsi disk sdb at scsi2, channel 0, id 0, lun 0

300Gb disk on scsi2 (ata3).

>   Vendor: ATA       Model: Maxtor 7L300S0    Rev: BANC
>   Type:   Direct-Access                      ANSI SCSI revision: 05
> SCSI device sdc: 586114704 512-byte hdwr sectors (300091 MB)
> Attached scsi disk sdc at scsi3, channel 0, id 0, lun 0

300Gb disk on scsi3 (ata4).

(BTW, why the hell the ata ports are numbered from 1 ?, just to be
different to everyone ? )

> ACPI: PCI Interrupt 0000:05:0a.0[A] -> Link [APC4] -> GSI 19 (level, low) -> IRQ 233
> ata5: SATA max UDMA/100 cmd 0xFFFFC20000006080 ctl 0xFFFFC2000000608A bmdma 0xFFFFC20000006000 irq 233
> ata6: SATA max UDMA/100 cmd 0xFFFFC200000060C0 ctl 0xFFFFC200000060CA bmdma 0xFFFFC20000006008 irq 233
> ata7: SATA max UDMA/100 cmd 0xFFFFC20000006280 ctl 0xFFFFC2000000628A bmdma 0xFFFFC20000006200 irq 233
> ata8: SATA max UDMA/100 cmd 0xFFFFC200000062C0 ctl 0xFFFFC200000062CA bmdma 0xFFFFC20000006208 irq 233
> ata5: SATA link down (SStatus 0)
> scsi4 : sata_sil
> ata6: SATA link down (SStatus 0)
> scsi5 : sata_sil
> ata7: SATA link down (SStatus 0)
> scsi6 : sata_sil
> ata8: SATA link down (SStatus 0)
> scsi7 : sata_sil

One other PCI device, but this time with _4_ SATA ports.
And note again, this are just 100 MHz ports (this is not real speed, but a comparison
with traditional ATA).
And nothing hangs on them.

So you have
- one sata 'card', speed 133, with 2 ports, one disk on the first and nothing
  on the second
- one other similar card, with 2 ports, and one disk on each
- a third card, with 4 slower SATA ports (100), and nothing hung.

(when I say 'card', I mean 'pci device')

So be sure about the labeling on your board, cay you post the results
of

lspci
lspci -n
lspci -v

(All this supposing I _can_ read kernel messages... and understan them)

Take a look at this:

http://www.tomshardware.com/2005/03/23/asus_a8n/index.html

specially

http://www.tomshardware.com/2005/03/23/asus_a8n/page3.html

at the bottom of the page. You'll see your 8 sata ports.

Hope this helps.

Really curious chipset...

--
J.A. Magallon <jamagallon()able!es>     \               Software is like sex:
werewolf!able!es                         \         It's better when it's free
Mandriva Linux release 2006.1 (Cooker) for i586
Linux 2.6.14-jam5 (gcc 4.0.2 (4.0.2-1mdk for Mandriva Linux release 2006.1))

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      reply	other threads:[~2005-12-22  0:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-21  7:18 Marc Perkel
2005-12-21  8:34 ` J.A. Magallon
2005-12-21 12:02   ` Marc Perkel
2005-12-22  0:34     ` J.A. Magallon [this message]

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=20051222013432.5785b9a4@werewolf.auna.net \
    --to=jamagallon@able.es \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marc@perkel.com \
    /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

Powered by JetHome