[Intel-gfx] [PATCH 0/3] Increase the utilization of Stolen area on VLV

sourab.gupta at intel.com sourab.gupta at intel.com
Fri Mar 7 10:59:24 CET 2014


From: Sourab Gupta <sourab.gupta at intel.com>


These patches are mainly for increasing the utilization
of stolen memory area on VLV.
Although similar patches were submitted earlier, this time truncation
is handled based on Chris and Daniel's input. Chris's patch handles
the truncation of purgeable stolen objects.
 
The allocation from stolen area will be done based on user's input.
We have exposed a new libdrm flag which user can use while creating
an object to convey driver that direct cpu access to buffer is
not required. Based on this flag, driver can decide to allocate the
backing storage for this object from stolen mem area.

If we run out of stolen memory when trying to allocate an object,
we can try to reap enough purgeable objects to free up enough contiguous
free space for the allocation.


Chris Wilson (1):
  drm/i915: Truncation logic for Stolen mem objects

Sourab Gupta (2):
  drm/i915: Added a new 'I915_CPU_MAP_NOT_NEEDED' flag to gem_create
    ioctl.
  drm/i915: Memory node free handling on truncation of stolen obj

 drivers/gpu/drm/i915/i915_gem.c        |   17 +++--
 drivers/gpu/drm/i915/i915_gem_stolen.c |  112 ++++++++++++++++++++++++++++++--
 include/uapi/drm/i915_drm.h            |    3 +-
 3 files changed, 119 insertions(+), 13 deletions(-)

-- 
1.7.9.5




More information about the Intel-gfx mailing list