<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CI] igt@kms_plane@pixel-format-pipe-[abc]-planes - dmesg-warn - *ERROR* Overflow of CRC buffer, userspace reads too slow."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106885#c9">Comment # 9</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [CI] igt@kms_plane@pixel-format-pipe-[abc]-planes - dmesg-warn - *ERROR* Overflow of CRC buffer, userspace reads too slow."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106885">bug 106885</a>
              from <span class="vcard"><a class="email" href="mailto:juhapekka.heikkila@gmail.com" title="Juha-Pekka Heikkilä <juhapekka.heikkila@gmail.com>"> <span class="fn">Juha-Pekka Heikkilä</span></a>
</span></b>
        <pre>(In reply to Martin Peres from <a href="show_bug.cgi?id=106885#c7">comment #7</a>)
<span class="quote">> (In reply to Mika Kahola from <a href="show_bug.cgi?id=106885#c6">comment #6</a>)
> > If this error is not seen regularly, maybe we could pump up a bit the size
> > of a ringbuffer. Now, we have DRM_CRC_ENTRIES_NR defined as 128, so maybe we
> > could increase it to 256?

> Are the CRCs per pipe or global? If it is per-pipe, then 128 CRCs @ 60 Hz is
> more than 2 seconds of not reading the crc... I would think that this ought
> to be sufficient and if it is not, we really need to look into why we have
> such latency in the userspace, don't you think? :o</span >

The latency would be from the combination of things; IGT by default is compiled
with no optimizations switched on, used framebuffer sizes are quite big
(3840x2160 for example), and because lack of YUV support in cairo there's in
IGT conversions back'n'forth RGB<->YUV..all this combined probably can build up
to 2s wait.

One could try putting some "#pragma GCC optimize ("O3")" around those
conversion functions "static void convert_XXX_to_XXX(struct fb_convert *cvt)"
found in igt_fb.c, though I think this is just painting over the problem.

Other solution would be starting/stopping crc when crc is really needed but it
would slow down tests in kms_plane even more.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>