<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:宋体;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@宋体";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";
        color:black;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New","serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi Christian,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Maybe we need a change.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">{{{<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">index 4d26e9b..fb5448b 100644<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">@@ -65,7 +65,7 @@<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#define AMDGPU_PTE_FRAG(x)     ((x & 0x1f) << 7)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-#define AMDGPU_PTE_PRT         (1UL << 63)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">+#define AMDGPU_PTE_PRT         (1ULL << 63)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">/* How to programm VM fault handling */<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">#define AMDGPU_VM_FAULT_STOP_NEVER     0<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">}}}<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Jerry (Junwei Zhang)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Linux Base Graphics<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">SRDC Software
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Development<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">_____________________________________<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> Christian König [mailto:deathsimple@vodafone.de]
<br>
<b>Sent:</b> Saturday, February 11, 2017 15:56<br>
<b>To:</b> Zhang, Jerry<br>
<b>Cc:</b> Deucher, Alexander; Haehnle, Nicolai; dri-devel@lists.freedesktop.org; Koenig, Christian<br>
<b>Subject:</b> Re: [radeon-alex:drm-next-4.12-wip 34/40] drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:620:4: warning: left shift count >= width of type<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Mhm, guys any idea why the build bot is spamming us with that warning?<br>
<br>
The type is 64bit and the shift is 63, so that should work fine.<br>
<br>
Regards,<br>
Christian.<br>
<br>
Am 10.02.2017 um 20:48 schrieb kbuild test robot:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>tree:   git://people.freedesktop.org/~agd5f/linux.git drm-next-4.12-wip<o:p></o:p></pre>
<pre>head:   d32ff0ea8e22964abcc6406e00a0646f2bfb94c7<o:p></o:p></pre>
<pre>commit: 382a21d981661dbc8198c37dc95707e1e381ce76 [34/40] drm/amdgpu: IOCTL interface for PRT support v4<o:p></o:p></pre>
<pre>config: xtensa-allmodconfig (attached as .config)<o:p></o:p></pre>
<pre>compiler: xtensa-linux-gcc (GCC) 4.9.0<o:p></o:p></pre>
<pre>reproduce:<o:p></o:p></pre>
<pre>        wget <a href="https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross">https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross</a> -O ~/bin/make.cross<o:p></o:p></pre>
<pre>        chmod +x ~/bin/make.cross<o:p></o:p></pre>
<pre>        git checkout 382a21d981661dbc8198c37dc95707e1e381ce76<o:p></o:p></pre>
<pre>        # save the attached .config to linux build tree<o:p></o:p></pre>
<pre>        make.cross ARCH=xtensa <o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>All warnings (new ones prefixed by >>):<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>   drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c: In function 'amdgpu_gem_va_ioctl':<o:p></o:p></pre>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<pre>drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c:620:4: warning: left shift count >= width of type<o:p></o:p></pre>
</blockquote>
</blockquote>
<pre>       va_flags |= AMDGPU_PTE_PRT;<o:p></o:p></pre>
<pre>       ^<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>vim +620 drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>   604                         r = -ENOENT;<o:p></o:p></pre>
<pre>   605                         goto error_backoff;<o:p></o:p></pre>
<pre>   606                  }<o:p></o:p></pre>
<pre>   607          } else {<o:p></o:p></pre>
<pre>   608                  bo_va = fpriv->prt_va;<o:p></o:p></pre>
<pre>   609          }<o:p></o:p></pre>
<pre>   610  <o:p></o:p></pre>
<pre>   611          switch (args->operation) {<o:p></o:p></pre>
<pre>   612          case AMDGPU_VA_OP_MAP:<o:p></o:p></pre>
<pre>   613                  if (args->flags & AMDGPU_VM_PAGE_READABLE)<o:p></o:p></pre>
<pre>   614                         va_flags |= AMDGPU_PTE_READABLE;<o:p></o:p></pre>
<pre>   615                  if (args->flags & AMDGPU_VM_PAGE_WRITEABLE)<o:p></o:p></pre>
<pre>   616                         va_flags |= AMDGPU_PTE_WRITEABLE;<o:p></o:p></pre>
<pre>   617                  if (args->flags & AMDGPU_VM_PAGE_EXECUTABLE)<o:p></o:p></pre>
<pre>   618                         va_flags |= AMDGPU_PTE_EXECUTABLE;<o:p></o:p></pre>
<pre>   619                  if (args->flags & AMDGPU_VM_PAGE_PRT)<o:p></o:p></pre>
<pre> > 620                         va_flags |= AMDGPU_PTE_PRT;<o:p></o:p></pre>
<pre>   621                  r = amdgpu_vm_bo_map(adev, bo_va, args->va_address,<o:p></o:p></pre>
<pre>   622                                      args->offset_in_bo, args->map_size,<o:p></o:p></pre>
<pre>   623                                      va_flags);<o:p></o:p></pre>
<pre>   624                  break;<o:p></o:p></pre>
<pre>   625          case AMDGPU_VA_OP_UNMAP:<o:p></o:p></pre>
<pre>   626                  r = amdgpu_vm_bo_unmap(adev, bo_va, args->va_address);<o:p></o:p></pre>
<pre>   627                  break;<o:p></o:p></pre>
<pre>   628          default:<o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre>---<o:p></o:p></pre>
<pre>0-DAY kernel test infrastructure                Open Source Technology Center<o:p></o:p></pre>
<pre><a href="https://lists.01.org/pipermail/kbuild-all">https://lists.01.org/pipermail/kbuild-all</a>                   Intel Corporation<o:p></o:p></pre>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>dri-devel mailing list<o:p></o:p></pre>
<pre><a href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a><o:p></o:p></pre>
<pre><a href="https://lists.freedesktop.org/mailman/listinfo/dri-devel">https://lists.freedesktop.org/mailman/listinfo/dri-devel</a><o:p></o:p></pre>
</blockquote>
<p><o:p> </o:p></p>
</div>
</div>
</body>
</html>