• Ralph Campbell's avatar
    drm/nouveau/svm: map pages after migration · e3d8b089
    Ralph Campbell authored
    When memory is migrated to the GPU, it is likely to be accessed by GPU
    code soon afterwards. Instead of waiting for a GPU fault, map the
    migrated memory into the GPU page tables with the same access permissions
    as the source CPU page table entries. This preserves copy on write
    semantics.
    Signed-off-by: default avatarRalph Campbell <rcampbell@nvidia.com>
    Cc: Christoph Hellwig <hch@lst.de>
    Cc: Jason Gunthorpe <jgg@mellanox.com>
    Cc: "Jérôme Glisse" <jglisse@redhat.com>
    Cc: Ben Skeggs <bskeggs@redhat.com>
    Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
    e3d8b089
nouveau_dmem.h 2.11 KB