Summary of the invention
In view of the deficiencies of the prior art, the present invention provides EMS memory error report method, device, terminal during a kind of POST
And storage medium, to solve the above technical problems.
In a first aspect, the embodiment of the present application provides EMS memory error report method during a kind of POST, which comprises
Create structural body;
By the fail memory information preservation generated during internal memory initialization to the structural body;
Multithread mode is immediately exited from after internal memory initialization;
The fail memory information that structural body stores is sent to baseboard management controller.
With reference to first aspect, described to be generated during internal memory initialization in the first embodiment of first aspect
Fail memory information preservation to the structural body include:
Judge whether there is the mistake of unrepairable and the dead channels of shielding:
It is that then related CPU, Channel, DIMM, Rank and error code information are saved in structural body;
It is no, then it recycles and the detection of the mistake and shielding dead channels of unrepairable is judged.
With reference to first aspect, in second of embodiment of first aspect, the fail memory that structural body is stored
Information is sent to baseboard management controller
Detection structure body simultaneously judges in the structural body with the presence or absence of fail memory information:
It is that the fail memory information is sent to baseboard management controller by ipmi order;
It is no, then it completes and exits to report program.
Second aspect, the embodiment of the present application provide EMS memory error reporting device during a kind of POST, and described device includes:
Creating unit is stored, creation structural body is configured to;
Information holding unit is configured to the fail memory information preservation that will be generated during internal memory initialization to the knot
Structure body;
Mode switch element is configured to immediately exit from multithread mode after internal memory initialization;
Information transmitting unit is configured to the fail memory information that structural body stores being sent to baseboard management controller.
In conjunction with second aspect, in the first embodiment of second aspect, the information holding unit includes:
Signal judgement module is configured to judge whether there is the dead channels of the mistake of unrepairable and shielding;
Information preservation module is configured to related CPU, Channel, DIMM, Rank and error code information being saved in knot
In structure body;
Module is looped to determine, is configured to recycle the detection judgement of the mistake and shielding dead channels to unrepairable.
In conjunction with second aspect, in second of embodiment of second aspect, the information transmitting unit includes:
Information detecting module is configured to detection structure body and judges to believe in the structural body with the presence or absence of fail memory
Breath;
Information sending module is configured to the fail memory information being sent to substrate management control by ipmi order
Device;
It reports and completes module, be configured to complete and exit to report program.
The third aspect provides a kind of terminal, comprising:
Processor, memory, wherein
The memory is used to store computer program,
The processor from memory for calling and running the computer program, so that terminal executes above-mentioned end
The method for holding terminal.
Fourth aspect provides a kind of computer storage medium, instruction is stored in the computer readable storage medium,
When run on a computer, so that computer executes method described in above-mentioned various aspects.
5th aspect, provides a kind of computer program product comprising instruction, when run on a computer, so that
Computer executes method described in above-mentioned various aspects.
The beneficial effects of the present invention are,
EMS memory error report method, device, terminal and storage medium during POST provided by the invention are tied by creation
Structure body terminates and moves back in internal memory initialization by the fail memory information preservation generated during internal memory initialization into structural body
Out after multithread mode, then the fail memory information being stored in structural body is sent to baseboard management controller, entire mistake
During reporting, structural body plays the role of an information cache, avoids system caused by upload error message in real time and delays
Machine can correctly report wrong memory information.
In addition, design principle of the present invention is reliable, structure is simple, has very extensive application prospect.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, below in conjunction with of the invention real
The attached drawing in example is applied, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described implementation
Example is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field is common
Technical staff's every other embodiment obtained without making creative work, all should belong to protection of the present invention
Range.
The Key Term occurred in the application is explained below.
BIOS Basic Input Output System basic input output system
BMC Baseboard Management Controller baseboard management controller
SEL System Event Log System Event Log
Fig. 1 is the schematic flow chart of the method for the application one embodiment.Wherein, Fig. 1 executing subject can be one kind
EMS memory error reporting device during POST.
As shown in Figure 1, this method 100 includes:
Step 110, structural body is created;
Step 120, by the fail memory information preservation generated during internal memory initialization to the structural body;
Step 130, multithread mode is immediately exited from after internal memory initialization;
Step 140, the fail memory information that structural body stores is sent to baseboard management controller.
In order to facilitate the understanding of the present invention, below with the principle of EMS memory error report method during POST of the present invention,
The process that the fail memory information generated in memory initialization procedure is reported in conjunction with the embodiments, to provided by the invention
EMS memory error report method is further described during POST.
Optionally, as the application one embodiment, the fail memory information that will be generated during internal memory initialization
It saves to the structural body and includes:
Judge whether there is the mistake of unrepairable and the dead channels of shielding:
It is that then related CPU, Channel, DIMM, Rank and error code information are saved in structural body;
It is no, then it recycles and the detection of the mistake and shielding dead channels of unrepairable is judged.
Optionally, as the application one embodiment, the fail memory information by structural body storage is sent to substrate
Management Controller includes:
Detection structure body simultaneously judges in the structural body with the presence or absence of fail memory information:
It is that the fail memory information is sent to baseboard management controller by ipmi order;
It is no, then it completes and exits to report program.
Specifically, EMS memory error report method includes: during the POST
One S1, creation structural body, for storing fail memory information.
S2, by the fail memory information preservation generated during internal memory initialization to the structural body.
The internal memory initialization stage detects and not repairable fatal error has occurred, will be relevant when shielding dead channels
The information preservation of CPU, Channel, DIMM, Rank and error code (major code and minor code) is into structural body.
Multithread mode is immediately exited from after S3, internal memory initialization.
After S4, internal memory initialization, the information of inspection structure body storage judges in the structural body with the presence or absence of failure
Memory information calls SendIpmiCommand order that relevant information is reported to BMC if there is record.
If Fig. 2 shows, which includes:
Creating unit 210 is stored, the storage creating unit 210 is for creating structural body;
Information holding unit 220, the information holding unit 220 is for will be in the failure that generate during internal memory initialization
Information preservation is deposited to the structural body;
Mode switch element 230, the mode switch element 230 are used to immediately exit from multithreading after internal memory initialization
Mode;
Information transmitting unit 240, the fail memory information that the information transmitting unit 240 is used to store structural body are sent
To baseboard management controller.
Optionally, as the application one embodiment, the information holding unit includes:
Signal judgement module is configured to judge whether there is the dead channels of the mistake of unrepairable and shielding;
Information preservation module is configured to related CPU, Channel, DIMM, Rank and error code information being saved in knot
In structure body;
Module is looped to determine, is configured to recycle the detection judgement of the mistake and shielding dead channels to unrepairable.
Optionally, as the application one embodiment, the information transmitting unit includes:
Information detecting module is configured to detection structure body and judges to believe in the structural body with the presence or absence of fail memory
Breath;
Information sending module is configured to the fail memory information being sent to substrate management control by ipmi order
Device;
It reports and completes module, be configured to complete and exit to report program.
Fig. 3 is a kind of structural schematic diagram of terminal installation 300 provided in an embodiment of the present invention, which can be with
For executing the method provided by the embodiments of the present application for updating heat dissipation policing parameter.
Wherein, which may include: processor 310, memory 320 and communication unit 330.These components
It is communicated by one or more bus, it will be understood by those skilled in the art that the structure of server shown in figure is not
The restriction to the application is constituted, it is also possible to hub-and-spoke configuration either busbar network, can also include more than illustrating
Or less component, perhaps combine certain components or different component layouts.
Wherein, which can be used for executing instruction for storage processor 310, and memory 320 can be by any class
The volatibility or non-volatile memories terminal or their combination of type are realized, such as static random access memory (SRAM), electricity
Erasable Programmable Read Only Memory EPROM (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory
(PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.When executing instruction in memory 320
When being executed by processor 310, so that terminal 300 some or all of is able to carry out in following above method embodiment step.
Processor 310 is the control centre for storing terminal, utilizes each of various interfaces and the entire electric terminal of connection
A part by running or execute the software program and/or module that are stored in memory 320, and calls and is stored in storage
Data in device, to execute the various functions and/or processing data of electric terminal.The processor can be by integrated circuit
(Integrated Circuit, abbreviation IC) composition, such as the IC that can be encapsulated by single are formed, can also be by more of connection
The encapsulation IC of identical function or different function and form.For example, processor 310 can only include central processing unit
(Central Processing Unit, abbreviation CPU).In the application embodiment, CPU can be single operation core, can also
To include multioperation core.
Communication unit 330, for establishing communication channel, so that the storage terminal be allow to be led to other terminals
Letter.It receives the user data of other terminals transmission or sends user data to other terminals.
The application also provides a kind of computer storage medium, wherein the computer storage medium can be stored with program, the journey
Sequence may include step some or all of in each embodiment provided by the present application when executing.The storage medium can for magnetic disk,
CD, read-only memory (English: read-only memory, referred to as: ROM) or random access memory (English:
Random access memory, referred to as: RAM) etc..
Therefore, the application is by creation structural body, extremely by the fail memory information preservation generated during internal memory initialization
In structural body, after internal memory initialization terminates and exits multithread mode, then the fail memory information that will be stored in structural body
It is sent to baseboard management controller, during entire mistake reports, structural body plays the role of an information cache, avoids
System failure caused by error message is uploaded in real time, can correctly report wrong memory information, the attainable skill of the present embodiment institute
Art effect may refer to described above, and details are not described herein again.
It is required that those skilled in the art can be understood that the technology in the embodiment of the present application can add by software
The mode of general hardware platform realize.Based on this understanding, the technical solution in the embodiment of the present application substantially or
Say that the part that contributes to existing technology can be embodied in the form of software products, which is stored in
Such as USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory in one storage medium
The various media that can store program code such as (RAM, Random Access Memory), magnetic or disk, including it is several
Instruction is used so that a terminal (can be personal computer, server or second terminal, the network terminal etc.) is held
Row all or part of the steps of the method according to each embodiment of the present invention.
Same and similar part may refer to each other between each embodiment in this specification.Implement especially for terminal
For example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring in embodiment of the method
Explanation.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, it can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.
Although by reference to attached drawing and combining the mode of preferred embodiment to the present invention have been described in detail, the present invention
It is not limited to this.Without departing from the spirit and substance of the premise in the present invention, those of ordinary skill in the art can be to the present invention
Embodiment carry out various equivalent modifications or substitutions, and these modifications or substitutions all should in covering scope of the invention/appoint
What those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, answer
It is included within the scope of the present invention.Therefore, protection scope of the present invention is answered described is with scope of protection of the claims
It is quasi-.