From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Tucker Subject: Re: Problem Pinning Physical Memory Date: Tue, 30 Nov 2010 14:26:26 -0600 Message-ID: <4CF55DF2.1030507@opengridcomputing.com> References: <20101124135507.GA23230@mtldesk30> <20101124174245.GA25325@obsidianresearch.com> <4CF3DE7D.4060105@opengridcomputing.com> <4CF3DF49.8000605@opengridcomputing.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Alan Cook Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-rdma@vger.kernel.org On 11/30/10 9:24 AM, Alan Cook wrote: >> Tom Tucker writes: >> >> Yes. I removed the new verb and followed Jason's recommendation of adding >> this support to the core reg_mr support. I used the type bits in the vma >> struct to determine the type of memory being registered and just did the >> "right thing." >> >> I'll repost in the the next day or two. >> >> Tom >> > Tom, > > Couple of questions: > > I noticed that OFED 1.5.3 was released last week. Are the changes you speak of > part of that release? No. > If not, is there an alternate branch/project that I should > be looking at or into to for the mentioned changes? The patch will be against the top-of-tree Linux kernel. > Also, I am inferring that the changes allowing the registering of physical > memory will only happen if my application is running in kernel space. Actually, no. > Is this > correct? or will I be able to register the physical memory from user space now > as well? What I implemented was support for mmap'd memory. In practical terms for your application you would write a driver that supported the mmap file op. The driver's mmap routine would ioremap the pci memory of interest and stuff it in the provided vma. The user-mode app then ibv_reg_mr the address and length returned by mmap. Make sense? Tom > -- > To unsubscribe from this list: send the line "unsubscribe linux-rdma" in > the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html