dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
  • [parent not found: <20200316193216.920734-3-hch@lst.de>]
  • [parent not found: <20200316193216.920734-4-hch@lst.de>]
  • * Re: ensure device private pages have an owner v2
           [not found] <20200316193216.920734-1-hch@lst.de>
                       ` (2 preceding siblings ...)
           [not found] ` <20200316193216.920734-4-hch@lst.de>
    @ 2020-03-19  0:28 ` Jason Gunthorpe
           [not found]   ` <20200319071633.GA32522@lst.de>
           [not found] ` <20200316193216.920734-5-hch@lst.de>
      4 siblings, 1 reply; 22+ messages in thread
    From: Jason Gunthorpe @ 2020-03-19  0:28 UTC (permalink / raw)
      To: Christoph Hellwig
      Cc: amd-gfx, nouveau, dri-devel, kvm-ppc, Bharata B Rao, linux-mm,
    	Jerome Glisse, Ben Skeggs, Dan Williams, Christian König
    
    On Mon, Mar 16, 2020 at 08:32:12PM +0100, Christoph Hellwig wrote:
    > When acting on device private mappings a driver needs to know if the
    > device (or other entity in case of kvmppc) actually owns this private
    > mapping.  This series adds an owner field and converts the migrate_vma
    > code over to check it.  I looked into doing the same for
    > hmm_range_fault, but as far as I can tell that code has never been
    > wired up to actually work for device private memory, so instead of
    > trying to fix some unused code the second patch just remove the code.
    > We can add it back once we have a working and fully tested code, and
    > then should pass the expected owner in the hmm_range structure.
    > 
    > Changes since v1:
    >  - split out the pgmap->owner addition into a separate patch
    >  - check pgmap->owner is set for device private mappings
    >  - rename the dev_private_owner field in struct migrate_vma to src_owner
    >  - refuse to migrate private pages if src_owner is not set
    >  - keep the non-fault device private handling in hmm_range_fault
    
    I'm happy enough to take this, did you have plans for a v3?
    
    Thanks,
    Jason
    _______________________________________________
    dri-devel mailing list
    dri-devel@lists.freedesktop.org
    https://lists.freedesktop.org/mailman/listinfo/dri-devel
    
    ^ permalink raw reply	[flat|nested] 22+ messages in thread
  • [parent not found: <20200316193216.920734-5-hch@lst.de>]

  • end of thread, other threads:[~2020-03-21 21:03 UTC | newest]
    
    Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
    -- links below jump to the message on this page --
         [not found] <20200316193216.920734-1-hch@lst.de>
         [not found] ` <20200316193216.920734-2-hch@lst.de>
    2020-03-16 20:55   ` [PATCH 1/4] memremap: add an owner field to struct dev_pagemap Ralph Campbell
         [not found] ` <20200316193216.920734-3-hch@lst.de>
    2020-03-16 21:43   ` [PATCH 2/4] mm: handle multiple owners of device private pages in migrate_vma Ralph Campbell
         [not found] ` <20200316193216.920734-4-hch@lst.de>
    2020-03-16 19:59   ` [PATCH 3/4] mm: simplify device private page handling in hmm_range_fault Jason Gunthorpe
    2020-03-16 22:49   ` Ralph Campbell
    2020-03-17 12:15     ` Jason Gunthorpe
         [not found]       ` <20200317122445.GA11662@lst.de>
         [not found]         ` <20200317122813.GA11866@lst.de>
    2020-03-17 12:47           ` Jason Gunthorpe
         [not found]             ` <20200317125955.GA12847@lst.de>
    2020-03-17 17:32               ` Jason Gunthorpe
    2020-03-17 23:14               ` Ralph Campbell
    2020-03-19 18:17                 ` Jason Gunthorpe
    2020-03-19 22:56                   ` Ralph Campbell
    2020-03-20  0:03                     ` Jason Gunthorpe
    2020-03-20  0:14                 ` Jason Gunthorpe
    2020-03-20  1:33                   ` Ralph Campbell
    2020-03-20 12:58                     ` Jason Gunthorpe
         [not found]     ` <20200317073454.GA5843@lst.de>
    2020-03-17 22:43       ` Ralph Campbell
    2020-03-19  0:28 ` ensure device private pages have an owner v2 Jason Gunthorpe
         [not found]   ` <20200319071633.GA32522@lst.de>
    2020-03-19 11:50     ` Jason Gunthorpe
    2020-03-19 18:50     ` Jason Gunthorpe
         [not found] ` <20200316193216.920734-5-hch@lst.de>
    2020-03-16 19:49   ` [PATCH 4/4] mm: check the device private page owner in hmm_range_fault Jason Gunthorpe
    2020-03-16 23:11   ` Ralph Campbell
    2020-03-20 13:41   ` Jason Gunthorpe
         [not found]     ` <20200321082236.GB28613@lst.de>
    2020-03-21 12:38       ` Jason Gunthorpe
    

    This is a public inbox, see mirroring instructions
    for how to clone and mirror all data and code used for this inbox;
    as well as URLs for NNTP newsgroup(s).