From owner-freebsd-net@FreeBSD.ORG Fri Apr 13 08:17:21 2012 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ECE5F106564A; Fri, 13 Apr 2012 08:17:21 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 6B3128FC08; Fri, 13 Apr 2012 08:17:21 +0000 (UTC) Received: from skuns.kiev.zoral.com.ua (localhost [127.0.0.1]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id q3D8HGqU031596; Fri, 13 Apr 2012 11:17:16 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5) with ESMTP id q3D8HFQw086873; Fri, 13 Apr 2012 11:17:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.5/8.14.5/Submit) id q3D8HFX0086872; Fri, 13 Apr 2012 11:17:15 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 13 Apr 2012 11:17:15 +0300 From: Konstantin Belousov To: Ryan Stone Message-ID: <20120413081715.GC2358@deviant.kiev.zoral.com.ua> References: <20120407133715.GU2358@deviant.kiev.zoral.com.ua> <20120408051125.GA2358@deviant.kiev.zoral.com.ua> <201204091219.39580.jhb@freebsd.org> <20120412183849.GA2358@deviant.kiev.zoral.com.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="P2QgR0JrZwTaWvmb" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: jfv@freebsd.org, Jack Vogel , John Baldwin , net@freebsd.org Subject: Re: 82574L hangs (with r233708 e1000 driver). X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Apr 2012 08:17:22 -0000 --P2QgR0JrZwTaWvmb Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Apr 12, 2012 at 03:40:27PM -0400, Ryan Stone wrote: > On Thu, Apr 12, 2012 at 2:38 PM, Konstantin Belousov > wrote: > > And, on receive, the atom board does receive interrupts, em0:rx 0 count= er > > in vmstat -i increases. Even more fun, the sysctl dev.em.0.debug > > shows increasing hw rdh (as I understand, this is hardware 'last > > received' packet pointer for rx ring). So I looked at the packet > > descriptor at hw rdt index, and there I see > > (kgdb) p/x ((struct adapter *)0xffffff80010e4000)->rx_rings->rx_base[78] > > $11 =3D {buffer_addr =3D 0x12a128800, length =3D 0x5ea, csum =3D 0x3c2b= , status =3D 0x0, > > =9Aerrors =3D 0x0, special =3D 0x0} >=20 > This looks like a buffer address, not a written-back What do you reference by 'This' ? 0x12a128800 is indeed buffer address, because it is the content of the first eight bytes of the descriptor. The next descriptor in the ring had the status 0x63, which is quite reasonable value for filled descriptor. > descriptor(0x12a128800 being aligned to a 2048 byte boundary is a big > clue). Is it easy to check the mbuf in > rx_rings->rx_buffers[78].m_head and see whether the buffer in the mbuf > there has that physical address? Probably so, I will recheck later today. >=20 > If that is a buffer address then the driver must be updating > descriptors in rx_base that are owned by hardware, or somehow > forgetting to update rdt and rxr->next_to_check. Yes, there is a bug somewhere. On the other hand, it is very specific to exactly this model and might be a revision, because I have tons of em interfaces working flawlessly with the same version of the driver. --P2QgR0JrZwTaWvmb Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (FreeBSD) iEYEARECAAYFAk+H4QsACgkQC3+MBN1Mb4jlkwCfZpSndcS7LsiWMwAey9lV3z18 EP8An2Rb4Gm3cUL/fFqr7dDFrzI1cdPe =FeLU -----END PGP SIGNATURE----- --P2QgR0JrZwTaWvmb--