On Fri, Jun 19, 2015 at 09:50:35PM -0400, John Snow wrote: > - /* Note: We calculate the sector count, but don't currently rely on it. > - * The total size of the DMA buffer tells us the transfer size instead. */ > ncq_tfs->sector_count = ((uint16_t)ncq_fis->sector_count_high << 8) | > ncq_fis->sector_count_low; > + ahci_populate_sglist(ad, &ncq_tfs->sglist, 0); > + size = ncq_tfs->sector_count * 512; I just saw that a later patch addresses the sector_count inconsistency, so I'm happy with this now.