<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Minor TTM kernel issue, but probably
      present since forever.<br>
      <br>
      I would add a CC: stable@vger.... tag to it so that it gets pulled
      into older kernels as well.<br>
      <br>
      Christian.<br>
      <br>
      Am 16.08.2017 um 11:10 schrieb zhoucm1:<br>
    </div>
    <blockquote type="cite"
      cite="mid:140f09b5-32de-eb00-c2b1-8a660182344d@amd.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>Fix memory leak of ttm kernel issue?<br>
      </p>
      <br>
      <div class="moz-cite-prefix">On 2017年08月16日 15:55, Christian König
        wrote:<br>
      </div>
      <blockquote type="cite"
        cite="mid:8f64cef6-e7f7-e245-93b9-a0d1bbc411aa@vodafone.de">
        <meta http-equiv="Content-Type" content="text/html;
          charset=utf-8">
        <div class="moz-cite-prefix">CC stable?<br>
          <br>
          Reviewed-by: Christian König <a class="moz-txt-link-rfc2396E"
            href="mailto:christian.koenig@amd.com"
            moz-do-not-send="true"><christian.koenig@amd.com></a><br>
          <br>
          Am 16.08.2017 um 09:25 schrieb Liu, Monk:<br>
        </div>
        <blockquote type="cite"
cite="mid:BLUPR12MB044923B80FB13FACC4DA726E84820@BLUPR12MB0449.namprd12.prod.outlook.com">
          <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,Helvetica,sans-serif">
              <p>Reviewed-by: Monk Liu <a class="moz-txt-link-rfc2396E"
                  href="mailto:monk.liu@amd.com" moz-do-not-send="true"><monk.liu@amd.com></a><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>From:</b> amd-gfx <a
                  class="moz-txt-link-rfc2396E"
                  href="mailto:amd-gfx-bounces@lists.freedesktop.org"
                  moz-do-not-send="true"><amd-gfx-bounces@lists.freedesktop.org></a>
                on behalf of Xiangliang.Yu <a
                  class="moz-txt-link-rfc2396E"
                  href="mailto:Xiangliang.Yu@amd.com"
                  moz-do-not-send="true"><Xiangliang.Yu@amd.com></a><br>
                <b>Sent:</b> Wednesday, August 16, 2017 3:20:46 PM<br>
                <b>To:</b> <a class="moz-txt-link-abbreviated"
                  href="mailto:akpm@linux-foundation.org"
                  moz-do-not-send="true">akpm@linux-foundation.org</a>;
                <a class="moz-txt-link-abbreviated"
                  href="mailto:labbott@redhat.com"
                  moz-do-not-send="true">labbott@redhat.com</a>; <a
                  class="moz-txt-link-abbreviated"
                  href="mailto:dri-devel@lists.freedesktop.org"
                  moz-do-not-send="true">dri-devel@lists.freedesktop.org</a>;
                <a class="moz-txt-link-abbreviated"
                  href="mailto:amd-gfx@lists.freedesktop.org"
                  moz-do-not-send="true">amd-gfx@lists.freedesktop.org</a><br>
                <b>Cc:</b> Yu, Xiangliang<br>
                <b>Subject:</b> [PATCH 1/1] drm/ttm: Fix accounting
                error when fail to get pages for pool</font>
              <div> </div>
            </div>
          </div>
          <font size="2"><span style="font-size:10pt;">
              <div class="PlainText">When fail to get needed page for
                pool, need to put allocated pages<br>
                into pool. But current code has a miscalculation of
                allocated pages,<br>
                correct it.<br>
                <br>
                Signed-off-by: Xiangliang.Yu <a
                  class="moz-txt-link-rfc2396E"
                  href="mailto:Xiangliang.Yu@amd.com"
                  moz-do-not-send="true"><Xiangliang.Yu@amd.com></a><br>
                ---<br>
                 drivers/gpu/drm/ttm/ttm_page_alloc.c | 2 +-<br>
                 1 file changed, 1 insertion(+), 1 deletion(-)<br>
                <br>
                diff --git a/drivers/gpu/drm/ttm/ttm_page_alloc.c
                b/drivers/gpu/drm/ttm/ttm_page_alloc.c<br>
                index eeddc1e..8715998 100644<br>
                --- a/drivers/gpu/drm/ttm/ttm_page_alloc.c<br>
                +++ b/drivers/gpu/drm/ttm/ttm_page_alloc.c<br>
                @@ -615,7 +615,7 @@ static void
                ttm_page_pool_fill_locked(struct ttm_page_pool *pool,<br>
                                 } else {<br>
                                         pr_err("Failed to fill pool
                (%p)\n", pool);<br>
                                         /* If we have any pages left
                put them to the pool. */<br>
                -                       list_for_each_entry(p,
                &pool->list, lru) {<br>
                +                       list_for_each_entry(p,
                &new_pages, lru) {<br>
                                                 ++cpages;<br>
                                         }<br>
                                         list_splice(&new_pages,
                &pool->list);<br>
                -- <br>
                2.7.4<br>
                <br>
                _______________________________________________<br>
                amd-gfx mailing list<br>
                <a class="moz-txt-link-abbreviated"
                  href="mailto:amd-gfx@lists.freedesktop.org"
                  moz-do-not-send="true">amd-gfx@lists.freedesktop.org</a><br>
                <a
                  href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx"
                  moz-do-not-send="true">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><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" moz-do-not-send="true">amd-gfx@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" moz-do-not-send="true">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a>
</pre>
        </blockquote>
        <p><br>
        </p>
        <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" moz-do-not-send="true">amd-gfx@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" moz-do-not-send="true">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a>
</pre>
      </blockquote>
      <br>
      <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>