forked from Minki/linux
drm/amdgpu: print the BO size only once in amdgpu_gem_info
Splitting it into KB/MB is just confusing. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
3e4ae1dcbb
commit
de0549008a
@ -720,9 +720,8 @@ static int amdgpu_debugfs_gem_info(struct seq_file *m, void *data)
|
|||||||
placement = " CPU";
|
placement = " CPU";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
seq_printf(m, "bo[0x%08x] %8ldkB %8ldMB %s pid %8d\n",
|
seq_printf(m, "bo[0x%08x] %12ld %s pid %8d\n",
|
||||||
i, amdgpu_bo_size(rbo) >> 10, amdgpu_bo_size(rbo) >> 20,
|
i, amdgpu_bo_size(rbo), placement, rbo->pid);
|
||||||
placement, rbo->pid);
|
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
mutex_unlock(&adev->gem.mutex);
|
mutex_unlock(&adev->gem.mutex);
|
||||||
|
Loading…
Reference in New Issue
Block a user