CN109753462A - A kind of DMA data transfer method based on FT server PCIE interface card - Google Patents

A kind of DMA data transfer method based on FT server PCIE interface card Download PDF

Info

Publication number
CN109753462A
CN109753462A CN201711093603.0A CN201711093603A CN109753462A CN 109753462 A CN109753462 A CN 109753462A CN 201711093603 A CN201711093603 A CN 201711093603A CN 109753462 A CN109753462 A CN 109753462A
Authority
CN
China
Prior art keywords
dma
pcie
server
data
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711093603.0A
Other languages
Chinese (zh)
Inventor
徐民
马双涛
陈亮甫
刘凯
席现国
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Chaoyue CNC Electronics Co Ltd
Original Assignee
Shandong Chaoyue CNC Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Chaoyue CNC Electronics Co Ltd filed Critical Shandong Chaoyue CNC Electronics Co Ltd
Priority to CN201711093603.0A priority Critical patent/CN109753462A/en
Publication of CN109753462A publication Critical patent/CN109753462A/en
Pending legal-status Critical Current

Links

Landscapes

  • Bus Control (AREA)

Abstract

A kind of DMA data transfer method based on FT server PCIE interface card, comprising: 1) the PCIE interface based on FT server platform is connect with exterior PC IE interface board, data interaction is carried out using dma mode;2) PCIE device driver is designed, comprising: the registration and cancellation, the initialization of PCIE device and release, control function of PCIE device driving;3) PCIE rate test program is designed, comprising: realize that being written and read test and FT server to specified register writes data, reading data to PCIE interface board dma controller, and calculate the rate of read-write.The present invention realizes I/O read-write operation in such a way that the PCIE interface card to FT server takes direct memory access (DMA), to promote the read and write rate of domestic FT server Yu the data interaction of PCIE external equipment, to promote the performance of FT server.

Description

