Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-7]: src/sys/dev/ic Pull up following revision(s) (requested by ms...
details: https://anonhg.NetBSD.org/src/rev/89738b61b892
branches: netbsd-7
changeset: 798284:89738b61b892
user: martin <martin%NetBSD.org@localhost>
date: Fri Aug 22 10:41:18 2014 +0000
description:
Pull up following revision(s) (requested by msaitoh in ticket #48):
sys/dev/ic/mfi.c: revision 1.54-1.55
Fix mfi(4) panic on boot on some mfi(4) chips.
diffstat:
sys/dev/ic/mfi.c | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diffs (41 lines):
diff -r 2b9c3fce818f -r 89738b61b892 sys/dev/ic/mfi.c
--- a/sys/dev/ic/mfi.c Fri Aug 22 10:38:07 2014 +0000
+++ b/sys/dev/ic/mfi.c Fri Aug 22 10:41:18 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mfi.c,v 1.53 2014/07/25 08:10:37 dholland Exp $ */
+/* $NetBSD: mfi.c,v 1.53.2.1 2014/08/22 10:41:18 martin Exp $ */
/* $OpenBSD: mfi.c,v 1.66 2006/11/28 23:59:45 dlg Exp $ */
/*
@@ -73,7 +73,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfi.c,v 1.53 2014/07/25 08:10:37 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfi.c,v 1.53.2.1 2014/08/22 10:41:18 martin Exp $");
#include "bio.h"
@@ -380,15 +380,18 @@
sc->sc_ccb = malloc(sizeof(struct mfi_ccb) * sc->sc_max_cmds,
M_DEVBUF, M_WAITOK|M_ZERO);
- io_req_base = (uint8_t *)MFIMEM_KVA(sc->sc_tbolt_reqmsgpool);
- io_req_base_phys = MFIMEM_DVA(sc->sc_tbolt_reqmsgpool);
if (sc->sc_ioptype == MFI_IOP_TBOLT) {
/*
* The first 256 bytes (SMID 0) is not used.
* Don't add to the cmd list.
*/
- io_req_base += MEGASAS_THUNDERBOLT_NEW_MSG_SIZE;
- io_req_base_phys += MEGASAS_THUNDERBOLT_NEW_MSG_SIZE;
+ io_req_base = (uint8_t *)MFIMEM_KVA(sc->sc_tbolt_reqmsgpool) +
+ MEGASAS_THUNDERBOLT_NEW_MSG_SIZE;
+ io_req_base_phys = MFIMEM_DVA(sc->sc_tbolt_reqmsgpool) +
+ MEGASAS_THUNDERBOLT_NEW_MSG_SIZE;
+ } else {
+ io_req_base = NULL; /* XXX: gcc */
+ io_req_base_phys = 0; /* XXX: gcc */
}
for (i = 0; i < sc->sc_max_cmds; i++) {
Home |
Main Index |
Thread Index |
Old Index