Re: [RFC][PATCH] libata ATAPI alignment

Jeff Garzik
2005-08-02T14:41:56Z

Jens Axboe wrote:
> On Fri, Jul 29 2005, Jeff Garzik wrote:
>>diff --git a/drivers/scsi/ahci.c b/drivers/scsi/ahci.c
>>--- a/drivers/scsi/ahci.c
>>+++ b/drivers/scsi/ahci.c
>>@@ -44,7 +44,7 @@
>>
>> enum {
>> AHCI_PCI_BAR = 5,
>>- AHCI_MAX_SG = 168, /* hardware max is 64K */
>>+ AHCI_MAX_SG = 300, /* hardware max is 64K */
>> AHCI_DMA_BOUNDARY = 0xffffffff,
>> AHCI_USE_CLUSTERING = 0,
>> AHCI_CMD_SLOT_SZ = 32 * 32,
>
>
> Reasoning? I agree, just wondering... How big is the allocated area now?

168 kept the entire allocated DMA area to 4K.

300 increases that to <I don't care>K. ;-)

Jeff