Skip to content

Commit 7838a63

Browse files
committed
drm/i915: Include i915_gem_evict.c kerneldoc into the drm docbook
I've written these long before we've had a reasonable docbook structure, and naturally they've gone stale. Fix this up asap. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
1 parent 9441159 commit 7838a63

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

Documentation/DocBook/drm.tmpl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4048,6 +4048,17 @@ int num_ioctls;</synopsis>
40484048
!Pdrivers/gpu/drm/i915/i915_gem_gtt.c Global GTT views
40494049
!Idrivers/gpu/drm/i915/i915_gem_gtt.c
40504050
</sect2>
4051+
<sect2>
4052+
<title>Buffer Object Eviction</title>
4053+
<para>
4054+
This section documents the interface function for evicting buffer
4055+
objects to make space available in the virtual gpu address spaces.
4056+
Note that this is mostly orthogonal to shrinking buffer objects
4057+
caches, which has the goal to make main memory (shared with the gpu
4058+
through the unified memory architecture) available.
4059+
</para>
4060+
!Idrivers/gpu/drm/i915/i915_gem_evict.c
4061+
</sect2>
40514062
</sect1>
40524063

40534064
<sect1>

drivers/gpu/drm/i915/i915_gem_evict.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,12 @@ mark_free(struct i915_vma *vma, struct list_head *unwind)
5050
* i915_gem_evict_something - Evict vmas to make room for binding a new one
5151
* @dev: drm_device
5252
* @vm: address space to evict from
53-
* @size: size of the desired free space
53+
* @min_size: size of the desired free space
5454
* @alignment: alignment constraint of the desired free space
5555
* @cache_level: cache_level for the desired space
56-
* @mappable: whether the free space must be mappable
57-
* @nonblocking: whether evicting active objects is allowed or not
56+
* @start: start (inclusive) of the range from which to evict objects
57+
* @end: end (exclusive) of the range from which to evict objects
58+
* @flags: additional flags to control the eviction algorithm
5859
*
5960
* This function will try to evict vmas until a free space satisfying the
6061
* requirements is found. Callers must check first whether any such hole exists
@@ -196,7 +197,6 @@ i915_gem_evict_something(struct drm_device *dev, struct i915_address_space *vm,
196197

197198
/**
198199
* i915_gem_evict_vm - Evict all idle vmas from a vm
199-
*
200200
* @vm: Address space to cleanse
201201
* @do_idle: Boolean directing whether to idle first.
202202
*

0 commit comments

Comments
 (0)