]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/amdgpu: don't put the root PD into the relocated list
authorChristian König <christian.koenig@amd.com>
Wed, 27 Mar 2019 10:34:24 +0000 (11:34 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 28 Mar 2019 03:41:04 +0000 (22:41 -0500)
commitfda43ab68ce4de56c3cd3b488cd70496cd1135d7
tree4243e0f736bfbd2b7777ae2a168c13e10b4f7487
parent110aef572afccc8d18c8d1ad6cb027795ec01cda
drm/amdgpu: don't put the root PD into the relocated list

Instead of skipping the root PD while processing the relocated list just never
put it on the list in the first place.

This avoids walking the list all together when the root PD is the only entry
and so also avoids trying to submit a zero sized IB to the SDMA.

Signed-off-by: Christian König <christian.koenig@amd.com>
Tested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c