A kind of DMA data transfer method based on FT server PCIE interface card
Technical field
The present invention relates to a kind of DMA data transfer methods based on FT server PCIE interface card, belong to server count According to the technical field of transmission.
Background technique
PCIE belongs to the point-to-point binary channels high bandwidth transmission of high speed serialization, and the equipment distribution connected exclusively enjoys bandwidth chahnel, Bus bandwidth is not shared, mainly supports active power management, error reporting, end-to-end reliability transmission, hot plug and clothes The functions such as business quality (QOS).PCIE is a multi-layer protocol, by a dialogue layer, a data exchange layer and a physical layer It constitutes.Physical layer can be further divided into logical sub-layer and electrical sub layer again.Logical sub-layer can be divided into physical codes sublayer (PCS) again With M AC sublayer (MAC).
DMA (Direct Memory Access, direct memory access), it allows the hardware device of friction speed to carry out ditch It is logical, a large amount of interrupt loads without depending on CPU.It is that bus is directly administered by dma controller when realizing DMA transfer, Accordingly, there exist a bus control right branch problems.I.e. before DMA transfer, CPU gives dma controller bus control right, And after terminating DMA transfer, bus control right should be handed back to CPU immediately by dma controller again.One complete DMA transfer mistake Journey has to pass through: DMA request, DMA response, DMA transfer, DMA terminate 4 steps.
To sum up, in the art, there are no the DMA data transfer methods based on FT server PCIE interface card.
Summary of the invention
In view of the deficiencies of the prior art, the present invention provides a kind of DMA data biography based on FT server PCIE interface card Transmission method.
The present invention carries out physical connection for FT server platform and exterior PC IE interface board, is carried out using dma mode Data interaction.The present invention is taken directly by the PCIE interface card (PCIE network interface card, PCIE turn FPGA card etc.) to FT server The mode of internal storage access (DMA) realizes I/O read-write operation, hands over to promote domestic FT server and PCIE external equipment data Mutual read and write rate, to promote the performance of FT server.Dma operation is taken to realize that FT server is posted with PCIE interface board I/O read-write operation between storage, can effectively improve the throughput of data.
Technical scheme is as follows:
A kind of DMA data transfer method based on FT server PCIE interface card, comprising:
1) the PCIE interface based on FT server platform is connect with exterior PC IE interface board, is carried out using dma mode Data interaction;In order to realize that high speed data transfer using PCIE3.0x16 interface, is devised based on FT server platform PCIE Interface is connect with exterior PC IE interface board;
2) PCIE device driver is designed, comprising: the registration and cancellation, the initialization of PCIE device of PCIE device driving With release, control function;The control function includes the data for reading PCIE external equipment storage unit, PCIE is external sets for write-in Data, interruption, DMA map programming of standby storage unit etc.;
3) PCIE rate test program is designed, comprising: realization is written and read test to specified register, and the service of soaring Device writes data to PCIE interface board dma controller, reads data, and calculates the rate of read-write.
It is preferred according to the present invention, in the step 2), streaming DMA map is established using DMA map programming, to make In the system for supporting mapping register, each DMA map uses one or more mapping registers in bus.And then maximum journey Degree ground optimization performance.
It is preferred according to the present invention, the DMA data transfer method based on FT server PCIE interface card further include: Using command dma is read after being write to the PCIE interface board, the data of reading are stored in file, for verifying DMA read-write The correctness of data.
Technical advantage of the invention is as follows:
Method of the present invention is connect by PCIE with exterior PC IE interface equipment using FT server, passes through DMA Data interaction between Mapping implementation FT server and PCIE external interface board.The present invention is for FT server platform and outside Portion's PCIE interface board carries out physical connection, carries out data interaction using dma mode.The present invention passes through the PCIE to FT server Interface card (PCIE network interface card, PCIE turn FPGA card etc.) takes the mode of direct memory access (DMA) to realize I/O read-write operation, uses To promote the read and write rate of domestic FT server Yu the data interaction of PCIE external equipment, to promote the property of FT server Energy.It takes dma operation to realize the I/O read-write operation between FT server and PCIE interface board register, can effectively mention The throughput of high data.
Detailed description of the invention
Fig. 1 is in the present invention, and the dma mode data of the FT server and PCIE external equipment transmit schematic diagram;
Fig. 2 is the FT server and PCIE external equipment dma mode data transmission stream journey figure in the present invention.
Specific embodiment
The present invention is described in detail below with reference to embodiment and Figure of description, but not limited to this.
As shown in Figure 1, 2.
Embodiment,
A kind of DMA data transfer method based on FT server PCIE interface card, comprising:
1) the PCIE interface based on FT server platform is connect with exterior PC IE interface board, is carried out using dma mode Data interaction;
2) PCIE device driver is designed, comprising: the registration and cancellation, the initialization of PCIE device of PCIE device driving With release, control function;
3) PCIE rate test program is designed, comprising: realization is written and read test to specified register, and the service of soaring Device writes data to PCIE interface board dma controller, reads data, and calculates the rate of read-write.
In the step 2), streaming DMA map is established using DMA map programming, to make to support mapping register In system, each DMA map uses one or more mapping registers in bus.
The DMA data transfer method based on FT server PCIE interface card further include: Xiang Suoshu PCIE interface board Using command dma is read after writing, the data of reading are stored in file, for verifying the correctness of DMA read-write data.
Application examples,
A kind of DMA data transfer method based on FT server PCIE interface card as described embodiments, specifically includes:
1) by exterior PC IE interface board (PCIE network interface card, PCIE turn FPGA interface plate) and FT server platform PCIE3.0 Interface carries out physical connection;
2) registration that is driven by PCIE DMA data transfer driver and PCIE external equipment is examined It surveys, load (being realized by matching driving and the primary and secondary device number of driving equipment setting);After equipment loads successfully, the service of soaring Device is carried out data transmission with exterior PC IE interface board using dma mode;
3) PCIE DMA rate test example procedure is used, verifying FT server platform and PCIE device use DMA number According to interactive validity.To 0x14 register write 0x80000000, then 0x0 is write, completes to reset;Firstly, to register 0x0,0x4 It is written and read test, verifying FT server platform and PCIE register can carry out normal data transmission;Secondly, using DMA Mode executes DMA write, read operation repeatedly, and verifying realizes that FT server and PCIE external interface board data pass using dma mode Defeated reliability;Again, by sending 64KB data to PCIE device, the rate of PCIE device is written using dma mode for test;Most Afterwards, by receiving the data of PCIE device 32KB, the rate of PCIE device is read in test using dma mode;
If 4) aforesaid operations can be realized normally, the cancellation of PCIE external equipment and the cancellation of driver are executed;If Aforesaid operations are abnormal, check the setting of DMA transfer operation corresponding registers address, and repeat aforesaid operations.
The present invention can accurately and efficiently improve FT server platform and PCIE external interface data using dma mode Interactive rate.

Claims (3)

1. a kind of DMA data transfer method based on FT server PCIE interface card, which is characterized in that the data transmission method Include:
1) the PCIE interface based on FT server platform is connect with exterior PC IE interface board, data is carried out using dma mode Interaction;
2) PCIE device driver is designed, comprising: registration and cancellation, the initialization of PCIE device of PCIE device driving and release It puts, control function;
3) design PCIE rate test program, comprising: realize to specified register be written and read test and FT server to PCIE interface board dma controller writes data, reads data, and calculates the rate of read-write.
2. a kind of DMA data transfer method based on FT server PCIE interface card according to claim 1, feature It is, in the step 2), streaming DMA map is established using DMA map programming, to make the system for supporting mapping register In, each DMA map uses one or more mapping registers in bus.
3. a kind of DMA data transfer method based on FT server PCIE interface card according to claim 1, feature It is, the DMA data transfer method based on FT server PCIE interface card further include: Xiang Suoshu PCIE interface board writes it Afterwards using command dma is read, the data of reading are stored in file, for verifying the correctness of DMA read-write data.
CN201711093603.0A 2017-11-08 2017-11-08 A kind of DMA data transfer method based on FT server PCIE interface card Pending CN109753462A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711093603.0A CN109753462A (en) 2017-11-08 2017-11-08 A kind of DMA data transfer method based on FT server PCIE interface card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711093603.0A CN109753462A (en) 2017-11-08 2017-11-08 A kind of DMA data transfer method based on FT server PCIE interface card

Publications (1)

Publication Number Publication Date
CN109753462A true CN109753462A (en) 2019-05-14

Family

ID=66402165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711093603.0A Pending CN109753462A (en) 2017-11-08 2017-11-08 A kind of DMA data transfer method based on FT server PCIE interface card

Country Status (1)

Country Link
CN (1) CN109753462A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110153875A1 (en) * 2009-12-18 2011-06-23 Plx Technology, Inc. Opportunistic dma header insertion
CN105356988A (en) * 2015-10-16 2016-02-24 陕西海泰电子有限责任公司 PCIe based full duplex DMA transmission method
CN105487990A (en) * 2014-09-19 2016-04-13 中兴通讯股份有限公司 Method and device for transmitting information messages between CPU and chip
CN106844245A (en) * 2017-02-17 2017-06-13 北京腾凌科技有限公司 Data transmission method and device
CN107301140A (en) * 2017-06-27 2017-10-27 山东超越数控电子有限公司 A kind of utilization FPGA interface plate uses the method that DMA carries out data transmission

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110153875A1 (en) * 2009-12-18 2011-06-23 Plx Technology, Inc. Opportunistic dma header insertion
CN105487990A (en) * 2014-09-19 2016-04-13 中兴通讯股份有限公司 Method and device for transmitting information messages between CPU and chip
CN105356988A (en) * 2015-10-16 2016-02-24 陕西海泰电子有限责任公司 PCIe based full duplex DMA transmission method
CN106844245A (en) * 2017-02-17 2017-06-13 北京腾凌科技有限公司 Data transmission method and device
CN107301140A (en) * 2017-06-27 2017-10-27 山东超越数控电子有限公司 A kind of utilization FPGA interface plate uses the method that DMA carries out data transmission

Similar Documents

Publication Publication Date Title
US10810135B2 (en) Data transmission method, apparatus, device, and system
TWI452469B (en) Pcie mass storage device, system having the same, and method for operating the same
US9134913B2 (en) Methods and structure for improved processing of I/O requests in fast path circuits of a storage controller in a clustered storage system
CN104202197B (en) The method and apparatus of equipment management
KR101725536B1 (en) Device, method and system for operation of a low power phy with a pcie protocol stack
US7643410B2 (en) Method and apparatus for managing a connection in a connection orientated environment
CN104011696A (en) Explicit flow control for implicit memory registration
US8566416B2 (en) Method and system for accessing storage device
CN103929415A (en) Method and device for reading and writing data under RDMA and network system
EP2667296A1 (en) Method and apparatus of data processing
US8990451B2 (en) Controller for direct access to a memory for the direct transfer of data between memories of several peripheral devices, method and computer program enabling the implementation of such a controller
US8161221B2 (en) Storage system provided with function for detecting write completion
CN105357147A (en) High-speed and high-reliability network-on-chip adapter unit
CN104320317B (en) A kind of transfer approach and device of ethernet physical layer chip status
US20060095625A1 (en) Integrated circuit capable of assigning a unique identity to ATA/ATAPI devices
CN105094687B (en) Solid state disk control circuit and Ssd apparatus access system with solid state disk
US8065401B2 (en) Systems and methods for frame ordering in wide port SAS connections
CN111092830A (en) PCIE (peripheral component interface express) exchange chip port configuration system and method
US6928508B2 (en) Method of accessing a remote device from a host by mapping an address of the device to a memory address of the host
CN105786732A (en) Data access method and apparatus
CN109753462A (en) A kind of DMA data transfer method based on FT server PCIE interface card
CN103858105B (en) connection method
CN105224260A (en) A kind of transmission method of ahci interface and system
JP4175901B2 (en) Bus bridge circuit, bus connection system, and buffer control method for bus bridge circuit
CN107656894A (en) A kind of more host processing systems and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190514

WD01 Invention patent application deemed withdrawn after publication