• Tejun Heo's avatar
    sata_sil24: fix sg table sizing · 93e2618e
    Tejun Heo authored
    sil24 unnecessarily used LIBATA_MAX_PRD and ATAPI sg table was short
    by one entry which might cause very obscure problems.  This patch
    updates sg table sizing such that
    
    * One full page is used for PRB + sg table.  On 4k page,
      this results in 253 sg's.
    
    * Make ATAPI sg block properly sized.
    
    * Make build fail if command block size doesn't equal PAGE_SIZE.
    Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    93e2618e
sata_sil24.c 38.7 KB