[Intel-gfx] [PATCH v2 04/15] drm/i915/buddy: track available visible size

Thomas Hellström thomas.hellstrom at linux.intel.com
Fri Feb 11 09:25:56 UTC 2022


On 2/10/22 13:13, Matthew Auld wrote:
> Track the total amount of available visible memory, and also track
> per-resource the amount of used visible memory. For now this is useful
> for our debug output, and deciding if it is even worth calling into the
> buddy allocator. In the future tracking the per-resource visible usage
> will be useful for when deciding if we should attempt to evict certain
> buffers.
>
> v2:
>   - s/place->lpfn/lpfn/, that way we can avoid scanning the list if the
>     entire range is already mappable.
>   - Move the end declaration inside the if block(Thomas).
>   - Make sure to also account for reserved memory.
>
> 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 Intel-gfx mailing list