diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/3478-drm-amdgpu-stop-checking-GPU-reset-counter-during-VM.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/3478-drm-amdgpu-stop-checking-GPU-reset-counter-during-VM.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/3478-drm-amdgpu-stop-checking-GPU-reset-counter-during-VM.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/3478-drm-amdgpu-stop-checking-GPU-reset-counter-during-VM.patch new file mode 100644 index 00000000..77b8efce --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/3478-drm-amdgpu-stop-checking-GPU-reset-counter-during-VM.patch @@ -0,0 +1,45 @@ +From 97835ae66fef5d3002d7ce070d0ea81226d9eed8 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> +Date: Wed, 31 Jan 2018 11:21:23 +0100 +Subject: [PATCH 3478/4131] drm/amdgpu: stop checking GPU reset counter during + VMID grab +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +We do this later on when we flush the VMID anyway. + +Signed-off-by: Christian König <christian.koenig@amd.com> +Reviewed-by: Chunming Zhou <david1.zhou@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c +index 9f06dfa..ac24e4d 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ids.c +@@ -270,8 +270,7 @@ static int amdgpu_vmid_grab_reserved_locked(struct amdgpu_vm *vm, + bool needs_flush = vm->use_cpu_for_update; + + flushed = id->flushed_updates; +- if ((amdgpu_vmid_had_gpu_reset(adev, id)) || +- (id->owner != vm->entity.fence_context) || ++ if ((id->owner != vm->entity.fence_context) || + (job->vm_pd_addr != id->pd_gpu_addr) || + (updates && (!flushed || updates->context != flushed->context || + dma_fence_is_later(updates, flushed))) || +@@ -354,9 +353,6 @@ int amdgpu_vmid_grab(struct amdgpu_vm *vm, struct amdgpu_ring *ring, + bool needs_flush = vm->use_cpu_for_update; + + /* Check all the prerequisites to using this VMID */ +- if (amdgpu_vmid_had_gpu_reset(adev, id)) +- continue; +- + if (id->owner != vm->entity.fence_context) + continue; + +-- +2.7.4 + |