Subversion Repositories Kolibri OS

Rev

Rev 4075 | Rev 5078 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4075 Rev 4569
Line 288... Line 288...
288
 
288
 
289
 
289
 
290
/**
290
/**
291
 * vmw_bo_pin - Pin or unpin a buffer object without moving it.
291
 * vmw_bo_pin - Pin or unpin a buffer object without moving it.
292
 *
-
 
293
 * @bo: The buffer object. Must be reserved, and present either in VRAM
292
 *
294
 * or GMR memory.
293
 * @bo: The buffer object. Must be reserved.
295
 * @pin: Whether to pin or unpin.
294
 * @pin: Whether to pin or unpin.
296
 *
295
 *
297
 */
296
 */
Line 301... Line 300...
301
	struct ttm_placement placement;
300
	struct ttm_placement placement;
302
	uint32_t old_mem_type = bo->mem.mem_type;
301
	uint32_t old_mem_type = bo->mem.mem_type;
303
	int ret;
302
	int ret;
Line 304... Line 303...
304
 
303
 
305
	lockdep_assert_held(&bo->resv->lock.base);
-
 
306
	BUG_ON(old_mem_type != TTM_PL_VRAM &&
-
 
Line 307... Line 304...
307
	       old_mem_type != VMW_PL_GMR);
304
	lockdep_assert_held(&bo->resv->lock.base);
-
 
305
 
308
 
306
	pl_flags = TTM_PL_FLAG_VRAM | VMW_PL_FLAG_GMR | VMW_PL_FLAG_MOB
309
	pl_flags = TTM_PL_FLAG_VRAM | VMW_PL_FLAG_GMR | TTM_PL_FLAG_CACHED;
307
		| TTM_PL_FLAG_SYSTEM | TTM_PL_FLAG_CACHED;
Line 310... Line 308...
310
	if (pin)
308
	if (pin)
311
		pl_flags |= TTM_PL_FLAG_NO_EVICT;
309
		pl_flags |= TTM_PL_FLAG_NO_EVICT;