TWI758867B - Error message recording method, system and terminal of basic input output system based on gpnv - Google Patents

Error message recording method, system and terminal of basic input output system based on gpnv Download PDF

Info

Publication number
TWI758867B
TWI758867B TW109131926A TW109131926A TWI758867B TW I758867 B TWI758867 B TW I758867B TW 109131926 A TW109131926 A TW 109131926A TW 109131926 A TW109131926 A TW 109131926A TW I758867 B TWI758867 B TW I758867B
Authority
TW
Taiwan
Prior art keywords
gpnv
error
error message
bios
handle
Prior art date
Application number
TW109131926A
Other languages
Chinese (zh)
Other versions
TW202213094A (en
Inventor
譚先樂
曲忠英
Original Assignee
英業達股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 英業達股份有限公司 filed Critical 英業達股份有限公司
Priority to TW109131926A priority Critical patent/TWI758867B/en
Application granted granted Critical
Publication of TWI758867B publication Critical patent/TWI758867B/en
Publication of TW202213094A publication Critical patent/TW202213094A/en

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

The present disclosure provides a GPNV-based basic input output system error message recording method, which is applied to the basic input output system and comprises the following steps, an error message and the type of the error message are obtained when an error occurs in the system; and the error message is recorded in the GPNV storage space of the basic input output system; the value of the serial universal input output port is set according to the type of the error message. The error message recording method, system and terminal of the basic input output system based on GPNV of the present disclosure implement the recording of BIOS error messages through GPNV in the BIOS ROM, ensuring reliable recording of error messages, and helping to realize accurate judgment of error causes.

Description

基於GPNV的基本輸入輸出系統錯誤訊息記錄方法、系統及終端Basic input output system error message recording method, system and terminal based on GPNV

本發明涉及訊息記錄的技術領域,特別是涉及一種基於GPNV(General purpose non volatile)的基本輸入輸出系統(Basic Input Output System,BIOS)錯誤訊息記錄方法、系統及終端。 The present invention relates to the technical field of message recording, in particular to a basic input output system (Basic Input Output System, BIOS) error message recording method, system and terminal based on GPNV (General Purpose Non Volatile).

基板管理控制器(Baseboard Management Controller,BMC)可以在伺服器未開機的狀態下,對伺服器進行韌體升級、查看機器設備、等一些操作,從而實現本地和遠端診斷、控制台支持,配置管理、硬體管理和故障排除等功能。 The Baseboard Management Controller (BMC) can upgrade the firmware of the server, view equipment, and other operations when the server is not powered on, so as to realize local and remote diagnosis, console support, configuration management, hardware management, and troubleshooting.

現有技術中,BIOS將可靠性、可用性和可維護性(Reliability Availability And Serviceability,RAS)錯誤(Error)訊息記錄在BMC SEL Log裡。故用戶可以從BMC SEL Log中抓取相關錯誤訊息並找到對應的設備。然而,上述方法具有以下缺陷:(1)SEL Log記錄RAS錯誤訊息過於依賴BMC,在BMC失效或系統不支持BMC時就無法記錄到BIOS送出的錯誤訊息; (2)錯誤訊息記錄失敗會導致用戶無法及時抓取和定位到發生Error的相關部件和原因,給用戶的問題排查帶來一定的風險。 In the prior art, the BIOS records reliability, availability and serviceability (Reliability Availability And Serviceability, RAS) error (Error) messages in the BMC SEL Log. Therefore, users can grab relevant error messages from the BMC SEL Log and find the corresponding device. However, the above method has the following drawbacks: (1) SEL Log records RAS error messages too dependent on the BMC, and cannot record the error messages sent by the BIOS when the BMC fails or the system does not support BMC; (2) Failure to record the error message will cause the user to be unable to capture and locate the relevant components and causes of the Error in time, which brings certain risks to the user's troubleshooting.

鑒於以上所述現有技術的缺點,本發明的目的在於提供一種基於GPNV的基本輸入輸出系統錯誤訊息記錄方法、系統及終端,通過BIOS ROM中的GPNV實現BIOS錯誤訊息的記錄,保證了錯誤訊息的可靠記錄,有助於實現錯誤原因的準確判斷。 In view of the shortcoming of the above-mentioned prior art, the object of the present invention is to provide a GPNV-based basic input output system error message recording method, system and terminal, realize the recording of BIOS error messages by GPNV in the BIOS ROM, ensure that the error message Reliable records help to achieve accurate judgment of the cause of errors.

為實現上述目的及其他相關目的,本發明提供一種基於GPNV的基本輸入輸出系統錯誤訊息記錄方法,應用於基本輸入輸出系統,包括以下步驟:當系統發生錯誤時,獲取錯誤訊息及所述錯誤訊息的類型;將所述錯誤訊息記錄在基本輸入輸出系統的GPNV儲存空間;根據所述錯誤訊息的類型設置串列通用輸入輸出埠的值。 In order to achieve the above-mentioned purpose and other related purposes, the present invention provides a GPNV-based BIOS error message recording method, applied to a BIOS, comprising the following steps: when an error occurs in the system, obtaining an error message and the error message type; record the error message in the GPNV storage space of the basic input/output system; set the value of the serial general-purpose input/output port according to the type of the error message.

在本發明一實施例中,當系統發生錯誤時,對應的錯誤暫存器被設置,根據錯誤暫存器的設置值來獲取所述錯誤訊息的類型。 In an embodiment of the present invention, when an error occurs in the system, a corresponding error register is set, and the type of the error message is acquired according to the set value of the error register.

在本發明一實施例中,基於基本輸入輸出系統RAS Error Handle調用GPNV Handle,基於GPNV Handle將所述錯誤訊息記錄在所述GPNV儲存空間。 In an embodiment of the present invention, the GPNV Handle is called based on the Basic Input Output System RAS Error Handle, and the error message is recorded in the GPNV storage space based on the GPNV Handle.

在本發明一實施例中,基於基本輸入輸出系統RAS Error Handle調用GPNV Handle,基於GPNV Handle設置串列通用輸入輸出埠的值,所述串列通用輸入輸出埠的值與錯誤訊息類型一一對應。 In an embodiment of the present invention, the GPNV Handle is called based on the RAS Error Handle, and the value of the serial GPIO port is set based on the GPNV Handle, and the value of the serial GPIO port corresponds to the error message type one-to-one .

對應地,本發明提供一種基於GPNV的基本輸入輸出系統 錯誤訊息記錄系統,應用於基本輸入輸出系統,包括獲取模組、記錄模組和設置模組;所述獲取模組用於當系統發生錯誤時,獲取錯誤訊息及所述錯誤訊息的類型;所述記錄模組用於將所述錯誤訊息記錄在基本輸入輸出系統的GPNV儲存空間;所述設置模組用於根據所述錯誤訊息的類型設置串列通用輸入輸出埠的值。 Correspondingly, the present invention provides a basic input output system based on GPNV An error message recording system, applied to a basic input and output system, includes an acquisition module, a recording module and a setting module; the acquisition module is used to acquire error messages and the type of the error messages when an error occurs in the system; The recording module is used for recording the error message in the GPNV storage space of the basic input/output system; the setting module is used for setting the value of the serial general-purpose input/output port according to the type of the error message.

在本發明一實施例中,當系統發生錯誤時,對應的錯誤暫存器被設置,所述獲取模組根據錯誤暫存器的設置值來獲取所述錯誤訊息的類型。 In an embodiment of the present invention, when an error occurs in the system, a corresponding error register is set, and the obtaining module obtains the type of the error message according to the set value of the error register.

在本發明一實施例中,所述記錄模組基於基本輸入輸出系統RAS Error Handle調用GPNV Handle,基於GPNV Handle將所述錯誤訊息記錄在所述GPNV儲存空間。 In an embodiment of the present invention, the recording module calls the GPNV Handle based on the Basic Input Output System RAS Error Handle, and records the error message in the GPNV storage space based on the GPNV Handle.

在本發明一實施例中,所述設置模組基於基本輸入輸出系統RAS Error Handle調用GPNV Handle,基於GPNV Handle設置串列通用輸入輸出埠的值,所述串列通用輸入輸出埠的值與錯誤訊息類型一一對應。 In an embodiment of the present invention, the setting module calls the GPNV Handle based on the RAS Error Handle of the Basic Input Output System, and sets the value of the serial GPIO port based on the GPNV Handle, and the value of the serial GPIO port and the error The message types correspond to each other.

最後,本發明提供一種終端,包括:處理器及儲存器;所述儲存器用於儲存電腦程式;所述處理器用於執行所述儲存器儲存的電腦程式,以使所述終端執行上述的基於GPNV的基本輸入輸出系統錯誤訊息記錄方法。 Finally, the present invention provides a terminal, comprising: a processor and a storage; the storage is used for storing computer programs; the processor is used for executing the computer programs stored in the storage, so that the terminal executes the above-mentioned GPNV-based computer program The BIOS error message logging method.

如上所述,本發明的基於GPNV的基本輸入輸出系統錯誤 訊息記錄方法、系統及終端,具有以下有益效果:(1)通過BIOS ROM中的GPNV實現BIOS錯誤訊息的記錄,無需依賴於BMC;(2)GPNV是BIOS ROM上的一塊非易失性儲存空間,在系統掉電或重啟後錯誤訊息不丟失,保證了錯誤訊息儲存的安全性和可靠性;(3)能夠基於SGPIO即時記錄發生錯誤的原因和設備,有助於實現錯誤的精準排查。 As mentioned above, the GPNV-based BIOS of the present invention fails The message recording method, system and terminal have the following beneficial effects: (1) BIOS error message recording is realized through GPNV in BIOS ROM, without relying on BMC; (2) GPNV is a non-volatile storage space on BIOS ROM , the error message will not be lost after the system is powered off or restarted, which ensures the safety and reliability of the error message storage; (3) It can record the cause and device of the error based on SGPIO, which helps to realize the accurate troubleshooting of errors.

21:獲取模組 21: Get Mods

22:記錄模組 22: Recording module

23:設置模組 23: Setting up the module

31:處理器 31: Processor

32:儲存器 32: Storage

圖1顯示為本發明的基於GPNV的基本輸入輸出系統錯誤訊息記錄方法在一實施例中的流程圖;圖2顯示為本發明的基於GPNV的基本輸入輸出系統錯誤訊息記錄系統在一實施例中的結構示意圖;圖3顯示為本發明的終端在一實施例中的結構示意圖。 1 shows a flowchart of a GPNV-based BIOS error message recording method in an embodiment of the present invention; FIG. 2 shows a GPNV-based BIOS error message recording system in an embodiment of the present invention. FIG. 3 is a schematic structural diagram of a terminal of the present invention in an embodiment.

以下通過特定的具體實例說明本發明的實施方式,本領域技術人員可由本說明書所揭露的內容輕易地瞭解本發明的其他優點與功效。本發明還可以通過另外不同的具體實施方式加以實施或應用,本說明書中的各項細節也可以基於不同觀點與應用,在沒有背離本發明的精神下進行各種修飾或改變。 The embodiments of the present invention are described below through specific specific examples, and those skilled in the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments, and various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention.

需要說明的是,本實施例中所提供的圖示僅以示意方式說明本發明的基本構想,遂圖式中僅顯示與本發明中有關的組件而非按照實際實施時的組件數目、形狀及尺寸繪製,其實際實施時各組件的型態、數量及比例可為一種隨意的改變,且其組件佈局型態也可能更為複雜。 It should be noted that the drawings provided in this embodiment are only to illustrate the basic concept of the present invention in a schematic way, so the drawings only show the components related to the present invention rather than the number, shape and the number of components in actual implementation. For dimension drawing, the type, quantity and proportion of each component can be changed at will in actual implementation, and the component layout may also be more complicated.

本發明的基於GPNV的基本輸入輸出系統錯誤訊息記錄方法、系統及終端在BIOS ROM中的GPNV記錄BIOS錯誤訊息,既可以保證錯誤訊息的可靠記錄,又能夠實現錯誤原因的準確判斷,且無需額外佔用資源,極具實用性。 The GPNV-based basic input and output system error message recording method, system and terminal of the present invention record BIOS error messages in the GPNV of the BIOS ROM, which can not only ensure reliable recording of error messages, but also realize accurate judgment of error causes, and does not require additional It takes up resources and is very practical.

如圖1所示,在一實施例中,本發明的基於GPNV的基本輸入輸出系統錯誤訊息記錄方法應用於BIOS中,包括以下步驟: As shown in FIG. 1, in one embodiment, the GPNV-based BIOS error message recording method of the present invention is applied in the BIOS, and includes the following steps:

步驟S1、當系統發生錯誤時,獲取錯誤訊息及所述錯誤訊息的類型。 Step S1, when an error occurs in the system, obtain an error message and the type of the error message.

具體地,當系統發生錯誤時,生成錯誤訊息,且對應的錯誤暫存器被設置,並觸發系統管理中斷(System Management Interruption,SMI)Handle。SMI是由硬體觸發,BIOS處理的中斷。BIOS RAS Error Handle根據錯誤暫存器的設置值將錯誤訊息進行分類,即不同的錯誤暫存器的設置值對應不同的錯誤訊息的類型。故可根據錯誤暫存器的設置值來獲取所述錯誤訊息的類型。 Specifically, when an error occurs in the system, an error message is generated, a corresponding error register is set, and a System Management Interruption (SMI) Handle is triggered. SMI is an interrupt triggered by the hardware and handled by the BIOS. The BIOS RAS Error Handle classifies error messages according to the setting value of the error register, that is, different error register setting values correspond to different error message types. Therefore, the type of the error message can be obtained according to the setting value of the error register.

步驟S2、將所述錯誤訊息記錄在基本輸入輸出系統的GPNV儲存空間。 Step S2, recording the error message in the GPNV storage space of the basic input output system.

具體地,在本發明一實施例中,基於BIOS RAS Error Handle調用GPNV Handle,基於GPNV Handle將所述錯誤訊息記錄在所 述GPNV儲存空間。GPNV是BIOS ROM的一部分,一般占8-16KB的空間,可以存放ESCD、SMBios、System Event log等的訊息,且掉電後訊息不丟失。 Specifically, in an embodiment of the present invention, the GPNV Handle is called based on the BIOS RAS Error Handle, and the error message is recorded in all locations based on the GPNV Handle. The GPNV storage space described above. GPNV is a part of BIOS ROM, which generally occupies 8-16KB of space. It can store information such as ESCD, SMBios, System Event log, etc., and the information will not be lost after power failure.

步驟S3、根據所述錯誤訊息的類型設置串列通用輸入輸出埠的值。 Step S3, setting the value of the serial general-purpose input/output port according to the type of the error message.

具體地,基於BIOS RAS Error Handle調用GPNV Handle,基於GPNV Handle設置串列通用輸入輸出埠(Serial General Purpose Input Output,SGPIO)的值,所述串列通用輸入輸出埠的值與錯誤訊息類型一一對應。因此,根據所述SGPIO的值即可獲知錯誤訊息類型。 Specifically, the GPNV Handle is called based on the BIOS RAS Error Handle, and the value of the Serial General Purpose Input Output (SGPIO) is set based on the GPNV Handle. The value of the serial general purpose input and output port and the error message type are one by one. correspond. Therefore, the error message type can be known according to the value of the SGPIO.

至此,用戶通過讀取GPNV中的錯誤訊息和SGPIO的值,即可獲知錯誤訊息和錯誤類型,從而有助於分析錯誤的原因和設備。 So far, the user can know the error message and error type by reading the error message in GPNV and the value of SGPIO, which helps to analyze the cause and device of the error.

如圖2所示,在一實施例中,本發明的基於GPNV的基本輸入輸出系統錯誤訊息記錄系統應用於基本輸入輸出系統,包括獲取模組21、記錄模組22和設置模組23。 As shown in FIG. 2 , in one embodiment, the GPNV-based BIOS error message recording system of the present invention is applied to the BIOS, including an acquisition module 21 , a recording module 22 and a setting module 23 .

獲取模組21用於當系統發生錯誤時,獲取錯誤訊息及所述錯誤訊息的類型。 The obtaining module 21 is used for obtaining error messages and types of the error messages when an error occurs in the system.

具體地,當系統發生錯誤時,生成錯誤訊息,且對應的錯誤暫存器被設置,並觸發系統管理中斷(System Management Interruption,SMI)Handle。SMI是由硬體觸發,BIOS處理的中斷。BIOS RAS Error Handle根據錯誤暫存器的設置值將錯誤訊息進行分類,即不同的錯誤暫存器的設置值對應不同的錯誤訊息的類型。故可根據錯誤暫存器的設置值來獲取所述錯誤訊息的類型。 Specifically, when an error occurs in the system, an error message is generated, a corresponding error register is set, and a System Management Interruption (SMI) Handle is triggered. SMI is an interrupt triggered by the hardware and handled by the BIOS. The BIOS RAS Error Handle classifies error messages according to the setting value of the error register, that is, different error register setting values correspond to different error message types. Therefore, the type of the error message can be obtained according to the setting value of the error register.

記錄模組22與獲取模組21相連,用於將所述錯誤訊息記錄在基本輸入輸出系統的GPNV儲存空間。 The recording module 22 is connected with the obtaining module 21, and is used for recording the error message in the GPNV storage space of the basic input output system.

具體地,在本發明一實施例中,基於BIOS RAS Error Handle調用GPNV Handle,基於GPNV Handle將所述錯誤訊息記錄在所述GPNV儲存空間。GPNV是BIOS ROM的一部分,一般占8-16KB的空間,可以存放ESCD、SMBios、System Event log等的訊息,且掉電後訊息不丟失。 Specifically, in an embodiment of the present invention, the GPNV Handle is called based on the BIOS RAS Error Handle, and the error message is recorded in the GPNV storage space based on the GPNV Handle. GPNV is a part of BIOS ROM, which generally occupies 8-16KB of space. It can store information such as ESCD, SMBios, System Event log, etc., and the information will not be lost after power failure.

設置模組23與獲取模組21相連,用於根據所述錯誤訊息的類型設置串列通用輸入輸出埠的值。 The setting module 23 is connected to the obtaining module 21, and is used for setting the value of the serial general-purpose input and output ports according to the type of the error message.

具體地,基於BIOS RAS Error Handle調用GPNV Handle,基於GPNV Handle設置串列通用輸入輸出埠(Serial General Purpose Input Output,SGPIO)的值,所述串列通用輸入輸出埠的值與錯誤訊息類型一一對應。因此,根據所述SGPIO的值即可獲知錯誤訊息類型。 Specifically, the GPNV Handle is called based on the BIOS RAS Error Handle, and the value of the Serial General Purpose Input Output (SGPIO) is set based on the GPNV Handle. The value of the serial general purpose input and output port and the error message type are one by one. correspond. Therefore, the error message type can be known according to the value of the SGPIO.

至此,用戶通過讀取GPNV中的錯誤訊息和SGPIO的值,即可獲知錯誤訊息和錯誤類型,從而有助於分析錯誤的原因和設備。 So far, the user can know the error message and error type by reading the error message in GPNV and the value of SGPIO, which helps to analyze the cause and device of the error.

需要說明的是,應理解以上裝置的各個模組的劃分僅僅是一種邏輯功能的劃分,實際實現時可以全部或部分整合到一個物理實體上,也可以物理上分開。且這些模組可以全部以軟體通過處理元件調用的形式實現;也可以全部以硬體的形式實現;還可以部分模組通過處理元件調用軟體的形式實現,部分模組通過硬體的形式實現。例如,x模組可以為單獨設立的處理元件,也可以整合在上述裝置的某一個芯片中實現,此外,也可以以程式碼的形式儲存於上述裝置的儲存器中,由上述裝置的某一個處 理元件調用並執行以上x模組的功能。其它模組的實現與之類似。此外這些模組全部或部分可以整合在一起,也可以獨立實現。這裡所述的處理元件可以是一種整合電路,具有信號的處理能力。在實現過程中,上述方法的各步驟或以上各個模組可以通過處理器元件中的硬體的整合邏輯電路或者軟體形式的指令完成。 It should be noted that, it should be understood that the division of each module of the above device is only a division of logical functions, and in actual implementation, all or part of it may be integrated into one physical entity, or may be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of calling software through processing elements, and some modules can be implemented in hardware. For example, the x module can be a separately established processing element, or can be integrated into a certain chip of the above-mentioned device. In addition, it can also be stored in the memory of the above-mentioned device in the form of a program code. where The management component calls and executes the functions of the above x modules. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, and can also be implemented independently. The processing element described here may be an integrated circuit with signal processing capability. In the implementation process, each step of the above-mentioned method or each of the above modules can be completed by the integrated logic circuit of hardware in the processor element or the instructions in the form of software.

例如,以上這些模組可以是被配置成實施以上方法的一個或多個整合電路,例如:一個或多個特殊應用積體電路(Application Specific Integrated Circuit,簡稱ASIC),或,一個或多個微處理器(Digital Signal Processor,簡稱DSP),或,一個或者多個現場可程式化邏輯閘陣列(Field Programmable Gate Array,簡稱FPGA)等。再如,當以上某個模組通過處理元件調度程式碼的形式實現時,該處理元件可以是通用處理器,例如中央處理器(Central Processing Unit,簡稱CPU)或其它可以調用程式碼的處理器。再如,這些模組可以整合在一起,以片上系統(system-on-a-chip,簡稱SOC)的形式實現。 For example, the above modules may be one or more integrated circuits configured to implement the above method, such as: one or more application-specific integrated circuits (ASICs), or one or more microcomputers A processor (Digital Signal Processor, DSP for short), or one or more Field Programmable Gate Array (Field Programmable Gate Array, FPGA for short), etc. For another example, when one of the above modules is implemented in the form of a processing element scheduling code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU for short) or other processors that can call code . For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (SOC for short).

