From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw01.freescale.net (az33egw01.freescale.net [192.88.158.102]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw01.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id 3F32ADE35A for ; Tue, 17 Jul 2007 01:46:43 +1000 (EST) Message-ID: <469B92DC.50609@freescale.com> Date: Mon, 16 Jul 2007 10:46:36 -0500 From: Scott Wood MIME-Version: 1.0 To: suresh suresh Subject: Re: Kmalloc returns which address References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Cc: linuxppc-embedded@ozlabs.org List-Id: Linux on Embedded PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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