Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Increase reset delay in polling mode to 10ms per ...
details: https://anonhg.NetBSD.org/src/rev/fafdbee82930
branches: trunk
changeset: 334740:fafdbee82930
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Dec 04 21:50:29 2014 +0000
description:
Increase reset delay in polling mode to 10ms per loop. It seems like
AHCI on the Cubietruck doesn't like the tigther loop.
PR 49448.
diffstat:
sys/dev/ic/ahcisata_core.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r b5a089150bce -r fafdbee82930 sys/dev/ic/ahcisata_core.c
--- a/sys/dev/ic/ahcisata_core.c Thu Dec 04 21:15:48 2014 +0000
+++ b/sys/dev/ic/ahcisata_core.c Thu Dec 04 21:50:29 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ahcisata_core.c,v 1.52 2014/11/23 01:38:49 joerg Exp $ */
+/* $NetBSD: ahcisata_core.c,v 1.53 2014/12/04 21:50:29 joerg Exp $ */
/*
* Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.52 2014/11/23 01:38:49 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.53 2014/12/04 21:50:29 joerg Exp $");
#include <sys/types.h>
#include <sys/malloc.h>
@@ -639,10 +639,12 @@
/*
* Base timeout is specified in ms.
* If we are allowed to sleep, wait a tick each round.
- * Otherwise delay for 1ms on each round.
+ * Otherwise delay for 10ms on each round.
*/
if (flags & AT_WAIT)
timeout = MAX(1, mstohz(timeout));
+ else
+ timeout = timeout / 10;
AHCI_CMDH_SYNC(sc, achp, 0, BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE);
/* start command */
@@ -669,7 +671,7 @@
if (flags & AT_WAIT)
tsleep(&sc, PRIBIO, "ahcifis", 1);
else
- delay(1000);
+ delay(10000);
}
aprint_debug("%s channel %d: timeout sending FIS\n",
Home |
Main Index |
Thread Index |
Old Index