aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0323-drm-amdgpu-optionally-print-the-pin-count-in-gem_inf.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0323-drm-amdgpu-optionally-print-the-pin-count-in-gem_inf.patch')
-rw-r--r--common/recipes-kernel/linux/files/0323-drm-amdgpu-optionally-print-the-pin-count-in-gem_inf.patch47
1 files changed, 0 insertions, 47 deletions
diff --git a/common/recipes-kernel/linux/files/0323-drm-amdgpu-optionally-print-the-pin-count-in-gem_inf.patch b/common/recipes-kernel/linux/files/0323-drm-amdgpu-optionally-print-the-pin-count-in-gem_inf.patch
deleted file mode 100644
index f8edcb5a..00000000
--- a/common/recipes-kernel/linux/files/0323-drm-amdgpu-optionally-print-the-pin-count-in-gem_inf.patch
+++ /dev/null
@@ -1,47 +0,0 @@
-From 2fc1bbf233adc66b9d052487bb26e6627a625f1d Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
-Date: Mon, 15 Feb 2016 12:41:37 +0100
-Subject: [PATCH 0323/1110] drm/amdgpu: optionally print the pin count in
- gem_info as well
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Usefull when debugging page flipping.
-
-Signed-off-by: Christian K├Ânig <christian.koenig@amd.com>
-Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | 8 +++++++-
- 1 file changed, 7 insertions(+), 1 deletion(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
-index 901a44c..cb7806a 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
-@@ -705,6 +705,7 @@ static int amdgpu_debugfs_gem_info(struct seq_file *m, void *data)
-
- mutex_lock(&adev->gem.mutex);
- list_for_each_entry(rbo, &adev->gem.objects, list) {
-+ unsigned pin_count;
- unsigned domain;
- const char *placement;
-
-@@ -721,8 +722,13 @@ static int amdgpu_debugfs_gem_info(struct seq_file *m, void *data)
- placement = " CPU";
- break;
- }
-- seq_printf(m, "bo[0x%08x] %12ld %s pid %8d\n",
-+ seq_printf(m, "bo[0x%08x] %12ld %s pid %8d",
- i, amdgpu_bo_size(rbo), placement, rbo->pid);
-+
-+ pin_count = ACCESS_ONCE(rbo->pin_count);
-+ if (pin_count)
-+ seq_printf(m, " pin count %d", pin_count);
-+ seq_printf(m, "\n");
- i++;
- }
- mutex_unlock(&adev->gem.mutex);
---
-2.7.4
-