All of lore.kernel.org
 help / color / mirror / Atom feed
* Memory eviction in ttm
@ 2012-09-12 12:48 Maarten Lankhorst
  2012-09-12 13:28 ` Thomas Hellstrom
  0 siblings, 1 reply; 6+ messages in thread
From: Maarten Lankhorst @ 2012-09-12 12:48 UTC (permalink / raw)
  To: Thomas Hellstrom; +Cc: dri-devel

Hey Thomas,

I'm playing around with moving reservations from ttm to global, but how ttm
ttm is handling reservations is getting in the way.  The code wants to move
the bo from the lru lock at the same time a reservation is made, but that
seems to be slightly too strict. It would really help me if that guarantee
is removed.

Is it true that only the ttm_mem_evict code depends on it? And in that case
wouldn't it be better to attempt to free any buffer that can be reserved
without blocking first, instead of blocking on the first entry in the list?

This would make integration a lot easier, since I could wait with taking the
lru lock until after reservation is complete, or any time before unreserving.

~Maarten

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-17 21:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-12 12:48 Memory eviction in ttm Maarten Lankhorst
2012-09-12 13:28 ` Thomas Hellstrom
2012-09-12 15:27   ` Maarten Lankhorst
     [not found]   ` <5051F985.8020804@canonical.com>
     [not found]     ` <50520CB9.8000607@vmware.com>
     [not found]       ` <50521433.5070708@canonical.com>
     [not found]         ` <50524966.5080805@vmware.com>
     [not found]           ` <5052D8ED.7000206@canonical.com>
2012-09-14 10:50             ` Thomas Hellström
2012-09-14 13:36               ` Maarten Lankhorst
2012-09-17 21:35                 ` Thomas Hellstrom

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.