aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0580-drm-amdgpu-add-vram-usage-into-debugfs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0580-drm-amdgpu-add-vram-usage-into-debugfs.patch')
-rw-r--r--common/recipes-kernel/linux/files/0580-drm-amdgpu-add-vram-usage-into-debugfs.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/common/recipes-kernel/linux/files/0580-drm-amdgpu-add-vram-usage-into-debugfs.patch b/common/recipes-kernel/linux/files/0580-drm-amdgpu-add-vram-usage-into-debugfs.patch
deleted file mode 100644
index 96feba53..00000000
--- a/common/recipes-kernel/linux/files/0580-drm-amdgpu-add-vram-usage-into-debugfs.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From a2ef8a974931bd4a28e81a3de0a3813e97acfc30 Mon Sep 17 00:00:00 2001
-From: Chunming Zhou <david1.zhou@amd.com>
-Date: Tue, 22 Sep 2015 18:20:50 +0800
-Subject: [PATCH 0580/1565] drm/amdgpu: add vram usage into debugfs
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
-Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
-Reviewed-by: Christian König <christian.koenig@amd.com>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 5 +++++
- 1 file changed, 5 insertions(+)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
-index 364cbe9..a089e69 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
-@@ -1072,6 +1072,11 @@ static int amdgpu_mm_dump_table(struct seq_file *m, void *data)
- spin_lock(&glob->lru_lock);
- ret = drm_mm_dump_table(m, mm);
- spin_unlock(&glob->lru_lock);
-+ if (ttm_pl == TTM_PL_VRAM)
-+ seq_printf(m, "man size:%llu pages, ram usage:%luMB, vis usage:%luMB\n",
-+ adev->mman.bdev.man[ttm_pl].size,
-+ atomic64_read(&adev->vram_usage) >> 20,
-+ atomic64_read(&adev->vram_vis_usage) >> 20);
- return ret;
- }
-
---
-1.9.1
-