如圖3所示,在一實施例中,本發明的終端包括:處理器31及儲存器32。 As shown in FIG. 3 , in an embodiment, the terminal of the present invention includes: a processor 31 and a storage 32 .

所述儲存器32用於儲存電腦程式。 The storage 32 is used for storing computer programs.

所述儲存器32包括:ROM、RAM、磁碟、U盤、儲存卡或者光盤等各種可以儲存程式碼的介質。 The storage 32 includes: ROM, RAM, magnetic disk, U disk, memory card or optical disk and other media capable of storing program codes.

所述處理器31與所述儲存器32相連,用於執行所述儲存器32儲存的電腦程式,以使所述終端執行上述的基於GPNV的基本輸入輸出系統錯誤訊息記錄方法。 The processor 31 is connected to the storage 32 for executing the computer program stored in the storage 32, so that the terminal executes the above-mentioned GPNV-based BIOS error message recording method.

優選地,所述處理器31可以是通用處理器,包括中央處理器(Central Processing Unit,簡稱CPU)、網路處理器(Network Processor,簡稱NP)等;還可以是數位信號處理器(Digital Signal Processor,簡稱DSP)、特殊應用積體電路(Application Specific Integrated Circuit,簡稱ASIC)、現場可程式化邏輯閘陣列(Field Programmable Gate Array,簡稱FPGA)或者其他可程式化邏輯裝置、分立門或者電晶體邏輯裝置、分立硬體組件。 Preferably, the processor 31 may be a general-purpose processor, including a central processing unit (CPU for short), a network processor (NP for short), etc.; it may also be a digital signal processor (Digital Signal Processor). Processor, referred to as DSP), special application integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), Field Programmable Gate Array (Field Programmable Gate Array, referred to as FPGA) or other programmable logic devices, discrete gates or transistors Logic devices, discrete hardware components.

