mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-04 08:17:46 +00:00
drm/vram-helper: call the ttm manager debug function
This code was assuming there was a drm_mm here, don't do that call the correct API. v2: use the new exported interface. Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200804025632.3868079-13-airlied@gmail.com
This commit is contained in:
parent
00c2f6b3e8
commit
e22054debc
1 changed files with 2 additions and 4 deletions
|
@ -1075,12 +1075,10 @@ static int drm_vram_mm_debugfs(struct seq_file *m, void *data)
|
|||
{
|
||||
struct drm_info_node *node = (struct drm_info_node *) m->private;
|
||||
struct drm_vram_mm *vmm = node->minor->dev->vram_mm;
|
||||
struct drm_mm *mm = vmm->bdev.man[TTM_PL_VRAM].priv;
|
||||
struct ttm_mem_type_manager *man = &vmm->bdev.man[TTM_PL_VRAM];
|
||||
struct drm_printer p = drm_seq_file_printer(m);
|
||||
|
||||
spin_lock(&ttm_bo_glob.lru_lock);
|
||||
drm_mm_print(mm, &p);
|
||||
spin_unlock(&ttm_bo_glob.lru_lock);
|
||||
ttm_mem_type_manager_debug(man, &p);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue