Commit 28c23373 authored by Thierry Reding's avatar Thierry Reding

drm/tegra: Provide debugfs file for the IOVA space

The Tegra DRM driver uses a single IO virtual address space for buffer
mappings. Provide a table of the address space usage in debugfs.
Signed-off-by: default avatarThierry Reding <treding@nvidia.com>
parent d2982748
...@@ -879,8 +879,18 @@ static int tegra_debugfs_framebuffers(struct seq_file *s, void *data) ...@@ -879,8 +879,18 @@ static int tegra_debugfs_framebuffers(struct seq_file *s, void *data)
return 0; return 0;
} }
static int tegra_debugfs_iova(struct seq_file *s, void *data)
{
struct drm_info_node *node = (struct drm_info_node *)s->private;
struct drm_device *drm = node->minor->dev;
struct tegra_drm *tegra = drm->dev_private;
return drm_mm_dump_table(s, &tegra->mm);
}
static struct drm_info_list tegra_debugfs_list[] = { static struct drm_info_list tegra_debugfs_list[] = {
{ "framebuffers", tegra_debugfs_framebuffers, 0 }, { "framebuffers", tegra_debugfs_framebuffers, 0 },
{ "iova", tegra_debugfs_iova, 0 },
}; };
static int tegra_debugfs_init(struct drm_minor *minor) static int tegra_debugfs_init(struct drm_minor *minor)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment