mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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>
This commit is contained in:
parent
90a681c5e4
commit
6ceba306c0
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue