Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/jdolecek-ncq]: src/sys/dev/ata Use WDC_QUEUE_DEPTH_MASK to correctly mas...
details: https://anonhg.NetBSD.org/src/rev/6402ae44d940
branches: jdolecek-ncq
changeset: 352646:6402ae44d940
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Sun Apr 23 01:30:30 2017 +0000
description:
Use WDC_QUEUE_DEPTH_MASK to correctly mask the NCQ depth IDENTIFY data.
diffstat:
sys/dev/ata/ata.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 978b395af611 -r 6402ae44d940 sys/dev/ata/ata.c
--- a/sys/dev/ata/ata.c Sun Apr 23 01:26:50 2017 +0000
+++ b/sys/dev/ata/ata.c Sun Apr 23 01:30:30 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ata.c,v 1.132.8.6 2017/04/19 21:42:39 jdolecek Exp $ */
+/* $NetBSD: ata.c,v 1.132.8.7 2017/04/23 01:30:30 jakllsch Exp $ */
/*
* Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved.
@@ -25,7 +25,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.132.8.6 2017/04/19 21:42:39 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.132.8.7 2017/04/23 01:30:30 jakllsch Exp $");
#include "opt_ata.h"
@@ -1744,7 +1744,8 @@
if (params.atap_sata_caps & SATA_NATIVE_CMDQ) {
if (atac->atac_cap & ATAC_CAP_NCQ)
drvp->drive_flags |= ATA_DRIVE_NCQ;
- drvp->drv_openings = (params.atap_queuedepth & 0x0f) + 1;
+ drvp->drv_openings =
+ (params.atap_queuedepth & WDC_QUEUE_DEPTH_MASK) + 1;
aprint_verbose("%s NCQ (%d tags)", sep, drvp->drv_openings);
sep = ",";
}
Home |
Main Index |
Thread Index |
Old Index