綜上所述,本發明的基於GPNV的基本輸入輸出系統錯誤訊息記錄方法、系統及終端通過BIOS ROM中的GPNV實現BIOS錯誤訊息的記錄,無需依賴於BMC;GPNV是BIOS ROM上的一塊非易失性儲存空間,在系統掉電或重啟後錯誤訊息不丟失,保證了錯誤訊息儲存的安全性和可靠性;能夠基於SGPIO即時記錄發生錯誤的原因和設備,有助於實現錯誤的精準排查。所以,本發明有效克服了現有技術中的種種缺點而具高度產業利用價值。 To sum up, the GPNV-based BIOS error message recording method, system and terminal of the present invention realize the recording of BIOS error messages through GPNV in BIOS ROM, without relying on BMC; GPNV is a non-easy piece of BIOS ROM. The volatile storage space ensures that the error message is not lost after the system is powered off or restarted, which ensures the safety and reliability of the error message storage; it can record the cause and device of the error in real time based on SGPIO, which helps to realize the accurate troubleshooting of errors. Therefore, the present invention effectively overcomes various shortcomings in the prior art and has high industrial utilization value.

上述實施例僅例示性說明本發明的原理及其功效,而非用於限制本發明。任何熟悉此技術的人士皆可在不違背本發明的精神及範疇下,對上述實施例進行修飾或改變。因此,舉凡所屬技術領域中具有通常知識者在未脫離本發明所揭示的精神與技術思想下所完成的一切等效修飾或改變,仍應由本發明的請求項所涵蓋。 The above-mentioned embodiments merely illustrate the principles and effects of the present invention, but are not intended to limit the present invention. Anyone skilled in the art can modify or change the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or changes made by those with ordinary knowledge in the technical field without departing from the spirit and technical idea disclosed in the present invention should still be covered by the claims of the present invention.

