]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix shadow bo skip condition
authorNirmoy Das <nirmoy.das@amd.com>
Tue, 8 Jun 2021 09:58:48 +0000 (11:58 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 8 Jun 2021 16:14:18 +0000 (12:14 -0400)
commit16679f40f5bf7127e81d8bb9e2e910136752ac88
treea9727b361515e2f363c9c8ce15f967dcf7c95ae5
parent01d86433bf217b349a1d4689cc5f90c50edc90b9
drm/amdgpu: fix shadow bo skip condition

Create shadow BOs only for no-compute VM context and only for dGPU.
The existing if-condition would create shadow bo for compute context
on dGPU which not what we wanted.

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c