Re: [PATCH 1/2] libata: switch to using block layer tagging support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff, you're right, I made some mistakes:
- Reading SiI3132 doc again, it only supports 32 command per port, so
the tags must be share among all the drives behind the same port.
But other chipset does support up to 128 commands per port.
- Jens' patch is working when all disks support NCQ. Only when we have
a mix of drives with or without NCQ we have a problem.

We can not have more than 16 devices per ata_port: a PMP can only have
15 device ports [Sata 2.6- 16.2], and we can not connect a PMP to
another one.

Gwendal.

On Wed, May 20, 2009 at 12:04 PM, Jeff Garzik <jeff@xxxxxxxxxx> wrote:
> Jeff Garzik wrote:
>>
>> Well...   The limiting factor is "ATA command slots per SATA phy", which
>> defines $N active ATA commands per port.  If a SATA NCQ device is attached,
>> you may have $N active ATA commands queued.  If two SATA NCQ devices are
>> attached to a PMP, which is attached to the SATA controller, the two devices
>> share the limit of $N active ATA commands queued.  If 32 devices are
>> attached to a PMP, all 32 devices share the $N command queue limit.
>>
>> But additionally, as Tejun demonstrated, you might have a mix of NCQ and
>> non-NCQ devices attached to the PMP.
>>
>> Thus, it is a case of nested limits:
>>
>> - $N maximum active commands per port; typically N==32
>> - $M maximum active commands per device; typically N==1 or N==32
>
>
> Note that this applies /somewhat/ to mvsas as well:  mvsas has up to 16 "ATA
> register sets" that the OS driver may assign to various ATA devices on a
> single phy.
>
> This simulates the "command slot" concept on dedicated SATA+PMP+NCQ hardware
> like AHCI or sata_sil24.
>
> If you attach more than 16 ATA devices to a PMP, which is theoretically
> possible, then mvsas MUST fail discovery, because it cannot address that
> many ATA devices.
>
> But mvsas's different architecture means that it does not have similar
> "command slot" limits.
>
>        Jeff
>
>
>
>
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux