Re: [PATCH v6 09/12] drm/ttm/pool: Provide a helper to shrink pages

2024-08-16 Thread Thomas Hellström
On Wed, 2024-08-07 at 23:38 +, Matthew Brost wrote: > On Wed, Jul 03, 2024 at 05:38:10PM +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

Re: [PATCH v6 09/12] drm/ttm/pool: Provide a helper to shrink pages

2024-08-07 Thread Matthew Brost
On Wed, Jul 03, 2024 at 05:38:10PM +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 v6 09/12] drm/ttm/pool: Provide a helper to shrink pages

2024-07-03 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