OSDN Git Service

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)
commit41d9a6a728ea34d697dc74bc5fea1b6f6c5fce80
treebeeb238adeb2626fe55bac93d466250e5a5fe75c
parent96cf8271df546d0f4cfc9ddddbc42dce633e0190
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