Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4b095566 authored by Christian König's avatar Christian König
Browse files

drm/radeon: fix buffer placement under memory pressure v2



Some buffers (UVD/VM page tables) must be placed in VRAM,
but the byte restriction for moving buffers didn't took this
into account.

v2: keep closer to the original code

Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
parent 4906f689
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -458,7 +458,7 @@ int radeon_bo_list_validate(struct radeon_device *rdev,
			 * into account. We don't want to disallow buffer moves
			 * completely.
			 */
			if (current_domain != RADEON_GEM_DOMAIN_CPU &&
			if ((lobj->alt_domain & current_domain) != 0 &&
			    (domain & current_domain) == 0 && /* will be moved */
			    bytes_moved > bytes_moved_threshold) {
				/* don't move it */