S1~S3:步驟 S1~S3: Steps

Claims (9)

一種基於GPNV的基本輸入輸出系統錯誤訊息記錄方法,應用於基本輸入輸出系統,包括以下步驟:當系統發生錯誤時,獲取錯誤訊息及所述錯誤訊息的類型;將所述錯誤訊息記錄在基本輸入輸出系統的GPNV儲存空間;以及根據所述錯誤訊息的類型設置串列通用輸入輸出埠的值。 A GPNV-based method for recording error messages of a basic input output system, applied to a basic input output system, comprising the following steps: when an error occurs in the system, acquiring an error message and the type of the error message; recording the error message in a basic input output system outputting the GPNV storage space of the system; and setting the value of the serial GPIO according to the type of the error message. 根據請求項1所述的基於GPNV的基本輸入輸出系統錯誤訊息記錄方法,其中當系統發生錯誤時,對應的錯誤暫存器被設置,根據所述錯誤暫存器的設置值來獲取所述錯誤訊息的類型。 The GPNV-based BIOS error message recording method according to claim 1, wherein when an error occurs in the system, a corresponding error register is set, and the error is acquired according to the set value of the error register Type of message. 根據請求項1所述的基於GPNV的基本輸入輸出系統錯誤訊息記錄方法,其中基於所述基本輸入輸出系統RAS Error Handle調用GPNV Handle,以及基於所述GPNV Handle將所述錯誤訊息記錄在所述GPNV儲存空間。 The GPNV-based BIOS error message recording method according to claim 1, wherein a GPNV Handle is called based on the BIOS RAS Error Handle, and the error message is recorded in the GPNV based on the GPNV Handle storage space. 根據請求項1所述的基於GPNV的基本輸入輸出系統錯誤訊息記錄方法,其中基於所述基本輸入輸出系統RAS Error Handle調用GPNV Handle,以及基於所述GPNV Handle設置所述串列通用輸入輸出埠的值,所述串列通用輸入輸出埠的值與所述錯誤訊息的類型一一對應。 The GPNV-based BIOS error message recording method according to claim 1, wherein the GPNV Handle is called based on the BIOS RAS Error Handle, and the serial GPIO is set based on the GPNV Handle value, the value of the serial general-purpose input/output port corresponds to the type of the error message one-to-one. 一種基於GPNV的基本輸入輸出系統錯誤訊息記錄系統,應用於基本輸入輸出系統:包括獲取模組、記錄模組和設置模組;所述獲取模組用於當系統發生錯誤時,獲取錯誤訊息及所述錯誤訊息的類型; 所述記錄模組用於將所述錯誤訊息記錄在所述基本輸入輸出系統的GPNV儲存空間;以及所述設置模組用於根據所述錯誤訊息的類型設置串列通用輸入輸出埠的值。 A basic input output system error message recording system based on GPNV, applied to a basic input output system: including an acquisition module, a recording module and a setting module; the acquisition module is used for obtaining error messages and when an error occurs in the system. the type of the error message; The recording module is used for recording the error message in the GPNV storage space of the basic input/output system; and the setting module is used for setting the value of the serial general-purpose input/output port according to the type of the error message. 根據請求項5所述的基於GPNV的基本輸入輸出系統錯誤訊息記錄系統,其中當系統發生錯誤時,對應的錯誤暫存器被設置,所述獲取模組根據所述錯誤暫存器的設置值來獲取所述錯誤訊息的類型。 The GPNV-based BIOS error message recording system according to claim 5, wherein when an error occurs in the system, a corresponding error register is set, and the acquisition module is based on the set value of the error register to get the type of the error message. 根據請求項5所述的基於GPNV的基本輸入輸出系統錯誤訊息記錄系統,其中所述記錄模組基於所述基本輸入輸出系統RAS Error Handle調用GPNV Handle,以及基於所述GPNV Handle將所述錯誤訊息記錄在所述GPNV儲存空間。 The GPNV-based BIOS error message recording system according to claim 5, wherein the recording module calls a GPNV Handle based on the BIOS RAS Error Handle, and records the error message based on the GPNV Handle recorded in the GPNV storage space. 根據請求項5所述的基於GPNV的基本輸入輸出系統錯誤訊息記錄系統,其中所述設置模組基於所述基本輸入輸出系統RAS Error Handle調用GPNV Handle,以及基於所述GPNV Handle設置所述串列通用輸入輸出埠的值,所述串列通用輸入輸出埠的值與所述錯誤訊息的類型一一對應。 The GPNV-based BIOS error message recording system according to claim 5, wherein the setting module calls a GPNV Handle based on the BIOS RAS Error Handle, and sets the sequence based on the GPNV Handle The value of the general-purpose input and output port, the value of the serial general-purpose input and output port is in one-to-one correspondence with the type of the error message. 一種終端,包括:處理器及儲存器;所述儲存器用於儲存電腦程式;以及所述處理器用於執行所述儲存器儲存的所述電腦程式,以使所述終端執行請求項1至4中任一項所述的基於GPNV的基本輸入輸出系統錯誤訊息記錄方法。 A terminal, comprising: a processor and a storage; the storage is used to store a computer program; and the processor is used to execute the computer program stored in the storage, so that the terminal executes request items 1 to 4 Any one of the GPNV-based BIOS error message recording methods.
TW109131926A 2020-09-16 2020-09-16 Error message recording method, system and terminal of basic input output system based on gpnv TWI758867B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109131926A TWI758867B (en) 2020-09-16 2020-09-16 Error message recording method, system and terminal of basic input output system based on gpnv

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109131926A TWI758867B (en) 2020-09-16 2020-09-16 Error message recording method, system and terminal of basic input output system based on gpnv

