Beispiel #1
0
static void ttm_bo_man_debug(struct ttm_mem_type_manager *man,
			     const char *prefix)
{
	struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv;

	spin_lock(&rman->lock);
	drm_mm_debug_table(&rman->mm, prefix);
	spin_unlock(&rman->lock);
}
Beispiel #2
0
static void ttm_bo_man_debug(struct ttm_mem_type_manager *man,
			     const char *prefix)
{
	struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv;

	lockmgr(&rman->lock, LK_EXCLUSIVE);
	drm_mm_debug_table(&rman->mm, prefix);
	lockmgr(&rman->lock, LK_RELEASE);
}
Beispiel #3
0
static void ttm_bo_man_debug(struct ttm_mem_type_manager *man,
			     const char *prefix)
{
	printf("%s stub\n", __func__);
#ifdef notyet
	struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv;

	mtx_enter(&rman->lock);
	drm_mm_debug_table(&rman->mm, prefix);
	mtx_leave(&rman->lock);
#endif
}
Beispiel #4
0
static void ttm_mem_type_debug(struct ttm_bo_device *bdev, int mem_type)
{
	struct ttm_mem_type_manager *man = &bdev->man[mem_type];

	printk(KERN_ERR TTM_PFX "    has_type: %d\n", man->has_type);
	printk(KERN_ERR TTM_PFX "    use_type: %d\n", man->use_type);
	printk(KERN_ERR TTM_PFX "    flags: 0x%08X\n", man->flags);
	printk(KERN_ERR TTM_PFX "    gpu_offset: 0x%08lX\n", man->gpu_offset);
	printk(KERN_ERR TTM_PFX "    size: %llu\n", man->size);
	printk(KERN_ERR TTM_PFX "    available_caching: 0x%08X\n",
		man->available_caching);
	printk(KERN_ERR TTM_PFX "    default_caching: 0x%08X\n",
		man->default_caching);
	if (mem_type != TTM_PL_SYSTEM) {
		spin_lock(&bdev->glob->lru_lock);
		drm_mm_debug_table(&man->manager, TTM_PFX);
		spin_unlock(&bdev->glob->lru_lock);
	}
}