[PATCH v2] drm/i915/selftest: allow larger memory allocation

Mikolaj Wasiak mikolaj.wasiak at intel.com
Tue Apr 1 14:40:44 UTC 2025


Hi Andi,

On 2025-03-29 at 08:18:33 +0100, Andi Shyti wrote:
> On Fri, Mar 21, 2025 at 03:02:49PM +0100, Mikolaj Wasiak wrote:
> > Due to changes in allocator, the size of the allocation for
> 
> which change in the allocator?

[8569c31545385195bdb0c021124e68336e91c693] drm/i915:
Move the size computations to drm buddy

> 
> > contiguous region is not rounded up to a power-of-two and
> > instead allocated as is.
> 
> The allocator has always been rounded up instead of a power of
> two round up.

Look at the commit above, previously it was rounded to power of two.

> 
> > Thus, change the part of test that
> > expected the allocation to fail.
> 
> Is the failure part of the test?

Yes, the test expected allocation to fail because it expected the size
to be rounded up to the power-of-two with smaller buffer in place thus
creating the error.

Mikołaj


More information about the Intel-gfx mailing list