From owner-freebsd-stable@FreeBSD.ORG Thu Sep 15 19:19:50 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 903B7106564A; Thu, 15 Sep 2011 19:19:50 +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 55B848FC0A; Thu, 15 Sep 2011 19:19:50 +0000 (UTC) Received: by pzk34 with SMTP id 34so1887415pzk.21 for ; Thu, 15 Sep 2011 12:19:49 -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=6XcKTNPlsoCjVi99hEh3CQh5Ha7d8GkRFQ7S0u8XV/w=; b=qBpUFWGNWTs/ikJQZA/SB6aQZglDS+i0cDYuicKlLzRaey9oEspXJsbvVWV8Bnfrh/ tTWDVf5Q7IgRmv+8AQKzLdoPBJCgCW1qxEAbcNZ+ixZkfUqXpBmLvc804YlqFCjYxcCJ o8fCPBgdc2zh9Ujb7t2ovqRFw6QuAm15itGh4= Received: by 10.68.29.199 with SMTP id m7mr203408pbh.189.1316114389678; Thu, 15 Sep 2011 12:19:49 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id lv3sm25421283pbb.9.2011.09.15.12.19.43 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 15 Sep 2011 12:19:44 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 15 Sep 2011 12:19:44 -0700 From: YongHyeon PYUN Date: Thu, 15 Sep 2011 12:19:44 -0700 To: Eugene Grosbein Message-ID: <20110915191944.GB6557@michelle.cdnetworks.com> References: <4E722B70.9010201@rdtc.ru> <201109151314.50549.jhb@freebsd.org> <4E7238C3.1060008@rdtc.ru> <20110915181524.GA6557@michelle.cdnetworks.com> <4E724BCD.4040607@rdtc.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4E724BCD.4040607@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 19:19:50 -0000 On Fri, Sep 16, 2011 at 02:02:37AM +0700, Eugene Grosbein wrote: > 16.09.2011 01:15, YongHyeon PYUN пишет: > > > 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. > > It does not and there is too much differences in the code for my skills to apply manually :-) > > > Alternatively try replacing BUS_DMA_ALLOCNOW to 0 in > > bus_dma_tag_create(9). > > I'm not sure I undersdand this right... Do you mean this change? No, change BUS_DMA_ALLOCNOW used in re(4). > This is the only place in busdma_machdep.c where BUS_DMA_ALLOCNOW is used. > > --- busdma_machdep.c.orig 2011-09-16 01:56:52.000000000 +0700 > +++ busdma_machdep.c 2011-09-16 01:57:01.000000000 +0700 > @@ -284,7 +284,7 @@ > newtag->flags |= BUS_DMA_COULD_BOUNCE; > > if (((newtag->flags & BUS_DMA_COULD_BOUNCE) != 0) && > - (flags & BUS_DMA_ALLOCNOW) != 0) { > + (flags & 0) != 0) { > struct bounce_zone *bz; > > /* Must bounce */ > > I'm going to lose control on this remote box if I apply wrong patch for re(4). > > Eugene Grosbein