From owner-svn-src-all@FreeBSD.ORG Fri Jun 11 20:02:21 2010 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 530611065675; Fri, 11 Jun 2010 20:02:21 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-vw0-f54.google.com (mail-vw0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8C7988FC12; Fri, 11 Jun 2010 20:02:20 +0000 (UTC) Received: by vws20 with SMTP id 20so544770vws.13 for ; Fri, 11 Jun 2010 13:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=TAEOhzoGBhKjnxLgHCIw8F3xr19iy8yO23D1O+llJNk=; b=H2zg7+2RftZhiLu3Q3Rtil2n8HRjFBLVghD3vBQWcRFQlH3gE3tVt+59c+EcnhI4SO MHmmd/qySDp/c7Zgz8XesC5RBPQp5jAfOppPVXkTQImS9hyoSuD2ImkjmxUXIDeV4UMv ZHhh4UJWHUnwM+zXuKDbOetglP7+3w+g2mIeg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=GBtoiUDAPwqXx1kwCANDPMAQlNNSDVUmDaEYsiYaX10yFwVJ0NqwMOcl54RsD2feZU JjobAkwcyrGPdfkjhy5srrLh80wpdSsQz/+0hvAfi5FqAw4bV6Nlh9A18AkN4hKsDQDx bLDJrf7uHESiY9D/a3PXoByOO+C4Y5scgCOzY= MIME-Version: 1.0 Received: by 10.224.86.200 with SMTP id t8mr916571qal.50.1276286538403; Fri, 11 Jun 2010 13:02:18 -0700 (PDT) Received: by 10.229.238.199 with HTTP; Fri, 11 Jun 2010 13:02:18 -0700 (PDT) In-Reply-To: <20100611193903.W26508@maildrop.int.zabbadoz.net> References: <201006111903.o5BJ3xp1062600@svn.freebsd.org> <20100611193903.W26508@maildrop.int.zabbadoz.net> Date: Fri, 11 Jun 2010 13:02:18 -0700 Message-ID: From: Jack Vogel To: "Bjoern A. Zeeb" Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Jack F Vogel , svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r209060 - head/sys/dev/ixgbe X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Jun 2010 20:02:21 -0000 HMMMMM, I put in a change in response to some people having problems with mbuf resources, it seemed to work ok, but now i'm kinda concerned. Does this happen every time you bring the device up? In the routine 'ixgbe_setup_receive_ring()' I changed a couple of M_NOWAIT's to M_WAITOK, thinking that it would be ok in this code, can you test it, change it back to M_NOWAIT, and see if this symptom goes away? How many cores does the machine have, I'm guessing its big? Jack On Fri, Jun 11, 2010 at 12:44 PM, Bjoern A. Zeeb wrote: > On Fri, 11 Jun 2010, Jack F Vogel wrote: > > Author: jfv >> Date: Fri Jun 11 19:03:59 2010 >> New Revision: 209060 >> URL: http://svn.freebsd.org/changeset/base/209060 >> >> Log: >> Remove a disable_queue from the beginning of the >> interrupt handler, automask handles it. >> Also, add in msix vector descriptions. >> >> MFC for 8.1 asap >> > > Hi Jack, > > I just tried a couple of days old HEAD before going to update to this one > and found hundreds of the follwoing "hanging" the machine as the console > stays > busy for .. well don't know yet... load: 1.84 cmd: ifconfig 1386 [*ix0] > 399.98r 0.00u 0.07s 0% 1364k > > ... > uma_zalloc_arg: zone "mbuf_packet" with the following non-sleepable locks > held: > exclusive sleep mutex ix0:rx(0) (ix0:rx(0)) r = 0 (0xffffff0001c25808) > locked @ sys/modules/ixgbe/../../dev/ixgbe/ixgbe.c:3615 > exclusive sleep mutex ix0 (IXGBE Core Lock) r = 0 (0xffffff80110a73b8) > locked @ sys/modules/ixgbe/../../dev/ixgbe/ixgbe.c:1197 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wt_delta 15.e4dd9523a934dd00 too > short rapper+0x2a > kdb_backtrace() at kdb_backtrace+0x32 > _witness_debugger() at _witness_debugger+0x2b > witness_warn() at witness_warn+0x314 > uma_zalloc_arg() at uma_zalloc_arg+0x3e > ixgbe_init_locked() at ixgbe_init_locked+0x6cd > ixgbe_init() at ixgbe_init+0x39 > ether_ioctl() at ether_ioctl+0x71 > ... > > > This happened on: > foo.example.net# ifconfig ix0 up > after kldload ixgbe. > > /bz > > > > Modified: >> head/sys/dev/ixgbe/ixgbe.c >> >> Modified: head/sys/dev/ixgbe/ixgbe.c >> >> ============================================================================== >> --- head/sys/dev/ixgbe/ixgbe.c Fri Jun 11 18:46:34 2010 (r209059) >> +++ head/sys/dev/ixgbe/ixgbe.c Fri Jun 11 19:03:59 2010 (r209060) >> @@ -1365,7 +1365,6 @@ ixgbe_msix_que(void *arg) >> bool more_tx, more_rx; >> u32 newitr = 0; >> >> - ixgbe_disable_queue(adapter, que->msix); >> ++que->irqs; >> >> more_rx = ixgbe_rxeof(que, adapter->rx_process_limit); >> @@ -2121,6 +2120,9 @@ ixgbe_allocate_msix(struct adapter *adap >> device_printf(dev, "Failed to register QUE >> handler"); >> return (error); >> } >> +#if __FreeBSD_version >= 800504 >> + bus_describe_intr(dev, que->res, que->tag, "que %d", i); >> +#endif >> que->msix = vector; >> adapter->que_mask |= (u64)(1 << que->msix); >> /* >> @@ -2155,6 +2157,9 @@ ixgbe_allocate_msix(struct adapter *adap >> device_printf(dev, "Failed to register LINK handler"); >> return (error); >> } >> +#if __FreeBSD_version >= 800504 >> + bus_describe_intr(dev, adapter->res, adapter->tag, "link"); >> +#endif >> adapter->linkvec = vector; >> /* Tasklets for Link, SFP and Multispeed Fiber */ >> TASK_INIT(&adapter->link_task, 0, ixgbe_handle_link, adapter); >> >> >