CN113760810A - Information processing method, information processing device, equipment and storage medium - Google Patents
Information processing method, information processing device, equipment and storage medium Download PDFInfo
- Publication number
- CN113760810A CN113760810A CN202110881309.6A CN202110881309A CN113760810A CN 113760810 A CN113760810 A CN 113760810A CN 202110881309 A CN202110881309 A CN 202110881309A CN 113760810 A CN113760810 A CN 113760810A
- Authority
- CN
- China
- Prior art keywords
- expansion card
- identification information
- card identification
- target
- configuration information
- 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
- 230000010365 information processing Effects 0.000 title claims abstract description 45
- 238000003672 processing method Methods 0.000 title claims abstract description 25
- 238000013507 mapping Methods 0.000 claims abstract description 70
- 238000000034 method Methods 0.000 claims description 41
- 230000015654 memory Effects 0.000 claims description 27
- 238000012545 processing Methods 0.000 claims description 14
- 238000012360 testing method Methods 0.000 claims description 4
- 238000004891 communication Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000003825 pressing Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
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/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4282—Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
-
- 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)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
An embodiment of the present application provides an information processing method, including: after the electronic equipment is powered on, acquiring target card identification information of an expansion card on a mainboard of the electronic equipment through a programmable logic chip; acquiring mapping relation between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment; and if the relationship between the target card identification information and one of the plurality of expansion card identification information accords with the updating condition, updating the target configuration information of the expansion card based on the mapping relationship. The embodiment of the application also discloses an information processing device, electronic equipment and a computer readable storage medium.
Description
Technical Field
The present application relates to, but not limited to, the field of computer technologies, and in particular, to an information processing method, an information processing apparatus, an electronic device, and a computer-readable storage medium.
Background
The Riser card generally refers to a function expansion card or a switch card on a Peripheral Component Interconnect Express (PCIE) interface, and is a new generation bus interface. Compared with the shared parallel architecture of PCI and earlier computer buses, the special connection of the computer bus interface adopts the popular point-to-point serial docking in the industry at present, does not need to request bandwidth for the whole bus, improves the data transmission frequency and achieves the high bandwidth which cannot be improved by the prior PCI. As the configuration of the server becomes more and more complex, the types of servers that need to be supported on the Riser card become more and more, and different Riser cards have different slot numbers (slot numbers) thereon. At present, the configuration of System Management Basic Input Output System (SMBIOS) needs to read slot numbers defined on different Riser cards so that customers can better find devices and implement Management on Operating System (OS) level.
However, the configuration of the Riser card by SMBIOS in the current System can only be fixed in advance, for example, a System Description Language (SDL) is used to compile and generate fixed configuration content.
Disclosure of Invention
Embodiments of the present application are intended to provide an information processing method, an information processing apparatus, an electronic device, and a computer-readable storage medium.
The technical scheme of the application is realized as follows:
in a first aspect, an information processing method provided in an embodiment of the present application includes:
after the electronic equipment is powered on, acquiring target card identification information of an expansion card on a mainboard of the electronic equipment through a programmable logic chip;
acquiring mapping relations between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment;
and if the relationship between the target card identification information and one of the plurality of expansion card identification information accords with an updating condition, updating the target configuration information of the expansion card based on the mapping relationship.
In a second aspect, an embodiment of the present application provides an information processing apparatus, including:
the processing module is used for acquiring target card identification information of an expansion card on a mainboard of the electronic equipment through a programmable logic chip after the electronic equipment is powered on;
the acquisition module is used for acquiring the mapping relation between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment;
and the processing module is used for updating the target configuration information of the expansion card based on the mapping relation if the relation between the target card identification information and one of the plurality of expansion card identification information accords with an updating condition.
In a third aspect, an embodiment of the present application provides an electronic device, where the electronic device includes: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is used for executing the information processing program stored in the memory so as to realize the steps of the information processing method.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing executable instructions, where the computer-readable storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the steps of the information processing method as described above.
The embodiment of the application provides an information processing method, an information processing device, electronic equipment and a computer readable storage medium, wherein after the electronic equipment is powered on, target card identification information of an expansion card on a mainboard of the electronic equipment is acquired through a programmable logic chip; acquiring mapping relation between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment; if the relationship between the target card identification information and one expansion card identification information in the plurality of expansion card identification information accords with the updating condition, updating the target configuration information of the expansion card based on the mapping relationship; that is, after the electronic device is powered on, if it is determined that the relationship between the target card identification information and one of the plurality of expansion card identification information conforms to the update condition, the target configuration information of the expansion card is updated based on the mapping relationship stored in the boot system of the electronic device; therefore, the configuration information of the expansion card is flexibly and dynamically distributed by utilizing the mapping relation between the programmable logic chip and the guide system of the electronic equipment.
Drawings
Fig. 1 is an alternative schematic flow chart of an information processing method provided by an embodiment of the present application;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 is an alternative flow chart of an information processing method provided by an embodiment of the present application;
fig. 4 is an alternative flow chart of an information processing method provided by an embodiment of the present application;
fig. 5 is an alternative flow chart of an information processing method provided by an embodiment of the present application;
fig. 6 is a schematic structural diagram of an information processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another electronic device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An embodiment of the present application provides an information processing method, which is applied to an electronic device and is shown in fig. 1, and the method includes the following steps:
In the embodiment of the present Application, the Programmable logic chip includes, but is not limited to, a Field Programmable Gate Array (FPGA) chip, an Application Specific Integrated Circuit (ASIC) chip, and an Advanced reduced instruction set processor (ARM) chip. The mainboard is integrated with at least one PCIE interface. An expansion card is integrated on the PCIE interface; each expansion card is provided with a unique Identity Document (ID).
In the embodiment of the application, the electronic equipment marks the IDs of a plurality of expansion cards on the mainboard in advance. Here, the electronic device may mark the ID of the expansion card by means of a pull-up resistor or a pull-down resistor connected to the expansion card. Illustratively, each expansion card of the plurality of expansion cards is connected to the programmable logic chip through three pins (pins), and each Pin is connected with a pull-up resistor or a pull-down resistor, so that the expansion cards are marked with three-bit numbers, the marks of the expansion cards comprise 001, 010, 011, 100, 101, 110 and 111, and different marks represent different expansion cards. In other embodiments of the present application, the electronic device may further define the ID of the expansion card by combining different definitions of Pin on each expansion card (Riser card), and exemplarily, take the definitions of Pin of three different Riser cards as an example, and mark the IDs of three Riser cards as Riser a, Riser B, and Riser C, respectively.
In the embodiment of the present application, the electronic device may include, but is not limited to, a mobile terminal device such as a mobile phone, a tablet computer, a notebook computer, a Personal Digital Assistant (PDA), a camera, a wearable device, an in-vehicle device, and a fixed terminal device such as a desktop computer. The electronic device comprises a programmable logic chip, a mainboard and a boot system. The electronic equipment and the guide system are connected through a programmable logic chip and a south bridge, and the programmable logic chip and the south bridge are connected through a bus; here, the Bus includes a General-purpose input/output (GPIO) Bus, a System Management Bus (SMBUS), and a board-level serial (I2C) Bus, which is also called a two-wire serial Bus.
In this embodiment of the application, the target card identification information is an ID of a target expansion card of which the expansion card status satisfies a preset card status, among a plurality of expansion cards set on a motherboard of the electronic device. Here, the target card identification information of the target expansion card is stored in a register of the programmable logic chip. Of course, the programmable logic chip may also send the identification information of the target expansion card to the boot system through the bus to be stored in the boot system.
Here, the expansion card status includes, but is not limited to, an available status and a fault status, and when the connection between the expansion card and the motherboard is loosened or falls off, the expansion card status is a fault status; when the expansion card is stably connected with the mainboard, the expansion card is in a usable state. For example, the expansion card status satisfying the preset card status means that the expansion card status is an available status.
In some embodiments, the electronic device can receive a first power-on command through its own power-on interface, where the first power-on command is used to instruct the electronic device to perform a power-on operation. The electronic equipment responds to the first starting instruction through the controller to execute the starting operation and start the electronic equipment.
In other embodiments, when the electronic device is connected to the usb slave device in a wired or wireless manner, if the electronic device is in a power-off state, the electronic device may receive a second power-on instruction sent by the usb slave device through the host controller interface, where the second power-on instruction is used to instruct the electronic device to perform a power-on operation. The electronic equipment responds to the second starting-up instruction through the controller to execute the starting-up operation and start the electronic equipment. Here, the universal serial bus slave device includes, but is not limited to, at least one of: USB keyboard, USB mouse, USB joystick, USB display, USB camera. The first boot instruction sent by the universal serial bus slave device comprises an instruction generated by executing boot operation on the universal serial bus slave device. For example, an instruction generated by pressing at least one key of the USB keyboard; pressing the USB mouse based on a preset pressing strategy to generate an instruction; changing the command generated by the gesture of the USB joystick; the USB camera collects instructions generated by preset images.
In this embodiment, the boot System includes, but is not limited to, a Basic Input Output System (BIOS) chip or a memory storing BIOS data, a Unified Extensible Firmware Interface (UEFI) chip, an Extensible Firmware Interface (EFI) chip, and the like.
In the embodiment of the application, a mapping relationship between a plurality of expansion card identification information and configuration information of a plurality of expansion cards supported by the electronic device is stored in a guidance system of the electronic device. Here, the mapping relationship may be stored in the boot system in the form of a table.
In the embodiment of the present application, the expansion card configuration information includes, but is not limited to, a status of the expansion card, a slot number of the expansion card, and a serial expansion bus interface of the expansion card.
And 103, if the relationship between the target card identification information and one of the plurality of expansion card identification information accords with the updating condition, updating the target configuration information of the expansion card based on the mapping relationship.
In the embodiment of the present application, the relationship between the target card identification information and one expansion card identification information of the plurality of expansion card identification information conforms to an update condition, and the relationship includes: the similarity between the target card identification information and one expansion card identification information in the plurality of expansion card identification information meets a similarity threshold. For example, the similarity threshold is 90%, the electronic device detects that the similarity between the target card identification information and one of the expansion card identification information is 100%, that is, the target card identification information exists in the expansion card identification information, at this time, 90% < 100%, it is determined that the similarity is greater than the similarity threshold, and it is determined that the relationship between the target card identification information and the expansion card identification information in the expansion card identification information meets the update condition. The updating operation may be to assign configuration information corresponding to the expansion card satisfying the updating condition to the target expansion card. Therefore, the electronic equipment can dynamically update the configuration information corresponding to the target expansion card, namely, the dynamic distribution of the configuration information of the expansion card is realized.
In some embodiments, fig. 2 is a schematic structural diagram of an electronic device provided in the present application. In the process of starting an Operating System (OS) 201, the electronic device reads configuration information corresponding to a target expansion card that satisfies the update condition and is stored in a boot System, such as SMBIOS, through a programmable logic chip, and updates the read configuration information to a configuration space 202 of the electronic device.
According to the information processing method provided by the embodiment of the application, after the electronic equipment is powered on, the target card identification information of the expansion card on the mainboard of the electronic equipment is obtained through the programmable logic chip; acquiring mapping relation between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment; if the relationship between the target card identification information and one expansion card identification information in the plurality of expansion card identification information accords with the updating condition, updating the target configuration information of the expansion card based on the mapping relationship; that is, after the electronic device is powered on, if it is determined that the relationship between the target card identification information and one of the plurality of expansion card identification information conforms to the update condition, the target configuration information of the expansion card is updated based on the mapping relationship stored in the boot system of the electronic device; therefore, the configuration information of the expansion card is flexibly and dynamically distributed by utilizing the mapping relation between the programmable logic chip and the guide system of the electronic equipment.
An embodiment of the present application provides an information processing method, which is applied to an electronic device and is shown in fig. 3, and the method includes the following steps:
In the embodiment of the present Application, before the electronic device is powered on, the electronic device uses a System Description Language (SDL) of a company (American megadrivers Inc, AMI) that produces a professional Application Specific Integrated Circuit (ASIC) digital product and a mixed signal ASIC product to define, in advance, configuration information corresponding to all expansion cards currently inserted into a PCIE interface.
Here, the configuration information of the original expansion card may be predefined at the factory stage of the electronic device.
In the embodiment of the application, after the electronic equipment acquires the configuration information of the original expansion card, the configuration information of the original expansion card is compiled into the guide system, so that the configuration information of the original expansion card takes effect.
Illustratively, taking the configuration information of the original expansion card as the slot number as an example, to compile the configuration information of the original expansion card into the boot system in step 302, the electronic device calls the compilation code to obtain the slot number defined in advance in the file of the defined SDL, and at this time, the obtained value of the slot number is used as the initial value of the configuration information of the slot number of the original expansion card. Further, the electronic device compiles the initial value of the slot number configuration information into the boot system to validate the initial value of the slot number of the original expansion card.
And 303, after the electronic equipment is powered on, acquiring target card identification information of the expansion card on the mainboard of the electronic equipment through the programmable logic chip.
And step 304, acquiring a mapping relation between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a boot system of the electronic equipment.
The mapping relationship represents a mapping relationship between slot numbers (slot numbers) corresponding to the identification information of the expansion cards and serial expansion bus interface channels (PCIE lanes). That is, one expansion card includes multiple slot numbers and multiple PCIE lanes, where each slot number corresponds to a unique PCIE lane; therefore, the electronic equipment identifies the expansion card by reading the identification information of the target card in the programmable logic chip, and further obtains the slot number and the PCIE lanes corresponding to the expansion card.
In an realizable scenario, different slot numbers and hardware corresponding relations of PCIe lanes corresponding to the slot numbers are defined in advance for different Riser cards, and the hardware corresponding relations are stored in a UEFI code, so that the electronic device recognizes the type of Riser by reading the programmable logic chip Riser card, and further can determine that the number of the slot numbers corresponding to the Riser is several.
In one embodiment, the electronic device searches for a specific slot number value according to a mapping relationship of PCIE lanes stored in a Central Processing Unit (CPU) of Hardware (Hardware).
And 305, judging whether the relation between the target card identification information and one expansion card identification information in the plurality of expansion card identification information meets the updating condition or not.
And step 306, if the relationship meets the updating condition, determining the configuration information of the expansion card corresponding to the target card identification information based on the mapping relationship.
In the embodiment of the application, if the target card identification information is the same as one of the plurality of expansion card identification information, it is determined that the relationship between the target card identification information and the expansion card identification information meets the update condition.
In some embodiments, if the target card identification information is similar to one of the plurality of expansion card identification information, determining that a relationship between the target card identification information and the one of the plurality of expansion card identification information meets the update condition.
In the embodiment of the application, if the relationship between the target card identification information and any expansion card identification information in the plurality of expansion card identification information does not accord with the updating condition, prompt information is generated; outputting prompt information to prompt redefinition of the mapping relation; wherein the redefined mapping relation includes target card identification information.
It should be noted that, outputting the prompt information includes, but is not limited to, the following schemes for outputting the prompt information: outputting color prompt information, outputting text prompt information, outputting sound prompt information, outputting graphic prompt information, outputting symbol prompt information and outputting picture prompt information.
And 307, if the system is guided to enter the self-checking stage, updating the target configuration information of the expansion card based on the configuration information of the expansion card.
In the embodiment of the application, in the PCIE initialization process, based on configuration information of an expansion card that meets an update condition, for example, a slot number corresponding to the expansion card, in the expansion card supported by the electronic device, in the self-test stage of the boot system, original data (raw data) corresponding to the SDL is analyzed, and the configuration information of the expansion card that meets the update condition is copied to the raw data, so that dynamic update of the slot number is realized.
In this embodiment of the application, if the system is guided to enter the self-test stage in step 307, the target configuration information of the expansion card is updated based on the configuration information of the expansion card, as shown in fig. 4, which may be implemented by the following steps,
3071, if the booting system enters the self-checking stage, modifying the configuration information of the original expansion card in the original data stored in the booting system into the configuration information of the expansion card.
In the embodiment of the application, if the boot system enters the self-checking stage, the configuration information of the original expansion card in the original data stored in the boot system is modified based on the configuration information of the expansion card, namely the correct configuration information of the expansion card.
In the embodiment of the application, if the system is guided to enter the self-checking stage, the modified configuration information of the expansion card is filled into the serial expansion bus interface configuration space corresponding to the configuration information of the expansion card, so as to prepare for OS access.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
An embodiment of the present application provides an information processing method, which is applied to an electronic device, and as shown in fig. 5, the method includes steps 501 to 507, and further includes steps 501 to 504, and step 508:
The configuration information of the original expansion card includes, but is not limited to, the state of the expansion card, the slot number of the expansion card, the serial expansion bus interface of the expansion card, and the type of the expansion card.
And 502, compiling the configuration information of the original expansion card into a boot system such as UEFI BOIS.
When the electronic device obtains the target card identification information of the expansion card on the main board of the electronic device, the electronic device also obtains the mapping relationship between the plurality of expansion card identification information and the plurality of expansion card configuration information, which are stored in the boot system of the electronic device and supported by the electronic device.
Step 504, judging whether the target card identification information meets the updating condition; namely, whether the relationship between the target card identification information and one expansion card identification information in the plurality of expansion card identification information meets the updating condition is judged. For example, whether the type of the target card expansion card is the type of the expansion card supported by the electronic equipment is judged.
And 505, if the identification information of the target card meets the updating condition, storing the configuration information of the expansion card meeting the updating condition as a subsequent modification basis. Here, the type of the target card expansion card is the type of the expansion card supported by the electronic device, and the determination relationship meets the update condition.
And 507, if the self-checking stage is executed to the serial expansion bus interface initialization stage, adding the modified configuration information of the expansion card to a serial expansion bus interface configuration space.
And step 508, if the target card identification information does not meet the updating condition, generating and outputting prompt information, and executing step 501 again. For example, when the electronic device determines that the type of the target card expansion card is not the type of the expansion card supported by the electronic device, it is determined that the relationship does not meet the update condition.
In the embodiment of the application, if the relationship does not meet the update condition, it is indicated that the target card identification information corresponding to the target expansion card is not within the range of the expansion card supported by the electronic device and needs to be redefined, so that the prompt information is generated and output.
An embodiment of the present application provides an information processing apparatus, which can be applied to an information processing method provided in the embodiments corresponding to fig. 1 and fig. 3, and as shown in fig. 6, the information processing apparatus 6 includes:
the processing module 601 is configured to obtain target card identification information of an expansion card on a motherboard of the electronic device through a programmable logic chip after the electronic device is powered on;
an obtaining module 602, configured to obtain a mapping relationship between multiple expansion card identification information and multiple expansion card configuration information stored in a boot system of an electronic device;
the processing module 601 is configured to update the target configuration information of the expansion card based on the mapping relationship if the relationship between the target card identification information and one of the plurality of expansion card identification information conforms to the update condition.
In other embodiments of the present application, the processing module 601 is configured to determine, based on the mapping relationship, configuration information of an expansion card corresponding to the target card identification information if the relationship meets the update condition; and if the system is guided to enter the self-checking stage, updating the target configuration information of the expansion card based on the configuration information of the expansion card.
In other embodiments of the present application, the processing module 601 is configured to modify configuration information of an original expansion card in original data stored in a boot system into configuration information of the expansion card if the boot system enters a self-test stage; and if the self-checking stage is executed to the initialization stage of the serial expansion bus interface, the modified configuration information of the expansion card is added to the configuration space of the serial expansion bus interface.
In other embodiments of the present application, the obtaining module 602 is configured to obtain configuration information of an original expansion card defined for the expansion card; and the processing module 601 is configured to compile the configuration information of the original expansion card into the boot system.
In other embodiments of the present application, the processing module 601 is configured to determine that a relationship between the target card identification information and one expansion card identification information meets an update condition if the target card identification information is the same as the expansion card identification information in the plurality of expansion card identification information.
In other embodiments of the present application, the processing module 601 is configured to generate a prompt message if a relationship between the target card identification information and any expansion card identification information of the plurality of expansion card identification information does not meet an update condition; and outputting prompting information to prompt the redefined mapping relation, wherein the redefined mapping relation comprises the target card identification information.
In other embodiments of the present application, the mapping relationship represents a mapping relationship between slot numbers corresponding to the identification information of the expansion cards and the serial expansion bus interface channels.
It should be noted that, for a specific implementation process of the step executed by the processor in this embodiment, reference may be made to an implementation process in the information processing method provided in the embodiment corresponding to fig. 1 and fig. 3, and details are not described here again.
The embodiment of the application provides an information processing device, which is characterized in that after electronic equipment is powered on, target card identification information of an expansion card on a mainboard of the electronic equipment is acquired through a programmable logic chip; acquiring mapping relation between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment; if the relationship between the target card identification information and one expansion card identification information in the plurality of expansion card identification information accords with the updating condition, updating the target configuration information of the expansion card based on the mapping relationship; that is, after the electronic device is powered on, if it is determined that the relationship between the target card identification information and one of the plurality of expansion card identification information conforms to the update condition, the target configuration information of the expansion card is updated based on the mapping relationship stored in the boot system of the electronic device; therefore, the dynamic allocation of the configuration information of the expansion card is realized by utilizing the mapping relation between the programmable logic chip and the guide system of the electronic equipment.
An embodiment of the present application provides an electronic device, which may be applied to an information processing method provided in the embodiments corresponding to fig. 1 and fig. 3, and as shown in fig. 7, the electronic device 7 (the electronic device 7 in fig. 7 corresponds to the information processing apparatus 6 in fig. 6) includes: a processor 701, a memory 702, and a communication bus 703, wherein:
the communication bus 703 is used to enable communication connections between the processor 701 and the memory 702.
The processor 701 is configured to execute the information processing program stored in the memory 702 to implement the following steps:
after the electronic equipment is powered on, acquiring target card identification information of an expansion card on a mainboard of the electronic equipment through a programmable logic chip;
acquiring mapping relation between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment;
and if the relationship between the target card identification information and one of the plurality of expansion card identification information accords with the updating condition, updating the target configuration information of the expansion card based on the mapping relationship.
In other embodiments of the present application, the processor 701 is configured to execute an information processing program stored in the memory 702 to implement the following steps:
if the relationship meets the updating condition, determining the configuration information of the expansion card corresponding to the target card identification information based on the mapping relationship;
and if the system is guided to enter the self-checking stage, updating the target configuration information of the expansion card based on the configuration information of the expansion card.
In other embodiments of the present application, the processor 701 is configured to execute an information processing program stored in the memory 702 to implement the following steps:
if the guide system enters a self-checking stage, modifying the configuration information of the original expansion card in the original data stored in the guide system into the configuration information of the expansion card;
and if the self-checking stage is executed to the initialization stage of the serial expansion bus interface, the modified configuration information of the expansion card is added to the configuration space of the serial expansion bus interface.
In other embodiments of the present application, the processor 701 is configured to execute an information processing program stored in the memory 702 to implement the following steps:
acquiring configuration information of an original expansion card defined aiming at the expansion card;
and compiling the configuration information of the original expansion card into the boot system.
In other embodiments of the present application, the processor 701 is configured to execute an information processing program stored in the memory 702 to implement the following steps:
and if the target card identification information is the same as one of the expansion card identification information, determining that the relationship between the target card identification information and the expansion card identification information meets the updating condition.
In other embodiments of the present application, the processor 701 is configured to execute an information processing program stored in the memory 702 to implement the following steps:
if the relation between the target card identification information and any expansion card identification information in the plurality of expansion card identification information does not accord with the updating condition, generating prompt information;
and outputting prompting information to prompt the redefined mapping relation, wherein the redefined mapping relation comprises the target card identification information.
In other embodiments of the present application, the mapping relationship represents a mapping relationship between slot numbers corresponding to the identification information of the expansion cards and the serial expansion bus interface channels.
The method provided by the embodiment of the present application may be directly embodied as a combination of software modules executed by the processor 701, where the software modules may be located in a storage medium located in the memory 702, and the processor 701 reads executable instructions included in the software modules in the memory 702, and completes the method provided by the embodiment of the present application in combination with necessary hardware.
By way of example, the Processor 701 may be an integrated circuit chip having Signal processing capabilities, such as a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like, wherein the general purpose Processor may be a microprocessor or any conventional Processor or the like.
It should be noted that, for a specific implementation process of the step executed by the processor in this embodiment, reference may be made to an implementation process in the information processing method provided in the embodiment corresponding to fig. 1 and fig. 3, and details are not described here again.
The embodiment of the application provides electronic equipment, which is characterized in that after the electronic equipment is powered on, target card identification information of an expansion card on a mainboard of the electronic equipment is acquired through a programmable logic chip; acquiring mapping relation between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment; if the relationship between the target card identification information and one expansion card identification information in the plurality of expansion card identification information accords with the updating condition, updating the target configuration information of the expansion card based on the mapping relationship; that is, after the electronic device is powered on, if it is determined that the relationship between the target card identification information and one of the plurality of expansion card identification information conforms to the update condition, the target configuration information of the expansion card is updated based on the mapping relationship stored in the boot system of the electronic device; therefore, the dynamic allocation of the configuration information of the expansion card is realized by utilizing the mapping relation between the programmable logic chip and the guide system of the electronic equipment.
Embodiments of the application provide a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to perform the steps of:
after the electronic equipment is powered on, acquiring target card identification information of an expansion card on a mainboard of the electronic equipment through a programmable logic chip;
acquiring mapping relation between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment;
and if the relationship between the target card identification information and one of the plurality of expansion card identification information accords with the updating condition, updating the target configuration information of the expansion card based on the mapping relationship.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
if the relationship meets the updating condition, determining the configuration information of the expansion card corresponding to the target card identification information based on the mapping relationship;
and if the system is guided to enter the self-checking stage, updating the target configuration information of the expansion card based on the configuration information of the expansion card.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
if the guide system enters a self-checking stage, modifying the configuration information of the original expansion card in the original data stored in the guide system into the configuration information of the expansion card;
and if the self-checking stage is executed to the initialization stage of the serial expansion bus interface, the modified configuration information of the expansion card is added to the configuration space of the serial expansion bus interface.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
acquiring configuration information of an original expansion card defined aiming at the expansion card;
and compiling the configuration information of the original expansion card into the boot system.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
and if the target card identification information is the same as one of the expansion card identification information, determining that the relationship between the target card identification information and the expansion card identification information meets the updating condition.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
if the relation between the target card identification information and any expansion card identification information in the plurality of expansion card identification information does not accord with the updating condition, generating prompt information;
and outputting prompting information to prompt the redefined mapping relation, wherein the redefined mapping relation comprises the target card identification information.
In other embodiments of the present application, the mapping relationship represents a mapping relationship between slot numbers corresponding to the identification information of the expansion cards and the serial expansion bus interface channels.
It should be noted that, for a specific implementation process of the step executed by the processor in this embodiment, reference may be made to an implementation process in the information processing method provided in the embodiment corresponding to fig. 1 and fig. 3, and details are not described here again.
The embodiment of the application provides a storage medium, after an electronic device is powered on, target card identification information of an expansion card on a mainboard of the electronic device is obtained through a programmable logic chip; acquiring mapping relation between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment; if the relationship between the target card identification information and one expansion card identification information in the plurality of expansion card identification information accords with the updating condition, updating the target configuration information of the expansion card based on the mapping relationship; that is, after the electronic device is powered on, if it is determined that the relationship between the target card identification information and one of the plurality of expansion card identification information conforms to the update condition, the target configuration information of the expansion card is updated based on the mapping relationship stored in the boot system of the electronic device; therefore, the dynamic allocation of the configuration information of the expansion card is realized by utilizing the mapping relation between the programmable logic chip and the guide system of the electronic equipment.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
The computer storage medium/Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM), and the like; but may also be various terminals such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment of the present application" or "a previous embodiment" or "some embodiments" or "some implementations" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" or "an embodiment of the present application" or "the preceding embodiments" or "some implementations" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of a unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated units described above in the present application may be stored in a computer-readable storage medium if they are implemented in the form of software functional modules and sold or used as independent products. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the related art may be embodied in the form of a software product stored in a storage medium, and including several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods of the embodiments of the present application. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
It should be noted that the drawings in the embodiments of the present application are only for illustrating schematic positions of the respective devices on the terminal device, and do not represent actual positions in the terminal device, actual positions of the respective devices or the respective areas may be changed or shifted according to actual conditions (for example, a structure of the terminal device), and a scale of different parts in the terminal device in the drawings does not represent an actual scale.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. An information processing method, the method comprising:
after the electronic equipment is powered on, acquiring target card identification information of an expansion card on a mainboard of the electronic equipment through a programmable logic chip;
acquiring mapping relations between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment;
and if the relationship between the target card identification information and one of the plurality of expansion card identification information accords with an updating condition, updating the target configuration information of the expansion card based on the mapping relationship.
2. The method of claim 1, wherein if the relationship between the target card identification information and one of the plurality of expansion card identification information conforms to an update condition, updating the target configuration information of the expansion card based on the mapping relationship, comprising:
if the relationship meets the updating condition, determining the configuration information of the expansion card corresponding to the target card identification information based on the mapping relationship;
and if the guide system enters a self-checking stage, updating the target configuration information of the expansion card based on the configuration information of the expansion card.
3. The method according to claim 2, wherein if the boot system enters a self-test stage, updating the target configuration information of the expansion card based on the configuration information of the expansion card includes:
if the guide system enters the self-checking stage, modifying the configuration information of the original expansion card in the original data stored in the guide system into the configuration information of the expansion card;
and if the self-checking stage is executed to the initialization stage of the serial expansion bus interface, adding the modified configuration information of the expansion card to a configuration space of the serial expansion bus interface.
4. The method of claim 1, before the obtaining, by the programmable logic chip, the target card identification information of the expansion card on the motherboard of the electronic device, the method comprising:
acquiring configuration information of an original expansion card defined aiming at the expansion card;
and compiling the configuration information of the original expansion card into the boot system.
5. The method of claim 1, after obtaining a mapping relationship between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a boot system of the electronic device, the method comprising:
and if the target card identification information is the same as one of the plurality of expansion card identification information, determining that the relationship between the target card identification information and the expansion card identification information meets the updating condition.
6. The method of claim 1, further comprising:
if the relationship between the target card identification information and any expansion card identification information in the plurality of expansion card identification information does not accord with the updating condition, generating prompt information;
outputting the prompt information to prompt redefining the mapping relationship, wherein the redefined mapping relationship includes the target card identification information.
7. The method according to any one of claims 1 to 6, wherein the mapping relationship characterizes a mapping relationship between slot numbers and serial expansion bus interface channels corresponding to the plurality of expansion card identification information.
8. An information processing apparatus characterized by comprising:
the processing module is used for acquiring target card identification information of an expansion card on a mainboard of the electronic equipment through a programmable logic chip after the electronic equipment is powered on;
the acquisition module is used for acquiring the mapping relation between a plurality of expansion card identification information and a plurality of expansion card configuration information stored in a guide system of the electronic equipment;
and the processing module is used for updating the target configuration information of the expansion card based on the mapping relation if the relation between the target card identification information and one of the plurality of expansion card identification information accords with an updating condition.
9. An electronic device, characterized in that the electronic device comprises:
a memory for storing executable instructions; a processor for executing executable instructions stored in the memory to implement the information processing method of any one of claims 1 to 7.
10. A computer-readable storage medium characterized in that the storage medium stores one or more programs executable by one or more processors to implement the information processing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110881309.6A CN113760810B (en) | 2021-08-02 | 2021-08-02 | Information processing method, information processing device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110881309.6A CN113760810B (en) | 2021-08-02 | 2021-08-02 | Information processing method, information processing device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113760810A true CN113760810A (en) | 2021-12-07 |
CN113760810B CN113760810B (en) | 2024-07-23 |
Family
ID=78788397
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110881309.6A Active CN113760810B (en) | 2021-08-02 | 2021-08-02 | Information processing method, information processing device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113760810B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174522A (en) * | 2022-07-05 | 2022-10-11 | 易事特储能科技有限公司 | Electronic equipment ID configuration method, device, equipment and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5517646A (en) * | 1994-04-25 | 1996-05-14 | Compaq Computer Corp. | Expansion device configuration system having two configuration modes which uses automatic expansion configuration sequence during first mode and configures the device individually during second mode |
US6065068A (en) * | 1998-04-20 | 2000-05-16 | National Instruments Corporation | System for storing and updating configuration information about I/O card and using stored configuration information to configure newly installed I/O card when compatible with old card |
WO2012149730A1 (en) * | 2011-09-08 | 2012-11-08 | 华为技术有限公司 | Method and device for initializing board |
US20180239614A1 (en) * | 2017-02-17 | 2018-08-23 | Lenovo (Beijing) Co., Ltd. | Method for identifying hardware device in operating system and computer apparatus thereof |
CN113132162A (en) * | 2021-04-16 | 2021-07-16 | 黄元涛 | Method, device, equipment and medium for configuring Internet of things card |
-
2021
- 2021-08-02 CN CN202110881309.6A patent/CN113760810B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5517646A (en) * | 1994-04-25 | 1996-05-14 | Compaq Computer Corp. | Expansion device configuration system having two configuration modes which uses automatic expansion configuration sequence during first mode and configures the device individually during second mode |
US6065068A (en) * | 1998-04-20 | 2000-05-16 | National Instruments Corporation | System for storing and updating configuration information about I/O card and using stored configuration information to configure newly installed I/O card when compatible with old card |
WO2012149730A1 (en) * | 2011-09-08 | 2012-11-08 | 华为技术有限公司 | Method and device for initializing board |
US20180239614A1 (en) * | 2017-02-17 | 2018-08-23 | Lenovo (Beijing) Co., Ltd. | Method for identifying hardware device in operating system and computer apparatus thereof |
CN113132162A (en) * | 2021-04-16 | 2021-07-16 | 黄元涛 | Method, device, equipment and medium for configuring Internet of things card |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174522A (en) * | 2022-07-05 | 2022-10-11 | 易事特储能科技有限公司 | Electronic equipment ID configuration method, device, equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN113760810B (en) | 2024-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6397268B1 (en) | Tracking PCI bus numbers that change during re-configuration | |
US7822964B2 (en) | Booting apparatus for booting a computer and method therefor and computer with a booting apparatus | |
US20150186161A1 (en) | Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product | |
WO2003029993A2 (en) | An apparatus and method for enumeration of processors during hot-plug of a compute node | |
CN110096314B (en) | Interface initialization method, device, equipment and computer readable storage medium | |
US10656676B2 (en) | Docking device, electrical device, and MAC address cloning method | |
US11435985B2 (en) | Electronic device and operation method thereof | |
CN110119623A (en) | A kind of credible main board implementation method for realizing that firmware is actively measured using TPCM | |
CN112181505A (en) | PCIe bandwidth allocation method, device and medium supporting multi-host server | |
CN112748948B (en) | PCIe switch work mode updating method and related assembly | |
CN110244983B (en) | Method for fixing serial port number, terminal equipment and storage medium | |
CN114153782B (en) | Data processing system, method and storage medium | |
CN114003538A (en) | Intelligent network card and identification method thereof | |
CN109426527B (en) | Computer system and method for sharing Bluetooth data between UEFI firmware and operating system | |
CN113760810B (en) | Information processing method, information processing device, equipment and storage medium | |
CN104679566A (en) | Method and terminal equipment for updating SMBIOS (System Management Basic Input/Output System) | |
CN110741359B (en) | System and method for changing slave identification of integrated circuit on shared bus | |
CN110119625A (en) | A kind of trusted computing method | |
CN115878327A (en) | Bus reservation method, device, server, electronic equipment and storage medium | |
CN115113943A (en) | Method, device, equipment and storage medium for determining matching degree of board card and slot position | |
CN110119624A (en) | A kind of security measure method | |
US10430367B1 (en) | Systems and methods for optimal placement of information handling resource | |
US20200019412A1 (en) | Systems and methods for optimal configuration of information handling resources | |
CN112732361B (en) | Function realization method, device and equipment | |
CN113568349B (en) | Data processing method, device, terminal equipment and readable storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |