• T
    sata_sil24: fix sg table sizing · 93e2618e
    Tejun Heo 提交于
    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: NTejun Heo <htejun@gmail.com>
    Signed-off-by: NJeff Garzik <jeff@garzik.org>
    93e2618e
sata_sil24.c 38.7 KB