From owner-svn-src-head@FreeBSD.ORG Fri Nov 4 23:09:57 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6A5B4106566C; Fri, 4 Nov 2011 23:09:57 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5A3768FC19; Fri, 4 Nov 2011 23:09:57 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id pA4N9vFu038467; Fri, 4 Nov 2011 23:09:57 GMT (envelope-from yongari@svn.freebsd.org) Received: (from yongari@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id pA4N9v0R038465; Fri, 4 Nov 2011 23:09:57 GMT (envelope-from yongari@svn.freebsd.org) Message-Id: <201111042309.pA4N9v0R038465@svn.freebsd.org> From: Pyun YongHyeon Date: Fri, 4 Nov 2011 23:09:57 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r227098 - head/sys/dev/ti X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 23:09:57 -0000 Author: yongari Date: Fri Nov 4 23:09:57 2011 New Revision: 227098 URL: http://svn.freebsd.org/changeset/base/227098 Log: Because ti(4) drops a driver lock in RX handler, check whether driver is still running before re-enabling interrupts. Modified: head/sys/dev/ti/if_ti.c Modified: head/sys/dev/ti/if_ti.c ============================================================================== --- head/sys/dev/ti/if_ti.c Fri Nov 4 22:58:34 2011 (r227097) +++ head/sys/dev/ti/if_ti.c Fri Nov 4 23:09:57 2011 (r227098) @@ -2856,12 +2856,12 @@ ti_intr(void *xsc) ti_handle_events(sc); - /* Re-enable interrupts. */ - CSR_WRITE_4(sc, TI_MB_HOSTINTR, 0); - if (ifp->if_drv_flags & IFF_DRV_RUNNING && - ifp->if_snd.ifq_head != NULL) + ifp->if_snd.ifq_head != NULL) { + /* Re-enable interrupts. */ + CSR_WRITE_4(sc, TI_MB_HOSTINTR, 0); ti_start_locked(ifp); + } TI_UNLOCK(sc); }