Re: [PATCH v4 04/33] drm/pagemap: Add DRM pagemap

2025-02-11 Thread Matthew Brost
On Tue, Feb 11, 2025 at 05:03:10PM +0100, Thomas Hellström wrote: > On Mon, 2025-02-10 at 10:41 -0800, Matthew Brost wrote: > > On Fri, Feb 07, 2025 at 09:34:00AM +0100, Thomas Hellström wrote: > > > On Wed, 2025-01-29 at 11:51 -0800, Matthew Brost wrote: > > > > From: Thomas Hellström > > > > >

Re: [PATCH v4 04/33] drm/pagemap: Add DRM pagemap

2025-02-11 Thread Thomas Hellström
On Mon, 2025-02-10 at 10:41 -0800, Matthew Brost wrote: > On Fri, Feb 07, 2025 at 09:34:00AM +0100, Thomas Hellström wrote: > > On Wed, 2025-01-29 at 11:51 -0800, Matthew Brost wrote: > > > From: Thomas Hellström > > > > > > Introduce drm_pagemap ops to map and unmap dma to VRAM resources. > > >

Re: [PATCH v4 04/33] drm/pagemap: Add DRM pagemap

2025-02-10 Thread Matthew Brost
On Fri, Feb 07, 2025 at 09:34:00AM +0100, Thomas Hellström wrote: > On Wed, 2025-01-29 at 11:51 -0800, Matthew Brost wrote: > > From: Thomas Hellström > > > > Introduce drm_pagemap ops to map and unmap dma to VRAM resources. In > > the > > local memory case it's a matter of merely providing an of

Re: [PATCH v4 04/33] drm/pagemap: Add DRM pagemap

2025-02-07 Thread Thomas Hellström
On Wed, 2025-01-29 at 11:51 -0800, Matthew Brost wrote: > From: Thomas Hellström > > Introduce drm_pagemap ops to map and unmap dma to VRAM resources. In > the > local memory case it's a matter of merely providing an offset into > the > device's physical address. For future p2p the map and unmap

[PATCH v4 04/33] drm/pagemap: Add DRM pagemap

2025-01-29 Thread Matthew Brost
From: Thomas Hellström Introduce drm_pagemap ops to map and unmap dma to VRAM resources. In the local memory case it's a matter of merely providing an offset into the device's physical address. For future p2p the map and unmap functions may encode as needed. Similar to how dma-buf works, let the