Publications (2)

Publication Number Publication Date
TWI758867B true TWI758867B (en) 2022-03-21
TW202213094A TW202213094A (en) 2022-04-01

Family

ID=81710751

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109131926A TWI758867B (en) 2020-09-16 2020-09-16 Error message recording method, system and terminal of basic input output system based on gpnv

Country Status (1)

Country Link
TW (1) TWI758867B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080201572A1 (en) * 2007-02-21 2008-08-21 Inventec Corporation Method and system for uniformizing product data embedded in a computer platform
US20090319637A1 (en) * 2008-06-18 2009-12-24 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd . Computer system and method for accessing system information of the computer system
TW201003519A (en) * 2008-07-04 2010-01-16 Hon Hai Prec Ind Co Ltd Device and method for remotely getting system information
TWI386808B (en) * 2008-04-24 2013-02-21 Toshiba Kk Memory system
TWI472918B (en) * 2010-12-15 2015-02-11 Toshiba Kk Semiconductor storage device and method of controlling the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080201572A1 (en) * 2007-02-21 2008-08-21 Inventec Corporation Method and system for uniformizing product data embedded in a computer platform
TWI386808B (en) * 2008-04-24 2013-02-21 Toshiba Kk Memory system
US20090319637A1 (en) * 2008-06-18 2009-12-24 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd . Computer system and method for accessing system information of the computer system
TW201003519A (en) * 2008-07-04 2010-01-16 Hon Hai Prec Ind Co Ltd Device and method for remotely getting system information
TWI472918B (en) * 2010-12-15 2015-02-11 Toshiba Kk Semiconductor storage device and method of controlling the same

