[Intel-gfx] [RFC libdrm] intel: Add support for softpin
Kristian Høgsberg
krh at bitplanet.net
Sun Dec 13 21:33:32 PST 2015
On Sun, Dec 13, 2015 at 7:17 PM, Song, Ruiling <ruiling.song at intel.com> wrote:
>> -----Original Message-----
>> From: Intel-gfx [mailto:intel-gfx-bounces at lists.freedesktop.org] On Behalf
>> Of Micha? Winiarski
>> Sent: Wednesday, September 9, 2015 10:07 PM
>> To: intel-gfx at lists.freedesktop.org
>> Cc: Ben Widawsky <ben at bwidawsk.net>; dri-devel at lists.freedesktop.org;
>> mesa-dev at lists.freedesktop.org
>> Subject: [Intel-gfx] [RFC libdrm] intel: Add support for softpin
>>
>> Softpin allows userspace to take greater control of GPU virtual address
>> space and eliminates the need of relocations. It can also be used to
>> mirror addresses between GPU and CPU (shared virtual memory).
>> Calls to drm_intel_bo_emit_reloc are still required to build the list of
>> drm_i915_gem_exec_objects at exec time, but no entries in relocs are
>> created. Self-relocs don't make any sense for softpinned objects and can
>> indicate a programming errors, thus are forbidden. Softpinned objects
>> are marked by asterisk in debug dumps.
>>
>> Cc: Thomas Daniel <thomas.daniel at intel.com>
>> Cc: Kristian Høgsberg <krh at bitplanet.net>
>> Cc: Zou Nanhai <nanhai.zou at intel.com>
>> Cc: Michel Thierry <michel.thierry at intel.com>
>> Cc: Ben Widawsky <ben at bwidawsk.net>
>> Cc: Chris Wilson <chris at chris-wilson.co.uk>
>> Signed-off-by: Michał Winiarski <michal.winiarski at intel.com>
>> ---
>> include/drm/i915_drm.h | 4 +-
>> intel/intel_bufmgr.c | 9 +++
>> intel/intel_bufmgr.h | 1 +
>> intel/intel_bufmgr_gem.c | 176
>> ++++++++++++++++++++++++++++++++++++++++------
>> intel/intel_bufmgr_priv.h | 7 ++
>> 5 files changed, 173 insertions(+), 24 deletions(-)
>
> Will anybody help to push the patch to libdrm? Beignet highly depend on this to implement ocl2.0 svm.
Is the kernel patch upstream?
> Thanks!
> Ruiling
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/intel-gfx
More information about the Intel-gfx
mailing list