Skip to content

Increase the utilization of Stolen area on VLV

[email protected] intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/i915: Added a new 'I915_CPU_MAP_NOT_NEEDED' flag to gem_create ioctl.drivers/gpu/drm/i915/i915_gem.c include/uapi/drm/i915_drm.h+14 -66 replies
2/3drm/i915: Truncation logic for Stolen mem objectsdrivers/gpu/drm/i915/i915_gem_stolen.c+107 -70 replies
3/3drm/i915: Memory node free handling on truncation of stolen objdrivers/gpu/drm/i915/i915_gem_stolen.c+1 -33 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] Increase the utilization of Stolen area on VLV

From: Sourab Gupta <[email protected]>

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(-)
Signature · 1 line
1.7.9.5