Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Fix device timeout problem when MSI is used on B...
details: https://anonhg.NetBSD.org/src/rev/ec555da4b57f
branches: trunk
changeset: 353100:ec555da4b57f
user: msaitoh <msaitoh%NetBSD.org@localhost>
date: Thu Apr 20 09:03:04 2017 +0000
description:
Fix device timeout problem when MSI is used on BCM57762, BCM57765 and
BCM57785. Check correctly for BGEF_TAGGED_STATUS. These devices' ASCI core is
BCM5776[56]. Other BSD's BGE_IS_5717_PLUS() include BCM5776[56] but ours
doesn't (because Linux tg3 does so).
Tested with snj's MacBook (BCM57765 (BCM57765 B0 ASIC)) and my Acer Aspire
One 756 (BCM57785(BCM57765 B0 ASIC)). Also Thunderbolt Ethernet
(BCM57762 (BCM57766 A0 ASIC)) should work.
diffstat:
sys/dev/pci/if_bge.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 415bc047d032 -r ec555da4b57f sys/dev/pci/if_bge.c
--- a/sys/dev/pci/if_bge.c Thu Apr 20 08:46:07 2017 +0000
+++ b/sys/dev/pci/if_bge.c Thu Apr 20 09:03:04 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bge.c,v 1.306 2017/04/13 09:25:33 msaitoh Exp $ */
+/* $NetBSD: if_bge.c,v 1.307 2017/04/20 09:03:04 msaitoh Exp $ */
/*
* Copyright (c) 2001 Wind River Systems
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.306 2017/04/13 09:25:33 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_bge.c,v 1.307 2017/04/20 09:03:04 msaitoh Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -3785,7 +3785,7 @@
* we use tagged status only for MSI case on BCM5717. Otherwise
* MSI on BCM5717 does not work.
*/
- if (BGE_IS_5717_PLUS(sc) && sc->bge_flags & BGEF_MSI)
+ if (BGE_IS_57765_PLUS(sc) && sc->bge_flags & BGEF_MSI)
sc->bge_flags |= BGEF_TAGGED_STATUS;
/*
Home |
Main Index |
Thread Index |
Old Index