Commit 74407418 authored by Chris Wilson's avatar Chris Wilson 😣

igt/kms_flip: Allow very large bo to fail pageflips with E2BIG

We tried to allow very large buffers (larger than the mappable aperture)
to be flippable by allowing them to be bound into the unmappable region.
Sadly, not all of our hw is capable of utilising the unmappable region for
scanout (and on some older hw, there is only mappable). As such, we have
to allow the very large bo to either succeed in being flipped, or fail
with the expected E2BIG.

References: 9d5e393d ("igt/kms_flip: There's no such thing as bo-too-big")
Signed-off-by: Chris Wilson's avatarChris Wilson <>
Reviewed-by: Joonas Lahtinen's avatarJoonas Lahtinen <>
parent d242cd8f
......@@ -1331,7 +1331,14 @@ static void run_test_on_crtc_set(struct test_output *o, int *crtc_idxs,
if (o->flags & TEST_CHECK_TS)
calibrate_ts(o, crtc_idxs[0]);
igt_assert_eq(do_page_flip(o, o->fb_ids[1], true), 0);
if (o->flags & TEST_BO_TOOBIG) {
int err = do_page_flip(o, o->fb_ids[1], true);
igt_assert(err == 0 || err == -E2BIG);
if (err)
goto out;
} else {
igt_assert_eq(do_page_flip(o, o->fb_ids[1], true), 0);
o->current_fb_id = 1;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment