Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci msk(4): actually moderate interrupts from the Yu...
details: https://anonhg.NetBSD.org/src/rev/1e95d634b9fb
branches: trunk
changeset: 1009685:1e95d634b9fb
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Thu Apr 30 14:04:54 2020 +0000
description:
msk(4): actually moderate interrupts from the Yukon 2 Status BMU
Previously the interrupt moderation enable register was being programmed
with sk(4)-style enable bits, none of which matched the significant
interrupt sources of the Yukon 2 we enable.
diffstat:
sys/dev/pci/if_msk.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r bb8e342c32b4 -r 1e95d634b9fb sys/dev/pci/if_msk.c
--- a/sys/dev/pci/if_msk.c Thu Apr 30 13:59:50 2020 +0000
+++ b/sys/dev/pci/if_msk.c Thu Apr 30 14:04:54 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_msk.c,v 1.107 2020/04/30 13:51:43 jakllsch Exp $ */
+/* $NetBSD: if_msk.c,v 1.108 2020/04/30 14:04:54 jakllsch Exp $ */
/* $OpenBSD: if_msk.c,v 1.79 2009/10/15 17:54:56 deraadt Exp $ */
/*
@@ -52,7 +52,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.107 2020/04/30 13:51:43 jakllsch Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_msk.c,v 1.108 2020/04/30 14:04:54 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -866,8 +866,7 @@
aprint_verbose_dev(sc->sk_dev,
"interrupt moderation is %d us\n", sc->sk_int_mod);
sk_win_write_4(sc, SK_IMTIMERINIT, SK_IM_USECS(sc->sk_int_mod));
- sk_win_write_4(sc, SK_IMMR, SK_ISR_TX1_S_EOF | SK_ISR_TX2_S_EOF |
- SK_ISR_RX1_EOF | SK_ISR_RX2_EOF);
+ sk_win_write_4(sc, SK_IMMR, SK_Y2_IMR_BMU);
sk_win_write_1(sc, SK_IMTIMERCTL, SK_IMCTL_START);
sc->sk_int_mod_pending = 0;
}
Home |
Main Index |
Thread Index |
Old Index