Nikita

Nikita

1个粉丝

35

问答

0

专栏

1

资料

Nikita  发布于  2016-04-28 20:50:51
采纳率 0%
35个问答
4939

hi3516a, hieth_gmac, jumbo frames (mtu > 1500)

 
Hello!

Are there any way to increase mtu (> 1500) for hi3516a hieth?

I have tried to set 0x1009003c to 0x1fff , it is register MAX_FRM_SIZE. I added custom mtu change function, so I can use ifconfig eth0 mtu 1550 for example.
But, I have such error:

[code]
# ping 192.168.250.1 -s 1500
PING 192.168.250.1 (192.168.250.1): 1500 data by------------[ cut here ]------------
WARNING: at drivers/net/ethernet/hieth-gmac/ctrl.c:358 higmac_check_tx_err+0x64/0xb8()
TX ERR: desc1=0x82562802, desc2=0x6060050,desc4=0x0, desc5=0x2
Modules linked in: hi_mipi(O) hi3516a_adec(PO) hi3516a_aenc(PO) hi3516a_ao(PO) hi3516a_ai(PO) hi3516a_aio(PO) acodec(PO) pwm(O) sensor_i2c(O) hi3516a_ive(PO) hi3516a_vda(PO) hi3516a_jpege(PO) hi3516a_h265e(PO) hi3516a_h264e(PO) hi3516a_chnl(PO) hi3516a_venc(PO) hi3516a_rc(PO) hi3516a_vpss(PO) hi3516a_viu(PO) hi3516a_isp(PO) hi3516a_vgs(PO) hi3516a_region(PO) hi3516a_tde(PO) hi3516a_sys(PO) hi3516a_base(PO) hi_media(O) mmz(O)
Backtrace:
[] (dump_backtrace+0x0/0x110) from [] (dump_stack+0x18/0x1c)
r6:c02f99b0 r5:00000009 r4:c0565d68 r3:c0570900
[] (dump_stack+0x0/0x1c) from [] (warn_slowpath_common+0x5c/0x6c)
[] (warn_slowpath_common+0x0/0x6c) from [] (warn_slowpath_fmt+0x38/0x40)
r8:00000000 r7:c1e9d3c0 r6:ffdd97e0 r5:c1da8bc0 r4:ffdd97e0
r3:00000009
[] (warn_slowpath_fmt+0x0/0x40) from [] (higmac_check_tx_err+0x64/0xb8)
r3:82562802 r2:c051304c
[] (higmac_check_tx_err+0x0/0xb8) from [] (higmac_xmit_release_gso+0x17c/0x188)
r5:c1e9d3c0 r4:ffdd97e0
[] (higmac_xmit_release_gso+0x0/0x188) from [] (higmac_xmit_release_skb+0x10c/0x260)
[] (higmac_xmit_release_skb+0x0/0x260) from [] (higmac_bfproc_recv+0x2c/0x314)
[] (higmac_bfproc_recv+0x0/0x314) from [] (tasklet_action+0x70/0xc0)
[] (tasklet_action+0x0/0xc0) from [] (__do_softirq+0xc4/0x154)
r7:c059b9c0 r6:c059b9dc r5:00000018 r4:00000001
[] (__do_softirq+0x0/0x154) from [] (irq_exit+0x54/0x5c)
[] (irq_exit+0x0/0x5c) from [] (handle_IRQ+0x44/0x8c)
[] (handle_IRQ+0x0/0x8c) from [] (gic_handle_irq+0x30/0x58)
r6:c0565f28 r5:fe402000 r4:c056c050 r3:00000039
[] (gic_handle_irq+0x0/0x58) from [] (__irq_svc+0x40/0x50)
Exception stack(0xc0565f28 to 0xc0565f70)
5f20:                   00000000 00000000 00000000 00000000 c0564000 c05940c8
5f40: c0564000 c056f648 c0564000 410fc075 00000000 c0565f7c c0565f80 c0565f70
5f60: c000f3fc c000f400 60000013 ffffffff
r6:ffffffff r5:60000013 r4:c000f400 r3:c000f3fc
[] (default_idle+0x0/0x38) from [] (cpu_idle+0x7c/0xb8)
[] (cpu_idle+0x0/0xb8) from [] (rest_init+0x74/0x78)
r8:c0633300 r7:ffffffff r6:c056c000 r5:00000000 r4:c056c650
r3:00000000
[] (rest_init+0x0/0x78) from [] (start_kernel+0x2c0/0x2cc)
[] (start_kernel+0x0/0x2cc) from [<80008040>] (0x80008040)
---[ end trace 405eacb3ab79faac ]---
higmac_check_tx_err,364: sg_desc word[0]=0x0
higmac_check_tx_err,364: sg_desc word[1]=0x0
higmac_check_tx_err,364: sg_desc word[2]=0x0
higmac_check_tx_err,364: sg_desc word[3]=0x0
higmac_check_tx_err,364: sg_desc word[4]=0x0
higmac_check_tx_err,364: sg_desc word[5]=0x0
higmac_check_tx_err,364: sg_desc word[6]=0x0
higmac_check_tx_err,364: sg_desc word[7]=0x0
higmac_check_tx_err,364: sg_desc word[8]=0x0
higmac_check_tx_err,364: sg_desc word[9]=0x0
higmac_check_tx_err,364: sg_desc word[10]=0x0
higmac_check_tx_err,364: sg_desc word[11]=0x0
higmac_check_tx_err,364: sg_desc word[12]=0x0
higmac_check_tx_err,364: sg_desc word[13]=0x0
higmac_check_tx_err,364: sg_desc word[14]=0x0
higmac_check_tx_err,364: sg_desc word[15]=0x0
higmac_check_tx_err,364: sg_desc word[16]=0x0
higmac_check_tx_err,364: sg_desc word[17]=0x0
higmac_check_tx_err,364: sg_desc word[18]=0x0
higmac_check_tx_err,364: sg_desc word[19]=0x0
higmac_check_tx_err,364: sg_desc word[20]=0x0
higmac_check_tx_err,364: sg_desc word[21]=0x0
higmac_check_tx_err,364: sg_desc word[22]=0x0
higmac_check_tx_err,364: sg_desc word[23]=0x0
higmac_check_tx_err,364: sg_desc word[24]=0x0
higmac_check_tx_err,364: sg_desc word[25]=0x0
higmac_check_tx_err,364: sg_desc word[26]=0x0
higmac_check_tx_err,364: sg_desc word[27]=0x0
higmac_check_tx_err,364: sg_desc word[28]=0x0
higmac_check_tx_err,364: sg_desc word[29]=0x0
higmac_check_tx_err,364: sg_desc word[30]=0x0
higmac_check_tx_err,364: sg_desc word[31]=0x0
higmac_check_tx_err,364: sg_desc word[32]=0x0
higmac_check_tx_err,364: sg_desc word[33]=0x0
higmac_check_tx_err,364: sg_desc word[34]=0x0
higmac_check_tx_err,364: sg_desc word[35]=0x0
higmac_check_tx_err,364: sg_desc word[36]=0x0
higmac_check_tx_err,364: sg_desc word[37]=0x0
higmac_check_tx_err,364: sg_desc word[38]=0x0
higmac_check_tx_err,364: sg_desc word[39]=0x0
[/code]

