From owner-freebsd-current@FreeBSD.ORG Tue Nov 10 19:20:42 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1AD91065692; Tue, 10 Nov 2009 19:20:41 +0000 (UTC) (envelope-from jfvogel@gmail.com) Received: from mail-ew0-f218.google.com (mail-ew0-f218.google.com [209.85.219.218]) by mx1.freebsd.org (Postfix) with ESMTP id E99AD8FC25; Tue, 10 Nov 2009 19:20:40 +0000 (UTC) Received: by ewy18 with SMTP id 18so355274ewy.43 for ; Tue, 10 Nov 2009 11:20:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=FMfY6dQDZYiU0bm9ZDNWEIciFgqJ2abk/tR3LWeto9U=; b=dyvoO6NZMXCVUTmkxsNvdZbPhPG1iPFp+6vQUs/LGv0Kg6C1EGJEyp7Nxw1LTiArwt nP7t+2dka5H5AmQuTRu1/5PyvoTnEsNFcNpYo9sb611nKOYRDClm8evw5w3xsa91HSXV A4fZL38VtUgBj+TrliN7WL7PgMwbwykYk1NYk= 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=iMNN0sszqM0YXOFNAstTQJQi3YqprPdYYb2TRJLeq5Y8gU6q+NpaF36GqjC8uZrugv xvYWE1vx3yescgQqaGGLpGleXnKrRrH1C/l4Abm/WPUN78pmWtZOl9k5W0HLLNx6Dm13 2cfvgJHS1xxdYQUxnXsqzijgpszYaoQqwQaHE= MIME-Version: 1.0 Received: by 10.216.90.209 with SMTP id e59mr146799wef.193.1257880839575; Tue, 10 Nov 2009 11:20:39 -0800 (PST) In-Reply-To: <2a41acea0911101057q4f913e30m9319e52bbd254cfe@mail.gmail.com> References: <20091017170351.GZ29771@expo.ukrweb.net> <20091017222314.GB19204@michelle.cdnetworks.com> <200911092033.nA9KX6dD013378@lava.sentex.ca> <200911092215.nA9MFeDP013898@lava.sentex.ca> <2a41acea0911091459w2b4fec5djd64d0324557b7da2@mail.gmail.com> <200911100021.nAA0LvMG014534@lava.sentex.ca> <2a41acea0911091633u2899b47ewb514b6276ba2cf62@mail.gmail.com> <200911100227.nAA2RtDY015177@lava.sentex.ca> <2a41acea0911101057q4f913e30m9319e52bbd254cfe@mail.gmail.com> Date: Tue, 10 Nov 2009 11:20:39 -0800 Message-ID: <2a41acea0911101120o39fd695cpa325736d00b11587@mail.gmail.com> From: Jack Vogel To: Mike Tancsa , re Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: pyunyh@gmail.com, jfv@freebsd.org, Mykola Dzham , current@freebsd.org Subject: Re: page fault in igb driver on 8.0-RC2 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Nov 2009 19:20:42 -0000 This is a fix for this problem, please apply and test this. Jack ------- if_igb.c (revision 197079) +++ if_igb.c (working copy) @@ -2654,7 +2654,7 @@ int error; error = bus_dma_tag_create(bus_get_dma_tag(adapter->dev), /* parent */ - IGB_DBA_ALIGN, 0, /* alignment, bounds */ + 1, 0, /* alignment, bounds */ BUS_SPACE_MAXADDR, /* lowaddr */ BUS_SPACE_MAXADDR, /* highaddr */ NULL, NULL, /* filter, filterarg */ @@ -2867,7 +2867,7 @@ * Setup DMA descriptor areas. */ if ((error = bus_dma_tag_create(NULL, /* parent */ - PAGE_SIZE, 0, /* alignment, bounds */ + 1, 0, /* alignment, bounds */ BUS_SPACE_MAXADDR, /* lowaddr */ BUS_SPACE_MAXADDR, /* highaddr */ NULL, NULL, /* filter, filterarg */ @@ -3554,7 +3554,7 @@ ** it may not always use this. */ if ((error = bus_dma_tag_create(NULL, /* parent */ - PAGE_SIZE, 0, /* alignment, bounds */ + 1, 0, /* alignment, bounds */ BUS_SPACE_MAXADDR, /* lowaddr */ BUS_SPACE_MAXADDR, /* highaddr */ NULL, NULL, /* filter, filterarg */ On Tue, Nov 10, 2009 at 10:57 AM, Jack Vogel wrote: > I have repro'd this failure this morning and think I have a fix for it, I > am testing that soon. > > Stay tuned, > > Jack > > > > On Mon, Nov 9, 2009 at 6:28 PM, Mike Tancsa wrote: > >> At 07:33 PM 11/9/2009, Jack Vogel wrote: >> >>> Some reason you aren't using amd64? I will have a system installed that >>> way >>> and see if I can repro it then, thanks. >>> >> >> >> I had found in the past i386 was faster for firewall and routing >> applications. Perhaps thats different now, I will give it a try again to >> see if there is any difference. >> >> pciconf and dmesg attached. >> >> ---Mike >> >> >> >> Jack >>> >>> >>> >>> On Mon, Nov 9, 2009 at 4:22 PM, Mike Tancsa < >>> mike@sentex.net> wrote: >>> At 05:59 PM 11/9/2009, Jack Vogel wrote: >>> Are you using standard MTU or jumbo? That get_buf error is ENOMEM, looks >>> like >>> that happens when in the bus_dma stuff reserve_bounce_pages() fails. >>> >>> Are you maybe using a 32 bit kernel? I have not seen this failure here. >>> >>> >>> Hi Jack, >>> Standard MTU and i386 >>> >>> ---Mike >>> >>> >>> >>> -------------------------------------------------------------------- >>> Mike Tancsa, tel +1 519 651 3400 >>> Sentex Communications, mike@sentex.net >>> Providing Internet since 1994 >>> www.sentex.net >>> Cambridge, Ontario Canada < >>> http://www.sentex.net/mike>www.sentex.net/mike >>> >>> >> -------------------------------------------------------------------- >> Mike Tancsa, tel +1 519 651 3400 >> Sentex Communications, mike@sentex.net >> Providing Internet since 1994 www.sentex.net >> Cambridge, Ontario Canada www.sentex.net/mike >> > >