aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/1717-drm-amdgpu-provide-the-page-fault-queue-to-the-VM-co.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/1717-drm-amdgpu-provide-the-page-fault-queue-to-the-VM-co.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/1717-drm-amdgpu-provide-the-page-fault-queue-to-the-VM-co.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/1717-drm-amdgpu-provide-the-page-fault-queue-to-the-VM-co.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/1717-drm-amdgpu-provide-the-page-fault-queue-to-the-VM-co.patch
new file mode 100644
index 00000000..09b0b3ab
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/1717-drm-amdgpu-provide-the-page-fault-queue-to-the-VM-co.patch
@@ -0,0 +1,45 @@
+From 870a84d79776ce0898eb3d8077a97c7b2b386b28 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Mon, 25 Mar 2019 16:13:44 +0100
+Subject: [PATCH 1717/2940] drm/amdgpu: provide the page fault queue to the VM
+ code
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+We are going to need that for recoverable page faults.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 1 +
+ drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+index 966e47f8f296..5d814f2b7606 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+@@ -303,6 +303,7 @@ struct amdgpu_vm_manager {
+ const struct amdgpu_vm_pte_funcs *vm_pte_funcs;
+ struct drm_sched_rq *vm_pte_rqs[AMDGPU_MAX_RINGS];
+ unsigned vm_pte_num_rqs;
++ struct amdgpu_ring *page_fault;
+
+ /* partial resident texture handling */
+ spinlock_t prt_lock;
+diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+index 1fa8087c5a7e..9111010e191f 100644
+--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
++++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+@@ -2291,6 +2291,7 @@ static void sdma_v4_0_set_vm_pte_funcs(struct amdgpu_device *adev)
+ &sched->sched_rq[DRM_SCHED_PRIORITY_KERNEL];
+ }
+ adev->vm_manager.vm_pte_num_rqs = adev->sdma.num_instances - 1;
++ adev->vm_manager.page_fault = &adev->sdma.instance[0].page;
+ } else {
+ for (i = 0; i < adev->sdma.num_instances; i++) {
+ sched = &adev->sdma.instance[i].ring.sched;
+--
+2.17.1
+