Skip to content

Preventing zero GPU virtual address allocation

David Weinehall intel-gfx 1 version In review

Get series with b4
b4 am 20150520135419.GA13974@boom

Versions newest first

  1. v1 Latest3 patches 30 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/i915: add a context parameter to {en, dis}able zero address mappingdrivers/gpu/drm/i915/i915_drv.h drivers/gpu/drm/i915/i915_gem_context.c drivers/gpu/drm/i915/i915_gem_execbuffer.c +1 more+26 -44 replies
2/3libdrm: export context_{get, set}param and I915_CONTEXT_PARAM_NO_ZEROMAPconfigure.ac include/drm/i915_drm.h intel/intel_bufmgr.h +1 more+63 -10 replies
3/3beignet: set I915_CONTEXT_PARAM_NO_ZEROMAP when initializing contextCMakeLists.txt src/CMakeLists.txt src/intel/intel_driver.c+15 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/03] Preventing zero GPU virtual address allocation

This patch series (one patch each for libdrm, the kernel, and beignet) aims to provide a means to add a context-specific means to prevent a mapping to GPU virtual address zero. This is needed at least by Beignet (possibly in other use-cases too, though I don't know of any other) to allow use of address zero to represent NULL.

The kernel patch exports a new context parameter that can be set by the context_{get,set}param ioctls, and uses this parameter to decide whether or not a zero address mapping should be prevented.

The libdrm patch adds helper functions for the ioctls in question and exports the context parameter.

The beignet patch uses the new libdrm function to disable zero mappings if that functionality is available.

David Weinehall (3):
drm/i915: add a context parameter to {en,dis}able zero address mapping
libdrm: export context_{get,set}param and I915_CONTEXT_PARAM_NO_ZEROMAP
beignet: set I915_CONTEXT_PARAM_NO_ZEROMAP when initializing context

drm-intel-nightly:

 drivers/gpu/drm/i915/i915_drv.h            |    5 +++++
 drivers/gpu/drm/i915/i915_gem_context.c    |   11 +++++++++++
 drivers/gpu/drm/i915/i915_gem_execbuffer.c |   13 +++++++++----
 include/uapi/drm/i915_drm.h                |    1 +
 4 files changed, 26 insertions(+), 4 deletions(-)

libdrm:

 configure.ac             |    2 -
 include/drm/i915_drm.h   |    1 
 intel/intel_bufmgr.h     |    4 +++
 intel/intel_bufmgr_gem.c |   57 +++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 63 insertions(+), 1 deletion(-)

beignet:

 CMakeLists.txt           |    6 ++++++
 src/CMakeLists.txt       |    5 +++++
 src/intel/intel_driver.c |    4 ++++
 3 files changed, 15 insertions(+)

_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx