PCIe Data Transmission Switching Register and DMA by Packet Size

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing PCIE data transmission methods suffer from low bandwidth utilization and stability issues due to reduced performance when transmitting small packets using DMA, leading to frequent CPU interrupts and host instability.

Innovation Solution

A method that determines the length of PCIE data packets, using a base address register and protocol converter for packets below a preset length and DMA for packets above, optimizing data transmission efficiency and stability by avoiding DMA for small packets.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If DMA is used for transmitting small packets, then data transmission can be performed, but bandwidth utilization rate is seriously reduced and performance is wasted

Engineering Contradiction:
Improvedata transmission capabilityVSAvoidbandwidth utilization rate
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent changes the transmission parameter (DMA usage) based on packet size. For small packets (below threshold), register-based transmission is used instead of DMA, while for large packets (above threshold), DMA is used. This parameter change resolves the contradiction by optimizing the transmission method according to packet characteristics.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent applies different transmission qualities/methods to different packet sizes. Small packets use register-based transmission with direct address writing, while large packets use DMA transmission. This local differentiation resolves the contradiction by matching the transmission method to the specific requirements of each packet size category.

Inventive Principle:
Principle #3Local quality

2Productivity

If DMA is used for transmitting small data packets, then data can be transferred, but a large number of interrupts are generated to the CPU causing host to hang and reducing stability

Engineering Contradiction:
Improvedata transfer capabilityVSAvoidhost stability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent introduces a threshold parameter to distinguish between small and large packets. When packet size is below the threshold, register-based transmission is used which does not generate interrupts. This parameter-based differentiation resolves the contradiction by eliminating interrupts for small packets while maintaining data transfer capability.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent extracts the interrupt generation mechanism from small packet transmission by using register-based writing instead of DMA. This separation removes the harmful interrupt effect for small packets while preserving the data transfer function, thus resolving the contradiction between transfer capability and host stability.

Inventive Principle:
Principle #2Taking out (Extraction)

3Adaptability or versatility

If DMA is used for all packet sizes, then data transmission is unified, but bandwidth utilization is low and performance is wasted on small packets

Engineering Contradiction:
Improvetransmission method uniformityVSAvoidperformance efficiency
Core Design Contradiction:
Adaptability or versatilityVSProductivity

Solution Approach 1:

The patent applies different transmission qualities to different packet sizes: register-based transmission for small packets and DMA for large packets. This local differentiation optimizes performance for each packet size category while maintaining overall system adaptability.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent changes the transmission method parameter based on packet size threshold. By comparing packet length against a threshold, the system dynamically selects the appropriate transmission method (register or DMA), resolving the contradiction between uniformity and efficiency.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20250225091A1Method and related apparatus for PCIE data transmission
Publication Date: 2025.07.10 INSPUR SUZHOU INTELLIGENT TECH CO LTD
  • US20250225091A1 patent drawing
  • US20250225091A1 patent drawing
  • US20250225091A1 patent drawing

AI summary

The present disclosure provides a method for PCIE data transmission. The method includes: determining whether the length of a PCIE data packet to be transmitted is less than a preset length; when it is determined that the length of the PCIE data packet is less than the preset length, performing data transmission on the PCIE data packet by means of a space of a base address register and a protocol converter; and when it is determined that the length of the PCIE data packet is greater than or equal to the preset length, performing data reading/writing on the PCIE data packet in a DMA manner. Therefore, the utilization rate of a PCIE bandwidth is improved, and the running reliability of a host is improved.