]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Try evicting from CPU visible to invisible VRAM first
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 4 Jul 2017 08:16:42 +0000 (17:16 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:34 +0000 (11:06 -0400)
commit4ed14a397c35eefd19f6f6214ebb797f07d877cb
tree3683a20e1ffbe4f3587cce28b27cd333722cb96e
parent4f2610ac71bfe8639a6cf091f97775c804030574
drm/amdgpu: Try evicting from CPU visible to invisible VRAM first

This gives BOs which haven't been accessed by the CPU since they were
moved to visible VRAM another chance to stay in VRAM when another BO
needs to go to visible VRAM.

This should allow BOs to stay in VRAM longer in some cases.

v2:
* Only do this for BOs which don't have the
  AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED flag set.

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_ttm.c