飞腾1000A处理器网络驱动的实现和优化
发布时间:2018-04-01 01:33
本文选题:飞腾处理器 切入点:DMA 出处:《国防科学技术大学》2013年硕士论文
【摘要】:飞腾1000A微处理器是国防科学技术大学计算机学院自主研制的一款高性能通用微处理器,它采用SPARC v9指令集,芯片内集成4个64位处理器核,每核8线程,主频达到1GHz~1.2GH。芯片上还集成了大量的外围接口,如以太网接口、SATA接口、USB接口、串口、I2C接口等I/O接口。具有性能高、功耗低、可靠性高等优点,主要面向服务器、桌面及高端嵌入式系统等应用领域。该处理器芯片内部集成了网络控制器IP,但缺乏相应的控制器驱动程序,由于飞腾平台的特殊性,linux下的网卡驱动程序经过移植仍然不能在飞腾平台上正常的工作,因此需要重新开发出一款适合飞腾1000A微处理器的网络驱动程序。随着高速互连网络的发展,网络应用对网络性能的要求不断提升,设备驱动程序不仅要在功能上达要到应用的实际需求,而且要在性能方面也要达到常用的千兆网络环境的使用需求,因此还需要对完成的驱动程序进行优化,以满足当下的不断增长的网络性能的要求。本文通过研究飞腾处理器网络控制器相关的硬件原理以及linux下设备驱动框架的知识,设计和实现飞腾1000A微处理器中网络控制器的驱动,并针对飞腾1000A的特点进行了优化。在研究的过程中,提出了飞腾平台下的网络驱动程序的整体架构,提出了基于DMA描述符环的网络数据包的收发机制,并在此基础上完成了驱动程序的基本功能。再结合飞腾1000A微处理器平台的特点,提出了一系列的驱动程序优化的方法,如:IP头地址对齐、中断和轮询混合的接收机制、使用软件进行分片的技术,使得系统的网络性能得到了很大的提升。经过对系统网络性能的峰值测试和对比测试,表明当前系统网络已经达到了千兆网络环境的使用需求,基本上完成了预期的工作任务。在对完成的驱动程序的网络性能和功能的测试中,发现了之前的优化方法的一些缺陷,也提出了针对缺陷的一些解决的构想,虽然未实现,但对于后续的持续改进工作有很大的指导意义。最让人遗憾的是,此次驱动未能发挥飞腾处理器的多核多线的优点,因此在论文的最后提出了RFS和RPS的技术,希望在之后的研究中能将这两个技术运用在驱动程序中,充分发挥飞腾处理器多核多线的优点,使得网络性能得到更大的提升。
[Abstract]:Feiten1000A microprocessor is a high performance general-purpose microprocessor developed by the computer School of National University of National Defense Science and Technology. It uses SPARC v9 instruction set and integrates 4 64 bit processor cores with 8 threads per core with a main frequency of 1 GHz / 1.2GH.A large number of peripheral interfaces are also integrated on the chip, such as Ethernet interface, SATA interface, USB interface, serial port, I2C interface, and so on.It has the advantages of high performance, low power consumption and high reliability. It is mainly oriented to server, desktop and high-end embedded systems.The processor chip has integrated the network controller IPs, but it lacks the corresponding controller drivers. Because of the particularity of the Flying platform, the network card drivers under Linux still can not work normally on the Flying platform after transplanting.Therefore, it is necessary to develop a new network driver for Flying 1000 A microprocessor.With the development of high speed interconnection network, the requirement of network application for network performance is increasing. The device driver should not only meet the actual demand of application in function,In order to meet the requirements of the commonly used gigabit network environment, we also need to optimize the driver to meet the requirements of the growing network performance.In this paper, we design and implement the network controller driver in Fiteng 1000A microprocessor by studying the hardware principle of FITT processor network controller and the knowledge of device driver framework under linux, and optimize the characteristics of Flying 1000A microprocessor.In the process of research, the whole architecture of network driver based on Flying platform is put forward, and the mechanism of sending and receiving network data packets based on DMA descriptor ring is put forward, and the basic function of the driver is completed.Combined with the characteristics of Feiten1000A microprocessor platform, a series of driver optimization methods are put forward, such as: IP header address alignment, interrupt and polling mixed receiving mechanism, using software slicing technology,The network performance of the system has been greatly improved.Through the peak test and contrast test of the system network performance, it is shown that the current system network has met the requirements of the gigabit network environment, and has basically completed the expected work tasks.In the testing of the network performance and function of the completed driver, we found some defects in the previous optimization method, and put forward some ideas to solve the defect, although it was not realized,However, it has great guiding significance for the follow-up continuous improvement work.The most regrettable thing is that the driver has not been able to take advantage of the multi-core and multi-wire features of the Flying processor. Therefore, at the end of this paper, the technologies of RFS and RPS are proposed, and it is hoped that these two technologies can be used in the driver program in the future research.The advantages of multi-core and multi-wire are brought into full play and the network performance is greatly improved.
【学位授予单位】:国防科学技术大学
【学位级别】:硕士
【学位授予年份】:2013
【分类号】:TP332
【共引文献】
相关期刊论文 前2条
1 郑翔;岳浩岭;;嵌入式Linux系统下CC1101的驱动与应用[J];单片机与嵌入式系统应用;2014年02期
2 张俊;马云飞;姚萌萌;;IKE框架实现和功能扩充的研究[J];电脑知识与技术;2014年02期
相关硕士学位论文 前2条
1 张枭波;基于Linux平台的多机器人系统移动自组织网络研究与实现[D];西南交通大学;2014年
2 毛若羽;基于MAC层的轨道交通快速切换研究[D];南京大学;2014年
,本文编号:1693397
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/1693397.html