Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 May 2011 14:18:51 +0200
From:      Olivier Smedts <olivier@gid0.org>
To:        Arnaud Lacombe <lacombar@gmail.com>
Cc:        Jack Vogel <jfvogel@gmail.com>, FreeBSD current mailing list <current@freebsd.org>
Subject:   Re: problems with em(4) since update to driver 7.2.2
Message-ID:  <BANLkTi=ROraY7WCaf6YX=9u33ky3Tu9y4Q@mail.gmail.com>
In-Reply-To: <BANLkTim2YSacJ6BEU2AwuMJrdZ_OzZ_t%2BA@mail.gmail.com>
References:  <BANLkTinrfZbO%2BMUDDuzsoaN1y-=_O8LgNA@mail.gmail.com> <4D94A354.9080903@sentex.net> <AANLkTik_XPsVWL-KqHkPic1KQ0SdCSk6u_9ykRefi3VE@mail.gmail.com> <BANLkTi=K5ASG9TWLAh5r%2Bzo9Wy1stMf9WA@mail.gmail.com> <BANLkTikPPzxZ6XRAaqrvdeXBp=Ydvz7hNg@mail.gmail.com> <BANLkTi=rhZ0dyO6Zq13jY6-NKVE8n24YyQ@mail.gmail.com> <4DC07013.9070707@gmx.net> <BANLkTi=DmQsVvJOaoxMr5GPOLkjs7sdTxQ@mail.gmail.com> <4DC078BD.9080908@gmx.net> <BANLkTin1ykoo80%2B9iWe%2Bg5ib1DXw%2B05BgQ@mail.gmail.com> <BANLkTinMod1M=xrVDFbbyMLtyujQ=HjEYg@mail.gmail.com> <BANLkTim2YSacJ6BEU2AwuMJrdZ_OzZ_t%2BA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

2011/5/4 Arnaud Lacombe <lacombar@gmail.com>:
> Hi,
>
> On Wed, May 4, 2011 at 3:58 AM, Olivier Smedts <olivier@gid0.org> wrote:
>> em0: Using an MSI interrupt
>> em0: Ethernet address: d4:85:64:b2:aa:f5
>> em0: Could not setup receive structures
>> em0: Could not setup receive structures
>>
>> What can we do to help you debug this ?
>>
> At some point in time, in late February, I had the same issue on a
> 6-interface machine. I tracked this down to the fact that the main
> loop in em_setup_receive_ring() was not being entered. This resulted
> in junk being returned as `error' =A0is not explicitly initialized. At
> the time, the following patch worked for me. Without it the driver was
> unable to initialize with RX/TX ring's size of 512. With it, ring's
> size of 1024 initialized fine.
>
> diff --git a/sys/dev/e1000/if_em.c b/sys/dev/e1000/if_em.c
> index fb6ed67..f02059a 100644
> --- a/sys/dev/e1000/if_em.c
> +++ b/sys/dev/e1000/if_em.c
> @@ -3901,7 +3901,7 @@ em_setup_receive_ring(struct rx_ring *rxr)
> =A0 =A0 =A0 =A0struct =A0adapter =A0 =A0 =A0 =A0 *adapter =3D rxr->adapte=
r;
> =A0 =A0 =A0 =A0struct em_buffer =A0 =A0 =A0 =A0*rxbuf;
> =A0 =A0 =A0 =A0bus_dma_segment_t =A0 =A0 =A0 seg[1];
> - =A0 =A0 =A0 int =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 i, j, nsegs, er=
ror;
> + =A0 =A0 =A0 int =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 i, j, nsegs, er=
ror =3D 0;

This patch made the trick for me. I'll post what Jack asked for in the
following mail.

> I did not dig much more at the time, but I was definitively seeing an
> odd behavior. Anyhow, I am no longer able to reproduce this with
> 7.2.3, so cannot dig in more details.
>
> Btw, I wish you all luck, it took me nearly two full months to
> convince Jack (and other FreeBSD devs) that there was a bug in the
> mbuf refresh code.
>
> =A0- Arnaud
>



--=20
Olivier Smedts=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=A0 _
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
 =A0 ASCII ribbon campaign ( )
e-mail: olivier@gid0.org=A0 =A0 =A0 =A0 - against HTML email & vCards=A0 X
www: http://www.gid0.org=A0 =A0 - against proprietary attachments / \

=A0 "Il y a seulement 10 sortes de gens dans le monde :
=A0 ceux qui comprennent le binaire,
=A0 et ceux qui ne le comprennent pas."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTi=ROraY7WCaf6YX=9u33ky3Tu9y4Q>