<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    Hi Aemad,<br>
    <br>
    Thanks for breaking the test into smaller subtests.<br>
    <br>
    <p>Some GPU drivers, including amdgpu, do not allow primary plane
      off without turning crtc off
(<a class="moz-txt-link-freetext" href="https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c#L385">https://elixir.bootlin.com/linux/latest/source/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c#L385</a>),
      but kms_universal_plane has many the below code which was guarded
      with is_amdgpu_device()<br>
    </p>
    <p>        igt_plane_set_fb(primary, NULL);<br>
              igt_display_commit2(&data->display,
      COMMIT_UNIVERSAL);<br>
    </p>
    <p>Many of the is_amdgpu_device() are not present in your patches
      and kms_universal fails. I needed to add is_amdgpu_device() to
      patch 2~3 and 5~7 (I didn't check 8).<br>
    </p>
    <div style="font-family: "Segoe UI", "Segoe UI Web
      (West European)", "Helvetica Neue", sans-serif;
      font-size: 12pt; color: rgb(0, 0, 0);">
      <br>
    </div>
    <hr style="display:inline-block;width:98%" tabindex="-1">
    <div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> aemad
        <a class="moz-txt-link-rfc2396E" href="mailto:aemad@igalia.com"><aemad@igalia.com></a><br>
        <b>Sent:</b> 11 November 2022 01:31<br>
        <b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:igt-dev@lists.freedesktop.org">igt-dev@lists.freedesktop.org</a>
        <a class="moz-txt-link-rfc2396E" href="mailto:igt-dev@lists.freedesktop.org"><igt-dev@lists.freedesktop.org></a><br>
        <b>Cc:</b> <a class="moz-txt-link-abbreviated" href="mailto:petri.latvala@intel.com">petri.latvala@intel.com</a>
        <a class="moz-txt-link-rfc2396E" href="mailto:petri.latvala@intel.com"><petri.latvala@intel.com></a>; <a class="moz-txt-link-abbreviated" href="mailto:bhanuprakash.modem@intel.com">bhanuprakash.modem@intel.com</a>
        <a class="moz-txt-link-rfc2396E" href="mailto:bhanuprakash.modem@intel.com"><bhanuprakash.modem@intel.com></a>;
        <a class="moz-txt-link-abbreviated" href="mailto:ville.syrjala@linux.intel.com">ville.syrjala@linux.intel.com</a>
        <a class="moz-txt-link-rfc2396E" href="mailto:ville.syrjala@linux.intel.com"><ville.syrjala@linux.intel.com></a>; Siqueira, Rodrigo
        <a class="moz-txt-link-rfc2396E" href="mailto:Rodrigo.Siqueira@amd.com"><Rodrigo.Siqueira@amd.com></a>; Hung, Alex
        <a class="moz-txt-link-rfc2396E" href="mailto:Alex.Hung@amd.com"><Alex.Hung@amd.com></a>; <a class="moz-txt-link-abbreviated" href="mailto:markyacoub@chromium.org">markyacoub@chromium.org</a>
        <a class="moz-txt-link-rfc2396E" href="mailto:markyacoub@chromium.org"><markyacoub@chromium.org></a>; <a class="moz-txt-link-abbreviated" href="mailto:mwen@igalia.com">mwen@igalia.com</a>
        <a class="moz-txt-link-rfc2396E" href="mailto:mwen@igalia.com"><mwen@igalia.com></a>; <a class="moz-txt-link-abbreviated" href="mailto:andrealmeid@igalia.com">andrealmeid@igalia.com</a>
        <a class="moz-txt-link-rfc2396E" href="mailto:andrealmeid@igalia.com"><andrealmeid@igalia.com></a><br>
        <b>Subject:</b> Re: [PATCH RFC i-g-t 0/8]
        tests/kms_universal_plane: divide `functional_test_pipe` to
        mini-subtests</font>
      <div> </div>
    </div>
    <div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
          <div class="PlainText">Please, let me know your thoughts.<br>
            <br>
            On 2022-11-11 09:29, Alaa Emad wrote:<br>
            > Divide the `functional_test_pipe` test into seven
            subtests based on CRC<br>
            > comparisons because this will make it easier to debug
            the test and help<br>
            > in detecting the failure.<br>
            > <br>
            > First 7 patches decouple each subtest and run it
            individually keeping<br>
            > `functional_test_pipe' test as it is. After making sure
            that each<br>
            > subtest can run individually with the expected result
            on both vkms and i915<br>
            > drivers, improve the test by creating
            `run_functional_test_pipe` and<br>
            > call all subtests from it and call
            `run_functional_test_pipe` in<br>
            > `igt_main`.<br>
            > <br>
            > <br>
            > Alaa Emad (8):<br>
            >   tests/kms_universal_plane: decouple verification of
            legacy and atomic<br>
            >     api<br>
            >   tests/kms_universal_plane: decouple verification of
            disabling primary<br>
            >     plane<br>
            >   tests/kms_universal_plane: decouple verification of
            re-enabling<br>
            >     primary plane<br>
            >   tests/kms_universal_plane: decouple verification of
            setup plane FB's<br>
            >     while CRTC is disabled<br>
            >   tests/kms_universal_plane: decouple verification of
            ablity to modeset<br>
            >     with the primary plane off<br>
            >   tests/kms_universal_plane: decouple verification of
            ablity to move the<br>
            >     primary plane completely offscreen<br>
            >   tests/kms_universal_plane: decouple verification of
            ablity to<br>
            >     explicitly disable an already implicitly-disabled
            primary plane<br>
            >   tests/kms_universal_plane: create the
            run_functional_test_pipe and<br>
            >     call all tests from it<br>
            > <br>
            >  tests/kms_universal_plane.c | 416
            ++++++++++++++++++++++--------------<br>
            >  1 file changed, 261 insertions(+), 155 deletions(-)<br>
          </div>
        </span></font></div>
  </body>
</html>