<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    Am 20.02.24 um 15:56 schrieb Maxime Ripard:<br>
    <blockquote type="cite" cite="mid:4xggxtkk44m3xcfucbougtuhr66s2pc7tilpnju7xnyw45facb@odsrpqp57kiz">
      <pre class="moz-quote-pre" wrap="">On Tue, Feb 20, 2024 at 02:28:53PM +0100, Christian König wrote:
</pre>
      <blockquote type="cite">[SNIP]<span style="white-space: pre-wrap">
</span>
        <pre class="moz-quote-pre" wrap="">This kunit test is not meant to be run on real hardware, but rather just as
stand a long kunit tests within user mode linux. I was assuming that it
doesn't even compiles on bare metal.

We should probably either double check the kconfig options to prevent
compiling it or modify the test so that it can run on real hardware as well.
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">
I think any cross-compiled kunit run will be impossible to differentiate
from running on real hardware. We should just make it work there.</pre>
    </blockquote>
    <br>
    The problem is what the unit test basically does is registering and
    destroying a dummy device to see if initializing and tear down of
    the global pools work correctly.<br>
    <br>
    If you run on real hardware and have a real device additionally to
    the dummy device the reference count of the global pool never goes
    down to zero and so it is never torn down.<br>
    <br>
    So running this test just doesn't make any sense in that
    environment. Any idea how to work around that?<br>
    <br>
    Thanks,<br>
    Christian.<br>
    <br>
    <blockquote type="cite" cite="mid:4xggxtkk44m3xcfucbougtuhr66s2pc7tilpnju7xnyw45facb@odsrpqp57kiz">
      <pre class="moz-quote-pre" wrap="">

Maxime
</pre>
    </blockquote>
    <br>
  </body>
</html>