]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Don't force BOs into visible VRAM for page faults
authorJohn Brooks <john@fastquake.com>
Wed, 28 Jun 2017 02:33:21 +0000 (22:33 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:34 +0000 (11:06 -0400)
commitc3deee62d66c709265710969e0a8629afdb679ba
treebeeb238adeb2626fe55bac93d466250e5a5fe75c
parent20daa6361372259f19307f5cc16d0bbf49b48e1b
drm/amdgpu: Don't force BOs into visible VRAM for page faults

There is no need for page faults to force BOs into visible VRAM if it's
full, and the time it takes to do so is great enough to cause noticeable
stuttering. Add GTT as a possible placement so that if visible VRAM is
full, page faults move BOs to GTT instead of evicting other BOs from VRAM.

Suggested-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: John Brooks <john@fastquake.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c