summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJonathan Matthew <jmatthew@cvs.openbsd.org>2019-03-12 01:07:38 +0000
committerJonathan Matthew <jmatthew@cvs.openbsd.org>2019-03-12 01:07:38 +0000
commit27232cc18d3f9358a270c486648e95eca1261d2a (patch)
treebb1667039d9ae42d3dbfb7019dd527b17bc93a51 /sys/dev/pci
parente88d185d3f08f1f452c697f036281f98651ca59a (diff)
Until we can figure out why it causes NMIs on some machines, skip the
pre-reset steps described in Intel's datasheet and also their driver code. ok dlg@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_ixl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/pci/if_ixl.c b/sys/dev/pci/if_ixl.c
index a68ce034dc0..7b9280939e9 100644
--- a/sys/dev/pci/if_ixl.c
+++ b/sys/dev/pci/if_ixl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_ixl.c,v 1.25 2019/03/06 11:00:49 jmatthew Exp $ */
+/* $OpenBSD: if_ixl.c,v 1.26 2019/03/12 01:07:37 jmatthew Exp $ */
/*
* Copyright (c) 2013-2015, Intel Corporation
@@ -1129,7 +1129,9 @@ struct ixl_softc {
#define delaymsec(_ms) delay(1000 * (_ms))
+#ifdef notyet
static void ixl_clear_hw(struct ixl_softc *);
+#endif
static int ixl_pf_reset(struct ixl_softc *);
static int ixl_dmamem_alloc(struct ixl_softc *, struct ixl_dmamem *,
@@ -1405,7 +1407,9 @@ ixl_attach(struct device *parent, struct device *self, void *aux)
I40E_PFLAN_QALLOC_FIRSTQ_MASK) >>
I40E_PFLAN_QALLOC_FIRSTQ_SHIFT;
+#ifdef notyet
ixl_clear_hw(sc);
+#endif
if (ixl_pf_reset(sc) == -1) {
/* error printed by ixl_pf_reset */
@@ -4011,6 +4015,7 @@ ixl_arq_unfill(struct ixl_softc *sc)
}
}
+#ifdef notyet
static void
ixl_clear_hw(struct ixl_softc *sc)
{
@@ -4096,6 +4101,7 @@ ixl_clear_hw(struct ixl_softc *sc)
/* short wait for all queue disables to settle */
delaymsec(50);
}
+#endif
static int
ixl_pf_reset(struct ixl_softc *sc)