Re: [PATCH v8 2/6] drm/ttm/pool: Provide a helper to shrink pages

2024-08-20 Thread Matthew Brost
On Mon, Aug 19, 2024 at 10:07:16AM +0200, Thomas Hellström wrote: > Hi, Matt. > > On Fri, 2024-08-16 at 14:10 +, Matthew Brost wrote: > > On Fri, Aug 16, 2024 at 03:37:13PM +0200, Thomas Hellström wrote: > > > Provide a helper to shrink ttm_tt page-vectors on a per-page > > > basis. A ttm_back

Re: [PATCH v8 2/6] drm/ttm/pool: Provide a helper to shrink pages

2024-08-19 Thread Thomas Hellström
Hi, Matt. On Fri, 2024-08-16 at 14:10 +, Matthew Brost wrote: > On Fri, Aug 16, 2024 at 03:37:13PM +0200, Thomas Hellström wrote: > > Provide a helper to shrink ttm_tt page-vectors on a per-page > > basis. A ttm_backup backend could then in theory get away with > > allocating a single temporar

Re: [PATCH v8 2/6] drm/ttm/pool: Provide a helper to shrink pages

2024-08-16 Thread Matthew Brost
On Fri, Aug 16, 2024 at 03:37:13PM +0200, Thomas Hellström wrote: > Provide a helper to shrink ttm_tt page-vectors on a per-page > basis. A ttm_backup backend could then in theory get away with > allocating a single temporary page for each struct ttm_tt. > > This is accomplished by splitting large

[PATCH v8 2/6] drm/ttm/pool: Provide a helper to shrink pages

2024-08-16 Thread Thomas Hellström
Provide a helper to shrink ttm_tt page-vectors on a per-page basis. A ttm_backup backend could then in theory get away with allocating a single temporary page for each struct ttm_tt. This is accomplished by splitting larger pages before trying to back them up. In the future we could allow ttm_bac