Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760432AbXEJLjq (ORCPT ); Thu, 10 May 2007 07:39:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757840AbXEJLjj (ORCPT ); Thu, 10 May 2007 07:39:39 -0400 Received: from mx1.cdac.in ([203.199.132.35]:3073 "EHLO mx1.cdac.in" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755054AbXEJLji (ORCPT ); Thu, 10 May 2007 07:39:38 -0400 Message-ID: <464304DD.9070600@cdac.in> Date: Thu, 10 May 2007 17:11:17 +0530 From: Mahesh User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: David Miller CC: linux-kernel@vger.kernel.org, kernelnewbies@nl.linux.org Subject: Re: [HOWTO] accessing the DMA mapped data References: <4642D095.6070305@cdac.in><20070510.014751.74749340.davem@daveml oft.net><4642FFA7.4040303@cdac.in> <20070510.043233.08323827.davem@davemloft.net> In-Reply-To: <20070510.043233.08323827.davem@davemloft.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.046 X-imss-result: Passed X-imss-scanInfo: M:P L:E SM:0 X-imss-tmaseResult: TT:0 TS:0.0000 TC:00 TRN:0 TV:3.6.1039(15166.003) X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:2 C:1 M:1 S:1 R:1 (0.1500 0.1500) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1085 Lines: 29 Hi, > You haven't given an example of where this might actually happen. > > The driver is where the DMA mappings almost always occur because > that is the layer that knows the bus technology and therefore > the correct DMA interfaces to call. > > What kind of driver do you have and what is this upper layer > doing the mappings for you but not giving you a pointer to > the kernel buffer as well? > Here I am dealing with a infiniband (see www.openfabrics.org) network device driver. The layer above the driver is the standard infiniband core interface. Now I have a situation where I need to peek into the packets and do some modifications(some hacking). So I just want know whether I can access the original data region using the bus address generated by the dma_map_single. FYI, architecture I am working on is x86_64. -Mahesh - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/