From owner-svn-src-stable@FreeBSD.ORG Fri Mar 27 21:21:36 2009 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D789510656BB; Fri, 27 Mar 2009 21:21:36 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 475688FC1F; Fri, 27 Mar 2009 21:21:36 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2RLLaTr071728; Fri, 27 Mar 2009 21:21:36 GMT (envelope-from marius@svn.freebsd.org) Received: (from marius@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2RLLakg071726; Fri, 27 Mar 2009 21:21:36 GMT (envelope-from marius@svn.freebsd.org) Message-Id: <200903272121.n2RLLakg071726@svn.freebsd.org> From: Marius Strobl Date: Fri, 27 Mar 2009 21:21:36 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-6@freebsd.org X-SVN-Group: stable-6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r190479 - in stable/6/sys: . contrib/pf dev/bge dev/cxgb X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Mar 2009 21:21:39 -0000 Author: marius Date: Fri Mar 27 21:21:35 2009 New Revision: 190479 URL: http://svn.freebsd.org/changeset/base/190479 Log: MFC: r190319 - Ensure that INTx isn't disabled, as these chips apparently have a quirk requiring it to be enabled even when using MSI. - Remove a comment which no longer applies since r190336. Modified: stable/6/sys/ (props changed) stable/6/sys/contrib/pf/ (props changed) stable/6/sys/dev/bge/if_bge.c stable/6/sys/dev/bge/if_bgereg.h stable/6/sys/dev/cxgb/ (props changed) Modified: stable/6/sys/dev/bge/if_bge.c ============================================================================== --- stable/6/sys/dev/bge/if_bge.c Fri Mar 27 21:21:22 2009 (r190478) +++ stable/6/sys/dev/bge/if_bge.c Fri Mar 27 21:21:35 2009 (r190479) @@ -1278,8 +1278,7 @@ bge_stop_fw(sc) } /* - * Do endian, PCI and DMA initialization. Also check the on-board ROM - * self-test results. + * Do endian, PCI and DMA initialization. */ static int bge_chipinit(struct bge_softc *sc) @@ -1387,9 +1386,11 @@ bge_chipinit(struct bge_softc *sc) /* * Disable memory write invalidate. Apparently it is not supported - * properly by these devices. + * properly by these devices. Also ensure that INTx isn't disabled, + * as these chips need it even when using MSI. */ - PCI_CLRBIT(sc->bge_dev, BGE_PCI_CMD, PCIM_CMD_MWIEN, 4); + PCI_CLRBIT(sc->bge_dev, BGE_PCI_CMD, + PCIM_CMD_INTxDIS | PCIM_CMD_MWIEN, 4); #ifdef __brokenalpha__ /* Modified: stable/6/sys/dev/bge/if_bgereg.h ============================================================================== --- stable/6/sys/dev/bge/if_bgereg.h Fri Mar 27 21:21:22 2009 (r190478) +++ stable/6/sys/dev/bge/if_bgereg.h Fri Mar 27 21:21:35 2009 (r190479) @@ -402,6 +402,9 @@ #ifndef PCIM_CMD_MWIEN #define PCIM_CMD_MWIEN 0x0010 #endif +#ifndef PCIM_CMD_INTxDIS +#define PCIM_CMD_INTxDIS 0x0400 +#endif /* * High priority mailbox registers