[lkml]   [2016]   [Nov]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [HMM v13 04/18] mm/ZONE_DEVICE/free-page: callback when page is freed
    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.


     \ /
      Last update: 2016-11-21 05:58    [W:2.869 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site