<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:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:Batang;
panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
{font-family:PMingLiU;
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:MingLiU;
panose-1:2 2 5 9 0 0 0 0 0 0;}
@font-face
{font-family:Gulim;
panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
{font-family:Gulim;
panose-1:2 11 6 0 0 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:"\@PMingLiU";
panose-1:2 2 5 0 0 0 0 0 0 0;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:"\@Gulim";
panose-1:2 11 6 0 0 1 1 1 1 1;}
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:"\@Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
{font-family:"\@Batang";
panose-1:2 3 6 0 0 1 1 1 1 1;}
@font-face
{font-family:"\@MingLiU";
panose-1:2 2 5 9 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"PMingLiU","serif";}
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:"PMingLiU","serif";}
pre
{mso-style-priority:99;
mso-style-link:"HTML 預設格式 字元";
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"PMingLiU","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"註解方塊文字 字元";
margin:0in;
margin-bottom:.0001pt;
font-size:9.0pt;
font-family:"Malgun Gothic","sans-serif";}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
{mso-style-priority:1;
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"PMingLiU","serif";}
span.HTML
{mso-style-name:"HTML 預設格式 字元";
mso-style-priority:99;
mso-style-link:"HTML 預設格式";
font-family:MingLiU;}
span.a
{mso-style-name:"註解方塊文字 字元";
mso-style-priority:99;
mso-style-link:註解方塊文字;
font-family:"PMingLiU","serif";}
p.HTML0, li.HTML0, div.HTML0
{mso-style-name:"미리 서식이 지정된 HTML";
mso-style-link:"미리 서식이 지정된 HTML Char";
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"PMingLiU","serif";}
span.HTMLChar
{mso-style-name:"미리 서식이 지정된 HTML Char";
mso-style-priority:99;
mso-style-link:"미리 서식이 지정된 HTML";
font-family:"Courier New";}
span.EmailStyle25
{mso-style-type:personal;}
span.EmailStyle26
{mso-style-type:personal;
font-family:"Malgun Gothic","sans-serif";
color:#1F497D;}
span.EmailStyle27
{mso-style-type:personal;
font-family:"Malgun Gothic","sans-serif";
color:#1F497D;}
p.a0, li.a0, div.a0
{mso-style-name:"풍선 도움말 텍스트";
mso-style-link:"풍선 도움말 텍스트 Char";
margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"PMingLiU","serif";}
span.Char
{mso-style-name:"풍선 도움말 텍스트 Char";
mso-style-priority:99;
mso-style-link:"풍선 도움말 텍스트";
font-family:"Malgun Gothic","sans-serif";}
span.EmailStyle30
{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;}
/* List Definitions */
@list l0
{mso-list-id:1881241512;
mso-list-type:hybrid;
mso-list-template-ids:-1738773700 -806989102 67698691 67698693 67698689 67698691 67698693 67698689 67698691 67698693;}
@list l0:level1
{mso-level-start-at:66;
mso-level-number-format:bullet;
mso-level-text:-;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:38.0pt;
text-indent:-.25in;
font-family:"Malgun Gothic","sans-serif";
mso-bidi-font-family:Gulim;}
@list l0:level2
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:60.0pt;
text-indent:-20.0pt;
font-family:Wingdings;}
@list l0:level3
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:80.0pt;
text-indent:-20.0pt;
font-family:Wingdings;}
@list l0:level4
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:100.0pt;
text-indent:-20.0pt;
font-family:Wingdings;}
@list l0:level5
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:120.0pt;
text-indent:-20.0pt;
font-family:Wingdings;}
@list l0:level6
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:140.0pt;
text-indent:-20.0pt;
font-family:Wingdings;}
@list l0:level7
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:160.0pt;
text-indent:-20.0pt;
font-family:Wingdings;}
@list l0:level8
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:2.5in;
text-indent:-20.0pt;
font-family:Wingdings;}
@list l0:level9
{mso-level-number-format:bullet;
mso-level-text:;
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:200.0pt;
text-indent:-20.0pt;
font-family:Wingdings;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></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="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,<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">Please have a review for below code change suggestion from Samsung DTV.<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">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Rich<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>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span lang="ZH-TW" style="font-size:9.0pt">寄件者</span></b><b><span style="font-size:9.0pt">:</span></b><span style="font-size:9.0pt"> hoseon.kim [mailto:hoseon.kim@samsung.com]
<br>
<b><span lang="ZH-TW">寄件日期</span>:</b> Friday, December 20, 2013 10:51 PM<br>
<b><span lang="ZH-TW">收件者</span>:</b> support-mali; 'Marco Starace'; 'Ravi Agnihotri'; 'Jeba Samuel'<br>
<b><span lang="ZH-TW">副本</span>:</b> '</span><span lang="ZH-TW" style="font-size:9.0pt;font-family:"Batang","serif"">무랄리</span><span style="font-size:9.0pt">'; '</span><span lang="ZH-TW" style="font-size:9.0pt;font-family:"Batang","serif"">비핀</span><span style="font-size:9.0pt">';
'</span><span lang="ZH-TW" style="font-size:9.0pt;font-family:"Batang","serif"">서주원</span><span style="font-size:9.0pt">'; '</span><span lang="ZH-TW" style="font-size:9.0pt;font-family:"Batang","serif"">이승은</span><span style="font-size:9.0pt">'; Rich Su; Norman
Evanson; </span><span lang="ZH-TW" style="font-size:9.0pt;font-family:"Batang","serif"">김호선</span><span style="font-size:9.0pt"><br>
<b><span lang="ZH-TW">主旨</span>:</b> RE: [urgent] dmabuf close error and kernel oops from xf86-video-armsoc (571146)<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">Hi Norman,<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">When I check dma-buf API Guide document which is attached, there is a mention like this<span lang="KO">…</span><o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">< DMA Buffer Sharing API Guide ><o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span lang="KO" style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">…</span><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">- In order to avoid fd leaks on exec, the FD_CLOEXEC flag must be set<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> on the file descriptor. This is not just a resource leak, but a<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> potential security hole. It could give the newly exec'd application<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> access to buffers, via the leaked fd, to which it should otherwise<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> not be permitted access.<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> The problem with doing this via a separate fcntl() call, versus doing it<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> atomically when the fd is created, is that this is inherently racy in a<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> multi-threaded app[3]. The issue is made worse when it is library code<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> opening/creating the file descriptor, as the application may not even be<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> aware of the fd's.<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> To avoid this problem, userspace must have a way to request O_CLOEXEC<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> flag be set when the dma-buf fd is created. So any API provided by<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> the exporting driver to create a dmabuf fd must provide a way to let<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> userspace control setting of O_CLOEXEC flag passed in to dma_buf_fd().<o:p></o:p></span></b></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">According to this description, I think that armsoc_bo_set_dmabuf() should use
<b>O_CLOEXEC</b> when it try to get dma_buf fd.<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">So, the code need to be changed like this<span lang="KO">…</span><o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">[ Before ]<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> /* Try to get dma_buf fd */<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> prime_handle.handle = bo->handle;<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> prime_handle.flags = 0;<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> res = drmIoctl(bo->dev->fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &prime_handle);<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">[ After ]<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> /* Try to get dma_buf fd */<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> prime_handle.handle = bo->handle;<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> prime_handle.flags =
<b>O_CLOEXEC</b>;<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"> res = drmIoctl(bo->dev->fd, DRM_IOCTL_PRIME_HANDLE_TO_FD, &prime_handle);<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">Could you please check if it is correct or not with your xf86_video_armsoc manager?<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">And, is it possible to check with him, if this usage<b>(without</b>
<b>O_CLOEXEC)</b> can make the problem case that I mentioned previous mail (below)?<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">I will be happy if you can give feedback for my question in today.<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">Best Regards,<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">Hoseon<o:p></o:p></span></p>
<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";mso-fareast-language:KO">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:KO"> hoseon.kim [<a href="mailto:hoseon.kim@samsung.com">mailto:hoseon.kim@samsung.com</a>]
<br>
<b>Sent:</b> Thursday, December 19, 2013 7:52 PM<br>
<b>To:</b> 'support-mali'; 'Marco Starace'; 'Ravi Agnihotri'; 'Jeba Samuel'<br>
<b>Cc:</b> '</span><span lang="KO" style="font-size:10.0pt;font-family:"Gulim","sans-serif";mso-fareast-language:KO">무랄리</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:KO">'; '</span><span lang="KO" style="font-size:10.0pt;font-family:"Gulim","sans-serif";mso-fareast-language:KO">비핀</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:KO">';
'</span><span lang="KO" style="font-size:10.0pt;font-family:"Gulim","sans-serif";mso-fareast-language:KO">서주원</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:KO">'; '</span><span lang="KO" style="font-size:10.0pt;font-family:"Gulim","sans-serif";mso-fareast-language:KO">이승은</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:KO">';
'Rich Su'; 'Norman Evanson'; </span><span lang="KO" style="font-size:10.0pt;font-family:"Gulim","sans-serif";mso-fareast-language:KO">김호선</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:KO"><br>
<b>Subject:</b> RE: [urgent] dmabuf close error and kernel oops from xf86-video-armsoc (571146)<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">Hi Eason,<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">Please find the call stack analysis information from kernel team.<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">If you find something valuable, please let me know.<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">Best Regards,<o:p></o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO">Hoseon<o:p></o:p></span></p>
<p style="margin-left:38.0pt;text-indent:-.25in;mso-list:l0 level1 lfo2"><![if !supportLists]><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";mso-fareast-language:KO"><span style="mso-list:Ignore">-<span style="font:7.0pt "Times New Roman"">
</span></span></span><![endif]><b><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";mso-fareast-language:KO">Kernel oops came from locks_remove_posix. <o:p></o:p></span></b></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="726" style="width:544.5pt;background:white;border-collapse:collapse">
<tbody>
<tr style="height:15.0pt">
<td width="710" style="width:532.5pt;border:inset black 1.0pt;padding:0in 0in 0in 0in;height:15.0pt">
<p><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif"">[14:54:15.511] [ 11.422439] PC is at
<b>locks_remove_posix</b>+0x18/0x30<br>
[14:54:15.515] [ 11.427193] LR is at filp_close+0x60/0x8c<br>
[14:54:15.519] [ 11.431244] pc : [<c018ca9c>] lr : [<c0148a78>] psr: 40000013<br>
[14:54:15.525] [ 11.431244] sp : e1bbdf30 ip : e1bbdf40 fp : e1bbdf3c<br>
[14:54:15.530] [ 11.442868] r10: 00000000 r9 : e1bbc000 r8 : e598d040<br>
[14:54:15.536] [ 11.448153] r7 : e5a33f00 r6 : e598d000 r5 : 00000000 r4 : e5a33f00<br>
[14:54:15.543] [ 11.454758] r3 : 00000000 r2 : e1bbdf50 r1 : e598d000 r0 : e5a33f00<br>
[14:54:15.549] [ 11.461364] Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user<br>
[14:54:15.556] [ 11.468586] Control: 30c53c7d Table: bd9fb9c0 DAC: 55555555<br>
[14:54:15.563] [ 11.474399] Process XOrgLauncherThr (pid: 374, stack limit = 0xe1bbc238)<br>
[14:54:15.569] [ 11.481180] Stack: (0xe1bbdf30 to 0xe1bbe000)<br>
[14:54:15.573] [ 11.485585] df20: e1bbdf5c e1bbdf40 c0148a78 c018ca90<br>
[14:54:15.581] [ 11.493864] df40: 00000000 0000001b e598d000 e598d008 e1bbdf94 e1bbdf60 c0165f9c c0148a24<br>
[14:54:15.590] [ 11.502143] df60: e1bbdfa4 00000000 00000001 a341a230 00000001 be3fe504 00000006 c0013324<br>
[14:54:15.598] [ 11.510421] df80: e1bbc000 00000000 e1bbdfa4 e1bbdf98 c01489f0 c0165e98 00000000 e1bbdfa8<br>
[14:54:15.606] [ 11.518700] dfa0: c00130a0 c01489cc a341a230 00000001 0000001b aa5624d4 aa562910 00000001<br>
[14:54:15.615] [ 11.526979] dfc0: a341a230 00000001 be3fe504 00000006 0051a77c 00000012 0051a784 aa561b1c<br>
[14:54:15.623] [ 11.535258] dfe0: 00000000 aa561b08 ab4b7fa4 ab4b7fb4 80000010 0000001b ffffffff ffffffff<br>
[14:54:15.632] [ 11.543534] Backtrace: <br>
[14:54:15.633] [ 11.546006] [<c018ca84>] (locks_remove_posix+0x0/0x30) from [<c0148a78>] (filp_close+0x60/0x8c)<br>
[14:54:15.643] [ 11.554814] [<c0148a18>] (filp_close+0x0/0x8c) from [<c0165f9c>] (__close_fd+0x110/0x1a4)<br>
[14:54:15.650] [ 11.563087] r6:e598d008 r5:e598d000 r4:0000001b r3:00000000<br>
[14:54:15.657] [ 11.568816] [<c0165e8c>] (__close_fd+0x0/0x1a4) from [<c01489f0>] (sys_close+0x30/0x58)<br>
[14:54:15.664] [ 11.576919] [<c01489c0>] (sys_close+0x0/0x58) from [<c00130a0>] (ret_fast_syscall+0x0/0x48)<br>
[14:54:15.673] [ 11.585372] Code: e24cb004 e52de004 e8bd4000 e590300c (e5933028)
<br>
[14:54:15.680] [ 11.591538] [SELP] while loop ... please attach T32...<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";mso-fareast-language:KO"> <o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";mso-fareast-language:KO">Because dentry is 0 in file (anon idnoe file), this kernel oops problem comes.<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="726" style="width:544.5pt;background:white;border-collapse:collapse">
<tbody>
<tr style="height:15.0pt">
<td width="726" style="width:544.5pt;border:inset black 1.0pt;padding:0in 0in 0in 0in;height:15.0pt">
<p><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif"">-001|filp_close(<br>
| filp = 0xE5A33F00 -> (<br>
| f_u = (fu_list = (next = 0xE5A33540, prev = 0xC014BA0C), fu_rcuhead =<br>
| <span style="color:red">f_path = (mnt = 0x0, dentry = 0x0),</span><br>
| f_op = 0xC03E389C, <br>
| f_lock = (rlock = (raw_lock = (slock = 0x0, tickets = (owner = 0x0, n<br>
| f_sb_list_cpu = 0x0,<br>
| f_count = (counter = 0x1),<br>
| f_flags = 0x0,<br>
| f_mode = 0x1,<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";mso-fareast-language:KO"> It seems that this call comes from armsoc_bo_clear_dmabuf.<o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="726" style="width:544.5pt;background:white;border-collapse:collapse">
<tbody>
<tr style="height:15.0pt">
<td width="726" style="width:544.5pt;border:inset black 1.0pt;padding:0in 0in 0in 0in;height:15.0pt">
<p><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif"">void armsoc_bo_clear_dmabuf(struct mali_bo *bo)<br>
{<br>
assert(bo->refcnt > 0);<br>
assert(mali_bo_has_dmabuf(bo));<o:p></o:p></span></p>
<p><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:red"> close(bo->dmabuf);</span><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif""><br>
bo->dmabuf = -1;<br>
}<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNormal" style="word-break:break-all"><span style="font-size:10.0pt;font-family:"Malgun Gothic","sans-serif";color:#1F497D;mso-fareast-language:KO"><o:p> </o:p></span></p>
<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";mso-fareast-language:KO">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:KO"> support-mali
<a href="mailto:[mailto:support-mali@arm.com]">[mailto:support-mali@arm.com]</a> <br>
<b>Sent:</b> Thursday, December 19, 2013 12:38 PM<br>
<b>To:</b> hoseon.kim; 'Marco Starace'; 'Ravi Agnihotri'; 'Jeba Samuel'<br>
<b>Cc:</b> support-mali; '</span><span lang="KO" style="font-size:10.0pt;font-family:"Gulim","sans-serif";mso-fareast-language:KO">무랄리</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:KO">'; '</span><span lang="KO" style="font-size:10.0pt;font-family:"Gulim","sans-serif";mso-fareast-language:KO">비핀</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:KO">';
'</span><span lang="KO" style="font-size:10.0pt;font-family:"Gulim","sans-serif";mso-fareast-language:KO">서주원</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:KO">'; '</span><span lang="KO" style="font-size:10.0pt;font-family:"Gulim","sans-serif";mso-fareast-language:KO">이승은</span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";mso-fareast-language:KO">';
Rich Su; Norman Evanson<br>
<b>Subject:</b> RE: [urgent] dmabuf close error and kernel oops from xf86-video-armsoc (571146)<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="mso-fareast-language:KO"><o:p> </o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D">[From Eason Tang - ARM Technical Support]
<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D">Hi Hoseon,<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D">This Kernel oops may be caused in kernel instead of in armsoc which is in user space. Armsoc may be able to use/call the kernel from user space with any values and the kernel
driver should handle the problem.<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D">The problem described by this case seems to be initially in the drm driver (or possibly kbase). Did you get chance to check the if the “refcount” is incorrect? I would suggest
to review the drm driver first for the possible issue.<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D">As I know, Samsung DTV may have more than one Xserver running with Samsung application. How many Xserver/views are running when reproducing this issue? Any specific procedure
to see this issue?<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D">Is there any log showing kernel crash with full call stack that can be shared to check further?<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D">Thanks,<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif";color:#1F497D">-Eason<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif""><o:p> </o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif"">//---------------------------------------------------------------------------------------
<br>
From: hoseon.kim [<a href="mailto:hoseon.kim@samsung.com">mailto:hoseon.kim@samsung.com</a>]
<br>
Sent: Wednesday, December 18, 2013 11:09 PM <br>
To: Eason Tang; Norman Evanson; Rich Su; 'Marco Starace'; 'Ravi Agnihotri'; 'Jeba Samuel'
<br>
Cc: support-mali; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">무랄리</span><span style="font-family:"Calibri","sans-serif"">'; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">비핀</span><span style="font-family:"Calibri","sans-serif"">';
'</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">서주원</span><span style="font-family:"Calibri","sans-serif"">'; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">이승은</span><span style="font-family:"Calibri","sans-serif"">';
</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">김호선</span><span style="font-family:"Calibri","sans-serif"">
<br>
Subject: RE: [urgent] dmabuf close error and kernel oops from xf86-video-armsoc <br>
<br>
Hi Norman, Eason, <br>
<br>
Please find the following analysis … <br>
Really, this problem is coming when dma_buf_lock is not used, also. <br>
<br>
So, please review the possibility of this problem with original xf86-video-armsoc driver itself.
<br>
I expect your feedback today with some debug patch to try, it is very urgent issue.
<br>
<br>
Best Regards, <br>
Hoseon <br>
From: hoseon.kim [<a href="mailto:hoseon.kim@samsung.com">mailto:hoseon.kim@samsung.com</a>]
<br>
Sent: Wednesday, December 18, 2013 11:03 PM <br>
To: 'Eason Tang'; 'Norman Evanson'; 'Rich Su'; 'Marco Starace'; 'Ravi Agnihotri'; 'Jeba Samuel'
<br>
Cc: 'support-mali'; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">무랄리</span><span style="font-family:"Calibri","sans-serif"">'; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">비핀</span><span style="font-family:"Calibri","sans-serif"">';
'</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">서주원</span><span style="font-family:"Calibri","sans-serif"">'; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">이승은</span><span style="font-family:"Calibri","sans-serif"">';
</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">김호선</span><span style="font-family:"Calibri","sans-serif"">
<br>
Subject: RE: [urgent] dmabuf close error and kernel oops from xf86-video-armsoc <br>
<br>
Hi Eason, <br>
<br>
When we check the dma_buf_lock patch from ARM, we are not sure all the resources are protected correctly.
<br>
Could you please review your dma_buf_lock patch in this point of view? <br>
And, if there are some suspected code, please let me know. <br>
<br>
Please find the dma_buf_lock patch from ARM : <br>
<a href="http://connect.arm.com/dropzone/samsung-lsi-mali-project/dma_buf_lock_wk48_v2.patch">http://connect.arm.com/dropzone/samsung-lsi-mali-project/dma_buf_lock_wk48_v2.patch</a>
<br>
<br>
In dma_buf_lock_dolock() function of dma_buf_lock.c, <br>
All the kref_put() is protected by mutex, but kref_get() is not protected … is it no problem?
<br>
<br>
Best Regards, <br>
Hoseon <br>
From: Eason Tang HYPERLINK "mailto:[<a href="mailto:Eason.Tang@arm.com">mailto:Eason.Tang@arm.com</a>]"[<a href="mailto:Eason.Tang@arm.com">mailto:Eason.Tang@arm.com</a>]
<br>
Sent: Wednesday, December 18, 2013 7:02 PM <br>
To: hoseon.kim; Norman Evanson; Rich Su; 'Marco Starace'; 'Ravi Agnihotri'; 'Jeba Samuel'
<br>
Cc: support-mali; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">무랄리</span><span style="font-family:"Calibri","sans-serif"">'; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">비핀</span><span style="font-family:"Calibri","sans-serif"">';
'</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">서주원</span><span style="font-family:"Calibri","sans-serif"">'; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">이승은</span><span style="font-family:"Calibri","sans-serif"">'
<br>
Subject: RE: [urgent] dmabuf close error and kernel oops from xf86-video-armsoc <br>
<br>
Hi Hoseon, <br>
<br>
I just checked the engineer who is in charge of xf86-video-armsoc, he has got this reported issue from “xf86-video-armsoc” mail list as I attached previously for your reference. We are checking it now.<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif"">We will suggest to join the mailing list and report bugs or ask questions through that.
<br>
<br>
Thanks, <br>
-Eason <br>
<br>
From: hoseon.kim HYPERLINK "mailto:[<a href="mailto:hoseon.kim@samsung.com">mailto:hoseon.kim@samsung.com</a>]"[<a href="mailto:hoseon.kim@samsung.com">mailto:hoseon.kim@samsung.com</a>]
<br>
Sent: Wednesday, December 18, 2013 5:52 PM <br>
To: Eason Tang; Norman Evanson; Rich Su; 'Marco Starace'; 'Ravi Agnihotri'; 'Jeba Samuel'
<br>
Cc: support-mali; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">무랄리</span><span style="font-family:"Calibri","sans-serif"">'; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">비핀</span><span style="font-family:"Calibri","sans-serif"">';
'</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">서주원</span><span style="font-family:"Calibri","sans-serif"">'; '</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">이승은</span><span style="font-family:"Calibri","sans-serif"">';
</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">김호선</span><span style="font-family:"Calibri","sans-serif"">
<br>
Subject: RE: [urgent] dmabuf close error and kernel oops from xf86-video-armsoc <br>
<br>
Hi Eason, <br>
<br>
I have checked the latest xf86-video-armsoc code, and I could not find something meaningful.
<br>
If ARM engineer who is in charge of xf86-video-armsoc can help us, it will be better to get closer for the point of problem.<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif"">Could you please check if ARM xf86-video-armsoc engineer can go through this issue?
<br>
<br>
Best Regards, <br>
Hoseon <br>
From: Eason Tang [<a href="mailto:Eason.Tang@arm.com">mailto:Eason.Tang@arm.com</a>]
<br>
Sent: Wednesday, December 18, 2013 5:48 PM <br>
To: HYPERLINK "<a href="mailto:hoseon.kim@samsung.com">mailto:hoseon.kim@samsung.com</a>"hoseon.kim@samsung.com; Norman Evanson; Rich Su; Marco Starace; Ravi Agnihotri; Jeba Samuel<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif"">Cc: support-mali;
</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">무랄리</span><span style="font-family:"Calibri","sans-serif"">;
</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">비핀</span><span style="font-family:"Calibri","sans-serif"">;
</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">서주원</span><span style="font-family:"Calibri","sans-serif"">;
</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">이승은</span><span style="font-family:"Calibri","sans-serif"">
<br>
Subject: RE: [urgent] dmabuf close error and kernel oops from xf86-video-armsoc <br>
<br>
Hi Hoseon, <br>
<br>
I just forwarded the reported issue to the below mail list, please refer to below links and mail list for xf86-video-armsoc.<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif""> <br>
Please be aware that we now have an armsoc git repo hosted by freedesktop: <br>
<a href="http://cgit.freedesktop.org/xorg/driver/xf86-video-armsoc/">http://cgit.freedesktop.org/xorg/driver/xf86-video-armsoc/</a>
<br>
<br>
And we have a mailing list: <br>
<a href="http://lists.x.org/mailman/listinfo/xf86-video-armsoc">http://lists.x.org/mailman/listinfo/xf86-video-armsoc</a>
<br>
<br>
Both the linaro and freedesktop repos are currently identical. Please move to the freedesktop location for the armsoc, and join the mailing list and report bugs or ask questions through that. You are also welcome to submit code changes on the mailing list for
review, and comment on changes we make which will be posted on the mailing list.<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif""> <br>
Thanks, <br>
-Eason <br>
<br>
From: HOSEON KIM HYPERLINK "mailto:[<a href="mailto:hoseon.kim@samsung.com">mailto:hoseon.kim@samsung.com</a>]"[<a href="mailto:hoseon.kim@samsung.com">mailto:hoseon.kim@samsung.com</a>]
<br>
Sent: Wednesday, December 18, 2013 4:26 PM <br>
To: Norman Evanson; Eason Tang; Rich Su; support-mali; Marco Starace; Ravi Agnihotri; Jeba Samuel
<br>
Cc: </span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">무랄리</span><span style="font-family:"Calibri","sans-serif"">;
</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">비핀</span><span style="font-family:"Calibri","sans-serif"">;
</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">서주원</span><span style="font-family:"Calibri","sans-serif"">;
</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">이승은</span><span style="font-family:"Calibri","sans-serif"">;
</span><span lang="ZH-TW" style="font-family:"Gulim","sans-serif"">김호선</span><span style="font-family:"Calibri","sans-serif"">
<br>
Subject: [urgent] dmabuf close error and kernel oops from xf86-video-armsoc <br>
<br>
Hi Norman, Eason, Rich, <br>
<br>
Recentry, I received many NULL pointer access error reports from product team. <br>
It always shows the same error from xf86-video-armsoc driver. <br>
Could you please assign xf86-video-armsoc engineer, and check the following error case with highest priority?
<br>
<br>
< armsoc_dumb.c > <br>
void mali_bo_clear_dmabuf(struct mali_bo *bo) <br>
{ <br>
assert(bo->refcnt > 0); <br>
assert(mali_bo_has_dmabuf(bo)); <br>
close(bo->dmabuf); <br>
bo->dmabuf = -1; <br>
} <br>
<br>
close -> ... -> filp_close -> locks_remove_posix -> filp->f_path.dentry ==> kernel oops because it is NULL
<br>
<br>
Please check if you have any previous history like this, and let me know which approach will be better to debug it.
<br>
It is reproduced very rarely (once or twice in a day), so your quick response will be very helpful to get more detail debug iinformation.<o:p></o:p></span></p>
<p class="MsoNoSpacing"><span style="font-family:"Calibri","sans-serif""> <br>
Best Regards, <br>
Hoseon </span><span style="font-family:"Gulim","sans-serif""><o:p></o:p></span></p>
</div>
<br>
<font face="Arial" color="Black" size="2">-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents
to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.<br>
<br>
ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590<br>
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782<br>
</font>
</body>
</html>