diff options
author | 2013-11-17 23:30:38 -0800 | |
---|---|---|
committer | 2013-11-20 03:43:28 -0800 | |
commit | 0bc254257bfd9b25f64a68b719ee70a303b6d051 (patch) | |
tree | a0ee8aa093f279b1c21af6f8c467767b950ddadd /include/drm/ttm/ttm_bo_api.h | |
parent | drm: check for !kdev in drm_unplug_minor() (diff) | |
download | linux-0bc254257bfd9b25f64a68b719ee70a303b6d051.tar.gz linux-0bc254257bfd9b25f64a68b719ee70a303b6d051.tar.bz2 linux-0bc254257bfd9b25f64a68b719ee70a303b6d051.zip |
drm/ttm: Don't move non-existing data
If ttm_bo_move_memcpy was instructed to move a non-populated ttm to
io memory, it would first populate the ttm, then move the data and then
destroy the ttm. That's stupid. However, some drivers might have relied on
this to clear io memory from old stuff. So instead of a NOP, which would
be the most efficient, just clear the destination.
Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jakob Bornecrantz <jakob@vmware.com>
Diffstat (limited to 'include/drm/ttm/ttm_bo_api.h')
0 files changed, 0 insertions, 0 deletions