diff options
author | Thierry Reding <treding@nvidia.com> | 2015-01-23 03:16:03 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2015-04-02 12:46:14 -0400 |
commit | 28c23373b88bcc244b573ea45596a51e9db73d2c (patch) | |
tree | 47067dcd9cdacd69bb71d1964d6d04081cfb4918 | |
parent | d29827484b9cf6026506a0e376fb5d246580ffd8 (diff) |
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: Thierry Reding <treding@nvidia.com>
-rw-r--r-- | drivers/gpu/drm/tegra/drm.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 7dd328d77996..7ba7e2860ac8 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c | |||
@@ -879,8 +879,18 @@ static int tegra_debugfs_framebuffers(struct seq_file *s, void *data) | |||
879 | return 0; | 879 | return 0; |
880 | } | 880 | } |
881 | 881 | ||
882 | static int tegra_debugfs_iova(struct seq_file *s, void *data) | ||
883 | { | ||
884 | struct drm_info_node *node = (struct drm_info_node *)s->private; | ||
885 | struct drm_device *drm = node->minor->dev; | ||
886 | struct tegra_drm *tegra = drm->dev_private; | ||
887 | |||
888 | return drm_mm_dump_table(s, &tegra->mm); | ||
889 | } | ||
890 | |||
882 | static struct drm_info_list tegra_debugfs_list[] = { | 891 | static struct drm_info_list tegra_debugfs_list[] = { |
883 | { "framebuffers", tegra_debugfs_framebuffers, 0 }, | 892 | { "framebuffers", tegra_debugfs_framebuffers, 0 }, |
893 | { "iova", tegra_debugfs_iova, 0 }, | ||
884 | }; | 894 | }; |
885 | 895 | ||
886 | static int tegra_debugfs_init(struct drm_minor *minor) | 896 | static int tegra_debugfs_init(struct drm_minor *minor) |