<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:x="urn:schemas-microsoft-com:office:excel" 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=gb2312">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:宋体;
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:"Arial Unicode MS";
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"\@宋体";
panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
{font-family:微软雅黑;
panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
{font-family:"\@微软雅黑";
panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
{font-family:华文彩云;
panose-1:2 1 8 0 4 1 1 1 1 1;}
@font-face
{font-family:华文细黑;
panose-1:2 1 6 0 4 1 1 1 1 1;}
@font-face
{font-family:"\@华文彩云";
panose-1:2 1 8 0 4 1 1 1 1 1;}
@font-face
{font-family:"\@华文细黑";
panose-1:2 1 6 0 4 1 1 1 1 1;}
@font-face
{font-family:"\@Arial Unicode MS";
panose-1:2 11 6 4 2 2 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
text-align:justify;
text-justify:inter-ideograph;
font-size:10.5pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
font-family:"Calibri",sans-serif;}
/* Page Definitions */
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
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 lang="ZH-CN" link="#0563C1" vlink="#954F72" style="text-justify-trim:punctuation">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi,all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> We met a problem on ubuntu17.10 for arm server with amdgpu(AMD RADEON PRO WX7100), we use open source driver which are integrated in ubuntu17.10. And the architecture is AArch64-linux-gnu.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> we install :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> apt-get install xserver-xorg xinit xfce4 and mesa-utils glmark2<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> we start x server :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> startx<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> and then the monitor shows the screen and the screen is blurred.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <img width="685" height="514" id="图片_x0020_1" src="cid:image001.jpg@01D36CED.9D00A330"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> Run glxinfo ,the output is normal. glmark2 runs well and get 4300 score. but glxgears got segment fault.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> and the call stack is :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Starting program: /usr/bin/glxgears <o:p>
</o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[Thread debugging using libthread_db enabled]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Using host libthread_db library "/lib/aarch64-linux-gnu/libthread_db.so.1".<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[New Thread 0xffffbc6b31d0 (LWP 5813)]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[New Thread 0xffffbbcfa1d0 (LWP 5814)]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[New Thread 0xffffbb4b21d0 (LWP 5815)]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[New Thread 0xffffbacb21d0 (LWP 5816)]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[New Thread 0xffffba4b21d0 (LWP 5817)]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[New Thread 0xffffb9cb21d0 (LWP 5818)]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[New Thread 0xffffb94b21d0 (LWP 5819)]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[New Thread 0xffffb8c521d0 (LWP 5820)]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thread 9 "gallium_drv:0" received signal SIGSEGV, Segmentation fault.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">[Switching to Thread 0xffffb8c521d0 (LWP 5820)]<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">0x0000ffffbd913a44 in llvm::Value::getContext (this=this@entry=0xffff94092478) at /home/llvm/llvm-5.0.0.src/lib/IR/Value.cpp:697<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">697 LLVMContext &Value::getContext() const { return VTy->getContext(); }<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">(gdb) bt<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#0 0x0000ffffbd913a44 in llvm::Value::getContext (this=this@entry=0xffff94092478) at /home/llvm/llvm-5.0.0.src/lib/IR/Value.cpp:697<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#1 0x0000ffffbd914f78 in llvm::Value::setNameImpl (this=this@entry=0xffff94092478, NewName=...) at /home/llvm/llvm-5.0.0.src/lib/IR/Value.cpp:229<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#2 0x0000ffffbd91522c in llvm::Value::setName (this=this@entry=0xffff94092478, NewName=...) at /home/llvm/llvm-5.0.0.src/lib/IR/Value.cpp:285<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#3 0x0000ffffbd8b998c in llvm::ExtractValueInst::init (this=this@entry=0xffff94092478, Idxs=..., Name=...) at /home/llvm/llvm-5.0.0.src/lib/IR/Instructions.cpp:1945<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#4 0x0000ffffbd85d6b8 in llvm::ExtractValueInst::ExtractValueInst (InsertBefore=0x0, NameStr=..., Idxs=..., Agg=0xffff940c56d0, this=0xffff94092478)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> at /home/llvm/llvm-5.0.0.src/include/llvm/IR/Instructions.h:2397<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#5 llvm::ExtractValueInst::Create (InsertBefore=0x0, NameStr=..., Idxs=..., Agg=0xffff940c56d0) at /home/llvm/llvm-5.0.0.src/include/llvm/IR/Instructions.h:2336<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#6 llvm::IRBuilder<llvm::ConstantFolder, llvm::IRBuilderDefaultInserter>::CreateExtractValue (Name=..., Idxs=..., Agg=0xffff940c56d0, this=0xffff94020d10)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> at /home/llvm/llvm-5.0.0.src/include/llvm/IR/IRBuilder.h:1756<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#7 LLVMBuildExtractValue (B=0xffff94020d10, AggVal=AggVal@entry=0xffff940c56d0, Index=<optimized out>, Index@entry=263, Name=Name@entry=0x0)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> at /home/llvm/llvm-5.0.0.src/lib/IR/Core.cpp:3003<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#8 0x0000ffffbece9918 in si_build_ps_prolog_function (ctx=0xffffb8c4dce8, key=0xffffb8c51578) at si_shader.c:7046<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#9 0x0000ffffbecef048 in si_get_shader_part (sscreen=sscreen@entry=0xaaaaaab5c3f0, list=list@entry=0xaaaaaab5c900, type=type@entry=PIPE_SHADER_FRAGMENT, prolog=false, prolog@entry=true,
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> key=key@entry=0xffffb8c51578, tm=tm@entry=0xaaaaaab03980, debug=0x0, debug@entry=0xffff940191d8, build=build@entry=0xffffbece9470 <si_build_ps_prolog_function>,
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> name=name@entry=0xffffbee42d98 "Fragment Shader Prolog") at si_shader.c:6510<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#10 0x0000ffffbecf1044 in si_shader_select_ps_parts (debug=0xffff940191d8, shader=0xffff940191d0, tm=0xaaaaaab03980, sscreen=0xaaaaaab5c3f0) at si_shader.c:7250<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#11 si_shader_create (sscreen=sscreen@entry=0xaaaaaab5c3f0, tm=0xaaaaaab03980, shader=shader@entry=0xffff940191d0, debug=debug@entry=0xffff940191d8) at si_shader.c:7428<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#12 0x0000ffffbed05780 in si_build_shader_variant (shader=0xffff940191d0, thread_index=<optimized out>, low_priority=<optimized out>) at si_state_shaders.c:1493<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#13 0x0000ffffbed061c4 in si_shader_select_with_key (sscreen=0xaaaaaab5c3f0, state=state@entry=0xaaaaaab05b88, compiler_state=compiler_state@entry=0xffffb8c517d0,
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> key=key@entry=0xffffb8c516e8, thread_index=thread_index@entry=-1) at si_state_shaders.c:1736<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#14 0x0000ffffbed06ae8 in si_shader_select (ctx=ctx@entry=0xaaaaaab04c80, state=state@entry=0xaaaaaab05b88, compiler_state=compiler_state@entry=0xffffb8c517d0) at si_state_shaders.c:1753<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#15 0x0000ffffbed08234 in si_update_shaders (sctx=sctx@entry=0xaaaaaab04c80) at si_state_shaders.c:3254<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#16 0x0000ffffbed01fdc in si_draw_vbo (ctx=0xaaaaaab04c80, info=0xaaaaaac020e8) at si_state_draw.c:1266<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#17 0x0000ffffbec591f0 in tc_call_draw_vbo (pipe=<optimized out>, payload=0xaaaaaac020e8) at util/u_threaded_context.c:1814<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#18 0x0000ffffbec5603c in tc_batch_execute (job=job@entry=0xaaaaaac01d90, thread_index=thread_index@entry=0) at util/u_threaded_context.c:94<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#19 0x0000ffffbeb60d40 in util_queue_thread_func (input=input@entry=0xaaaaaabc3690) at u_queue.c:187<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#20 0x0000ffffbeb60bdc in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#21 0x0000ffffbf135338 in start_thread (arg=0xffffffffe9b6) at pthread_create.c:465<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">#22 0x0000ffffbf3ed98c in thread_start () at ../sysdeps/unix/sysv/linux/aarch64/clone.S:78<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> There may be a bug in mesa or llvm while running in arm server(aarch64-linux-gnu).
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"微软雅黑",sans-serif;color:#404040">Thanks & Best Regards<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-family:"微软雅黑",sans-serif;color:#404040">吕志宏<span lang="EN-US"> ReJohn</span></span><span lang="EN-US" style="font-family:"Arial Unicode MS",sans-serif;color:#404040"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:14.0pt;font-family:华文彩云;color:red">华为服务器:创新 让计算更简单</span><span lang="EN-US" style="font-size:14.0pt;font-family:华文彩云;color:red"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:9.0pt;font-family:"微软雅黑",sans-serif;color:#404040">IT</span><span style="font-size:9.0pt;font-family:"微软雅黑",sans-serif;color:#404040">产品线 服务器解决方案开发部<span lang="EN-US"> M</span>:<span lang="EN-US">134-8611-7471</span></span><span lang="EN-US" style="font-size:14.0pt;font-family:华文彩云;color:red"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:华文细黑;color:black"><br>
Huawei R&D Center Z4#,No.360 Jiangshu RD,Binjiang District,Hangzhou 310051, P.R.China</span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#1F497D">
</span><span lang="EN-US"><a href="enterprise.huawei.com"><span style="font-size:9.0pt;font-family:"Arial",sans-serif;color:blue">enterprise.huawei.com</span></a></span><span lang="EN-US" style="font-size:9.0pt;font-family:"Arial",sans-serif;color:#C00000"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</body>
</html>