]> git.baikalelectronics.ru Git - kernel.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)
commit2411b2f25b64e43ced706338728c805cfe173379
tree4243e0f736bfbd2b7777ae2a168c13e10b4f7487
parenteae7e3c0a5677b248589fff6d1568a950ddb9127
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