From b96fc23d47e94d938d60ac871194feb18c6e1f63 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 1 Jul 2009 19:48:22 -0700 Subject: [PATCH] SILI - Fix embarassing bug for non-NCQ disk accesses > 128G Fix an embarassing bug for non-NCQ disk accesses > 128G. This only applied to non-NCQ accesses for disks and typically will not happen with the SILI part since it can use NCQ for everything. Non-NCQ accesses for seek positions from 128G to 2TB were wrapping the LBA. --- sys/dev/disk/sili/sili_cam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/disk/sili/sili_cam.c b/sys/dev/disk/sili/sili_cam.c index 85431d7d41..61c51ff122 100644 --- a/sys/dev/disk/sili/sili_cam.c +++ b/sys/dev/disk/sili/sili_cam.c @@ -1138,7 +1138,7 @@ sili_xpt_scsi_disk_io(struct sili_port *ap, struct ata_port *atx, fis->sector_count = xa->tag << 3; fis->features = (u_int8_t)count; fis->features_exp = (u_int8_t)(count >> 8); - } else if (count > 0x100 || lba > 0xFFFFFFFFU) { + } else if (count > 0x100 || lba > 0x0FFFFFFFU) { /* * Use LBA48 */ -- 2.11.4.GIT