Does Imx6Q FEC has hardware checksum function

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Does Imx6Q FEC has hardware checksum function

890件の閲覧回数
antzhao
Contributor I

Hi All

     there is

        /* Controller has hardware checksum support */

          #define FEC_QUIRK_HAS_CSUM                (1 << 5)

     in linux 3.10.17/53


     and

         .name = "imx6q-fec",

          .driver_data = FEC_QUIRK_ENET_MAC | FEC_QUIRK_HAS_GBIT |

                       FEC_QUIRK_HAS_BUFDESC_EX | FEC_QUIRK_HAS_CSUM |

                        FEC_QUIRK_HAS_VLAN | FEC_QUIRK_ERR006358 |

                        FEC_QUIRK_BUG_WAITMODE,

that is the FEC can do hardware checksum,but it does not work!

which register control this ? and How can I set the register ?

thanks.



ラベル(2)
タグ(2)
0 件の賞賛
3 返答(返信)

650件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi ant

yes i.MX6 ENET (FEC) can do hardware checksum, for example refer to

sect.23.5.9 Receive Control Register (ENET_RCR) IMX6DQRM

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛

650件の閲覧回数
antzhao
Contributor I

Thanks for your answer.

But are  ENET_RACC and ENET_TACC about hardware checksum.

In Kernel,there ard some codes

/* set RX checksum */

  val = readl(fep->hwp + FEC_RACC);

  if (fep->csum_flags & FLAG_RX_CSUM_ENABLED)

  val |= FEC_RACC_OPTIONS;

  else

  val &= ~FEC_RACC_OPTIONS;

  writel(val, fep->hwp + FEC_RACC);

If

.driver_data = | FEC_QUIRK_HAS_CSUM


Rx will do checksum,But The kernel does not do checksum for Tx.

there are not any codes about TACC.


So if I want do hard checksum for Tx ,What should I do?

I set TACC[PROCHK] and TACC[IPCHK] to 1,But it does not work.


Thanks again!

0 件の賞賛

650件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

MX6QD  RM  p.1108.jpg

0 件の賞賛