|
@@ -153,15 +153,6 @@ int amdgpu_gtt_mgr_alloc(struct ttm_mem_type_manager *man,
|
|
|
return r;
|
|
|
}
|
|
|
|
|
|
-void amdgpu_gtt_mgr_print(struct seq_file *m, struct ttm_mem_type_manager *man)
|
|
|
-{
|
|
|
- struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev);
|
|
|
- struct amdgpu_gtt_mgr *mgr = man->priv;
|
|
|
-
|
|
|
- seq_printf(m, "man size:%llu pages, gtt available:%llu pages, usage:%lluMB\n",
|
|
|
- man->size, mgr->available, (u64)atomic64_read(&adev->gtt_usage) >> 20);
|
|
|
-
|
|
|
-}
|
|
|
/**
|
|
|
* amdgpu_gtt_mgr_new - allocate a new node
|
|
|
*
|
|
@@ -260,11 +251,16 @@ static void amdgpu_gtt_mgr_del(struct ttm_mem_type_manager *man,
|
|
|
static void amdgpu_gtt_mgr_debug(struct ttm_mem_type_manager *man,
|
|
|
struct drm_printer *printer)
|
|
|
{
|
|
|
+ struct amdgpu_device *adev = amdgpu_ttm_adev(man->bdev);
|
|
|
struct amdgpu_gtt_mgr *mgr = man->priv;
|
|
|
|
|
|
spin_lock(&mgr->lock);
|
|
|
drm_mm_print(&mgr->mm, printer);
|
|
|
spin_unlock(&mgr->lock);
|
|
|
+
|
|
|
+ drm_printf(printer, "man size:%llu pages, gtt available:%llu pages, usage:%lluMB\n",
|
|
|
+ man->size, mgr->available,
|
|
|
+ (u64)atomic64_read(&adev->gtt_usage) >> 20);
|
|
|
}
|
|
|
|
|
|
const struct ttm_mem_type_manager_func amdgpu_gtt_mgr_func = {
|