drm/amdgpu: Update BO eviction priorities
authorFelix Kuehling <felix.kuehling@amd.com>
Thu, 18 Apr 2024 17:56:42 +0000 (13:56 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Apr 2024 03:23:28 +0000 (23:23 -0400)
commitb0b13d532105e0e682d95214933bb8483a063184
tree851f82a2efca61cb164e2b7f3d38de8a6d2597b7
parentd59198d2d0c5cb2a360819b000b0f173c472c9ef
drm/amdgpu: Update BO eviction priorities

Make SVM BOs more likely to get evicted than other BOs. These BOs
opportunistically use available VRAM, but can fall back relatively
seamlessly to system memory. It also avoids SVM migrations evicting
other, more important BOs as they will evict other SVM allocations
first.

Signed-off-by: Felix Kuehling <felix.kuehling@amd.com>
Acked-by: Mukul Joshi <mukul.joshi@amd.com>
Tested-by: Mukul Joshi <mukul.joshi@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c