Re: [RFC PATCH v2 3/6] drm/shmem: Implement sparse allocation of pages for shmem objects

2025-04-01 Thread Boris Brezillon
On Wed, 26 Mar 2025 02:14:23 + Adrián Larumbe wrote: > Add a new function that lets drivers allocate pages for a subset of the > shmem object's virtual address range, and another function for obtaining > an SG table from those pages, so that memory can be mapped onto an MMU. > > Add also a n

Re: [RFC PATCH v2 3/6] drm/shmem: Implement sparse allocation of pages for shmem objects

2025-03-26 Thread Dmitry Osipenko
On 3/26/25 05:14, Adrián Larumbe wrote: > +static struct sg_table * > +drm_gem_shmem_sparse_get_sgt_range(struct drm_gem_shmem_object *shmem, > +unsigned int n_pages, pgoff_t page_offset, > +gfp_t gfp) > +{ > + struct drm_gem_objec

[RFC PATCH v2 3/6] drm/shmem: Implement sparse allocation of pages for shmem objects

2025-03-25 Thread Adrián Larumbe
Add a new function that lets drivers allocate pages for a subset of the shmem object's virtual address range, and another function for obtaining an SG table from those pages, so that memory can be mapped onto an MMU. Add also a new function for putting the pages of a sparse page array. The sparse