diff options
| author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-03-18 09:47:59 -0400 |
|---|---|---|
| committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-03-20 06:48:16 -0400 |
| commit | eb0b44adc08c0be01a027eb009e9cdadc31e65a2 (patch) | |
| tree | cbc1c91f7793bb266eb99c13a2b432687d4f28ad /Documentation/DocBook | |
| parent | be6a03769504753696033b7595d4dcbc4a16d088 (diff) | |
drm/i915: kerneldoc for i915_gem_shrinker.c
And remove one bogus * from i915_gem_gtt.c since that's not a
kerneldoc there.
v2: Review from Chris:
- Clarify memory space to better distinguish from address space.
- Add note that shrink doesn't guarantee the freed memory and that
users must fall back to shrink_all.
- Explain how pinning ties in with eviction/shrinker.
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'Documentation/DocBook')
| -rw-r--r-- | Documentation/DocBook/drm.tmpl | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Documentation/DocBook/drm.tmpl b/Documentation/DocBook/drm.tmpl index 7a45775518f6..f4976cd7b32b 100644 --- a/Documentation/DocBook/drm.tmpl +++ b/Documentation/DocBook/drm.tmpl | |||
| @@ -4184,7 +4184,7 @@ int num_ioctls;</synopsis> | |||
| 4184 | <sect2> | 4184 | <sect2> |
| 4185 | <title>Buffer Object Eviction</title> | 4185 | <title>Buffer Object Eviction</title> |
| 4186 | <para> | 4186 | <para> |
| 4187 | This section documents the interface function for evicting buffer | 4187 | This section documents the interface functions for evicting buffer |
| 4188 | objects to make space available in the virtual gpu address spaces. | 4188 | objects to make space available in the virtual gpu address spaces. |
| 4189 | Note that this is mostly orthogonal to shrinking buffer objects | 4189 | Note that this is mostly orthogonal to shrinking buffer objects |
| 4190 | caches, which has the goal to make main memory (shared with the gpu | 4190 | caches, which has the goal to make main memory (shared with the gpu |
| @@ -4192,6 +4192,17 @@ int num_ioctls;</synopsis> | |||
| 4192 | </para> | 4192 | </para> |
| 4193 | !Idrivers/gpu/drm/i915/i915_gem_evict.c | 4193 | !Idrivers/gpu/drm/i915/i915_gem_evict.c |
| 4194 | </sect2> | 4194 | </sect2> |
| 4195 | <sect2> | ||
| 4196 | <title>Buffer Object Memory Shrinking</title> | ||
| 4197 | <para> | ||
| 4198 | This section documents the interface function for shrinking memory | ||
| 4199 | usage of buffer object caches. Shrinking is used to make main memory | ||
| 4200 | available. Note that this is mostly orthogonal to evicting buffer | ||
| 4201 | objects, which has the goal to make space in gpu virtual address | ||
| 4202 | spaces. | ||
| 4203 | </para> | ||
| 4204 | !Idrivers/gpu/drm/i915/i915_gem_shrinker.c | ||
| 4205 | </sect2> | ||
| 4195 | </sect1> | 4206 | </sect1> |
| 4196 | 4207 | ||
| 4197 | <sect1> | 4208 | <sect1> |
