PCI (peripheral component interconnect) resource traversal method and system

A PCI device and PCI bus technology, applied in the field of PCI resource traversal, can solve problems such as resource waste, instability, and failure to read, and achieve the effect of saving resources and reducing resource waste

Active Publication Date: 2012-12-26
ROPEOK TECHNOLOGY GROUP CO LTD
View PDF5 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although these two methods have the least number of traversals and do not waste time scanning for non-existing PCI devices, they have unstable factors.
When reading and writing PCI system files repeatedly, if a certain stress test level is reached, some data in the configuration space of some PCI devices cannot be read sometimes.
Moreover, the lspci tool not only has the function of traversal, but also has other functions that may not be used, so there is also a waste of resources
This is a bad choice for factory test mode where the test system size is critical

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • PCI (peripheral component interconnect) resource traversal method and system
  • PCI (peripheral component interconnect) resource traversal method and system
  • PCI (peripheral component interconnect) resource traversal method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] Such as figure 1 As shown, it is a structure diagram of a preferred embodiment of the PCI resource traversal system of the present invention.

[0020] The PCI resource traversal system 20 runs on the computer 10 . The PCI resource traversal system 20 includes an acquisition module 1 200 , a scanning module 201 , a recording module 202 , a judgment module 1 203 , a judgment module 2 204 , an acquisition module 2 205 and an editing module 206 .

[0021] PCI resources include PCI buses and PCI devices. There is one PCI main bus, usually bus 0. The topology structure of the PCI resource is composed of a PCI main bus, a PCI device connected to the PCI main bus, a secondary PCI bus on the bridging device, and a PCI device connected to the secondary PCI bus. The PCI devices that can be connected to the primary PCI bus and the secondary PCI bus range from 0 to 31, wherein the PCI devices can be bridge cards (ie, bridge devices), network cards, sound cards, or display cards. ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

A PCI (peripheral component interconnect) resource traversal method comprises the following steps of: according to a PCI data structure stored in a kernel system, acquiring data information of a PCI main bus, and setting the PCI main bus as a current PCI bus; scanning all PCI devices under the current PCI bus; recording all the PCI devices, recording relevant information of positions of the PCI devices at the PCI bus into a single data structural body; judging whether bridges exist in the PCI devices; when the bridges exist in the PCI devices, judging whether all the bridges are not connected with downlink buses; and when the bridges are connected with the downlink buses, acquiring the downlink buses connected on all the bridges one by one, and setting the downlink buses as the current PCI buses one by one. The invention further provides a PCI resource traversal system. Through the PCI resource traversal method and the PCI resource traversal system, PCI resource traversal can be quickly realized, and resources of a computer can be saved safely and reliably.

Description

technical field [0001] The invention relates to a PCI resource traversal method and system. Background technique [0002] PCI, the full name is Peripheral Component Interconnect, a peripheral component interconnection standard, which is a standard used to define a local bus. For servers and storage systems, the PCI bus occupies most of the resources and is one of the most important test points in manufacturing. The most important thing to do in the test is to ensure the integrity of the PCI bus in the operating system, so how to obtain all the PCI bus resources of the operating system is the key. [0003] The usual traversal method is to scan all possible buses in the operating system, as well as all possible devices under each bus and all possible functions under each device, so that a complete PCI resource traversal of the operating system needs to scan 256*32* 8 times. Although this traversal method can ensure that no PCI devices are missed, it has the problem of too m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/22
Inventor 童钰
Owner ROPEOK TECHNOLOGY GROUP CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products