CN104820646A - PCIE (peripheral component interface express) device dynamic scanning method supporting multi RC (remote control) in Linux system - Google Patents
PCIE (peripheral component interface express) device dynamic scanning method supporting multi RC (remote control) in Linux system Download PDFInfo
- Publication number
- CN104820646A CN104820646A CN201510269974.4A CN201510269974A CN104820646A CN 104820646 A CN104820646 A CN 104820646A CN 201510269974 A CN201510269974 A CN 201510269974A CN 104820646 A CN104820646 A CN 104820646A
- Authority
- CN
- China
- Prior art keywords
- steps
- controller
- pcie
- bus
- pcie device
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/20—Handling requests for interconnection or transfer for access to input/output bus
- G06F13/22—Handling requests for interconnection or transfer for access to input/output bus using successive scanning, e.g. polling
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0024—Peripheral component interconnect [PCI]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Bus Control (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a PCIE (peripheral component interface express) device dynamic scanning method supporting multi RC (remote control) in a Linux system. The PCIE device dynamic scanning method supporting the plurality of the multi RC in the Linux system includes: electrifying the Linux system, distributing continuous bus number resources to each RC controller according to the number of RC controllers of the Linux system, traversing each RC controller exists in the Linux system, recording bus number information corresponding to each RC controller to a global array, and deleting a default PCIE device or a default PCIE bridge device in each RC controller so as to release resources distributed by the Linux system in a default mode, and the RC controller root bus number as a judgement standard to scan or unload the PCIE device dynamic according to corresponding RC controller bus number information recorded in the global array. By adopting the PCIE device dynamic scanning method supporting the plurality of the multi RC in the Linux system, expandability of the Linux system is improved due to the fact that each RC controller and PCIE bridge device are newly distributed the continuous bus number resources, and safety of the Linux system is improved due to the fact that the scanning or unloading of the PCIE device under the RC controller root bus number is controlled separately, and simultaneously, stability of the Linux system is enhanced due to the fact that a linkage state is detected and controlled the scanning process.
Description
Technical field
The present invention relates to embedded system applied technical field, be specifically related under linux system, support many RC (Root complex, root assembly) PCIE (Peripheral Component InterconnectExpress, high speed peripheral component interlinkage) equipment dynamic scan method.
Background technology
At present, linux system is widely used in embedded product exploitation, along with the development of embedded technology, the integrated level of product design is also more and more higher, in high-end communication facilities, embedded Linux system needs to support polytype PCIE device, and some PCIE device need to configure its power supply according to certain sequential again after system normally starts, clock could normally work; Some PCIE device need to unload when system is normally run.
Usual linux system kernel can autoscan PCIE device when starting, and configures and the resource such as Bus number, address, interruption of distribution system for it; And linux system when starting once be assigned with resource for PCIE device, even if so add in system operation or be configured with new PCIE device, when system does not reset, these resources be assigned with also can not change, to such an extent as to influential system is to the support of the PCIE device of dynamic load, cause system can not support the dynamic load of PCIE device, seriously constrain extendability and the practicality of system, especially for can not power down to need for the equipment of online expanded function impact with being serious for a long time, such as backbone network communicating node device.
In order to the dynamic scan of PCIE device can be supported, meet specific installation node high stability, the requirement of extensibility, the way of current industry is by realizing operations such as the dynamic scan of PCIE device and unloadings to the access of the traditional sysfs file subsystem of linux system, realize the long-term uninterrupted Function Extension of business site or the function of upgrading, as shown in Figure 2, in such scheme, after the good PCI subsystem of linux kernel initialization, user sends order by sysfs file subsystem, inside check user command to resolve, then corresponding device scan or unloading behaviour is performed, related command example is as follows:
Scanning PCIE device order example:
echo 1>/sys/bus/pci/slots/0001\:03\:00.0/power;
Unloading PCIE device order example:
echo 0>/sys/bus/pci/slots/0001\:03\:00.0/power。
As shown in Figure 1, in embedded Linux system, during kernel power-up initializing, PCIE bus is adopted to the scanning algorithm of depth-first, for the system comprising multiple RC, kernel can be followed successively by the algorithm assigns Bus number resource of each RC according to depth-first, system is depth-first traversal first RC first, is assigned with Bus number 0 and 1; Then depth-first traversal second RC, is assigned with Bus number 2 and 3; Last depth-first traversal the 3rd RC, is assigned with Bus number 4,5,6,7,8,9,10 and 11.
And there is following defect in the program:
(1) widely using along with PCIE device, PCIE device of today may include bridge sheet, multi-level bus can be produced in PCIE device dynamic scan process, there is the processor system of multiple RC, because such scheme does not consider that multiple RC or PCIE bridge device dynamically adds systematic difference scene, now adopt such scheme to carry out PCIE device dynamic scan scheme and can produce multi-level bus address conflict, cause PCIE device cannot normal load to the serious consequence of system, visible, such scheme effectively cannot be applied to the system that comprises multiple RC and comprise in the complication system of PCIE bridge device, solve dynamic scan in PCIE bus or hot-swappable and so on problem,
(2) because some RC controller access to PCIE device has certain constraint condition, such as require PCIE peripheral hardware to exist and physical link out of question or power on time EP equipment must be ready, because such scheme is not optimized control to RC main equipment physical link, when EP physical link state changes, may scan less than PCIE device when being carried out PCIE device scanning by sysfs file subsystem, or cause system crash, not only cause less stable, also for needing dynamic-configuration electrifying timing sequence in embedded system, the PCIE device of work clock cannot be supported, only the dynamic scan just linking normal EP equipment at power up phase is suitable for, the dynamic scan of most PCIE bridge down going port equipment cannot be applicable to, constrain the range of application of such scheme, its range of application is narrowed,
(3) along with the Highgrade integration of communication system, the business board application of dynamic expansion Backbone Core node is more and more extensive, a lot of business board is all dynamically add in system in the mode of PCIE subcard, some subcard may also with multistage PCIE bridge sheet, and above-mentioned PCIE device dynamic scan scheme can not realize the PCIE device dynamic scan of multistage PCIE bridge sheet;
(4) such scheme does not effectively protect root bus, when after unloading RC root bus, cannot recover, poor stability when not resetting.
Summary of the invention
Technical matters to be solved by this invention is the dynamic scan of existing PCIE device and Unloading Technology extensibility is low, safety and stability is poor problem.
In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is to provide a kind of PCIE device dynamic scan method supporting many RC under linux system, comprises the following steps:
When system electrification initialization, the each RC controller existed in Ergodic Theory, be that each RC controller distributes continuous print Bus number resource according to the RC controller number of system, record Bus number information corresponding to each RC controller to overall array, and the PCIE device given tacit consent under each RC controller in deletion system or PCIE bridge device, with the resource of delivery system default allocation;
According to the RC controller bus information corresponding to recording in overall array, and with RC controller root bus for criterion carries out PCIE device dynamic scan or unloading.
In the above-mentioned methods, the concrete grammar being each RC controller distribution continuous print Bus number resource according to the RC controller number of system is:
Bus number number under the RC controller finally traveled through is 256 divided by the integral part of the business of the number of RC controller in system and complementing part sum;
Bus number number under all the other each RC controllers is 256 divided by the integral part of the business of the number of RC controller in system.
In the above-mentioned methods, system electrification initialization specifically comprises the following steps:
Steps A 101, linux system kernel initialization;
Steps A 102, be that each RC controller distributes continuous print Bus number resource according to the RC controller number of system;
The each RC controller existed in steps A 103, successively depth optimization Ergodic Theory, and record Bus number information corresponding to each RC controller to overall array;
Steps A 104, detect each RC controller under whether there is PCIE device or PCIE bridge device, if exist, perform steps A 105; Otherwise, perform steps A 106
The PCIE device given tacit consent under each RC controller in steps A 105, deletion system or PCIE bridge device, with the resource of delivery system default allocation, then perform steps A 106;
Steps A 106, the traversal having judged whether all RC controllers, if so, then perform steps A 107; Otherwise, perform steps A 103, travel through next RC controller;
Steps A 107, initialization terminate.
In the above-mentioned methods, carry out PCIE device dynamic scan specifically to comprise the following steps:
Steps A 201, PCIE device dynamic scan start;
Under whether the PCIE device that steps A 202, detection scan directly hangs over RC controller, if so, steps A 203 is performed; Otherwise perform steps A 205;
Whether the connection status of steps A 203, inspection PCIE device physical link is normal, if link is normal, performs steps A 204; Otherwise, the error message returned operation failure;
The inner core body linking status information flag of steps A 204, this RC controller main equipment of amendment kernel;
Whether this PCIE device of steps A 205, detection scanning is PCIE bridge device, if so, then performs steps A 206; Otherwise perform steps A 208;
Steps A 206, according to the RC controller bus information corresponding to recording in overall array, be that each down going port of PCIE bridge device and equipment thereof distribute continuous print Bus number resource;
Steps A 207, scan each down going port and equipment thereof with depth-priority-searching method, and the Bus number information recording each down going port and equipment thereof is to overall array, then performs steps A 209;
Steps A 208, scanning PCIE device, and be its distribution bus resource according to the RC controller bus information corresponding to recording in overall array;
Steps A 209, PCIE device dynamic scan terminate.
In the above-mentioned methods, in steps A 206, the concrete grammar distributing continuous print Bus number resource for each down going port of PCIE bridge device and equipment thereof is:
Bus number number of resources under the RC controller that PCIE bridge device is corresponding deducts Bus number number that the Bus number number, the PCIE bridge device that are taken by RC controller root bus take and the Bus number number that PCIE bridge device up going port takies, then divided by the integral part of the number business of this PCIE bridge device down going port and complementing part sum is; The Bus number number of all the other down going port is the integral part of business.
In the above-mentioned methods, carry out PCIE device dynamic offloading specifically to comprise the following steps:
Steps A 301, PCIE device dynamic offloading start;
Whether steps A 302, detection need the PCIE device of unloading direct below RC controller root bus, if so, perform steps A 303; Otherwise, perform steps A 307;
Steps A 303, whether be PCIE bridge device, if so, perform steps A 304 if detecting this PCIE device; Otherwise, perform steps A 306;
Each down going port equipment and down going port bus resource under steps A 304, recurrence unloading PCIE bridge device;
Steps A 305, unloading PCIE bridge device and up going port bus, and other all resources that delivery system distributes, then perform steps A 308;
Steps A 306, unloading PCIE device, all resources except Bus number that delivery system distributes, then perform steps A 308;
Steps A 307, directly from system, unload PCIE device, and the resource such as address, interruption, Bus number that release is relevant to PCIE device, then execution steps A 308;
Steps A 308, PCIE device dynamic offloading terminate.
In the above-mentioned methods, carry out PCIE device dynamic scan or unload being realized by two kinds of modes, be respectively command line mode and interface function mode.
The present invention is by redistributing continuous print Bus number resource for RC controller each in system and PCIE bridge device, solve prior art and cannot be supported in the problem of PCIE device or PCIE bridge device being carried out under many RC to dynamic scan or unloading, when ensure that PCIE device or PCIE bridge device dynamically add system under multiple RC controller, there is the continuous Bus number resource enough used under each RC controller, improve the extensibility of system; By controlling separately direct PCIE device under RC controller root bus or the scanning of PCIE bridge device or unloading, prevent the situation occurring carrying out RC controller root bus maloperation when scanning or unloading PCIE device, improve the security of system, and by enhancing the stability of system to the detection control scanning process of PCIE device linking status under RC controller.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that under many RC system, prior art systems bus resource distributes;
Fig. 2 is the process flow diagram of existing techniques in realizing dynamic scan scheme;
The Bus number Resourse Distribute schematic diagram of Fig. 3 to be the number N of RC controller provided by the invention be embodiment of 3;
Fig. 4 is the process flow diagram of linux system kernel initialization in the present invention;
Fig. 5 is the process flow diagram carrying out PCIE device dynamic scan in the present invention;
Fig. 6 is the process flow diagram carrying out PCIE device dynamic offloading in the present invention.
Embodiment
Below in conjunction with Figure of description and specific embodiment, the present invention is described in detail.
The invention provides a kind of PCIE device dynamic scan method supporting many RC under linux system, comprise the following steps:
Linux system kernel initialization is carried out after the first step, system electrification, amendment PCIE bus assignment, be that each RC controller distributes continuous print Bus number resource according to the RC controller number of system, the each RC controller existed in Ergodic Theory, record Bus number information corresponding to each RC controller to overall array, and the PCIE device given tacit consent under each RC controller in deletion system or PCIE bridge device, with the resource of delivery system default allocation.
In the present invention, for the Bus number number of each RC controller distribution is according to the RC controller number N flexible allocation of system, during to ensure that PCIE bridge device dynamically adds system under multiple RC, have the continuous Bus number resource enough used under each RC controller, wherein N is positive integer; System can be run its normal load, be specially: the Bus number number under each RC controller is 256 to round divided by the number of RC controller in system, Bus number number under the RC controller finally traveled through need add 256 with the complementing part of the business of RC controller number, the embodiment being 3 with the number of RC controller in system is below specifically described it.
The Bus number Resourse Distribute schematic diagram of Fig. 3 to be the number N of RC controller be embodiment of 3, due to N=3 in the present embodiment, Bus number number of resources then under each RC controller is 256 to round divided by 3, namely the Bus number number of resources under each RC controller is 85, and the Bus number number of resources under last RC controller is 86; After system electrification starts, first first RC controller RC1 is carried out to the traversal of depth-first, distribution bus number 0 and 1, Bus number resource is 0-84; Then second RC controller RC2 is carried out to the traversal of depth-first, distribution bus numbers 85 and 86, Bus number resource is 85-169; Finally first RC controller RC3 is carried out to the traversal of depth-first, distribution bus numbers 170,171,172,173,193,213,214 and 233, Bus number resource is 170-255.
As shown in Figure 4, linux system kernel initialization specifically comprises the following steps:
Steps A 101, linux system kernel initialization;
Steps A 102, be that each RC controller distributes continuous print Bus number resource according to the RC controller number of system;
The each RC controller existed in steps A 103, successively depth optimization Ergodic Theory, and record Bus number information corresponding to each RC controller to overall array;
Steps A 104, detect each RC controller under whether there is PCIE device or PCIE bridge device, if exist, perform steps A 105; Otherwise, perform steps A 106
The PCIE device given tacit consent under each RC controller in steps A 105, deletion system or PCIE bridge device, with the resource of delivery system default allocation, then perform steps A 106;
Steps A 106, the traversal having judged whether all RC controllers, if so, then perform steps A 107; Otherwise, perform steps A 103, travel through next RC controller;
Steps A 107, initialization terminate.
Second step, according to the RC controller bus information corresponding to recording in overall array, and with RC controller root bus for criterion carries out PCIE device dynamic scan or unloading.
As shown in Figure 5, in second step, carry out PCIE device dynamic scan, specifically comprise the following steps:
Steps A 201, PCIE device dynamic scan start;
Under whether steps A 202, the PCIE device first detecting scanning directly hang over RC controller, if so, steps A 203 is performed; Otherwise, perform steps A 205;
Whether the connection status of steps A 203, inspection PCIE device physical link is normal, if link is normal, performs steps A 204; Otherwise the error message returned operation failure, now also can directly to this RC controller root bus structure body state of amendment kernel;
The inner core body linking status information flag of steps A 204, this RC controller main equipment of amendment kernel;
Whether this PCIE device of steps A 205, detection scanning is PCIE bridge device, if so, then performs steps A 206; Otherwise perform steps A 208;
Steps A 206, according to the RC controller bus information corresponding to recording in overall array, be that each down going port of PCIE bridge device and equipment thereof distribute continuous print Bus number resource;
In the present invention, the Bus number number that each down going port of PCIE bridge device distributes continuous print Bus number resource distributes according to this PCIE bridge device down going port flexible number, down going port number is more, the Bus number number of resources of distributing for it is more, inside due to PCIE bridge device realizes the scanning algorithm also following PCIE device depth-first, so also need reserved continuous print Bus number resource for PCIE bridge device down going port; The concrete grammar distributing continuous print Bus number resource for each down going port of PCIE bridge device and equipment thereof is:
Bus number number of resources under the RC controller that PCIE bridge device is corresponding deducts Bus number number that the Bus number number, the PCIE bridge device that are taken by RC controller root bus take and the Bus number number that PCIE bridge device up going port takies, again divided by the number of this PCIE bridge device down going port, the integral part of this business is each down going port Bus number number; The integral part of this business and complementing part sum are the Bus number number of the down going port finally traveled through.
As shown in Figure 3, carry PCIE bridge device under last RC controller, visible in this embodiment, and this PCIE bridge device has a up going port, four down going port; According to the Bus number distribution method under RC controller, 86 Bus number resources are had under last RC controller, because RC controller root bus takies a Bus number, PCIE bridge device takies a Bus number, PCIE bridge device up going port takies a Bus number, so the Bus number resource that PCIE bridge device four down going port in this embodiment take jointly is 86 deduct 3, have 83, so the Bus number number of a down going port is 83 to round divided by 4, it is 20, the Bus number number of last down going port also to add 83 divided by 4 remainder 3, be 23.
Visible, in the present invention, system is the reserved continuous Bus number resource as much as possible of down going port of each RC controller and PCIE bridge device, when the PCIE device under RC controller or PCIE bridge device down going port changes, would not Bus number layout before influential system and distribution during depth-priority-searching method distribution bus again according to PCIE agreement, ensure that the dirigibility of dynamic scan and the extensibility of system.
Steps A 207, scan each down going port and equipment thereof with depth-priority-searching method, and the Bus number information recording each down going port and equipment thereof is to overall array, then performs steps A 209;
Steps A 208, scanning PCIE device, and be its distribution bus resource according to the RC controller bus information corresponding to recording in overall array;
Steps A 209, PCIE device dynamic scan terminate.
The present invention is by the Link State of PCIE device under detection RC controller root bus, determine whether PCIE device is scanned according to testing result again, effectively prevent the system crash problem that the inappropriate scanning of RC controller root bus is produced, strengthen the reliability of system.
As shown in Figure 6, in second step, carry out PCIE device dynamic offloading, specifically comprise the following steps:
Steps A 301, PCIE device dynamic offloading start;
Whether steps A 302, detection need the PCIE device of unloading direct below RC controller root bus, if so, perform steps A 303; Otherwise, perform steps A 307;
Steps A 303, whether be PCIE bridge device, if so, perform steps A 304 if detecting this PCIE device; Otherwise, perform steps A 306;
Each down going port equipment and down going port bus resource under steps A 304, recurrence unloading PCIE bridge device;
Steps A 305, unloading PCIE bridge device and up going port bus, and other all resources that delivery system distributes, then perform steps A 308;
Steps A 306, unloading PCIE device, all resources except Bus number that delivery system distributes, then perform steps A 308;
Steps A 307, directly from system, unload PCIE device, and the resource such as address, interruption, Bus number that release is relevant to PCIE device, then execution steps A 308;
Steps A 308, PCIE device dynamic offloading terminate.
In the present invention, judge to decide how to be for further processing by carrying out inspection to root bus during PCIE device unloading, prevent the situation occurring by mistake deleting RC controller root bus during unloading PCIE device, strengthen the security of system.
In the present invention, initialization operation only performs once after the power-up, dynamic scan or the unloading of PCIE device can perform repeatedly infinite according to application demand, and dynamic scan or the unloading of carrying out PCIE device can be realized by two kinds of modes, this two kinds of mode command line modes and interface function mode, command line mode can perform at user's space dynamic scan or the unloading that particular command realizes PCIE device; Interface function mode can facilitate application personnel to scan dynamically as required in the application or unloading PCIE device.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then the present invention is also intended to comprise these change and modification.
Claims (7)
1. under linux system, support the PCIE device dynamic scan method of many RC, it is characterized in that, comprise the following steps:
When system electrification initialization, be that each RC controller distributes continuous print Bus number resource according to the RC controller number of system, the each RC controller existed in Ergodic Theory, record Bus number information corresponding to each RC controller to overall array, and the PCIE device given tacit consent under each RC controller in deletion system or PCIE bridge device, with the resource of delivery system default allocation;
According to the RC controller bus information corresponding to recording in overall array, and with RC controller root bus for criterion carries out PCIE device dynamic scan or unloading.
2. the method for claim 1, is characterized in that, according to the concrete grammar that the RC controller number of system is each RC controller distribution continuous print Bus number resource is:
Bus number number under the RC controller finally traveled through is 256 divided by the integral part of the business of the number of RC controller in system and complementing part sum;
Bus number number under all the other each RC controllers is 256 divided by the integral part of the business of the number of RC controller in system.
3. the method for claim 1, is characterized in that, system electrification initialization specifically comprises the following steps:
Steps A 101, linux system kernel initialization;
Steps A 102, be that each RC controller distributes continuous print Bus number resource according to the RC controller number of system;
The each RC controller existed in steps A 103, successively depth optimization Ergodic Theory, and record Bus number information corresponding to each RC controller to overall array;
Steps A 104, detect each RC controller under whether there is PCIE device or PCIE bridge device, if exist, perform steps A 105; Otherwise, perform steps A 106
The PCIE device given tacit consent under each RC controller in steps A 105, deletion system or PCIE bridge device, with the resource of delivery system default allocation, then perform steps A 106;
Steps A 106, the traversal having judged whether all RC controllers, if so, then perform steps A 107; Otherwise, perform steps A 103, travel through next RC controller;
Steps A 107, initialization terminate.
4. the method for claim 1, is characterized in that, carries out PCIE device dynamic scan and specifically comprises the following steps:
Steps A 201, PCIE device dynamic scan start;
Under whether the PCIE device that steps A 202, detection scan directly hangs over RC controller, if so, steps A 203 is performed; Otherwise perform steps A 205;
Whether the connection status of steps A 203, inspection PCIE device physical link is normal, if link is normal, performs steps A 204; Otherwise, the error message returned operation failure;
The inner core body linking status information flag of steps A 204, this RC controller main equipment of amendment kernel;
Whether this PCIE device of steps A 205, detection scanning is PCIE bridge device, if so, then performs steps A 206; Otherwise perform steps A 208;
Steps A 206, according to the RC controller bus information corresponding to recording in overall array, be that each down going port of PCIE bridge device and equipment thereof distribute continuous print Bus number resource;
Steps A 207, scan each down going port and equipment thereof with depth-priority-searching method, and the Bus number information recording each down going port and equipment thereof is to overall array, then performs steps A 209;
Steps A 208, scanning PCIE device, and be its distribution bus resource according to the RC controller bus information corresponding to recording in overall array;
Steps A 209, PCIE device dynamic scan terminate.
5. method as claimed in claim 4, is characterized in that, in steps A 206, the concrete grammar distributing continuous print Bus number resource for each down going port of PCIE bridge device and equipment thereof is:
Bus number number of resources under the RC controller that PCIE bridge device is corresponding deducts Bus number number that the Bus number number, the PCIE bridge device that are taken by RC controller root bus take and the Bus number number that PCIE bridge device up going port takies, then divided by the integral part of the number business of this PCIE bridge device down going port and complementing part sum is; The Bus number number of all the other down going port is the integral part of business.
6. the method for claim 1, is characterized in that, carries out PCIE device dynamic offloading and specifically comprises the following steps:
Steps A 301, PCIE device dynamic offloading start;
Whether steps A 302, detection need the PCIE device of unloading direct below RC controller root bus, if so, perform steps A 303; Otherwise, perform steps A 307;
Steps A 303, whether be PCIE bridge device, if so, perform steps A 304 if detecting this PCIE device; Otherwise, perform steps A 306;
Each down going port equipment and down going port bus resource under steps A 304, recurrence unloading PCIE bridge device;
Steps A 305, unloading PCIE bridge device and up going port bus, and other all resources that delivery system distributes, then perform steps A 308;
Steps A 306, unloading PCIE device, all resources except Bus number that delivery system distributes, then perform steps A 308;
Steps A 307, directly from system, unload PCIE device, and the resource such as address, interruption, Bus number that release is relevant to PCIE device, then execution steps A 308;
Steps A 308, PCIE device dynamic offloading terminate.
7. the method for claim 1, is characterized in that, carries out PCIE device dynamic scan or unload being realized by two kinds of modes, is respectively command line mode and interface function mode.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510269974.4A CN104820646B (en) | 2015-05-25 | 2015-05-25 | More RC PCIE device dynamic scan method is supported under linux system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510269974.4A CN104820646B (en) | 2015-05-25 | 2015-05-25 | More RC PCIE device dynamic scan method is supported under linux system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104820646A true CN104820646A (en) | 2015-08-05 |
CN104820646B CN104820646B (en) | 2018-02-16 |
Family
ID=53730946
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510269974.4A Active CN104820646B (en) | 2015-05-25 | 2015-05-25 | More RC PCIE device dynamic scan method is supported under linux system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104820646B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134446A (en) * | 2019-04-18 | 2019-08-16 | 深圳市广和通无线股份有限公司 | Start the method for PCIE device scanning |
CN112597090A (en) * | 2021-01-06 | 2021-04-02 | 新华三信息安全技术有限公司 | Method for configuring PCIE (peripheral component interface express) equipment, network equipment and storage medium |
CN112988272A (en) * | 2021-03-22 | 2021-06-18 | 成都申威科技有限责任公司 | Method, device and storage medium for supporting multi-path PCIE RC in UBOOT |
CN114253877A (en) * | 2020-09-25 | 2022-03-29 | 大唐移动通信设备有限公司 | Scanning method and device for Peripheral Component Interconnect Express (PCIE) equipment under Liunx system |
CN116028430A (en) * | 2023-03-28 | 2023-04-28 | 飞腾信息技术有限公司 | Scanning method of pcie equipment and system-on-chip |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060239287A1 (en) * | 2005-04-22 | 2006-10-26 | Johnsen Bjorn D | Adding packet routing information without ECRC recalculation |
CN101034380A (en) * | 2007-04-19 | 2007-09-12 | 杭州华为三康技术有限公司 | Method and device for implementing peripheral element interface accelerate bus inserted card hot-plug |
CN101178697A (en) * | 2007-12-12 | 2008-05-14 | 杭州华三通信技术有限公司 | PCIE apparatus satellite communication method and system |
CN101739379A (en) * | 2010-01-21 | 2010-06-16 | 山东高效能服务器和存储研究院 | Server-based method for designing hot-swappable PCIE equipment box |
CN102053939A (en) * | 2009-10-30 | 2011-05-11 | 英业达股份有限公司 | Hot-plug control method of Peripheral Component Interconnect Express (PCIE) tab |
CN103049702A (en) * | 2013-01-05 | 2013-04-17 | 浪潮电子信息产业股份有限公司 | Server layer based security reinforcing strategy |
CN103095463A (en) * | 2013-02-01 | 2013-05-08 | 福建星网锐捷网络有限公司 | Peripheral component interface express (PCIE) exchange network system and communication method |
-
2015
- 2015-05-25 CN CN201510269974.4A patent/CN104820646B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060239287A1 (en) * | 2005-04-22 | 2006-10-26 | Johnsen Bjorn D | Adding packet routing information without ECRC recalculation |
CN101034380A (en) * | 2007-04-19 | 2007-09-12 | 杭州华为三康技术有限公司 | Method and device for implementing peripheral element interface accelerate bus inserted card hot-plug |
CN101178697A (en) * | 2007-12-12 | 2008-05-14 | 杭州华三通信技术有限公司 | PCIE apparatus satellite communication method and system |
CN102053939A (en) * | 2009-10-30 | 2011-05-11 | 英业达股份有限公司 | Hot-plug control method of Peripheral Component Interconnect Express (PCIE) tab |
CN101739379A (en) * | 2010-01-21 | 2010-06-16 | 山东高效能服务器和存储研究院 | Server-based method for designing hot-swappable PCIE equipment box |
CN103049702A (en) * | 2013-01-05 | 2013-04-17 | 浪潮电子信息产业股份有限公司 | Server layer based security reinforcing strategy |
CN103095463A (en) * | 2013-02-01 | 2013-05-08 | 福建星网锐捷网络有限公司 | Peripheral component interface express (PCIE) exchange network system and communication method |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134446A (en) * | 2019-04-18 | 2019-08-16 | 深圳市广和通无线股份有限公司 | Start the method for PCIE device scanning |
CN110134446B (en) * | 2019-04-18 | 2022-04-15 | 深圳市广和通无线股份有限公司 | Method for starting PCIE equipment scanning |
CN114253877A (en) * | 2020-09-25 | 2022-03-29 | 大唐移动通信设备有限公司 | Scanning method and device for Peripheral Component Interconnect Express (PCIE) equipment under Liunx system |
CN114253877B (en) * | 2020-09-25 | 2024-01-26 | 大唐移动通信设备有限公司 | Method and device for scanning Peripheral Component Interconnect Express (PCIE) equipment in Liune system |
CN112597090A (en) * | 2021-01-06 | 2021-04-02 | 新华三信息安全技术有限公司 | Method for configuring PCIE (peripheral component interface express) equipment, network equipment and storage medium |
CN112988272A (en) * | 2021-03-22 | 2021-06-18 | 成都申威科技有限责任公司 | Method, device and storage medium for supporting multi-path PCIE RC in UBOOT |
CN116028430A (en) * | 2023-03-28 | 2023-04-28 | 飞腾信息技术有限公司 | Scanning method of pcie equipment and system-on-chip |
Also Published As
Publication number | Publication date |
---|---|
CN104820646B (en) | 2018-02-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107423169B (en) | Method and system for testing high speed peripheral device interconnection equipment | |
JP5828348B2 (en) | Test server, information processing system, test program, and test method | |
CN104820646A (en) | PCIE (peripheral component interface express) device dynamic scanning method supporting multi RC (remote control) in Linux system | |
US9348772B2 (en) | Executing a kernel device driver as a user space process | |
US9207929B2 (en) | Integrated system and firmware update method | |
US10917291B2 (en) | RAID configuration | |
US8484416B2 (en) | High availability raid using low-cost direct attached raid controllers | |
CN106155657A (en) | The method of UEFI firmware and computer system thereof | |
US10572434B2 (en) | Intelligent certificate discovery in physical and virtualized networks | |
JP2006040280A (en) | Apparatus, method and program (apparatus and method for updating i/o function of a logically-partitioned computer system) | |
CN101226515A (en) | Method and apparatus for distributing resource of hot-plug bus interface | |
CN109426527B (en) | Computer system and method for sharing Bluetooth data between UEFI firmware and operating system | |
CN103701881A (en) | Virtual hotplug system for supporting input/output (I/O) function dynamic distribution and working method thereof | |
CN103455750B (en) | The high peace verification method of a kind of embedded device and device | |
CN110399168A (en) | Majority according to disk storage server system start method, device and equipment | |
CN104517067A (en) | Method, device and system for data access | |
CN106708569B (en) | Hot loading method and device for VOBC configuration file in over-the-line train | |
CN103412838A (en) | Expansion system, communication method, address configuration method, equipment and device | |
CN105391755A (en) | Method and device for processing data in distributed system, and system | |
US12008256B2 (en) | Memory system with accessible storage region to gateway | |
CN110688130A (en) | Physical machine deployment method, physical machine deployment device, readable storage medium and electronic equipment | |
CN109032765A (en) | A kind of virtual machine two-node cluster hot backup dispositions method, device and equipment | |
CN101158920B (en) | Method and apparatus for detecting fault of operating system | |
CN115221092A (en) | Method, device and equipment for determining distributable bus of PCI-E card and storage medium | |
CN106445573B (en) | Firmware upgrading method and device and high-speed peripheral equipment interconnection cluster system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190624 Address after: 430000 Guanghuo Road Optical Communication Industry Building, Guandong Industrial Park, Donghu Development Zone, Wuhan City, Hubei Province, 1st Floor Patentee after: Beacon Fire Ultra-micro Information Technology Co., Ltd. Address before: 430073 No. 67 Guanggu Pioneer Street, Donghu Development Zone, Wuhan City, Hubei Province Patentee before: Fenghuo Communication Science &. Technology Co., Ltd. |