<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)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><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:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Aptos;}
@font-face
{font-family:"Segoe UI";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:12.0pt;
font-family:宋体;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
font-size:12.0pt;
font-family:宋体;}
span.EmailStyle21
{mso-style-type:personal-reply;
font-family:等线;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:616104895;
mso-list-type:hybrid;
mso-list-template-ids:153811646 450669394 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
{mso-level-text:%1);
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:18.0pt;
text-indent:-18.0pt;}
@list l0:level2
{mso-level-number-format:alpha-lower;
mso-level-text:"%2\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:44.0pt;
text-indent:-22.0pt;}
@list l0:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:66.0pt;
text-indent:-22.0pt;}
@list l0:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:88.0pt;
text-indent:-22.0pt;}
@list l0:level5
{mso-level-number-format:alpha-lower;
mso-level-text:"%5\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:110.0pt;
text-indent:-22.0pt;}
@list l0:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:132.0pt;
text-indent:-22.0pt;}
@list l0:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:154.0pt;
text-indent:-22.0pt;}
@list l0:level8
{mso-level-number-format:alpha-lower;
mso-level-text:"%8\)";
mso-level-tab-stop:none;
mso-level-number-position:left;
margin-left:176.0pt;
text-indent:-22.0pt;}
@list l0:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
margin-left:198.0pt;
text-indent:-22.0pt;}
@list l1
{mso-list-id:710423887;
mso-list-template-ids:-1653809988;}
@list l1:level1
{mso-level-start-at:4;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l2
{mso-list-id:1039282054;
mso-list-template-ids:-727137946;}
@list l3
{mso-list-id:1901557470;
mso-list-template-ids:239610208;}
@list l3:level1
{mso-level-start-at:3;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
@list l4
{mso-list-id:1914655430;
mso-list-template-ids:-1613871852;}
@list l4:level1
{mso-level-start-at:2;
mso-level-tab-stop:36.0pt;
mso-level-number-position:left;
text-indent:-18.0pt;}
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
--></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="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:等线">+dev@dpdk.org<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:等线"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div><br>
<p style="font-family:Calibri;font-size:10pt;color:#000000;margin:5pt;font-style:normal;font-weight:normal;text-decoration:none;" align="Center">
NXP Confidential<br>
</p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><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"> Jun Yang
<br>
<b>Sent:</b> Thursday, November 19, 2026 6:35 PM<br>
<b>To:</b> Vincent JARDIN <vjardin@iliad-free.fr>; Maxime Leroy <maxime@leroys.fr><br>
<b>Cc:</b> Prashant Gupta <prashant.gupta_3@nxp.com>; Hemant Agrawal <hemant.agrawal@nxp.com>; Francois Massot-Pellet <francois.massot-pellet@nxp.com><br>
<b>Subject:</b> RE: [EXT] Re: [PATCH v4-S3 52/65] net/dpaa2: bind per-queue DPIO for rx-queue interrupts<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:等线">Hi Maxime,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">Thanks for your feedback.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">The previously posted patch series is currently being reworked. We have received a significant amount of feedback from the community. Some comments point out
logical issues within the patches themselves, some identify rework or overlap between patches, and others suggest improvements to the code structure. In addition, we have found several issues through our internal reviews and testing. As a result, we plan to
resend the series, with some patches reordered, revised, or superseded by updated versions. I will notify you in advance of re-sending to dpdk.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">Now let me reply to the questions you raised:</span><span lang="EN-US" style="font-size:10.5pt;font-family:等线"><o:p></o:p></span></p>
<ol style="margin-top:0cm" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:-18.0pt;mso-list:l0 level1 lfo3">
<span lang="EN-US" style="font-size:11.0pt">The PMD changes the CPU frequency governor<o:p></o:p></span></li></ol>
<p class="MsoListParagraph" style="margin-left:18.0pt;line-height:15.0pt"><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">I will look for a better solution to reduce the core wake-up latency and will drop this patch for now. Some
customers have raised concerns about the wake-up time.<o:p></o:p></span></p>
<ol style="margin-top:0cm" start="2" type="1">
<li class="MsoListParagraph" style="margin-left:-18.0pt;mso-list:l0 level1 lfo3">
<span lang="EN-US" style="font-size:11.0pt">The Rx burst uses the lcore ID as a Linux CPU number.<o:p></o:p></span></li></ol>
<p class="MsoListParagraph" style="margin-left:18.0pt"><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">This is a valid issue, and I have already worked out a solution locally.</span><span lang="EN-US" style="font-size:11.0pt"><o:p></o:p></span></p>
<ol style="margin-top:0cm" start="3" type="1">
<li class="MsoListParagraph" style="margin-left:-18.0pt;mso-list:l0 level1 lfo3">
<span lang="EN-US" style="font-size:11.0pt">The implementation also drains any frames being pulled on the previous core before continuing processing on the new one.<o:p></o:p></span></li></ol>
<p class="MsoListParagraph" style="margin-left:18.0pt"><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">This has been worked out and will share you patches in advance of upstreaming.<o:p></o:p></span></p>
<ol style="margin-top:0cm" start="4" type="1">
<li class="MsoListParagraph" style="margin-left:-18.0pt;mso-list:l0 level1 lfo3">
<span lang="EN-US" style="font-size:11.0pt">One DPIO per Rx queue is expensive<o:p></o:p></span></li></ol>
<p class="MsoListParagraph" style="margin-left:18.0pt"><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">I understand your concern; we are simply implementing the semantics defined by the DPDK API. Since this is a per-RXQ interrupt,
we do not expect interrupt sharing. From an upstream perspective, we also prefer not to introduce additional constraints or modify common code solely to accommodate our driver. For example, we do not think users should be required to perform interrupt operations
on a datapath lcore, nor should they have to follow a specific sequence of operations for the driver to work correctly. Currently, our driver can be supported without any changes to the common/example code.<o:p></o:p></span></p>
<p class="MsoListParagraph" style="margin-left:18.0pt"><span lang="EN-US" style="font-size:10.5pt;font-family:"Segoe UI",sans-serif">Regarding the resource concern you mentioned, we can certainly provide other options to address it. My point is simply that
not all users require so many resources, so the implementation should not impose such requirements on everyone. However, we will certainly provide an upstreaming alternative option to accommodate your use case.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoListParagraph" style="margin-left:18.0pt"><span lang="EN-US" style="font-size:10.5pt;font-family:等线"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.5pt;font-family:等线"><o:p> </o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt">
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><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"> Vincent JARDIN <<a href="mailto:vjardin@iliad-free.fr">vjardin@iliad-free.fr</a>>
<br>
<b>Sent:</b> Thursday, November 19, 2026 6:07 PM<br>
<b>To:</b> Maxime Leroy <<a href="mailto:maxime@leroys.fr">maxime@leroys.fr</a>>; Jun Yang <<a href="mailto:jun.yang@nxp.com">jun.yang@nxp.com</a>><br>
<b>Cc:</b> Prashant Gupta <<a href="mailto:prashant.gupta_3@nxp.com">prashant.gupta_3@nxp.com</a>>; Hemant Agrawal <<a href="mailto:hemant.agrawal@nxp.com">hemant.agrawal@nxp.com</a>>; Francois Massot-Pellet <<a href="mailto:francois.massot-pellet@nxp.com">francois.massot-pellet@nxp.com</a>><br>
<b>Subject:</b> Re: [EXT] Re: [PATCH v4-S3 52/65] net/dpaa2: bind per-queue DPIO for rx-queue interrupts<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" align="left" width="100%" style="width:100.0%">
<tbody>
<tr>
<td style="background:#FFB900;padding:5.0pt 2.0pt 5.0pt 2.0pt"></td>
<td width="100%" style="width:100.0%;background:#FFF8E5;padding:5.0pt 4.0pt 5.0pt 12.0pt">
<p class="MsoNormal" style="mso-element:frame;mso-element-frame-hspace:2.25pt;mso-element-wrap:around;mso-element-anchor-vertical:paragraph;mso-element-anchor-horizontal:column;mso-height-rule:exactly">
<b><span lang="EN-US" style="color:#222222">Caution:</span></b><span lang="EN-US" style="color:#222222"> This is an external email. Please take care when clicking links or opening attachments. When in doubt, report the message using the 'Report this email'
button <o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Aptos",sans-serif;color:#212121">+Francois for information <o:p></o:p></span></p>
<div id="ms-outlook-mobile-body-separator-line">
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Aptos",sans-serif"><o:p> </o:p></span></p>
</div>
<div id="ms-outlook-mobile-signature">
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Aptos",sans-serif;color:#212121"><o:p> </o:p></span></p>
</div>
<div class="MsoNormal" align="center" style="text-align:center"><span lang="EN-US">
<hr size="1" width="98%" align="center">
</span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black">From:</span></b><span lang="EN-US" style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:black"> Maxime Leroy <<a href="mailto:maxime@leroys.fr">maxime@leroys.fr</a>><br>
<b>Sent:</b> Thursday, 19 November 2026 10:49:52<br>
<b>To:</b> Jun Yang <<a href="mailto:jun.yang@nxp.com">jun.yang@nxp.com</a>><br>
<b>Cc:</b> Prashant Gupta <<a href="mailto:prashant.gupta_3@nxp.com">prashant.gupta_3@nxp.com</a>>; Hemant Agrawal <<a href="mailto:hemant.agrawal@nxp.com">hemant.agrawal@nxp.com</a>>; Vincent JARDIN <<a href="mailto:vjardin@iliad-free.fr">vjardin@iliad-free.fr</a>><br>
<b>Subject:</b> Re: [EXT] Re: [PATCH v4-S3 52/65] net/dpaa2: bind per-queue DPIO for rx-queue interrupts</span><span lang="EN-US">
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"> <o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt">Hi Jun,<br>
<br>
My review was sent to <a href="mailto:dev@dpdk.org">dev@dpdk.org</a>, and your reply came to me only.<br>
Please answer on the mailing list, not in private: the other reviewers<br>
and the maintainers need to see your answers. If you cannot disclose<br>
something, for example the maximum number of DPIOs, just leave it out<br>
of your public answer.<br>
<br>
On Fri, Nov 13, 2026 at 2:34</span><span lang="EN-US" style="font-size:11.0pt;font-family:"Times New Roman",serif"> </span><span lang="EN-US" style="font-size:11.0pt">PM Jun Yang <<a href="mailto:jun.yang@nxp.com">jun.yang@nxp.com</a>> wrote:<br>
><br>
> Hi Maxime,<br>
> We are still working on categorizing and improving our upstream patches. Regarding the issue you raised, please see my comments below:<br>
> 1</span><span style="font-size:11.0pt">)<span lang="EN-US">The PMD changes the CPU frequency governor<br>
> The CPU frequency governor is controlled through a devarg and is disabled by default. Users must explicitly enable this feature; otherwise, the driver does not modify the CPU frequency governor.<br>
<br>
I do not find this devarg in v4-S3. 47/65 changes the governor from<br>
dpaa2_event_portal_io_prepare() in the eventdev driver. 52/65 moves the<br>
call to dpaa2_dpio_intr_thread_affinity() and also calls it from the Rx<br>
bursts. There is no condition:<br>
<br>
ret = dpaa2_dpio_cpufreq_governor(dpio_dev->cpu_affine, false);<br>
<br>
A devarg does not fix the problem anyway. Please remove this code. The<br>
design is wrong:<br>
<br>
- The governor belongs to the CPU, not to the port. The admin and<br>
the application can change it too. On LX2160A it is even shared<br>
by the two cores of a cluster.<br>
- DPDK already has rte_power for this. It has no qoriq_cpufreq<br>
backend today: adding one in drivers/power is the right fix.<br>
- A user who wants "performance" can set it with one command<br>
before starting the application.<br>
<br>
And the implementation is broken:<br>
<br>
1. cpu_affine is a DPDK lcore id, not a Linux CPU number (see<br>
point 2), so the PMD can change the governor of another CPU.<br>
2. The save is per CPU, but the policy is per cluster. Queue 0 on<br>
CPU 2 saves "schedutil". Queue 1 on CPU 3 then reads<br>
"performance" and saves that. After close, the cluster stays<br>
in "performance".<br>
3. No reference count: two ports polled by the same CPU, closing<br>
the first one restores the governor under the second one.<br>
4. A queue moves from CPU A to CPU B: only B is restored.<br>
5. A queue that was never polled has cpu_affine = -1: closing the<br>
port restores every CPU that the PMD changed, including those<br>
used by other ports.<br>
6. The governor is written through sysfs inside rte_eth_rx_burst().<br>
<br>
<br>
><br>
> 2</span>)<span lang="EN-US">The Rx burst uses the lcore ID as a Linux CPU number<br>
> Rx queues can be migrated dynamically between cores. After each migration, the driver updates the interrupt affinity and the stash core accordingly.<br>
<br>
My concern is not the migration. It is the number given to the kernel:<br>
<br>
int ret, num_rx = 0, cpu = rte_lcore_id();<br>
[...]<br>
dpio->cpu_affine = cpu;<br>
dpaa2_dpio_intr_thread_affinity(dpio);<br>
<br>
cpu_affine is a DPDK lcore id, but it is used as a Linux CPU number for<br>
the IRQ affinity, the stashing destination and the governor. Example<br>
with --lcores '1@12': lcore 1 runs on CPU 12, and all three are set for<br>
CPU 1.<br>
<br>
grout is in this case: each worker is a thread pinned to its CPU, then<br>
it calls rte_thread_register(), and EAL gives it the first free lcore<br>
id, whatever its CPU.<br>
<br>
dpaa2_get_core_id() is in the same file and returns the CPU of the<br>
calling thread. Please use it in dpaa2_dpio_intr_thread_affinity().<br>
<br>
This code also still runs inside rte_eth_rx_burst(): it parses<br>
/proc/interrupts, writes /proc/irq/N/smp_affinity_list and sends an MC<br>
command. Please set the IRQ affinity in<br>
dpaa2_dev_rx_queue_intr_enable() instead<br>
<br>
><br>
> The implementation also drains any frames being pulled on the previous core before continuing processing on the new one.<br>
<br>
I do not find this drain in v4-S3. I only see the loop that was already<br>
in 26.07, now in dpaa2_dev_rx_active_dq_storage(). It waits for the VDQ<br>
of the previous core to complete. It does not read the frames.<br>
<br>
Those frames are in q_storage[A]. B pulls into q_storage[B] and reads<br>
only q_storage[B]. Can you point me to the code that reads them?<br>
<br>
<br>
> 3</span>)<span lang="EN-US">One DPIO per Rx queue is expensive<br>
> The hardware currently supports up to 67 DPIO portals in total. If your deployment requires more portals than the hardware can provide under this model, we can evaluate and discuss possible compatibility or scalability alternatives.<br>
<br>
On our LX2160A board I can create 65 DPIOs, not 67: 50 from the DPL,<br>
then 15 more with restool before the MC refuses.<br>
<br>
The two models do not spend them the same way:<br>
<br>
- 26.07: two DPIOs per worker, whatever the number of ports and Rx<br>
queues. Only the DPCONs follow the queues, and they are not<br>
scarce: I can create 174 of them on the same board.<br>
- this patch: one DPIO per worker, plus one DPIO per Rx queue.<br>
<br>
Our case: 12 workers, 5 ports, 12 Rx queues per port.<br>
<br>
26.07 this patch<br>
workers 24 12<br>
main thread 1 1<br>
per Rx queue 0 60<br>
total for DPDK 25 73<br>
<br>
73 is more than the 65 of the board, before the kernel takes its own.<br>
<br>
The limits are probably lower on the other DPAA2 SoCs, so the new<br>
approach could be even worse there.<br>
<br>
The only gain I see in the code is that the fd of the queue is known at<br>
rx_queue_setup(), so the application can call<br>
rte_eth_dev_rx_intr_ctl_q() before rte_eth_dev_rx_intr_enable(). My<br>
l3fwd-power series already handles that in two patches (3/6 and 4/6).<br>
The rest of the series still applies to your model: for example the<br>
enable still returns -EAGAIN, and l3fwd-power does not check it today.<br>
<br>
Without a benefit, I do not understand the point of this change. Please<br>
tell me what the benefit is, so that we can weigh the trade-off between<br>
the two approaches.<br>
<br>
Thanks,<br>
<br>
-------------------------------<br>
Maxime Leroy<br>
<a href="mailto:maxime@leroys.fr">maxime@leroys.fr</a><o:p></o:p></span></span></p>
</div>
</div>
</div>
</body>
</html>