From owner-freebsd-stable@FreeBSD.ORG Thu Sep 15 18:15:28 2011 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39D99106566B; Thu, 15 Sep 2011 18:15:28 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f48.google.com (mail-pz0-f48.google.com [209.85.210.48]) by mx1.freebsd.org (Postfix) with ESMTP id 002C88FC13; Thu, 15 Sep 2011 18:15:27 +0000 (UTC) Received: by pzk34 with SMTP id 34so1771902pzk.21 for ; Thu, 15 Sep 2011 11:15:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=aPH8kIdZxUnBzK4Fn3VSQ0U2xsigLk9rWAKkdVEcFYU=; b=l2JYksmRB1tL/W/Y/+qfYYnfZ/9McLn14EMaW+zI4PL6ssl5Tuq55eubKuZf67CKYn FDbk93nJwIPyAiA3b28dA3Njbok4i8dOKo49FkdHHbN9OOiIWmtWWkas4+yN/rZgGvyo YRA5yV8HjmTbmfSzSe9mnHyheL74NhoxWudLk= Received: by 10.68.0.7 with SMTP id 7mr2114805pba.210.1316110527442; Thu, 15 Sep 2011 11:15:27 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id f8sm25023563pbc.3.2011.09.15.11.15.23 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Sep 2011 11:15:25 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 15 Sep 2011 11:15:25 -0700 From: YongHyeon PYUN Date: Thu, 15 Sep 2011 11:15:24 -0700 To: Eugene Grosbein Message-ID: <20110915181524.GA6557@michelle.cdnetworks.com> References: <4E722B70.9010201@rdtc.ru> <201109151314.50549.jhb@freebsd.org> <4E7238C3.1060008@rdtc.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4E7238C3.1060008@rdtc.ru> User-Agent: Mutt/1.4.2.3i Cc: stable@freebsd.org, John Baldwin , yongari@freebsd.org Subject: Re: busdma MFC broke ipfw fwd for RELENG_6 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Sep 2011 18:15:28 -0000 On Fri, Sep 16, 2011 at 12:41:23AM +0700, Eugene Grosbein wrote: > 16.09.2011 00:14, John Baldwin пишет: > > On Thursday, September 15, 2011 12:44:32 pm Eugene Grosbein wrote: > >> Hi! > >> > >> I understand that it is "a bit" late for RELENG_6 reports as 6.4-RELEASE was out in 2008 > >> but the breakage had happened due to MFC so it's possible same problem exists in newer branches. > >> > >> Long story short: I've updated my old 6.4-STABLE system for recent zoneinfo updates > >> and found the update broke 'ipfw fwd' feature: forwarded packets get corrupted, > >> routed packets go just fine. > >> > >> The commit in question has been performed in 2010/08/06: > >> http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/i386/Attic/busdma_machdep.c.diff?r1=1.74.2.6;r2=1.74.2.7 > >> > >> I've rolled it back using recent RELENG_6 sources and packet corruption have disappeared. > > > > It may be a bug in the rl(4) driver? Perhaps this is a candidate to try? > > > > http://svnweb.freebsd.org/base?view=revision&revision=184240 > > > > My system is i386 with 512MB RAM only and outgoing packets go through re(4), not rl(4). > > Nevertheless, I've just applied revision 184240 to RELENG_6 manualy (it did not apply cleanly) > and reapplied MFC. The problem has returned. > I remember re(4) in 6.x also have a couple of bus_dma(9) bugs. How about applying the following revision? http://svnweb.freebsd.org/base?view=revision&revision=175337 Not sure whether it shall apply cleanly. Alternatively try replacing BUS_DMA_ALLOCNOW to 0 in bus_dma_tag_create(9). > Eugene Grosbein