aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0876-drm-amdgpu-wait-for-IB-test-on-first-device-open.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0876-drm-amdgpu-wait-for-IB-test-on-first-device-open.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0876-drm-amdgpu-wait-for-IB-test-on-first-device-open.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0876-drm-amdgpu-wait-for-IB-test-on-first-device-open.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0876-drm-amdgpu-wait-for-IB-test-on-first-device-open.patch
new file mode 100644
index 00000000..b354ba50
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0876-drm-amdgpu-wait-for-IB-test-on-first-device-open.patch
@@ -0,0 +1,46 @@
+From b8a953b232e0ea340bd657e59777fabbfa99630e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Fri, 26 Oct 2018 15:59:05 +0200
+Subject: [PATCH 0876/2940] drm/amdgpu: wait for IB test on first device open
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Instead of delaying that to the first query. Otherwise we could try to use the
+SDMA for VM updates before the IB tests are done.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
+Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
+index 3d33cea894a1..efb8a1081409 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
+@@ -464,9 +464,6 @@ static int amdgpu_info_ioctl(struct drm_device *dev, void *data, struct drm_file
+ if (!info->return_size || !info->return_pointer)
+ return -EINVAL;
+
+- /* Ensure IB tests are run on ring */
+- flush_delayed_work(&adev->late_init_work);
+-
+ switch (info->query) {
+ case AMDGPU_INFO_VIRTUAL_RANGE: {
+ struct drm_amdgpu_virtual_range range_info;
+@@ -979,6 +976,9 @@ int amdgpu_driver_open_kms(struct drm_device *dev, struct drm_file *file_priv)
+ struct amdgpu_fpriv *fpriv;
+ int r, pasid;
+
++ /* Ensure IB tests are run on ring */
++ flush_delayed_work(&adev->late_init_work);
++
+ file_priv->driver_priv = NULL;
+
+ r = pm_runtime_get_sync(dev->dev);
+--
+2.17.1
+