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>
Tue, 23 Apr 2024 16:08:31 +0000 (12:08 -0400)
commite76691f45a60bf71a3210c4fb2abd492b26bd4a6
tree722cd6722304687e9ba373f035f09fcd073d0236
parent8e49344e6658919a94e813ad406b44b25f0ff94b
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