File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -1429,12 +1429,15 @@ static void vmw_debugfs_resource_managers_init(struct vmw_private *vmw)
1429
1429
root , "system_ttm" );
1430
1430
ttm_resource_manager_create_debugfs (ttm_manager_type (& vmw -> bdev , TTM_PL_VRAM ),
1431
1431
root , "vram_ttm" );
1432
- ttm_resource_manager_create_debugfs (ttm_manager_type (& vmw -> bdev , VMW_PL_GMR ),
1433
- root , "gmr_ttm" );
1434
- ttm_resource_manager_create_debugfs (ttm_manager_type (& vmw -> bdev , VMW_PL_MOB ),
1435
- root , "mob_ttm" );
1436
- ttm_resource_manager_create_debugfs (ttm_manager_type (& vmw -> bdev , VMW_PL_SYSTEM ),
1437
- root , "system_mob_ttm" );
1432
+ if (vmw -> has_gmr )
1433
+ ttm_resource_manager_create_debugfs (ttm_manager_type (& vmw -> bdev , VMW_PL_GMR ),
1434
+ root , "gmr_ttm" );
1435
+ if (vmw -> has_mob ) {
1436
+ ttm_resource_manager_create_debugfs (ttm_manager_type (& vmw -> bdev , VMW_PL_MOB ),
1437
+ root , "mob_ttm" );
1438
+ ttm_resource_manager_create_debugfs (ttm_manager_type (& vmw -> bdev , VMW_PL_SYSTEM ),
1439
+ root , "system_mob_ttm" );
1440
+ }
1438
1441
}
1439
1442
1440
1443
static int vmwgfx_pm_notifier (struct notifier_block * nb , unsigned long val ,
You can’t perform that action at this time.
0 commit comments