aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/files/0428-drm-amdgpu-print-vram-type-rather-than-just-DDR.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/files/0428-drm-amdgpu-print-vram-type-rather-than-just-DDR.patch')
-rw-r--r--common/recipes-kernel/linux/files/0428-drm-amdgpu-print-vram-type-rather-than-just-DDR.patch49
1 files changed, 0 insertions, 49 deletions
diff --git a/common/recipes-kernel/linux/files/0428-drm-amdgpu-print-vram-type-rather-than-just-DDR.patch b/common/recipes-kernel/linux/files/0428-drm-amdgpu-print-vram-type-rather-than-just-DDR.patch
deleted file mode 100644
index 87daa193..00000000
--- a/common/recipes-kernel/linux/files/0428-drm-amdgpu-print-vram-type-rather-than-just-DDR.patch
+++ /dev/null
@@ -1,49 +0,0 @@
-From 6fb8cb4190dca5106734e44b03ed3533d3ef18e1 Mon Sep 17 00:00:00 2001
-From: Alex Deucher <alexander.deucher@amd.com>
-Date: Thu, 31 Mar 2016 16:56:22 -0400
-Subject: [PATCH 0428/1110] drm/amdgpu: print vram type rather than just DDR
-
-We have the info, so use it rather than reporting just DDR.
-
-Reviewed-by: Harish Kasiviswanathan <Harish.Kasiviswanathan@amd.com>
-Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 15 +++++++++++++--
- 1 file changed, 13 insertions(+), 2 deletions(-)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
-index 95d35c2..af5c32f 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
-@@ -476,6 +476,17 @@ int amdgpu_bo_evict_vram(struct amdgpu_device *adev)
- return ttm_bo_evict_mm(&adev->mman.bdev, TTM_PL_VRAM);
- }
-
-+static const char *amdgpu_vram_names[] = {
-+ "UNKNOWN",
-+ "GDDR1",
-+ "DDR2",
-+ "GDDR3",
-+ "GDDR4",
-+ "GDDR5",
-+ "HBM",
-+ "DDR3"
-+};
-+
- int amdgpu_bo_init(struct amdgpu_device *adev)
- {
- /* Add an MTRR for the VRAM */
-@@ -484,8 +495,8 @@ int amdgpu_bo_init(struct amdgpu_device *adev)
- DRM_INFO("Detected VRAM RAM=%lluM, BAR=%lluM\n",
- adev->mc.mc_vram_size >> 20,
- (unsigned long long)adev->mc.aper_size >> 20);
-- DRM_INFO("RAM width %dbits DDR\n",
-- adev->mc.vram_width);
-+ DRM_INFO("RAM width %dbits %s\n",
-+ adev->mc.vram_width, amdgpu_vram_names[adev->mc.vram_type]);
- return amdgpu_ttm_init(adev);
- }
-
---
-2.7.4
-