[PATCH v2 1/2] drm/i915: support forcing the page size with lmem

Thomas Hellström thomas.hellstrom at linux.intel.com
Thu Jun 24 11:08:22 UTC 2021


On 6/23/21 4:16 PM, Matthew Auld wrote:
> For some specialised objects we might need something larger than the
> regions min_page_size due to some hw restriction, and slightly more
> hairy is needing something smaller with the guarantee that such objects
> will never be inserted into any GTT, which is the case for the paging
> structures.
>
> This also fixes how we setup the BO page_alignment, if we later migrate
> the object somewhere else. For example if the placements are {SMEM,
> LMEM}, then we might get this wrong. Pushing the min_page_size behaviour
> into the manager should fix this.
>
> v2(Thomas): push the default page size behaviour into buddy_man, and let
> the user override it with the page-alignment, which looks cleaner
>
> Signed-off-by: Matthew Auld <matthew.auld at intel.com>
> Cc: Thomas Hellström <thomas.hellstrom at linux.intel.com>

Reviewed-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>



More information about the dri-devel mailing list