* Unable to get stmmac driver of Altera Cyclone V to support MTU9000
@ 2015-09-22 15:49 Teoh Choon Zone
2015-09-26 20:07 ` Valdis.Kletnieks at vt.edu
0 siblings, 1 reply; 7+ messages in thread
From: Teoh Choon Zone @ 2015-09-22 15:49 UTC (permalink / raw)
To: kernelnewbies
According to the technical reference manual, Cyclone V does support jumbo
frame up to 9.6KB, which I read as it will support MTU up to 9000. But I
couldn't get it to work properly with MTU9000.
I define working as in I can ping with a packet size of 9000 bytes, e.g
"ping <host> -s 9000", the ping process just won't start when I set the MTU
anything larger then 8144. FYI, tx is running in store-and-forward mode and
rx is running in threshold mode.
Anyone know how I can tweak the stmmac driver to support MTU9000?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150922/923bdbb9/attachment.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Unable to get stmmac driver of Altera Cyclone V to support MTU9000
2015-09-22 15:49 Unable to get stmmac driver of Altera Cyclone V to support MTU9000 Teoh Choon Zone
@ 2015-09-26 20:07 ` Valdis.Kletnieks at vt.edu
2015-09-28 1:47 ` Teoh Choon Zone
0 siblings, 1 reply; 7+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2015-09-26 20:07 UTC (permalink / raw)
To: kernelnewbies
On Tue, 22 Sep 2015 23:49:18 +0800, Teoh Choon Zone said:
> I define working as in I can ping with a packet size of 9000 bytes, e.g
> "ping <host> -s 9000", the ping process just won't start when I set the MTU
> anything larger then 8144.
1) When you set the MTU, does it show up as set if you do 'ifconfig eth2'
or whatever it is?>
2) In what way *exactly* does the ping "just won't start"? Any error
messages? If you run 'strace ping' where does it look like it all goes
astray?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150926/827332af/attachment.bin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Unable to get stmmac driver of Altera Cyclone V to support MTU9000
2015-09-26 20:07 ` Valdis.Kletnieks at vt.edu
@ 2015-09-28 1:47 ` Teoh Choon Zone
2015-09-28 2:03 ` Pranay Srivastava
0 siblings, 1 reply; 7+ messages in thread
From: Teoh Choon Zone @ 2015-09-28 1:47 UTC (permalink / raw)
To: kernelnewbies
> When you set the MTU, does it show up as set if you do 'ifconfig eth2'
> or whatever it is?
I can see it being set successfully.
> In what way *exactly* does the ping "just won't start"? Any error
> messages? If you run 'strace ping' where does it look like it all goes
> astray?
When I "ping 192.168.128.99 -s 9000", what I can only see is "PING
192.168.128.99 (192.168.128.99) 9000(9028) bytes of data.", nothing else.
But when I "ping 192.168.128.99 -s 8144", I can get "8152 bytes from
192.168.128.99: icmp_req=2 ttl=64 time=1.05 ms"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150928/5af82570/attachment.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Unable to get stmmac driver of Altera Cyclone V to support MTU9000
2015-09-28 1:47 ` Teoh Choon Zone
@ 2015-09-28 2:03 ` Pranay Srivastava
2015-09-28 2:14 ` Teoh Choon Zone
0 siblings, 1 reply; 7+ messages in thread
From: Pranay Srivastava @ 2015-09-28 2:03 UTC (permalink / raw)
To: kernelnewbies
Hi Teoh,
On Mon, Sep 28, 2015 at 7:17 AM, Teoh Choon Zone
<choon-zone.teoh@vie.com.my> wrote:
>> When you set the MTU, does it show up as set if you do 'ifconfig eth2'
>> or whatever it is?
> I can see it being set successfully.
>
>
>> In what way *exactly* does the ping "just won't start"? Any error
>> messages? If you run 'strace ping' where does it look like it all goes
>> astray?
> When I "ping 192.168.128.99 -s 9000", what I can only see is "PING
> 192.168.128.99 (192.168.128.99) 9000(9028) bytes of data.", nothing else.
Have you tried the above with 8972 to instead of 9000.
> But when I "ping 192.168.128.99 -s 8144", I can get "8152 bytes from
> 192.168.128.99: icmp_req=2 ttl=64 time=1.05 ms"
>
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
--
---P.K.S
^ permalink raw reply [flat|nested] 7+ messages in thread
* Unable to get stmmac driver of Altera Cyclone V to support MTU9000
2015-09-28 2:03 ` Pranay Srivastava
@ 2015-09-28 2:14 ` Teoh Choon Zone
2015-09-28 3:39 ` Valdis.Kletnieks at vt.edu
0 siblings, 1 reply; 7+ messages in thread
From: Teoh Choon Zone @ 2015-09-28 2:14 UTC (permalink / raw)
To: kernelnewbies
> Have you tried the above with 8972 to instead of 9000.
Yes, but nothing above 8144 works.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150928/72c9644d/attachment.html
^ permalink raw reply [flat|nested] 7+ messages in thread
* Unable to get stmmac driver of Altera Cyclone V to support MTU9000
2015-09-28 2:14 ` Teoh Choon Zone
@ 2015-09-28 3:39 ` Valdis.Kletnieks at vt.edu
2015-09-28 6:14 ` Teoh Choon Zone
0 siblings, 1 reply; 7+ messages in thread
From: Valdis.Kletnieks at vt.edu @ 2015-09-28 3:39 UTC (permalink / raw)
To: kernelnewbies
On Mon, 28 Sep 2015 10:14:47 +0800, Teoh Choon Zone said:
> > Have you tried the above with 8972 to instead of 9000.
> Yes, but nothing above 8144 works.
It's possible it's a defective design, and is crippled so it can manage
8144 but not the 9000 most chipsets can do. The fact that 8144 works
is proof the chipset *does* have a concept of jumbograms - but there's
been a *lot* of misdesigned chips that have this sort of issue....
Your choices may be limited to running the subnet with an MTU of 8144, or
replacing the defective card. Have you found anything online claiming that
the card *can* specifically support MTU=9000?, or reached out to the
company?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 848 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150927/a389272a/attachment.bin
^ permalink raw reply [flat|nested] 7+ messages in thread
* Unable to get stmmac driver of Altera Cyclone V to support MTU9000
2015-09-28 3:39 ` Valdis.Kletnieks at vt.edu
@ 2015-09-28 6:14 ` Teoh Choon Zone
0 siblings, 0 replies; 7+ messages in thread
From: Teoh Choon Zone @ 2015-09-28 6:14 UTC (permalink / raw)
To: kernelnewbies
On Mon, Sep 28, 2015 at 11:39 AM, <Valdis.Kletnieks@vt.edu> wrote:
> It's possible it's a defective design, and is crippled so it can manage
> 8144 but not the 9000 most chipsets can do. The fact that 8144 works
> is proof the chipset *does* have a concept of jumbograms - but there's
> been a *lot* of misdesigned chips that have this sort of issue....
>
> Your choices may be limited to running the subnet with an MTU of 8144, or
> replacing the defective card. Have you found anything online claiming that
> the card *can* specifically support MTU=9000?, or reached out to the
> company?
>
Actually initially I can only ping up to MTU 4042, and I have clarified
with Altera, they also said that is the maximum MTU supported.
But after that I learned from the technical reference manual and play
around with the stmmac driver, if I run Tx in store-and-forward mode and Rx
in threshold mode, I can ping up to MTU 8144. And according to the TRM, the
GMAC indeed can support up to MTU 9.6KB. That's why I'm thinking maybe is
the ethernet driver has some parts need to be configured properly to suit
my particular GMAC.
In particular, I've a hunch that this is related to the FIFO size and
descriptor offset. The GMAC that I'm using has Tx and Rx FIFO size of 4kB
each and supports up to 8kB descriptor. The confusing part are the
following lines in ring_mode.c:
In functions stmmac_jumbo_frm,
desc->des2 = dma_map_single(priv->device, skb->data,
bmax, DMA_TO_DEVICE); // where bmax is 8192
desc->des3 = desc->des2 + BUF_SIZE_4KiB;
In functions stmmac_refill_desc3 and stmmac_init_desc3
p->des3 = p->des2 + BUF_SIZE_8KiB;
Although the maximum FIFO size are 8kB for both of them (verified from
descs.h), why is the offset are different?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20150928/49a0cee8/attachment.html
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-09-28 6:14 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-22 15:49 Unable to get stmmac driver of Altera Cyclone V to support MTU9000 Teoh Choon Zone
2015-09-26 20:07 ` Valdis.Kletnieks at vt.edu
2015-09-28 1:47 ` Teoh Choon Zone
2015-09-28 2:03 ` Pranay Srivastava
2015-09-28 2:14 ` Teoh Choon Zone
2015-09-28 3:39 ` Valdis.Kletnieks at vt.edu
2015-09-28 6:14 ` Teoh Choon Zone
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).