dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: "Segovia, Benjamin" <benjamin.segovia@intel.com>,
	"dri-devel@lists.freedesktop.org"
	<dri-devel@lists.freedesktop.org>
Subject: Re: Questions about libdrm_intel and way to share physical memory between CPU and GPU
Date: Sat, 28 May 2011 09:54:01 +0100	[thread overview]
Message-ID: <aefc95$5rqvq@orsmga001.jf.intel.com> (raw)
In-Reply-To: <5812F7DC54903547874AA228AE9C46AB7D8957F8@orsmsx504.amr.corp.intel.com>

On Fri, 27 May 2011 14:37:45 -0700, "Segovia, Benjamin" <benjamin.segovia@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_gtt ?
bo_map uses the CPU domain, and so is CPU linear (needs sw detiling).
bo_gtt_map uses the uncached [WC] GTT domain, and so is GPU linear
(detiling is performed by the hardware using a fence).

> 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 one using OpenCL API:

Yes. I've proposed a vmap interface to bind user-pages into the GTT,
similar to a completely unused bit of TTM functionality.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

  reply	other threads:[~2011-05-28  8:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-27 21:37 Questions about libdrm_intel and way to share physical memory between CPU and GPU Segovia, Benjamin
2011-05-28  8:54 ` Chris Wilson [this message]
2011-05-31 23:14   ` Segovia, Benjamin
2011-06-02 18:42   ` Alan Cox
2011-06-04  3:32     ` Eric Anholt
2011-06-04 10:00       ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='aefc95$5rqvq@orsmga001.jf.intel.com' \
    --to=chris@chris-wilson.co.uk \
    --cc=benjamin.segovia@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox