<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:宋体;
        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:等线;
        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:"\@等线";
        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;}
/* 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:等线;}
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;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:宋体;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:宋体;}
span.EmailStyle19
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:等线;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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" style="color:#1F497D">Hi Honnappa,</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">The attachment is our current r8168pmd code for RTL8111/8168 Giga series
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">(currently 8111G, 8111H are supported, we will add others later)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">I will contact the SoC vendor to consult you about this issue and let you know some details about that SoC<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Thanks a lot!<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">BRs<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="color:#1F497D">Xing Wang<o:p></o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" align="left" style="text-align:left"><b><span style="font-size:11.0pt">发件人<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11.0pt"> Honnappa Nagarahalli [mailto:Honnappa.Nagarahalli@arm.com]
<br>
</span><b><span style="font-size:11.0pt">发送时间<span lang="EN-US">:</span></span></b><span lang="EN-US" style="font-size:11.0pt"> 2022</span><span style="font-size:11.0pt">年<span lang="EN-US">8</span>月<span lang="EN-US">25</span>日<span lang="EN-US"> 22:41<br>
</span><b>收件人<span lang="EN-US">:</span></b><span lang="EN-US"> </span>王星<span lang="EN-US"> <xing_wang@realsil.com.cn>; dev@dpdk.org<br>
</span><b>抄送<span lang="EN-US">:</span></b><span lang="EN-US"> </span>陈立<span lang="EN-US"> <dali_chen@realsil.com.cn>;
</span>王颢<span lang="EN-US"> <howard_wang@realsil.com.cn>; Ruifeng Wang <Ruifeng.Wang@arm.com>; nd <nd@arm.com>; nd <nd@arm.com><br>
</span><b>主题<span lang="EN-US">:</span></b><span lang="EN-US"> RE: about RTL8168 PMD on ARM SoC<o:p></o:p></span></span></p>
</div>
</div>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">               I cannot find many details of the SoC on the internet. Does it use coherent IO? Depending on that, different barriers
 might be needed. Other than this, I would not think it needs anything special.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">If you could send an RFC to the DPDK mailing list, I am happy to review and provide any feedback.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Thanks,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US">Honnappa<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal" align="left" style="text-align:left"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">
</span><span style="font-size:11.0pt;font-family:宋体">王星</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <</span><span lang="EN-US"><a href="mailto:xing_wang@realsil.com.cn"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">xing_wang@realsil.com.cn</span></a></span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">>
<br>
<b>Sent:</b> Wednesday, August 24, 2022 9:53 PM<br>
<b>To:</b> </span><span lang="EN-US"><a href="mailto:dev@dpdk.org"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">dev@dpdk.org</span></a></span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"><br>
<b>Cc:</b> </span><span style="font-size:11.0pt;font-family:宋体">陈立</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <</span><span lang="EN-US"><a href="mailto:dali_chen@realsil.com.cn"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">dali_chen@realsil.com.cn</span></a></span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">>;
</span><span style="font-size:11.0pt;font-family:宋体">王颢</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif"> <</span><span lang="EN-US"><a href="mailto:howard_wang@realsil.com.cn"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">howard_wang@realsil.com.cn</span></a></span><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif">><br>
<b>Subject:</b> about RTL8168 PMD on ARM SoC<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" align="left" style="text-align:left"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Hi DPDK,<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">I am a pmd driver developer from Realtek NIC department,
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">when I was porting r8168pmd already verified on x86 to an ARM64 SoC Unisoc: UIS8650<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I found that after NIC Rx init (in general, Rx ring and buffers should have been prepared for NIC to DMA read),
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">the NIC status reg showed RDU (Rx Descriptor Unavailable), which means NIC cannot read the proper desc content,<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">later I sended some packets to NIC hold by testpmd rx_only mode, HW internal Rx packet counter can grow to some value, then stuck, 8168pmd Rx debug print reported it received less packets than that value, and the print
 showed up even some minutes later!<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">I doubt the phenomenon is caused by improper HW-based IO coherency support on this ARM SoC,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I have read the ARM SoC support list on DPDK website, to name it: NV Bluefield, NXP DPAA, Marvell Octeon TX
</span>…<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">Does DPDK (or UIO/VFIO driver or hugetlb driver) need special HW IO cache coherency support on ARM platform, say, ACE and Device side MMU etc?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Should the SoC provide specialized UIO/VFIO driver or hugetlb driver and/or specific DPDK lib to support such user mode DMA?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Will you please give<span style="color:#1F497D">
</span>suggestions, thanks a lot!<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">BRs<o:p></o:p></span></p>
</div>
<p><span lang="EN-US"><br>
------Please consider the environment before printing this e-mail.<o:p></o:p></span></p>
</div>
</body>
</html>