linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Driver-driven paging?
@ 2006-10-09 15:21 Thomas Hellstrom
  2006-10-09 16:37 ` Nick Piggin
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Hellstrom @ 2006-10-09 15:21 UTC (permalink / raw)
  To: linux-mm

Hi!

While trying to put together an improved graphics memory manager in the 
DRM kernel module, I've identified a need to swap out backing store 
pages which haven't been in use for a while, and I was wondering if 
there is a kernel mm API to do that?

Basically when a graphics object is created, space is allocated either 
in on-card video RAM or in a backup object in system RAM. That backup 
object can optionally be flipped into the AGP aperture for fast and 
linear graphics card access.

What I want to do is to be able to release backup object pages while 
maintaining the contents. Basically hand them over to the swapping 
system and get a handle back that can be used for later retrieval. The 
driver will unmap all mappings referencing the page before handing it 
over to the swapping system.

Is there an API for this and is there any chance of getting it exported?

Regards,
Thomas

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2006-10-13  6:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-09 15:21 Driver-driven paging? Thomas Hellstrom
2006-10-09 16:37 ` Nick Piggin
2006-10-09 17:45   ` Thomas Hellström
2006-10-10  0:47     ` Nick Piggin
2006-10-10  6:04       ` Thomas Hellström
2006-10-12 18:24   ` Rik van Riel
2006-10-13  6:29     ` Nick Piggin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox