• Mark Lord's avatar
    sata_mv ncq Introduce per-tag SG tables · eb73d558
    Mark Lord authored
    In preparation for supporting NCQ, we must allocate separate SG tables
    for each command tag, rather than just a single table per port as before.
    
    Gen-I hardware cannot do NCQ, though, so we still allocate just a single
    table for that, but populate it in all 32 slots to avoid special-cases
    elsewhere in hotter paths of the code.
    Signed-off-by: default avatarMark Lord <mlord@pobox.com>
    Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
    eb73d558
sata_mv.c 76.9 KB