From owner-freebsd-mips@FreeBSD.ORG Wed Aug 29 09:21:25 2012 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B113F1065670; Wed, 29 Aug 2012 09:21:25 +0000 (UTC) (envelope-from adrian.chadd@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 788BD8FC08; Wed, 29 Aug 2012 09:21:25 +0000 (UTC) Received: by dadr6 with SMTP id r6so270323dad.13 for ; Wed, 29 Aug 2012 02:21:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=0tzZEYt2JU9E5N9qCchImMx76pvdmx5qcUgxcCquwGo=; b=DWhkbV0q5skdQjUCbZqWUZMlOElbYkqtkksK4E0x1bQZr1mE8d7CqiY7aLixIMPtJO lMOvcuq+vudQQYEv9g7lNhcdAZ2vuC/F1Dr8n6eB1K48sK5MAkyRYp8dER9E246/jgZ0 nk6YlUVDvEyFOSRGTlcrb+Y/dCDgkCF6By9a7k6aWkFkw9/RbFRKmvIrv9qTOCxVremD 8gcCcgGULUpvA5vB6941Xt0456Q1FAfy5SuYQdevWjyNwPhnLcbusSuTt5eLgVmu486q 4SrvCfN7Gz3W1K5Hcjd2tO9lkrCifue3SokKTuoIJRyY7wG5gF7tWAl7u0wxu1UKvhfd iy+g== MIME-Version: 1.0 Received: by 10.68.189.70 with SMTP id gg6mr3255313pbc.125.1346232085097; Wed, 29 Aug 2012 02:21:25 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.68.36.106 with HTTP; Wed, 29 Aug 2012 02:21:25 -0700 (PDT) In-Reply-To: <08166FD3-8FAD-453D-ABD3-2DC19B52FED1@yahoo.com> References: <1F780BF4-84C3-48D5-9832-EA32381969A6@bsdimp.com> <08166FD3-8FAD-453D-ABD3-2DC19B52FED1@yahoo.com> Date: Wed, 29 Aug 2012 02:21:25 -0700 X-Google-Sender-Auth: PvBmiUBwDqjf0zl4GAM8xG0Tr4w Message-ID: From: Adrian Chadd To: Scott Long Content-Type: text/plain; charset=ISO-8859-1 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 09:21:25 -0000 On 28 August 2012 22:01, Scott Long wrote: > There is no need to create a separate map for memory allocated via this way. It's a convenience thing. 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 = NULL; - it's totally trashing the pre-existing map. Adrian