Also Published As

Publication number Publication date
TW202213094A (en) 2022-04-01

Similar Documents

Publication Publication Date Title
TWI229796B (en) Method and system to implement a system event log for system manageability
US10037238B2 (en) System and method for encoding exception conditions included at a remediation database
TWI632462B (en) Switching device and method for detecting i2c bus
US11893331B2 (en) Device verification method, UVM verification platform, electronic apparatus and storage medium
WO2021042849A1 (en) Cloud platform, service processing method, command interface and computer device
TWI632467B (en) Calculating device and method for calculating device
TW201633176A (en) Dual purpose boot registers
WO2020087956A1 (en) Method, apparatus, device and system for capturing trace of nvme hard disc
TWI758867B (en) Error message recording method, system and terminal of basic input output system based on gpnv
CN112291321A (en) Service processing method, device and system
CN114003416B (en) Memory error dynamic processing method, system, terminal and storage medium
CN111949430B (en) Basic input/output system error information recording method, system and terminal based on GPNV
WO2023206963A1 (en) Data processing method and system, and related components
WO2023137963A1 (en) Pcie device positioning method and apparatus, and related device
CN114157662B (en) Cloud platform parameter adaptation method, device, terminal equipment and storage medium
US11144487B1 (en) Method to overload hardware pin for improved system management
US10846162B2 (en) Secure forking of error telemetry data to independent processing units
CN110532160B (en) Method for BMC to record server system hot restart event
JP2005135063A (en) Information processor and clock abnormality detecting program for information processor
TWI758865B (en) Modification method, system and device of bios option
CN117493065B (en) Method and device for processing processor information, storage medium and electronic equipment
CN115242658B (en) Open system access method, device, computer equipment and storage medium
US10698784B2 (en) Robust peripheral component interconnect surprise removal detection
US20240241779A1 (en) Signaling host kernel crashes to dpu
TWI758866B (en) Method for providing and identifying serious errors of system-on-chip products