<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word"><head><META content="text/html; charset=us-ascii" http-equiv="Content-Type">
<STYLE><!-- /* Style Definitions */ p.f9fee2ae-497b-43b2-afda-78bd0ed7accd, li.f9fee2ae-497b-43b2-afda-78bd0ed7accd, div.f9fee2ae-497b-43b2-afda-78bd0ed7accd, table.f9fee2ae-497b-43b2-afda-78bd0ed7accdTable {margin:0cm; margin-bottom:.0001pt;}div.Section1 {page:Section1;}--></STYLE>
<meta content="text/html; charset=us-ascii" http-equiv=Content-Type><meta content="Microsoft Word 12 (filtered medium)" name=Generator><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-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;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
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><FONT FACE="Arial" SIZE="2">
<P CLASS="f9fee2ae-497b-43b2-afda-78bd0ed7accd"></P></FONT><FONT FACE="Arial" SIZE="2"></FONT>
<P CLASS="f9fee2ae-497b-43b2-afda-78bd0ed7accd"><div class=WordSection1><p class=MsoNormal>Hi,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I am currently working with a team that is porting the Intel Linux open source stack to Integrity OS (a real-time OS by Green Hills) for embedded systems. The current architecture we’re using is the Sandybridge architecture (device ID: 0x0116). After a good amount of work, we have finally made it possible to run the Mesa (7.11.2)/X Server (1.10.4)/DRM (kernel version 3.1)/xf86-video-intel (2.17.0) on our system, but we are running into some issues with rendering. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>In particular when running Xclock or a simple GL application consisting of a full screen rotating triangle, we’ve found that either the blit and render rings seem to hang. To determine this, we read the ring buffer’s head/tail pointer for each ring. From looking at the current instruction based on the head pointer, the previous instruction that has yet to complete in each case is a batch buffer. However if I look at the batch buffer address register 2140h, it seems like the batch buffer has started running into instructions that are not ours. On further decoding of the dispatched batch buffer, I can see the MI_BATCH_BUFFER_END instruction well before the current batch buffer instruction address. Is there any ways to determine why the batch/ring buffer are stuck at these instructions? <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>One of the key differences between the Linux driver and our own is that we cannot support the page fault mechanism as is used by the DRM currently. To deal with this we have changed all gem object creations to essentially force a call to the page fault handler in order to guarantee things are allocated before being used.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any help on this issue would be greatly appreciated. If there are any particular registers that we can look at or submit please let me know.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks,<o:p></o:p></p><p class=MsoNormal>Matt<o:p></o:p></p></div></P>
<P CLASS="f9fee2ae-497b-43b2-afda-78bd0ed7accd"><FONT FACE="Arial" SIZE="2"></FONT></P>
<P CLASS="f9fee2ae-497b-43b2-afda-78bd0ed7accd"><FONT FACE="Arial" SIZE="2">-- </FONT><BR><FONT FACE="Arial" SIZE="2" STYLE="TEXT-TRANSFORM: uppercase"><STRONG>Matt Knowles</STRONG></FONT><BR><FONT SIZE="2"><FONT COLOR="#999999"><FONT FACE="Arial">Software Developer | <STRONG>Presagis</STRONG></FONT></FONT></FONT><BR><FONT COLOR="#999999" FACE="Arial" SIZE="2"><BR><STRONG>T.</STRONG> +1 781 852.0202 X2096 <STRONG>F.</STRONG> +1 781 203.0110 </FONT> </P>
<P CLASS="f9fee2ae-497b-43b2-afda-78bd0ed7accd"><FONT FACE="Arial" SIZE="2"></FONT></P>
<P CLASS="f9fee2ae-497b-43b2-afda-78bd0ed7accd"><FONT COLOR="#999999" FACE="Arial" SIZE="2"></FONT></P>
<P CLASS="f9fee2ae-497b-43b2-afda-78bd0ed7accd"><FONT FACE="Arial" SIZE="2"></FONT></P>
<P CLASS="f9fee2ae-497b-43b2-afda-78bd0ed7accd"><FONT COLOR="#999999" FACE="Arial" SIZE="1"><FONT FACE="Calibri" SIZE="5"><FONT FACE="Calibri" SIZE="5"><FONT SIZE="1"></FONT></FONT></FONT></FONT> </P>
<P CLASS="f9fee2ae-497b-43b2-afda-78bd0ed7accd"><FONT COLOR="#999999" FACE="Arial" SIZE="1"><FONT FACE="Calibri" SIZE="5"><FONT FACE="Calibri" SIZE="5"><FONT SIZE="1"><FONT FACE="Calibri" SIZE="5"><FONT FACE="Calibri" SIZE="5"><FONT SIZE="1">CONFIDENTIALITY NOTICE: </FONT></FONT></FONT>This e-mail message is intended only for the above named recipient(s) and may contain information that is privileged, confidential and/or exempt from disclosure under applicable law. If you have received this message in error or are not the named recipient(s), please immediately notify the sender, delete this e-mail message without making a copy and do not disclose or relay this e-mail message to anyone.<BR></FONT></FONT></FONT></FONT><BR></P>
<P CLASS="f9fee2ae-497b-43b2-afda-78bd0ed7accd"></P>
<P CLASS="f9fee2ae-497b-43b2-afda-78bd0ed7accd"></P></BODY></HTML>