<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">The IB test make the decision if the
      hardware is working or not.<br>
      <br>
      So they should be the first commands (except for the ring tests)
      we send to the hardware.<br>
      <br>
      When we allocate the fb before the test we send the clear command
      to the hardware without knowing if the hardware really works or
      not.<br>
      <br>
      Not a big issue, but I think the order makes more sense that way.<br>
      <br>
      Regards,<br>
      Christian.<br>
      <br>
      Am 08.02.2017 um 16:21 schrieb Liu, Monk:<br>
    </div>
    <blockquote
cite="mid:DM5PR12MB161067C1383FC5829F4FCD8984420@DM5PR12MB1610.namprd12.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Exchange Server">
      <!-- converted from text -->
      <style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
      <meta content="text/html; charset=UTF-8">
      <style type="text/css" style="">
<!--
p
        {margin-top:0;
        margin-bottom:0}
-->
</style>
      <div dir="ltr">
        <div id="x_divtagdefaultwrapper" dir="ltr"
          style="font-size:12pt; color:#000000;
          font-family:Calibri,Arial,Helvetica,sans-serif">
          <p>yeah, make sense</p>
          <p>@Christian, why move fbdev_init() further down after ib
            test ? any consideration ?<br>
          </p>
        </div>
        <hr tabindex="-1" style="display:inline-block; width:98%">
        <div id="x_divRplyFwdMsg" dir="ltr"><font style="font-size:11pt"
            color="#000000" face="Calibri, sans-serif"><b>发件人:</b>
            Michel Dänzer <a class="moz-txt-link-rfc2396E" href="mailto:michel@daenzer.net"><michel@daenzer.net></a><br>
            <b>发送时间:</b> 2017年2月8日 23:19:23<br>
            <b>收件人:</b> Christian König; Liu, Monk<br>
            <b>抄送:</b> <a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a><br>
            <b>主题:</b> Re: [PATCH] drm/amdgpu:fix amdgpu_sa_bo_new error</font>
          <div> </div>
        </div>
      </div>
      <font size="2"><span style="font-size:10pt;">
          <div class="PlainText">On 08/02/17 07:52 PM, Christian König
            wrote:<br>
            > Am 08.02.2017 um 10:41 schrieb Monk Liu:<br>
            >> ib_pool init should prior to fbdev_init, otherwise<br>
            >> there will be error from amdgpu_sa_bo_new<br>
            >> (amdgpu_sa.c:323)<br>
            >><br>
            >> fbdev_init will call ttm_validate which further
            call<br>
            >> amdgpu_sa_bo_new.<br>
            >><br>
            >> Change-Id:
            I3a969570d443f61a44f67b0d76b3871ca5c3ea81<br>
            >> Signed-off-by: Monk Liu <a class="moz-txt-link-rfc2396E" href="mailto:Monk.Liu@amd.com"><Monk.Liu@amd.com></a><br>
            >> ---<br>
            >>   drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4
            ++--<br>
            >>   1 file changed, 2 insertions(+), 2 deletions(-)<br>
            >><br>
            >> diff --git
            a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
            >> b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
            >> index afcae15..4169bb1 100644<br>
            >> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
            >> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c<br>
            >> @@ -1918,14 +1918,14 @@ int
            amdgpu_device_init(struct amdgpu_device<br>
            >> *adev,<br>
            >>       /* Get a log2 for easy divisions. */<br>
            >>       adev->mm_stats.log2_max_MBps =
            ilog2(max(1u, max_MBps));<br>
            >>   -    amdgpu_fbdev_init(adev);<br>
            >> -<br>
            >>       r = amdgpu_ib_pool_init(adev);<br>
            >>       if (r) {<br>
            >>           dev_err(adev->dev, "IB initialization
            failed (%d).\n", r);<br>
            >>           goto failed;<br>
            >>       }<br>
            >>   +    amdgpu_fbdev_init(adev);<br>
            >> +<br>
            > <br>
            > As noted internally as well, please more that one more
            further down<br>
            > behind the call to amdgpu_ib_ring_tests().<br>
            <br>
            If I understand correctly, that could result in no console
            output in the<br>
            worst case if there's trouble with the ring & IB tests?
            That doesn't<br>
            seem very good.<br>
            <br>
            <br>
            -- <br>
            Earthling Michel Dänzer               |               <a
              moz-do-not-send="true" href="http://www.amd.com">
              http://www.amd.com</a><br>
            Libre software enthusiast             |             Mesa and
            X developer<br>
          </div>
        </span></font>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
amd-gfx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>