<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 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:DengXian;
        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:"\@DengXian";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@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 lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Krishnakumar:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m not an expert on SGX, but as I know there are many limitations to running code in the SGX enclave due to security considerations. usually, the DMA should be setup outside of the SGX, so I guess you should not run rte_eal_init within
 SGX.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards<o:p></o:p></p>
<p class="MsoNormal">Qi<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></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 #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Sudharshan Krishnakumar <sudhar.ckrishna@gmail.com>
<br>
<b>Sent:</b> Saturday, March 5, 2022 5:38 AM<br>
<b>To:</b> dev@dpdk.org; users@dpdk.org; Yang, Qiming <qiming.yang@intel.com>; Zhang, Qi Z <qi.z.zhang@intel.com><br>
<b>Subject:</b> regarding Intel E810<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi All,<o:p></o:p></p>
<div>
<p class="MsoNormal">I am using Intel E810 with DPDK v20.11, with ethernet ports bound to DPDK(vfio-pci). <o:p></o:p></p>
<div>
<p class="MsoNormal">Running DPDK software libraries within a secure-enclave(Intel SGX technology) sandbox environment,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">and running into an issue during rte_eal_init invocation.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">During launch of DPDK application(examples/packet_ordering), when rte_eal_init gets called, <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">it results in a probe of ethernet devices,which invokes ICE(Intel E810 NIC) Poll-Mode-Driver(PMD) apis.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
When ICE PMD driver sends command to NIC(Network Interface Card),to get firmware version, <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">it times out in this api-> ice_sq_send_cmd_nolock().<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Question-> Can someone point me to any Intel documentation for E810, <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">that describes how ICE PMD(or any software driver) can communicate with E810 NIC's firmware,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">like what registers to write the command, and how to check for the response from firmware.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><br>
Question-> Also, is there any other alternate way(other than ethtool), to check if firmware received the command,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">and what was the status of the last command processed by firmware. <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Note: Even if there is a way to check firmware command status thro ethtool, <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I cant use ethtool,since ports are bound to DPDK.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<br>
Sudha<o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</body>
</html>