On Mon, Nov 21, 2016 at 12:49:55PM +1100, Balbir Singh wrote: > On 19/11/16 05:18, Jérôme Glisse wrote: > > When a ZONE_DEVICE page refcount reach 1 it means it is free and nobody > > is holding a reference on it (only device to which the memory belong do). > > Add a callback and call it when that happen so device driver can implement > > their own free page management. > > > > Could you give an example of what their own free page management might look like? Well hard to do that, the free management is whatever the device driver want to do. So i don't have any example to give. Each device driver (especialy GPU ones) have their own memory management with little commonality. So how the device driver manage that memory is really not important, at least it is not something for which i want to impose a policy onto driver. I want to leave each device driver decide on how to achieve that. Cheers, Jérôme -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>