aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0765-drm-amdgpu-add-query-for-aperture-va-range.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0765-drm-amdgpu-add-query-for-aperture-va-range.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0765-drm-amdgpu-add-query-for-aperture-va-range.patch48
1 files changed, 0 insertions, 48 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0765-drm-amdgpu-add-query-for-aperture-va-range.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0765-drm-amdgpu-add-query-for-aperture-va-range.patch
deleted file mode 100644
index 81cd5ca0..00000000
--- a/common/recipes-kernel/linux/linux-yocto-4.14.71/0765-drm-amdgpu-add-query-for-aperture-va-range.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From 1a2ae2ef6382d87b086803f43270ff90e10d03b4 Mon Sep 17 00:00:00 2001
-From: Flora Cui <flora.cui@amd.com>
-Date: Sat, 10 Oct 2015 17:11:12 +0800
-Subject: [PATCH 0765/4131] drm/amdgpu: add query for aperture va range
-
-Change-Id: I648c3784b13709fbcd79cfef4aa6dadeaadeee8c
-Signed-off-by: Flora Cui <Flora.Cui@amd.com>
-Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
-Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
-
-Conflicts:
- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
- include/uapi/drm/amdgpu_drm.h
----
- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 17 +++++++++++++++++
- 1 file changed, 17 insertions(+)
-
-diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
-index d31777b..6224fba 100644
---- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
-+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
-@@ -286,6 +286,23 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file
- return -ENODEV;
-
- switch (info->query) {
-+ case AMDGPU_INFO_VIRTUAL_RANGE: {
-+ struct drm_amdgpu_virtual_range range_info;
-+ switch (info->virtual_range.aperture) {
-+ case AMDGPU_SUA_APERTURE_PRIVATE:
-+ range_info.start = adev->mc.private_aperture_start;
-+ range_info.end = adev->mc.private_aperture_end;
-+ break;
-+ case AMDGPU_SUA_APERTURE_SHARED:
-+ range_info.start = adev->mc.shared_aperture_start;
-+ range_info.end = adev->mc.shared_aperture_end;
-+ break;
-+ default:
-+ return -EINVAL;
-+ }
-+ return copy_to_user(out, &range_info,
-+ min((size_t)size, sizeof(range_info))) ? -EFAULT : 0;
-+ }
- case AMDGPU_INFO_ACCEL_WORKING:
- ui32 = adev->accel_working;
- return copy_to_user(out, &ui32, min(size, 4u)) ? -EFAULT : 0;
---
-2.7.4
-