<div class="__aliyun_email_body_block"><div  style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun"><div  style="clear: both; font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span  style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><br ></span></div><div  style="clear: both; font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span  style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;">Hi,</span></div><div  style="clear: both; font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><span  style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"></span><span >Regarding your question about whether the lib and module are upstreamed already, I would like to clarify their current status:</span><div  style="clear: both;">Both libmcruntime.so and the corresponding gdrapi libraries are proprietary user-space libraries provided by Metax. They are not upstreamed to the DPDK mainline repository.</div><span >However, please rest assured that the current patch interacts with them via standard dlopen (dynamic loading) at runtime. We do not link directly against their source code or require them as hard build-time dependencies. Therefore, this approach will not introduce any additional compilation dependencies or licensing issues to the DPDK main tree.</span><div ></div><span  style="font-family: Tahoma, Arial, STHeitiSC-Light, SimSun;"><br ></span></div><blockquote  _quote="1" style="margin-right: 0px; margin-top: 0px; margin-bottom: 0px; font-family: Tahoma, Arial, STHeiti, SimSun; font-size: 14px; color: rgb(0, 0, 0);"><div  class="alimail-quote"><div  style="clear: both;">------------------------------------------------------------------</div><div  style="clear: both;">发件人:Thomas Monjalon <thomas@monjalon.net></div><div  style="clear: both;">发送时间:2026年6月9日(周二) 18:44</div><div  style="clear: both;">收件人:"许玲燕"<lingyan.xu@metax-tech.com></div><div  style="clear: both;">抄 送:dev<dev@dpdk.org>; eagostini<eagostini@nvidia.com></div><div  style="clear: both;">主 题:Re: 回复:[PATCH] gpu/metax: add new driver for Metax GPU</div><div  style="clear: both;"><br ></div>Thank you for the detailed answer and your understanding.<br ><br >One more question: are the lib and module upstreamed already?<br ><br ><br >09/06/2026 12:22, 许玲燕:<br >> Hi,<br >> Thank you for the detailed feedback and for reviewing the proposal for the Metax GPU driver.<br >> Based on the questions raised and the analysis of the code implementation, here are the clarifications and my action plan:<br >> 1. Regarding GPU Access Method<br >> The driver interfaces with the Metax GPU hardware through a combination of the vendor-provided MC Runtime (Metax Compute Runtime) library and GDRCopy (GPU Direct RDMA) technology.<br >> <br >>  * <br >> User-space Library: As seen in the maca.c code, the driver dynamically loads (dlopen) the libmcruntime.so library. It uses mc_runtime_api.h to manage GPU contexts, memory allocation, and device attributes.<br >> <br >>  * <br >> Kernel Module: The driver relies on the underlying Metax kernel driver (for PCI probing and basic device access) and the gdrapi (GDRCopy) kernel module to facilitate zero-copy data transfer between CPU and GPU memory.<br >> <br >>  * <br >> Dependency: The build log confirms the detection of headers like mc_runtime_api.h and gdrapi.h, which are essential for this integration.<br >> 2. Clarification on "Rendering" Functionality<br >> I apologize for the confusion caused by the term "Rendering" in the initial description. Upon reviewing the code and your feedback, I realize this was an inaccurate choice of words.<br >> <br >>  * <br >> Correction: The intended functionality is purely "Compute/Data Processing" and "Memory Management".<br >> <br >>  * <br >> Explanation: The driver's core logic (as shown in the patch) focuses on memory registration, allocation, and CPU/GPU data synchronization (via maca_mem_cpu_map and gdrcopy_pin), which are essential for network data processing acceleration rather than graphical rendering. I will correct this terminology in the documentation to avoid further confusion.<br >> 3. Action Plan: Following the Contribution Guide<br >> I have reviewed the <"Adding a New Driver"> guide you linked.<br >> <br >>  * <br >> Patch Splitting: I understand that the current monolithic patch is not suitable. I will rework the submission and split it into a logical patch series:<br >>  * <br >> Patch 1: Add the basic infrastructure (Meson files, maintainers, configuration).<br >> <br >>  * <br >> Patch 2: Implement core device functionality (PCI probing, initialization, context management).<br >> <br >>  * <br >> Patch 3: Add memory management and data path features (allocation, registration, and CPU mapping).<br >> Thank you again for your guidance. I will resubmit the revised patch series shortly.<br >> Best regards,<br >> Lingyan Xu<br >> ------------------------------------------------------------------<br >> 发件人:Thomas Monjalon <thomas@monjalon.net><br >> 发送时间:2026年6月2日(周二) 18:01<br >> 收件人:"许玲燕"<lingyan.xu@metax-tech.com><br >> 抄 送:dev<dev@dpdk.org>; eagostini<eagostini@nvidia.com><br >> 主 题:Re: [PATCH] gpu/metax: add new driver for Metax GPU<br >> Hello,<br >> 01/06/2026 07:47, 许玲燕:<br >> > I am writing to propose a new driver for the Metax GPU,<br >> How do you access the GPU?<br >> Are you using a specific library or kernel module?<br >> > which I believe will significantly enhance our support<br >> > and performance for this hardware.<br >> > The patch attached includes the initial implementation of the driver,<br >> > with key features such as:<br >> > <br >> > * Basic initialization and configuration <br >> > * Memory management and allocation <br >> > * Core functionality for rendering and compute tasks <br >> I am familiar with connecting compute tasks of a GPU<br >> with DPDK networking, but I'm surprised by the rendering functionality.<br >> Do you mean graphical rendering of data coming from the network?<br >> > Please review the code and let me know if you have any feedback or suggestions.<br >> > I am more than happy to make any necessary adjustments and improvements.<br >> Thank you for working on this.<br >> I recommend following this guide to introduce a new driver:<br >> <a  href="https://doc.dpdk.org/guides/contributing/new_driver.html" target="_blank">https://doc.dpdk.org/guides/contributing/new_driver.html</a> <<a  href="https://doc.dpdk.org/guides/contributing/new_driver.html" target="_blank">https://doc.dpdk.org/guides/contributing/new_driver.html</a> ><br >> <br >> <br >>     超大附件列表            dpdk-build-test-log.txt  [48KB]<br >>         进入下载页面  <a  href="https://qiye.aliyun.com/alimail/openLinks/downloadMimeMetaDiskBigAttach?id=netdiskid%3Av001%3Afile%3ADzzzzzzNqZx%3BJYiJwCficINAoHh55iyjKdydQzW5hDE%2FGjddF2Xp4ghl2ujmlGlWdfhgNCLOb5s3BZAHvDXTdZhtzGA3q8HJ%2Fv%2FPGnrPJfO1Xc%2BWnHr%2FKRwIkHzWFe5Iwm1IZrurr9hW" target="_blank">https://qiye.aliyun.com/alimail/openLinks/downloadMimeMetaDiskBigAttach?id=netdiskid%3Av001%3Afile%3ADzzzzzzNqZx%3BJYiJwCficINAoHh55iyjKdydQzW5hDE%2FGjddF2Xp4ghl2ujmlGlWdfhgNCLOb5s3BZAHvDXTdZhtzGA3q8HJ%2Fv%2FPGnrPJfO1Xc%2BWnHr%2FKRwIkHzWFe5Iwm1IZrurr9hW</a>    <br >> <br ><br ><br ><br ></div></blockquote><div  style="line-height: 20px; clear: both;"><br ></div></div></div>
<div style="clear: both;"><p style="color: #000000;white-space: normal;"><span style="font-family: times new roman;"><span style="color: #999999;font-size: 10.0px;">本电子邮件及其包含的相关文件含有沐曦相关的保密信息,仅限于发送给上面地址中列出的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!</span><br/></span></p><p><span style="white-space: normal;color: #999999;font-size: 10.0px;font-family: times new roman;">This e-mail and its<span> </span><span style="color: #999999;white-space: normal;"> documents </span><span> </span>contain confidential information related to Metax, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient(s) is strictly prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! </span></p><p><br style="color: #000000;font-family: helvetica , microsoft yahei , verdana;font-size: 14.0px;font-style: normal;font-variant-ligatures: normal;font-variant-caps: normal;font-weight: 400;letter-spacing: normal;orphans: 2;text-align: start;text-indent: 0.0px;text-transform: none;white-space: normal;widows: 2;word-spacing: 0.0px;-webkit-text-stroke-width: 0.0px;text-decoration-thickness: initial;text-decoration-style: initial;text-decoration-color: initial;"/></p></div>