[Intel-gfx] [PATCH] drm/i915: Avoid overflow in computing pot_hole loop termination

Matthew Auld matthew.william.auld at gmail.com
Tue Feb 14 16:32:04 UTC 2017


On 14 February 2017 at 09:23, Chris Wilson <chris at chris-wilson.co.uk> wrote:
> When using the mock_ppgtt selftest, the GTT is large enough to cause an
> overflow in pot_hole() when adding 2 pages to the address. Avoid the
> overflow by computing the final valid address and iterating up to that
> address.
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> Cc: Matthew Auld <matthew.auld at intel.com>
Reviewed-by: Matthew Auld <matthew.auld at intel.com>


More information about the Intel-gfx mailing list