From owner-freebsd-hackers@freebsd.org Sun Nov 8 11:56:48 2015 Return-Path: Delivered-To: freebsd-hackers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7113DA2956D for ; Sun, 8 Nov 2015 11:56:48 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3A2681202 for ; Sun, 8 Nov 2015 11:56:47 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id E072E1FE023; Sun, 8 Nov 2015 12:56:38 +0100 (CET) Subject: Re: dma To: AlexHully , freebsd-hackers@freebsd.org References: <298361446978177@web22g.yandex.ru> From: Hans Petter Selasky Message-ID: <563F38DD.5070409@selasky.org> Date: Sun, 8 Nov 2015 12:58:21 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <298361446978177@web22g.yandex.ru> Content-Type: text/plain; charset=koi8-r; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Nov 2015 11:56:48 -0000 On 11/08/15 11:22, AlexHully wrote: > Hi, > > I would like a clarification for dma. > > The context: most dma capable devices have 32 bits address range. > Is it correct that, if there was no 3G/1G mapping in the kernel, or that kernel low memory could map 4Gb memory, one could choose any free addresses in that low memory to set up a dma buffer? > > That would avoid all the mapping hassle, and performance cost associated. > I've seen USB controllers only supporting 2G address range. --HPS