]> 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)
commit379391140e1b6577af149ee93230860eea17fc59
tree4243e0f736bfbd2b7777ae2a168c13e10b4f7487
parent9d11971718e4134f6079f4525f31597db5afaf53
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