Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-06-04 Thread Alan Cox
> I'd much rather be able to just hand that memory off to the kernel to > use along with everything else and have there be nothing magic about it. > But as I recall, the mtrr mappings of that memory was often goofy, so it > may take some work to clean it up. That also depends where it is located -

Re: Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-06-04 Thread Alan Cox
> I'd much rather be able to just hand that memory off to the kernel to > use along with everything else and have there be nothing magic about it. > But as I recall, the mtrr mappings of that memory was often goofy, so it > may take some work to clean it up. That also depends where it is located -

Re: Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-06-03 Thread Eric Anholt
On Thu, 2 Jun 2011 19:42:03 +0100, Alan Cox wrote: > On Sat, 28 May 2011 09:54:01 +0100 > Chris Wilson wrote: > > > On Fri, 27 May 2011 14:37:45 -0700, "Segovia, Benjamin" > > wrote: > > > Hello gurus, > > > > > > I have two question mostly regarding libdrm_intel > > > > > > 1/ What is the d

Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-06-03 Thread Eric Anholt
On Thu, 2 Jun 2011 19:42:03 +0100, Alan Cox wrote: > On Sat, 28 May 2011 09:54:01 +0100 > Chris Wilson wrote: > > > On Fri, 27 May 2011 14:37:45 -0700, "Segovia, Benjamin" > at intel.com> wrote: > > > Hello gurus, > > > > > > I have two question mostly regarding libdrm_intel > > > > > > 1/ Wh

Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-06-02 Thread Alan Cox
On Sat, 28 May 2011 09:54:01 +0100 Chris Wilson wrote: > On Fri, 27 May 2011 14:37:45 -0700, "Segovia, Benjamin" intel.com> wrote: > > Hello gurus, > > > > I have two question mostly regarding libdrm_intel > > > > 1/ What is the difference between drm_intel_bo_map and > > drm_intel_gem_bo_map

Re: Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-06-02 Thread Alan Cox
On Sat, 28 May 2011 09:54:01 +0100 Chris Wilson wrote: > On Fri, 27 May 2011 14:37:45 -0700, "Segovia, Benjamin" > wrote: > > Hello gurus, > > > > I have two question mostly regarding libdrm_intel > > > > 1/ What is the difference between drm_intel_bo_map and > > drm_intel_gem_bo_map_gtt ? >

RE: Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-05-31 Thread Segovia, Benjamin
to share physical memory between CPU and GPU On Fri, 27 May 2011 14:37:45 -0700, "Segovia, Benjamin" wrote: > Hello gurus, > > I have two question mostly regarding libdrm_intel > > 1/ What is the difference between drm_intel_bo_map and > drm_intel_gem_bo_map_gtt

Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-05-31 Thread Segovia, Benjamin
way to share physical memory between CPU and GPU On Fri, 27 May 2011 14:37:45 -0700, "Segovia, Benjamin" wrote: > Hello gurus, > > I have two question mostly regarding libdrm_intel > > 1/ What is the difference between drm_intel_bo_map and > drm_intel_gem_bo_map_gtt

Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-05-28 Thread Chris Wilson
On Fri, 27 May 2011 14:37:45 -0700, "Segovia, Benjamin" wrote: > Hello gurus, > > I have two question mostly regarding libdrm_intel > > 1/ What is the difference between drm_intel_bo_map and > drm_intel_gem_bo_map_gtt ? bo_map uses the CPU domain, and so is CPU linear (needs sw detiling). bo_gt

Re: Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-05-28 Thread Chris Wilson
On Fri, 27 May 2011 14:37:45 -0700, "Segovia, Benjamin" wrote: > Hello gurus, > > I have two question mostly regarding libdrm_intel > > 1/ What is the difference between drm_intel_bo_map and > drm_intel_gem_bo_map_gtt ? bo_map uses the CPU domain, and so is CPU linear (needs sw detiling). bo_g

Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-05-27 Thread Segovia, Benjamin
Hello gurus, I have two question mostly regarding libdrm_intel 1/ What is the difference between drm_intel_bo_map and drm_intel_gem_bo_map_gtt ? 2/ Will it be possible (or is it already possible) to directly share a regularly allocated piece of physical memory? Typical use case is the following

Questions about libdrm_intel and way to share physical memory between CPU and GPU

2011-05-27 Thread Segovia, Benjamin
Hello gurus, I have two question mostly regarding libdrm_intel 1/ What is the difference between drm_intel_bo_map and drm_intel_gem_bo_map_gtt ? 2/ Will it be possible (or is it already possible) to directly share a regularly allocated piece of physical memory? Typical use case is the following