From owner-freebsd-current@FreeBSD.ORG Fri May 27 02:06:30 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 01DAF106564A for ; Fri, 27 May 2011 02:06:30 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id C8AEC8FC19 for ; Fri, 27 May 2011 02:06:29 +0000 (UTC) Received: by pzk27 with SMTP id 27so714792pzk.13 for ; Thu, 26 May 2011 19:06:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:date:to:subject:message-id:reply-to :mime-version:content-type:content-disposition:user-agent; bh=6pC/mnBgov9K3/5yibpQfj3euA4yS6xfGER6uyPitG8=; b=XQgE5eve2N7Qm1PjkxRROc5n967sgZffVXwZF9AgWi+O7sKvDkCrqdZ23GsS54BLC9 fVizX6XfUxU2eKC2dsyucnixMSP8rjZkzmRd6/IQB8lXMx7qJxHDXUqpofcaEM9YikiX GwRO2X3lHeSh09SMzM9xl+K6QZmJfCVhpW/tQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:subject:message-id:reply-to:mime-version:content-type :content-disposition:user-agent; b=vuypqODcRHTAPh5/A6GwqhHDNXgohGGJg6M476x4oow0YxkJzt25p0fHKHI5foB3Xd 2AMLCKKkrebXIYoUq0CdUWBwBGMVKWp6kqUsR1YdjiJOP/J2D+/VfMSYPyMPtHsgyWTT KS1qoKckdXH9woaTa1JY+AnCjipzq7hAvNjsI= Received: by 10.68.62.168 with SMTP id z8mr640184pbr.183.1306460445646; Thu, 26 May 2011 18:40:45 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id p5sm71218pbk.4.2011.05.26.18.40.43 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 26 May 2011 18:40:44 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Thu, 26 May 2011 18:40:43 -0700 From: YongHyeon PYUN Date: Thu, 26 May 2011 18:40:43 -0700 To: freebsd-current@FreeBSD.org Message-ID: <20110527014043.GE18312@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: CFT: msk(4) 64bit DMA support X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 May 2011 02:06:30 -0000 Hi, Here is a patch that implements 64bit DMA on msk(4). If you use msk(4) on a system that has more than 4GB memory, please try the patch at the following URL and let me know whether it works or not. You need latest msk(4) in HEAD to apply the patch. http://people.freebsd.org/~yongari/msk/msk.64bit.dma.diff Previously msk(4) may have used bounce buffers on systems that have more than 4GB memory. You can verify whether msk(4) is using bounce buffers by checking the output of "sysctl hw.busdma". For instance, hw.busdma.zone0.total_bounced counter would increase while network operation is in progress. If patch above works you wouldn't see the counter change anymore and it would also enhance network performance since it wouldn't have to copy from or to bounce buffers. Thanks.