From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id EB09EDDE44 for ; Mon, 23 Jul 2007 13:47:49 +1000 (EST) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1ICotf-00016V-Be for linuxppc-embedded@ozlabs.org; Sun, 22 Jul 2007 20:47:47 -0700 Message-ID: <11737504.post@talk.nabble.com> Date: Sun, 22 Jul 2007 20:47:47 -0700 (PDT) From: Misbah khan To: linuxppc-embedded@ozlabs.org Subject: Re: Kmalloc returns which address In-Reply-To: <469B92DC.50609@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii References: <469B92DC.50609@freescale.com> List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , hi Scott yes really it would really generate a machine check... but i guess if you convert this virt address to physical address using __pa() then pass it to the ioremap() i guess things will work . Please correct me if i am wrong regard misbah Scott Wood-2 wrote: > > suresh suresh wrote: >> I want know the address return by kmalloc function? is it physical >> address >> or kernel virtual address. > > Kernel virtual. > >> For Tx and Rx, hardware uses buffers, so I have to allocate buffers and >> pass >> the pointer to hardware. Can I pass the pointer returned kmalloc? or I >> should convert it into physical address? > > You need to convert it; read Documentation/DMA-mapping.txt. > > -Scott > _______________________________________________ > Linuxppc-embedded mailing list > Linuxppc-embedded@ozlabs.org > https://ozlabs.org/mailman/listinfo/linuxppc-embedded > > -- View this message in context: http://www.nabble.com/Kmalloc-returns-which-address-tf4086826.html#a11737504 Sent from the linuxppc-embedded mailing list archive at Nabble.com.