Commit e8b3b5e9f54512bfdb7c154da07ec0408cbd6c56
Committed by
Jeff Garzik
1 parent
3cd8ddbd86
Exists in
master
and in
7 other branches
sata_sil24: configure max read request size to 4k
Due to request posting limitations, bandwidth of sil3132 is limited to around 120MB/s with the minimum pci-e payload size (128bytes) which is used by most consumer systems. However, write throughput can be slightly (~3%) increased by increasing the max read requeset size. Configure it to 4k which is the maximum supported. This optimization is also done by SIMG's windows driver. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Showing 1 changed file with 5 additions and 0 deletions Side-by-side Diff
drivers/ata/sata_sil24.c
... | ... | @@ -1329,6 +1329,11 @@ |
1329 | 1329 | } |
1330 | 1330 | } |
1331 | 1331 | |
1332 | + /* Set max read request size to 4096. This slightly increases | |
1333 | + * write throughput for pci-e variants. | |
1334 | + */ | |
1335 | + pcie_set_readrq(pdev, 4096); | |
1336 | + | |
1332 | 1337 | sil24_init_controller(host); |
1333 | 1338 | |
1334 | 1339 | pci_set_master(pdev); |