From owner-freebsd-mips@FreeBSD.ORG Wed Aug 29 11:07:42 2012 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ABA1E106564A for ; Wed, 29 Aug 2012 11:07:42 +0000 (UTC) (envelope-from scott4long@yahoo.com) Received: from nm35-vm6.bullet.mail.bf1.yahoo.com (nm35-vm6.bullet.mail.bf1.yahoo.com [72.30.238.78]) by mx1.freebsd.org (Postfix) with SMTP id 4A5AA8FC15 for ; Wed, 29 Aug 2012 11:07:41 +0000 (UTC) Received: from [98.139.212.147] by nm35.bullet.mail.bf1.yahoo.com with NNFMP; 29 Aug 2012 11:07:35 -0000 Received: from [98.139.215.254] by tm4.bullet.mail.bf1.yahoo.com with NNFMP; 29 Aug 2012 11:07:35 -0000 Received: from [127.0.0.1] by omp1067.mail.bf1.yahoo.com with NNFMP; 29 Aug 2012 11:07:35 -0000 X-Yahoo-Newman-Id: 711512.18216.bm@omp1067.mail.bf1.yahoo.com Received: (qmail 95572 invoked from network); 29 Aug 2012 11:07:35 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=DKIM-Signature:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:References:In-Reply-To:Mime-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Cc:X-Mailer:From:Subject:Date:To; b=vQuA1BEr/gJUScHScMcn0NHez55fhVc9VS+2zJ/lHBjIJG1+o24m2g7dlZSzp8NJEiLX7Gn1RHDERo7ReRannMVGNNE4QpHdKglXlZtZi6vOgf352zN9V/35eO4hIodWKegY2hvI2OZ4QdQqoIbqMA3Rya4rXz1FsP9wQ7Ggtwc= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1346238455; bh=sA1kTvSAVq7qdNxjU6amE0cLhQvw1Qbi5pliXf8jEv8=; h=X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:References:In-Reply-To:Mime-Version:Content-Transfer-Encoding:Content-Type:Message-Id:Cc:X-Mailer:From:Subject:Date:To; b=qddTIPL9VZUmCKogZdCvX8xqTBvnKbCtxGdYUoMA0jCDOSunZsiJM94c+8nm7J9PDRJeaCc1YF7t2RPxbjAE2k3s/TuATthdiCaNn8n3lE24UpJ9RSIbybiwC41SDgKuo5apMqpNZbjTT+vrkK125eiByk5NjWglP2qXz93Torg= X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 9LtRCSYVM1kFWBe8Ld70UeI3U8U8IZRlI6WaRyDQjZKyDTx NHTURQ2oX7fKVlVtK.VSYkn9q1xzuPd8aYvrE3D8YsIi8wDAXOlp0Hv7J0cD r8sxVl4wdqecdcFqOjqFgdfsLr69O63MK86k_AeDq5Ct_31iQ7CcW1e8fuVX jZgs2RweqyhLbsDHgwmNIL9pDlloJmSODuKqs1yfCwEc2pe.qIqnkI20Crkd cu5xoWYPs3S4.GUVKPGobl29oGH5modVbjqgUcyWDvnuvbIxcvZDwWr7EsQQ Cp0G0XjjWeHik5.1rNbBEpK01TBgdORCWyyUIjdaFjRIvDQxQo2b_umQlQwj xdU5Gxq2xZuWAA4.yI4.lDcqXPqddm_7Bw5tIZwAb5SY8EKd4P83ry3d3kRD V9RJFNecbn0qzqNACh5pDh6sQeKmMS8DpwsNT.CpSg9TBKliZoXHGKQA7f_a 4wq0w3hmiT7k1 X-Yahoo-SMTP: clhABp.swBB7fs.LwIJpv3jkWgo2NU8- Received: from [192.168.254.204] (scott4long@168.103.85.57 with xymcookie) by smtp124-mob.biz.mail.bf1.yahoo.com with SMTP; 29 Aug 2012 11:07:35 +0000 UTC References: <1F780BF4-84C3-48D5-9832-EA32381969A6@bsdimp.com> <08166FD3-8FAD-453D-ABD3-2DC19B52FED1@yahoo.com> In-Reply-To: Mime-Version: 1.0 (1.0) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: <77CDC9C5-A4DA-4CE6-ADEA-57DC6C9A2F0B@yahoo.com> X-Mailer: iPad Mail (9B206) From: Scott Long Date: Wed, 29 Aug 2012 05:07:37 -0600 To: Adrian Chadd Cc: "scottl@freebsd.org" , "freebsd-mips@freebsd.org" Subject: Re: MIPS busdma map questions X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Aug 2012 11:07:42 -0000 On Aug 29, 2012, at 3:21 AM, Adrian Chadd wrote: > On 28 August 2012 22:01, Scott Long wrote: >=20 >> There is no need to create a separate map for memory allocated via this w= ay. It's a convenience thing. >=20 > Right, but my initial question still stands - the initial map that's > being created is completely ignored and overwritten when the > bus_dmamem_alloc() call is made. One of the first thing that does is > it sets *dmat =3D NULL; - it's totally trashing the pre-existing map. >=20 >=20 Right. You don't create a separate map for this kind of allocation, you let= bus_dmamem_alloc do that for you. The inputs to this function are the tag a= nd the flags. The output is the map and the vaddr for the allocation. The m= ap argument is an output, not an input. Does that make more sense? Scott=