CN112732346A - Method, device, equipment and medium for setting PCIE (peripheral component interface express) configuration information - Google Patents
Method, device, equipment and medium for setting PCIE (peripheral component interface express) configuration information Download PDFInfo
- Publication number
- CN112732346A CN112732346A CN202110027997.XA CN202110027997A CN112732346A CN 112732346 A CN112732346 A CN 112732346A CN 202110027997 A CN202110027997 A CN 202110027997A CN 112732346 A CN112732346 A CN 112732346A
- Authority
- CN
- China
- Prior art keywords
- pcie configuration
- configuration information
- target
- document
- pcie
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 230000002093 peripheral effect Effects 0.000 title description 2
- 238000004590 computer program Methods 0.000 claims description 12
- 238000012795 verification Methods 0.000 claims description 8
- 238000012545 processing Methods 0.000 claims description 4
- 230000009286 beneficial effect Effects 0.000 abstract description 7
- 238000003780 insertion Methods 0.000 abstract 1
- 230000037431 insertion Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000001960 triggered effect Effects 0.000 description 2
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a method for setting PCIE configuration information, which comprises the following steps: storing various types of PCIE configuration information in a PCIE configuration document in advance; reading card type information of a currently inserted riser card, and determining corresponding target PCIE configuration information according to the card type information; and calling corresponding target PCIE configuration information from the PCIE configuration document, and writing the target PCIE configuration information into a corresponding register. According to the method, when the current insertion of the riser card is detected, the card type information of the riser card is read, and the corresponding target PCIE configuration information is called from the prestored PCIE configuration document to realize the setting of the PCIE configuration information, so that the convenience of setting the PCIE configuration information can be improved. The application also discloses a device and equipment for setting the PCIE configuration information and a computer readable storage medium, which have the beneficial effects.
Description
Technical Field
The present invention relates to the field of PCIE configuration, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for setting PCIE configuration information.
Background
With the rapid development of server technology, the functions supported by the server are gradually increased. In order to ensure the expandability and compatibility of the server motherboard functions, the extended functions are usually made into a PCI riser card according to the PCIE (PCI-Express) protocol specification, in other words, the riser card generally refers to a function extension card or a switch card inserted on a PCIE interface. The OpenPOWER server provides 3 sets of PCIE interfaces x16 for each CPU: e0, E1, E2, and in order to improve flexibility of PCIE interfaces, the E2 port may be dynamically configured as an x16 interface, or as x8, x4, x4 interfaces, as required; developers can select proper configuration according to product requirements, and set corresponding PCIE configuration information for the server. However, in the prior art, after switching different riser cards, a user is required to manually generate corresponding PCIE configuration information at the time of compiling through PNOR (OpenPOWER server in-band firmware). That is, in the prior art, when the PCIE configuration information of the server corresponding to the riser card needs to be modified, the operation of the user is cumbersome.
Therefore, how to improve the convenience of setting the PCIE configuration information is a technical problem that needs to be solved by those skilled in the art at present.
Disclosure of Invention
In view of this, an object of the present invention is to provide a method for setting PCIE configuration information, which can improve convenience of setting PCIE configuration information; another object of the present invention is to provide a device, an apparatus and a computer-readable storage medium for setting PCIE configuration information, which all have the above beneficial effects.
To solve the above technical problem, the present invention provides a method for setting PCIE configuration information, including:
storing various types of PCIE configuration information in a PCIE configuration document in advance;
reading card type information of a currently inserted riser card, and determining corresponding target PCIE configuration information according to the card type information;
and calling corresponding target PCIE configuration information from the PCIE configuration document, and writing the target PCIE configuration information into a corresponding register.
Preferably, the process of storing multiple types of PCIE configuration information in a PCIE configuration document in advance specifically includes:
storing a plurality of types of PCIE configuration information and check codes corresponding to each PCIE configuration information in the PCIE configuration document in advance;
correspondingly, the process of calling corresponding target PCIE configuration information from the PCIE configuration document and writing the target PCIE configuration information into a corresponding register specifically includes:
calling corresponding target PCIE configuration information from the PCIE configuration document;
judging whether the target PCIE configuration information is complete according to a target check code corresponding to the target PCIE configuration information;
and if so, writing the target PCIE configuration information into a corresponding register.
Preferably, the process of invoking the corresponding target PCIE configuration information from the PCIE configuration document and writing the target PCIE configuration information into the corresponding register specifically includes:
calling corresponding target PCIE configuration information from the PCIE configuration document;
and verifying the validity of the target PCIE configuration information, and writing the target PCIE configuration information into a corresponding register under the condition that the verification is passed.
Preferably, the card type information is specifically a card ID of the riser card.
Preferably, after the invoking of the corresponding target PCIE configuration information from the PCIE configuration document and the writing of the target PCIE configuration information into the corresponding register, the method further includes:
and sending out corresponding prompt information.
Preferably, after the invoking of the corresponding target PCIE configuration information from the PCIE configuration document and the writing of the target PCIE configuration information into the corresponding register, the method further includes:
and displaying the target PCIE configuration information.
Preferably, after the invoking of the corresponding target PCIE configuration information from the PCIE configuration document and the writing of the target PCIE configuration information into the corresponding register, the method further includes:
and recording the target PCIE configuration information and the time for setting the target PCIE configuration information.
In order to solve the above technical problem, the present invention further provides a device for setting PCIE configuration information, including:
the storage module is used for storing various types of PCIE configuration information in a PCIE configuration document in advance;
the device comprises a determining module, a processing module and a processing module, wherein the determining module is used for reading the card type information of a currently inserted riser card and determining corresponding target PCIE configuration information according to the card type information;
and the writing module is used for calling corresponding target PCIE configuration information from the PCIE configuration document and writing the target PCIE configuration information into a corresponding register.
In order to solve the above technical problem, the present invention further provides a device for setting PCIE configuration information, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of any one of the PCIE configuration information setting methods when executing the computer program.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the step of implementing any one of the above setting methods for PCIE configuration information is implemented.
The invention provides a method for setting PCIE configuration information, which stores various types of PCIE configuration information in a PCIE configuration document in advance; then after reading the card type information of the currently inserted riser card, determining corresponding target PCIE configuration information according to the card type information; and then calling corresponding target PCIE configuration information from the PCIE configuration document, and writing the target PCIE configuration information into a corresponding register. That is to say, when it is detected that the riser card is currently inserted, the method calls the corresponding target PCIE configuration information from the PCIE configuration document stored in advance by reading the card type information of the riser card, so as to implement setting of the PCIE configuration information, thereby preventing a user from manually generating the corresponding PCIE configuration information through a PNOR during compilation.
In order to solve the technical problem, the invention also provides a setting device, equipment and a computer readable storage medium for the PCIE configuration information, which all have the above beneficial effects.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a setting method of PCIE configuration information according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a PCIE interface according to an embodiment of the present invention;
fig. 3 is a structural diagram of a setting apparatus for PCIE configuration information according to an embodiment of the present invention;
fig. 4 is a structural diagram of a device for setting PCIE configuration information according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The core of the embodiment of the invention is to provide a method for setting PCIE configuration information, which can improve the convenience of setting the PCIE configuration information; another core of the present invention is to provide a device, an apparatus, and a computer-readable storage medium for setting PCIE configuration information, all having the above beneficial effects.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of a setting method of PCIE configuration information according to an embodiment of the present invention; fig. 2 is a schematic diagram of a PCIE interface according to an embodiment of the present invention; as shown in fig. 1 and fig. 2, a method for setting PCIE configuration information includes:
s10: the method comprises the steps of storing various types of PCIE configuration information in a PCIE configuration document in advance.
Specifically, in this embodiment, multiple types of PCIE configuration information need to be set in a PCIE configuration document in advance; for example, by modifying the PNOR PCIE profile rmw (openpower server hardware layout profile), add the configuration E2_ x16 of PCIE E2: configured as x 16; configuration E2_ x8x4x4 of add PCIE E2: configured as x8x4x 4; other types of PCIE configuration information may also be set according to actual requirements, which is not limited in this embodiment. The PCIE configuration document may be rmw, or may be other types of documents, which is also not specifically limited in this embodiment.
S20: and reading the card type information of the currently inserted riser card, and determining corresponding target PCIE configuration information according to the card type information.
Specifically, in this embodiment, after a riser card is inserted into the E2 port of the PCIE interface, the card type information of the riser card inserted into the E2 port is read; different card type information indicates that different PCIE configuration information needs to be set for the server; after the card type information of the currently inserted riser card is determined, determining corresponding target PCIE configuration information according to the card type information; if the card type information of the riser card indicates the configuration of the PCIE E2 as E2_ x16, PCIE configuration information corresponding to the configuration of E2_ x16 needs to be set for the server.
S30: and calling corresponding target PCIE configuration information from the PCIE configuration document, and writing the target PCIE configuration information into a corresponding register.
Specifically, after the target PCIE configuration information that needs to be set at present is determined, the corresponding target PCIE configuration information is called from the PCIE configuration document, and then the PCIE E2 is initialized, and the target PCIE configuration information is written into the corresponding register, so that the PCIE E2 is enabled, and the PCIE configuration information is enabled to take effect. In actual operation, the default configuration of the PCIE E2 may be pre-designated as E2_ x16, and corresponding PCIE configuration information is set for the current PCIE E2 by using the default configuration information.
In the method for setting PCIE configuration information provided in the embodiment of the present invention, multiple types of PCIE configuration information are stored in a PCIE configuration document in advance; then after reading the card type information of the currently inserted riser card, determining corresponding target PCIE configuration information according to the card type information; and then calling corresponding target PCIE configuration information from the PCIE configuration document, and writing the target PCIE configuration information into a corresponding register. That is to say, when it is detected that the riser card is currently inserted, the method calls the corresponding target PCIE configuration information from the PCIE configuration document stored in advance by reading the card type information of the riser card, so as to implement setting of the PCIE configuration information, thereby preventing a user from manually generating the corresponding PCIE configuration information through a PNOR during compilation.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, the process of storing multiple types of PCIE configuration information in a PCIE configuration document in advance specifically includes:
storing a plurality of types of PCIE configuration information and check codes corresponding to each PCIE configuration information in a PCIE configuration document in advance;
correspondingly, the process of calling the corresponding target PCIE configuration information from the PCIE configuration document and writing the target PCIE configuration information into the corresponding register specifically includes:
calling corresponding target PCIE configuration information from the PCIE configuration document;
judging whether the target PCIE configuration information is complete according to the target check code corresponding to the target PCIE configuration information;
and if so, writing the target PCIE configuration information into the corresponding register.
Specifically, in this embodiment, when storing multiple types of PCIE configuration information, the corresponding check codes are further calculated according to each PCIE configuration information, and then each PCIE configuration information and the corresponding check code are correspondingly stored in the PCIE configuration document. In actual operation, the manner of calculating the check code of each PCIE configuration information may be to calculate a corresponding hash value as the corresponding check code through a hash algorithm, or calculate the corresponding check code through a CRC (cyclic redundancy check) algorithm, and the specific manner of calculating the check code is not limited in this embodiment.
Correspondingly, after the corresponding target PCIE configuration information is called from the PCIE configuration document, whether the target PCIE configuration information is complete is judged according to the target check code corresponding to the target PCIE configuration information; specifically, the check code obtained from the PCIE configuration document may be compared with a preset standard check code, and if the check code is consistent with the preset standard check code, it indicates that the target PCIE configuration information stored in the PCIE configuration document is complete. And under the condition that the check code is accurate, writing the target PCIE configuration information into the corresponding register.
As can be seen, in this embodiment, the corresponding check code is further calculated for each PCIE configuration information, and each PCIE configuration information and the corresponding check code are stored in the PCIE configuration document, and when the target PCIE configuration information is acquired from the PCIE configuration document, the integrity of the target PCIE configuration information is verified according to the check code, so that the availability and reliability of the PCIE configuration information set for the server can be further ensured.
As a preferred embodiment, the process of calling corresponding target PCIE configuration information from a PCIE configuration document and writing the target PCIE configuration information into a corresponding register specifically includes:
calling corresponding target PCIE configuration information from the PCIE configuration document;
and verifying the validity of the target PCIE configuration information, and writing the target PCIE configuration information into a corresponding register under the condition that the verification is passed.
Specifically, after the corresponding target PCIE configuration information is called from the PCIE configuration document, the validity of the target PCIE configuration information is further verified, where the verification of the validity may include verifying the source of the target PCIE configuration information, whether the target PCIE configuration information carries a digital certificate, and the like, and in a case that the verification passes, the target PCIE configuration information is written into the corresponding register; and if the verification fails, ending the modification process of setting the PCIE configuration information.
That is to say, the setting method of PCIE configuration information in this embodiment is to further verify the validity of the target PCIE configuration information before writing the target PCIE configuration information into the corresponding register, so as to further ensure the security of the server.
On the basis of the above embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, the card type information is the card ID of the riser card.
Specifically, in this embodiment, corresponding card IDs are set in advance for various types of riser cards, and after the riser card is inserted into PCIE E2, the card type information of the riser card is determined by reading the card ID of the riser card, that is, the card type information in this embodiment is specifically the card ID of the riser card. For example, the card ID is equal to 0x01, indicating the configuration of PCIE E2 as E2_ x 16; or card ID is equal to 0x00, indicating the configuration of PCIE E2 as E2_ x8x4x 4; after determining the configuration of PCIE E2 according to the card ID, determine corresponding target PCIE configuration information according to the configuration.
As can be seen, in this embodiment, the card ID of the riser card is used as the card type information of the riser card, and the target PCIE configuration information corresponding to the currently inserted riser card is determined according to the correspondence between the card ID and the PCIE configuration information, so that the target PCIE configuration information can be set more conveniently.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, after the corresponding target PCIE configuration information is called from the PCIE configuration document and the target PCIE configuration information is written into the corresponding register, the present embodiment further includes:
and sending out corresponding prompt information.
Specifically, in this embodiment, after the corresponding target PCIE configuration information is called from the PCIE configuration document and the target PCIE configuration information is written into the corresponding register, the prompting device is further triggered to send the corresponding prompting information. It should be noted that the prompting device may specifically be a buzzer and/or an indicator light and/or a display, and the prompting device such as the buzzer, the indicator light, the display, and the like is triggered to send out corresponding prompting information, such as a buzzer sound, a flashing light, text or images displayed, and the like, so as to intuitively prompt the user that the setting of the PCIE configuration information of the server has been completed currently, thereby further improving the use experience of the user.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, after the corresponding target PCIE configuration information is called from the PCIE configuration document and the target PCIE configuration information is written into the corresponding register, the present embodiment further includes:
and displaying the target PCIE configuration information.
Specifically, in this embodiment, after the corresponding target PCIE configuration information is called from the PCIE configuration document and written into the corresponding register, the currently set target PCIE configuration information is displayed by using a preset display device. In this embodiment, a specific form of displaying the target PCIE configuration information is not limited, and for example, the card type information of the currently inserted riser card and the determined target PCIE configuration information may be correspondingly displayed. In addition, in the present embodiment, the specific type of the display device is not limited, and may be, for example, a liquid crystal display or a touch panel.
As can be seen, in the embodiment, the target PCIE configuration information is further displayed, so that the user can more intuitively view the situation of the currently set target PCIE configuration information, and the use experience of the user is further improved.
On the basis of the foregoing embodiment, the present embodiment further describes and optimizes the technical solution, and specifically, after the corresponding target PCIE configuration information is called from the PCIE configuration document and the target PCIE configuration information is written into the corresponding register, the present embodiment further includes:
and recording the target PCIE configuration information and the time for setting the target PCIE configuration information.
Specifically, in this embodiment, the corresponding target PCIE configuration information is called from the PCIE configuration document, and after the target PCIE configuration information is written into the corresponding register, the time for setting the target PCIE configuration information is obtained, and then the current target PCIE configuration information and the time for setting the target PCIE configuration information are recorded. It should be noted that, in actual operation, a specific recording manner may be recorded in a form of text, an excel table, or a database table, which is not limited in this embodiment and is selected according to actual requirements.
In this embodiment, by further recording the target PCIE configuration information and the time for setting the target PCIE configuration information, the user can conveniently check the setting condition, the updating condition, and the like of the PCIE configuration information of the server, so that the use experience of the user is further improved.
The above detailed description is given for the embodiment of the setting method of PCIE configuration information provided by the present invention, and the present invention further provides a device, an apparatus, and a computer-readable storage medium for setting PCIE configuration information corresponding to the method.
Fig. 3 is a structural diagram of a setting device for PCIE configuration information according to an embodiment of the present invention, and as shown in fig. 3, the setting device for PCIE configuration information includes:
the storage module 31 is configured to store multiple types of PCIE configuration information in a PCIE configuration document in advance;
a determining module 32, configured to read card type information of a currently inserted riser card, and determine corresponding target PCIE configuration information according to the card type information;
the write module 33 is configured to invoke corresponding target PCIE configuration information from the PCIE configuration document, and write the target PCIE configuration information into a corresponding register.
The setting device of the PCIE configuration information provided by the embodiment of the invention has the beneficial effect of the setting method of the PCIE configuration information.
As a preferred embodiment, the storage module specifically includes:
the storage sub-module is used for storing various types of PCIE configuration information and check codes corresponding to the PCIE configuration information in a PCIE configuration document in advance;
correspondingly, the writing module specifically includes:
the first calling sub-module is used for calling corresponding target PCIE configuration information from the PCIE configuration document;
the judgment sub-module is used for judging whether the target PCIE configuration information is complete according to the target check code corresponding to the target PCIE configuration information; if yes, calling a writing submodule;
and the writing submodule is used for writing the target PCIE configuration information into the corresponding register.
As a preferred embodiment, the writing module specifically includes:
the second calling sub-module is used for calling corresponding target PCIE configuration information from the PCIE configuration document;
and the verification sub-module is used for verifying the validity of the target PCIE configuration information and writing the target PCIE configuration information into the corresponding register under the condition that the verification is passed.
As a preferred embodiment, a device for setting PCIE configuration information further includes:
and the prompt module is used for calling corresponding target PCIE configuration information from the PCIE configuration document, and sending the corresponding prompt information after the target PCIE configuration information is written into the corresponding register.
As a preferred embodiment, a device for setting PCIE configuration information further includes:
and the display module is used for calling the corresponding target PCIE configuration information from the PCIE configuration document and displaying the target PCIE configuration information after the target PCIE configuration information is written into the corresponding register.
As a preferred embodiment, a device for setting PCIE configuration information further includes:
and the recording module is used for calling the corresponding target PCIE configuration information from the PCIE configuration document, writing the target PCIE configuration information into the corresponding register, and recording the target PCIE configuration information and the time for setting the target PCIE configuration information.
Fig. 4 is a structural diagram of a device for setting PCIE configuration information according to an embodiment of the present invention, and as shown in fig. 4, the device for setting PCIE configuration information includes:
a memory 41 for storing a computer program;
the processor 42 is configured to implement the steps of the setting method of the PCIE configuration information as described above when executing the computer program.
The setting device of the PCIE configuration information provided by the embodiment of the invention has the beneficial effect of the setting method of the PCIE configuration information.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the setting method for PCIE configuration information are implemented.
The computer-readable storage medium provided by the embodiment of the invention has the beneficial effect of the setting method of the PCIE configuration information.
The detailed description is given above of the setting method, apparatus, device and computer readable storage medium of PCIE configuration information provided in the present invention. The principles and embodiments of the present invention are explained herein using specific examples, which are set forth only to help understand the method and its core ideas of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
Claims (10)
1. A method for setting PCIE configuration information is characterized by comprising the following steps:
storing various types of PCIE configuration information in a PCIE configuration document in advance;
reading card type information of a currently inserted riser card, and determining corresponding target PCIE configuration information according to the card type information;
and calling corresponding target PCIE configuration information from the PCIE configuration document, and writing the target PCIE configuration information into a corresponding register.
2. The method according to claim 1, wherein the process of storing multiple types of PCIE configuration information in a PCIE configuration document in advance specifically includes:
storing a plurality of types of PCIE configuration information and check codes corresponding to each PCIE configuration information in the PCIE configuration document in advance;
correspondingly, the process of calling corresponding target PCIE configuration information from the PCIE configuration document and writing the target PCIE configuration information into a corresponding register specifically includes:
calling corresponding target PCIE configuration information from the PCIE configuration document;
judging whether the target PCIE configuration information is complete according to a target check code corresponding to the target PCIE configuration information;
and if so, writing the target PCIE configuration information into a corresponding register.
3. The method according to claim 1, wherein the process of invoking corresponding target PCIE configuration information from the PCIE configuration document and writing the target PCIE configuration information into a corresponding register specifically includes:
calling corresponding target PCIE configuration information from the PCIE configuration document;
and verifying the validity of the target PCIE configuration information, and writing the target PCIE configuration information into a corresponding register under the condition that the verification is passed.
4. The method according to claim 1, wherein the card type information is specifically a card ID of the riser card.
5. The method of claim 1, wherein after the invoking of the corresponding target PCIE configuration information from the PCIE configuration document and the writing of the target PCIE configuration information into the corresponding register, further comprising:
and sending out corresponding prompt information.
6. The method of claim 1, wherein after the invoking of the corresponding target PCIE configuration information from the PCIE configuration document and the writing of the target PCIE configuration information into the corresponding register, further comprising:
and displaying the target PCIE configuration information.
7. The method according to any of claims 1 to 6, wherein after said invoking corresponding target PCIE configuration information from said PCIE configuration document and writing said target PCIE configuration information into a corresponding register, further comprising:
and recording the target PCIE configuration information and the time for setting the target PCIE configuration information.
8. A device for setting PCIE configuration information is characterized by comprising:
the storage module is used for storing various types of PCIE configuration information in a PCIE configuration document in advance;
the device comprises a determining module, a processing module and a processing module, wherein the determining module is used for reading the card type information of a currently inserted riser card and determining corresponding target PCIE configuration information according to the card type information;
and the writing module is used for calling corresponding target PCIE configuration information from the PCIE configuration document and writing the target PCIE configuration information into a corresponding register.
9. A device for setting PCIE configuration information is characterized by comprising:
a memory for storing a computer program;
a processor configured to implement the steps of the setting method of PCIE configuration information according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, and when executed by a processor, the computer program implements the steps of the setting method for PCIE configuration information according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110027997.XA CN112732346A (en) | 2021-01-08 | 2021-01-08 | Method, device, equipment and medium for setting PCIE (peripheral component interface express) configuration information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110027997.XA CN112732346A (en) | 2021-01-08 | 2021-01-08 | Method, device, equipment and medium for setting PCIE (peripheral component interface express) configuration information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112732346A true CN112732346A (en) | 2021-04-30 |
Family
ID=75591423
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110027997.XA Pending CN112732346A (en) | 2021-01-08 | 2021-01-08 | Method, device, equipment and medium for setting PCIE (peripheral component interface express) configuration information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112732346A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008159A (en) * | 2019-04-11 | 2019-07-12 | 苏州浪潮智能科技有限公司 | PCIE width automatic adaptation method, device and electronic equipment and storage medium |
CN110086659A (en) * | 2019-04-12 | 2019-08-02 | 苏州浪潮智能科技有限公司 | A kind of security update System and method for of FPGA configuration file |
CN110166301A (en) * | 2019-05-28 | 2019-08-23 | 浪潮商用机器有限公司 | A kind of method of automatic configuration, device, system and the controller of the port PCIE |
CN110909394A (en) * | 2019-11-24 | 2020-03-24 | 苏州浪潮智能科技有限公司 | Configuration file monitoring method of server |
CN111338890A (en) * | 2020-02-14 | 2020-06-26 | 苏州浪潮智能科技有限公司 | Method, device and equipment for detecting abnormity of storage equipment and storage medium |
CN111722877A (en) * | 2020-06-11 | 2020-09-29 | 苏州浪潮智能科技有限公司 | PCIE configuration identification method and related assembly |
-
2021
- 2021-01-08 CN CN202110027997.XA patent/CN112732346A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110008159A (en) * | 2019-04-11 | 2019-07-12 | 苏州浪潮智能科技有限公司 | PCIE width automatic adaptation method, device and electronic equipment and storage medium |
CN110086659A (en) * | 2019-04-12 | 2019-08-02 | 苏州浪潮智能科技有限公司 | A kind of security update System and method for of FPGA configuration file |
CN110166301A (en) * | 2019-05-28 | 2019-08-23 | 浪潮商用机器有限公司 | A kind of method of automatic configuration, device, system and the controller of the port PCIE |
CN110909394A (en) * | 2019-11-24 | 2020-03-24 | 苏州浪潮智能科技有限公司 | Configuration file monitoring method of server |
CN111338890A (en) * | 2020-02-14 | 2020-06-26 | 苏州浪潮智能科技有限公司 | Method, device and equipment for detecting abnormity of storage equipment and storage medium |
CN111722877A (en) * | 2020-06-11 | 2020-09-29 | 苏州浪潮智能科技有限公司 | PCIE configuration identification method and related assembly |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019169759A1 (en) | Apparatus and method for creating analog interface, and computer-readable storage medium | |
CN109033772B (en) | Verification information input method and device | |
CN110096314B (en) | Interface initialization method, device, equipment and computer readable storage medium | |
US20090300588A1 (en) | Method and apparatus for acquiring definitions of debug code of basic input/output system | |
CN107545181A (en) | Program operating method, terminal and computer-readable recording medium | |
CN111324352A (en) | Code generation method of application page and related equipment | |
CN111158968A (en) | BIOS configuration information self-checking method, device and storage medium | |
CN104850427A (en) | Method and device for upgrading code | |
CN109684795B (en) | Method and device for anti-debugging of application program and electronic equipment | |
CN111209736A (en) | Text file analysis method and device, computer equipment and storage medium | |
CN106250755B (en) | Method and device for generating verification code | |
CN112732478B (en) | Modification method, device, equipment and storage medium of server parameters | |
US20080313472A1 (en) | Method and apparatus for changing and adding activation keys for functions of digital content without having to change and recompile the digital content | |
CN112732346A (en) | Method, device, equipment and medium for setting PCIE (peripheral component interface express) configuration information | |
CN114461223A (en) | Code generation method and device and terminal equipment | |
CN110688320B (en) | Global variable detection method and device and terminal equipment | |
US9953157B2 (en) | Method and apparatus for protecting application program | |
CN108279937B (en) | Parameter calling method and device, storage medium and electronic equipment | |
US8255866B2 (en) | Computing device and method for checking distances between transmission lines and anti-pads arranged on printed circuit board | |
CN117075921A (en) | BIOS image file generation method and device and electronic equipment | |
CN110134639A (en) | A kind of facility information storage location recognition methods and device | |
CN112631949B (en) | Debugging method and device, computer equipment and storage medium | |
CN110691278A (en) | Method, storage medium, electronic device and system for preventing plug-in misjudgment in live broadcast | |
CN115168119A (en) | PCIE (peripheral component interface express) link detection method, device and medium for server | |
US10803219B1 (en) | Method and system for combined formal static analysis of a design code |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210430 |
|
RJ01 | Rejection of invention patent application after publication |