summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNirmoy Das <nirmoy.das@amd.com>2021-06-08 11:58:48 +0200
committerAlex Deucher <alexander.deucher@amd.com>2021-06-08 18:14:18 +0200
commit6ceba306c05a4b33034a303ed8a97c9f2e9af3eb (patch)
treea9727b361515e2f363c9c8ce15f967dcf7c95ae5 /drivers
parentamdgpu/pm: add kernel documentation for smu_get_power_limit (diff)
downloadlinux-6ceba306c05a4b33034a303ed8a97c9f2e9af3eb.tar.xz
linux-6ceba306c05a4b33034a303ed8a97c9f2e9af3eb.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
index 00addb62f0e5..b4e46c7222f1 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
@@ -909,7 +909,7 @@ static int amdgpu_vm_pt_create(struct amdgpu_device *adev,
return r;
bo = &(*vmbo)->bo;
- if (vm->is_compute_context && (adev->flags & AMD_IS_APU)) {
+ if (vm->is_compute_context || (adev->flags & AMD_IS_APU)) {
(*vmbo)->shadow = NULL;
return 0;
}