Also, I have tried to turn off TSO, way like this:

higmac.h:

[code]#define HIGMAC_DRIVER_NAME        "hi_gmac_v200"

//#define HIGMAC_TSO_DEBUG
/* #undef HIGMAC_TSO_DEBUG */
//#define HIGMAC_TSO_SUPPORTED
/* #undef HIGMAC_TSO_SUPPORTED */
#ifdef HIGMAC_TSO_SUPPORTED
#include "tso.h"
#endif
[/code]

But when TSO is turned off, I can`t send any packet :-(

So, I am still looking for any chance to use jumbo frames. Any help?
我来回答
回答3个
时间排序
认可量排序

zhuangweiye

8个粉丝

0

问答

0

专栏

0

资料

zhuangweiye 2016-04-29 09:29:40
认可0

I think modifying the register 0x1009003c to 0x1fff is not a good idea.

in higmac.h
#define HIETH_MAX_FRAME_SIZE        (1600+128)

Could you change HIETH_MAX_FRAME_SIZE in higmac.h ?

Nikita

1个粉丝

35

问答

0

专栏

1

资料

Nikita 2016-04-29 16:13:31
认可0
Hello!

I have tried it, but max value for HIETH_MAX_FRAME_SIZE is 2^11 (about 2000). And it doesn`t affect anything.
Seems hi3516a hardware doesn`t support frames more than 1500, because of TCO.

lichen

0个粉丝

0

问答

0

专栏

0

资料

lichen 2018-07-18 10:25:05
认可0
貌似hi3516a不支持巨帧吧。It seems that hi3516a does not support jumbo frame,:Q
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区