Unlock instant, AI-driven research and patent intelligence for your innovation.

PCI 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: 2017-06-27
ROPEOK TECHNOLOGY GROUP CO LTD
View PDF5 Cites 0 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 resource traversal method and system
  • PCI resource traversal method and system
  • PCI 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 resource traversal method, comprising: obtaining the data information of the PCI main bus according to the PCI data structure stored in the kernel system, and setting the PCI main bus as the current PCI bus; scanning all PCI devices under the current PCI bus; recording all For PCI devices, record the relevant information about the position of the PCI bus where the PCI devices are located in a single data structure; judge whether there is a bridge device in the PCI device, and if there is a bridge device in the PCI device, then judge whether all the bridge devices are on None of the downlink buses are connected, and when there are downlink buses connected to the bridging device, the downlink buses connected to all the bridging devices are obtained one by one, and all the downlink buses are set as the current PCI bus one by one. The invention also provides a PCI resource traversal system. The invention can quickly realize the traversal of PCI resources, and can save computer resources 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 Patents(China)
IPC IPC(8): G06F11/22
Inventor 杨友城
Owner ROPEOK TECHNOLOGY GROUP CO LTD