drm/amdgpu: revert "generally allow over-commit during BO allocation"
authorChristian König <christian.koenig@amd.com>
Mon, 12 Dec 2022 16:31:57 +0000 (17:31 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 14 Dec 2022 21:48:00 +0000 (16:48 -0500)
commit47722220660cfb935e27e62d385959ecc296cddb
treed94195317d0b06af19102d5bf448662508172e84
parent3273f11675ef11959d25a56df3279f712bcd41b7
drm/amdgpu: revert "generally allow over-commit during BO allocation"

This reverts commit f9d00a4a8dc8fff951c97b3213f90d6bc7a72175.

This causes problem for KFD because when we overcommit we accidentially
bind the BO to GTT for moving it into VRAM. We also need to make sure
that this is done only as fallback after trying to evict first.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c