Skip to contentSkip to conversation

radeon: fix regression with eviction since evict caching changes

PATCH In review Dave Airlie 3 participants 3 messages Dec 14, 2012

Subsystems (2)
lore
Share & tools
lore

Dave Airlie

author maintainer
#0 lore raw

PATCH 1/1 radeon: fix regression with eviction since evict caching changes

From: Dave Airlie <[email protected]>

Since 0d0b3e7443bed6b49cb90fe7ddc4b5578a83a88d drm/radeon: use cached memory when evicting for vram on non agp

evicting from TTM would try and evict to TTM instead of system, not so good.

This should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=58272

---
 drivers/gpu/drm/radeon/radeon_object.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/radeon/radeon_object.c +2 -2
index 93d3445..883c95d 100644
@@ -96,9 +96,9 @@ void radeon_ttm_placement_from_domain(struct radeon_bo *rbo, u32 domain)
 	}
 	if (domain & RADEON_GEM_DOMAIN_CPU) {
 		if (rbo->rdev->flags & RADEON_IS_AGP) {
-			rbo->placements[c++] = TTM_PL_FLAG_WC | TTM_PL_FLAG_TT;
+			rbo->placements[c++] = TTM_PL_FLAG_WC | TTM_PL_FLAG_SYSTEM;
 		} else {
-			rbo->placements[c++] = TTM_PL_FLAG_CACHED | TTM_PL_FLAG_TT;
+			rbo->placements[c++] = TTM_PL_FLAG_CACHED | TTM_PL_FLAG_SYSTEM;
 		}
 	}
 	if (!c)
Signature · 1 line
1.8.0
#1 lore raw

Op 14-12-12 12:04, Dave Airlie schreef:

Quoted 5 lines

From: Dave Airlie <[email protected]>

Since 0d0b3e7443bed6b49cb90fe7ddc4b5578a83a88d drm/radeon: use cached memory when evicting for vram on non agp

Quoted 7 lines

evicting from TTM would try and evict to TTM instead of system, not so good.

This should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=58272