TWI620061B - Error detecting apparatus of server and error detecting method thereof - Google Patents

Error detecting apparatus of server and error detecting method thereof Download PDF

Info

Publication number
TWI620061B
TWI620061B TW106116018A TW106116018A TWI620061B TW I620061 B TWI620061 B TW I620061B TW 106116018 A TW106116018 A TW 106116018A TW 106116018 A TW106116018 A TW 106116018A TW I620061 B TWI620061 B TW I620061B
Authority
TW
Taiwan
Prior art keywords
processing unit
memory
system management
debug
address space
Prior art date
Application number
TW106116018A
Other languages
Chinese (zh)
Other versions
TW201901427A (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 TW106116018A priority Critical patent/TWI620061B/en
Application granted granted Critical
Publication of TWI620061B publication Critical patent/TWI620061B/en
Publication of TW201901427A publication Critical patent/TW201901427A/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

本發明提出一種伺服器的偵錯裝置及其偵錯方法,所述伺服器的偵錯方法包含處理單元根據一中斷訊號操作於一系統管理模式,處理單元於系統管理模式中執行一基本輸入輸出系統碼,以根據一記憶體模組之一記憶體單元之一第二位址空間所儲存之一識別碼執行基本輸入輸出系統碼中對應於識別碼之一偵錯程式,並產生一偵錯資料,以及處理單元於系統管理模式中將偵錯資料儲存於記憶體模組之記憶體單元之一第三位址空間。其中,記憶體單元之第一位址空間儲存有複數序列存在檢測資料。The invention provides a debugging device of a server and a debugging method thereof. The debugging method of the server comprises the processing unit operating in a system management mode according to an interrupt signal, and the processing unit performs a basic input and output in the system management mode. The system code is configured to execute one of the basic input/output system codes corresponding to the identification code according to an identifier stored in the second address space of one of the memory units of one of the memory modules, and generate a debug error The data and the processing unit store the debug data in a system management mode in a third address space of one of the memory units of the memory module. The first address space of the memory unit stores a plurality of sequence presence detection data.

Description

伺服器的偵錯裝置及其偵錯方法Server debug device and its debugging method

本發明是關於一種伺服器的偵錯裝置及其偵錯方法,且特別是包含序列存在檢測記憶體的伺服器的偵錯裝置及其偵錯方法。The present invention relates to a debug device for a server and a method for detecting the same, and more particularly to a debug device including a server in which a sequence exists to detect a memory and a method for detecting the same.

在習知的伺服器裝置中,設計者可在基本輸入輸出系統(Basic Input/Output System;BIOS)碼中建立除錯碼,並在伺服器遭遇開機錯誤時藉由預先建立的BIOS碼執行除錯碼來進行除錯程序。然而,在實際的狀況中,造成開機錯誤的原因有諸多可能,當除錯者需以其他除錯碼進行除錯程序時則需重新設計BIOS碼,並將重新設計之BIOS碼更新到伺服器中,其過程相當費時。In a conventional server device, a designer can create a debug code in a Basic Input/Output System (BIOS) code and perform a divide by a pre-established BIOS code when the server encounters a boot error. Error code to debug the program. However, in the actual situation, there are many reasons for the boot error. When the debugger needs to debug the debugger with other debug codes, the BIOS code needs to be redesigned and the redesigned BIOS code is updated to the server. The process is quite time consuming.

再者,另一種除錯方式是透過處理單元的一腳位連接於一顯示器,處理單元可在開機過程的指定階段中控制顯示器顯示一數字訊息,使除錯者根據數字訊息來進行除錯。然而,數字訊息所能表示的資訊量有限,除錯者並無法根據數字訊息準確地推測出開機錯誤的原因,難以進行除錯,且數字訊息在顯示器顯示後並無法再次取得,使除錯者更難以進行除錯,相當不便。Moreover, another debugging method is to connect a display device through a pin to a display, and the processing unit can control the display to display a digital message during a specified phase of the boot process, so that the debugger can perform debugging according to the digital message. However, the amount of information that digital messages can represent is limited. The debugger cannot accurately guess the cause of the boot error based on the digital message, and it is difficult to debug, and the digital message cannot be obtained again after the display is displayed, so that the debugger can be obtained. It is more difficult to debug, which is quite inconvenient.

進一步,另一種除錯方式是在伺服器的主機板額外增設一個擴展除錯埠(extended debug port;XDP),擴展除錯埠可與伺服器中之其他單元進行溝通,除錯者可藉由擴展除錯埠讀取其他單元的狀態來進行除錯。然而,在主機板增設擴展除錯埠將造成主機板的生產成本提高,且伺服器中之其他單元也必須增加與擴展除錯埠溝通之腳位,進而增加了伺服器整體的生產成本。Further, another way to debug is to add an extended debug port (XDP) to the server's motherboard. The extended debug can communicate with other units in the server. The debugger can use Extended debugging, reading the status of other units for debugging. However, the addition of extended debugging on the motherboard will result in an increase in the production cost of the motherboard, and other units in the server must also increase the communication distance with the extended debugging, thereby increasing the overall production cost of the server.

有鑑於此,本發明提出一種伺服器的偵錯裝置及其偵錯方法。In view of this, the present invention provides a debug device for a server and a method for detecting the same.

在一實施例中,一種伺服器的偵錯裝置包含記憶體模組、基本輸入輸出系統記憶體及處理單元。記憶體模組包含一記憶體單元,記憶體單元包含第一位址空間、第二位址空間及第三位址空間,第一位址空間用以儲存複數序列存在檢測資料,第二位址空間則用以儲存對應於一偵錯程式之一識別碼。基本輸入輸出系統記憶體用以儲存包含前述偵錯程式之一基本輸入輸出系統碼。處理單元耦接於基本輸入輸出系統記憶體,用以根據一中斷訊號操作於一系統管理模式;於系統管理模式中,處理單元根據前述識別碼執行基本輸入輸出系統碼中之偵錯程式以產生一偵錯資料,並將偵錯資料儲存於記憶體單元的第三位址空間。In one embodiment, a debug device of a server includes a memory module, a basic input/output system memory, and a processing unit. The memory module comprises a memory unit, wherein the memory unit comprises a first address space, a second address space and a third address space, wherein the first address space is used to store the detection data of the plurality of sequences, and the second address The space is used to store an identification code corresponding to one of the debug programs. The basic input/output system memory is used to store a basic input/output system code including one of the aforementioned debug programs. The processing unit is coupled to the basic input/output system memory for operating in a system management mode according to an interrupt signal; in the system management mode, the processing unit executes the debug program in the basic input/output system code according to the foregoing identification code to generate A debug data is stored and the debug data is stored in the third address space of the memory unit.

在一實施例中,前述記憶體單元包含一系統管理匯流排介面或一積體電路匯流排介面,記憶體單元藉由系統管理匯流排介面或積體電路匯流排介面輸出偵錯資料。In one embodiment, the memory unit includes a system management bus interface or an integrated circuit bus interface, and the memory unit outputs the debug data through the system management bus interface or the integrated circuit bus interface.

在一實施例中,前述伺服器的偵錯裝置更包含一系統管理匯流排連接於記憶體模組及系統管理匯流排介面;於系統管理模式中,處理單元關閉記憶體模組之一溫度資料輸出功能,使記憶體模組於系統管理模式中無法經由系統管理匯流排傳遞一溫度資料。In an embodiment, the debug device of the server further includes a system management bus bar connected to the memory module and the system management bus interface; in the system management mode, the processing unit turns off one temperature data of the memory module. The output function enables the memory module to transfer a temperature data via the system management bus in the system management mode.

在一實施例中,前述處理單元係於執行一作業系統時根據一錯誤參數的一錯誤種類將對應於錯誤種類的識別碼儲存於第二位址空間。In an embodiment, the processing unit stores the identification code corresponding to the error type in the second address space according to an error category of an error parameter when executing an operating system.

在一實施例中,前述處理單元於偵錯資料儲存於第三位址空間後將識別碼更新。In an embodiment, the processing unit updates the identification code after the debug data is stored in the third address space.

在一實施例中,一種伺服器的偵錯方法包含:一處理單元根據一中斷訊號操作於一系統管理模式,處理單元於系統管理模式中執行一基本輸入輸出系統碼,以根據一記憶體模組之一記憶體單元之一第二位址空間所儲存之一識別碼執行基本輸入輸出系統碼中對應於前述識別碼之一偵錯程式,並產生一偵錯資料;處理單元於系統管理模式中將前述之偵錯資料儲存於一記憶體模組之一記憶體單元之一第三位址空間。其中,前述之記憶體單元之一第一位址空間儲存有複數序列存在檢測資料。In an embodiment, a method for debugging a server includes: a processing unit operating in a system management mode according to an interrupt signal, and the processing unit executing a basic input/output system code in the system management mode to perform a memory model according to a memory model One of the memory blocks of one of the memory units stores an identification code stored in the second address space to perform a debug program corresponding to one of the aforementioned identification codes in the basic input/output system code, and generates a debug data; the processing unit is in the system management mode. The aforementioned debug data is stored in a third address space of one of the memory units of a memory module. The first address space of one of the foregoing memory units stores a plurality of sequence presence detection data.

在一實施例中,前述之伺服器的偵錯方法更包含:記憶體單元經由一系統管理匯流排介面或一積體電路匯流排介面輸出偵錯資料。In an embodiment, the foregoing debugging method of the server further includes: the memory unit outputs the debug data via a system management bus interface or an integrated circuit bus interface.

在一實施例中,前述之伺服器的偵錯方法更包含:處理單元於系統管理模式中關閉記憶體模組之一溫度資料輸出功能,使記憶體模組於處理單元操作於系統管理模式時無法經由連接於憶體模組及系統管理匯流排介面之一系統管理匯流排傳遞一溫度資料。In an embodiment, the foregoing debugging method of the server further includes: the processing unit turns off a temperature data output function of the memory module in the system management mode, so that the memory module operates when the processing unit operates in the system management mode. It is not possible to transfer a temperature data via a system management bus that is connected to the memory module and the system management bus interface.

在一實施例中,於前述處理單元根據識別碼執行偵錯程式之步驟中,處理單元於執行一作業系統時根據一錯誤參數的一錯誤種類將對應於錯誤種類的識別碼儲存於第二位址空間,以根據識別碼執行偵錯程式。In an embodiment, in the step that the processing unit executes the debug program according to the identifier, the processing unit stores the identifier corresponding to the error type in the second position according to an error category of an error parameter when executing the operating system. The address space to execute the debugger based on the identification code.

在一實施例中,前述之伺服器的偵錯方法更包含:處理單元於偵錯資料儲存於第三位址空間後將識別碼更新。In an embodiment, the foregoing method for detecting a fault of the server further includes: the processing unit updating the identifier after the debug data is stored in the third address space.

綜上所述,根據本發明之伺服器的偵錯裝置及其偵錯方法之一實施例,儲存有序列存在檢測資料的記憶體單元可儲存識別碼及偵錯資料,除錯者可根據伺服器錯誤的實際狀況將不同的識別碼儲存於前述之位址空間,並可自記憶體單元取得偵錯資料,藉此提升除錯時的方便性及除錯之準確性;再者,以儲存有序列存在檢測資料的記憶體單元來儲存識別碼及偵錯資料,並不需要額外的硬體來執行除錯程序,且所儲存的識別碼及偵錯資料不會因為關機或移除電源而流失,進一步降低了伺服器整體的生產成本。In summary, according to an embodiment of the debug apparatus of the server and the method for detecting the same according to the present invention, the memory unit storing the sequence presence detection data can store the identification code and the debug data, and the debugger can be based on the servo. The actual status of the error is stored in the address space of the foregoing, and the error detection data can be obtained from the memory unit, thereby improving the convenience of debugging and the accuracy of debugging. Further, the storage is The memory unit of the detection data exists in the sequence to store the identification code and the debugging data, and does not require additional hardware to perform the debugging process, and the stored identification code and the debugging data are not lost due to shutdown or power removal. , further reducing the overall production cost of the server.

圖1為根據本發明之伺服器之一實施例之方塊示意圖。請參照圖1,伺服器至少包含記憶體模組10、處理單元11及BIOS記憶體12。處理單元11耦接於記憶體模組10及BIOS記憶體12。在一實施例中,處理單元11可為中央處理器(CPU)。1 is a block diagram of an embodiment of a server in accordance with the present invention. Referring to FIG. 1, the server includes at least a memory module 10, a processing unit 11, and a BIOS memory 12. The processing unit 11 is coupled to the memory module 10 and the BIOS memory 12 . In an embodiment, processing unit 11 may be a central processing unit (CPU).

記憶體模組10包含複數記憶體單元。在此,圖1係以記憶體模組10包含三個記憶體單元101、102、103為例,然本發明不以此為限,記憶體單元之數量亦可為大於三或小於三。記憶體模組10中之記憶體單元101係用以儲存複數序列存在檢測(Serial presence detect;SPD)資料,例如記憶體模組10的時脈設定、各種時序及電壓等規格參數。再者,記憶體單元101還包含至少一識別碼,識別碼對應於一偵錯程式,偵錯程式可實現不同的功能,舉例來說,偵錯程式實現之功能可為讀取伺服器中之特定單元例如一晶片組(chipset)之一暫存器值,或是監看伺服器中之特定單元的溫度,或是進行串型ATA(Serial ATA;SATA)測試所產生的資料,或是在開機自我檢測(POST)階段中記錄除錯燈號所顯示的數值,或是進行機器檢查架構(Machine Check Architecture;MCA)偵測及錯誤回報,伺服器之除錯者可自行定義程式碼並儲存在BIOS記憶體12中而作為BIOS碼之一部分之偵錯程式。在一實施例中,識別碼可為全局唯一標識符(Globally Unique Identifier;GUID)。The memory module 10 includes a plurality of memory cells. Here, FIG. 1 is an example in which the memory module 10 includes three memory cells 101, 102, and 103. However, the present invention is not limited thereto, and the number of memory cells may be greater than three or less than three. The memory unit 101 in the memory module 10 is configured to store a plurality of serial presence detect (SPD) data, such as clock settings of the memory module 10, various timing and voltage specifications. Furthermore, the memory unit 101 further includes at least one identification code, and the identification code corresponds to a debugging program, and the debugging program can implement different functions. For example, the function of the debugging program can be implemented in the reading server. A specific unit, such as a scratchpad value of a chipset, or the temperature of a particular unit in the server, or the data generated by a Serial ATA (SATA) test, or In the POST phase, the value displayed by the debug lamp is recorded, or the Machine Check Architecture (MCA) detection and error return are performed. The debugger of the server can define the code and store it. A debugger in the BIOS memory 12 that is part of the BIOS code. In an embodiment, the identification code may be a Globally Unique Identifier (GUID).

圖2為圖1之記憶體單元101之位址空間配置之一實施態樣之示意圖。在配置上,請參照圖2,複數SPD資料儲存在記憶體單元101的第一位址空間101A中,識別碼則儲存在有別於第一位址空間101A之第二位址空間101B中,第二位址空間101B與第一位址空間101A之間可為連續或不連續。並且,記憶體單元101還包含用以儲存資料之第三位址空間101C,第三位址空間101C可連續或不連續於第一位址空間101A及第二位址空間101B。在一實施例中,第一位址空間101A所涵蓋之資料量可為384位元組(即,第0位元組至第383位元組之間),而第二位址空間101B及第三位址空間101C所共同涵蓋之資料量可為168位元組(即,第384位元組至第551位元組之間),然本發明不以此為限,每一位址空間所涵蓋之資料量可根據實際需求來配置。FIG. 2 is a schematic diagram showing an implementation of an address space configuration of the memory unit 101 of FIG. 1. In the configuration, referring to FIG. 2, the plurality of SPD data are stored in the first address space 101A of the memory unit 101, and the identification code is stored in the second address space 101B different from the first address space 101A. The second address space 101B and the first address space 101A may be continuous or discontinuous. Moreover, the memory unit 101 further includes a third address space 101C for storing data, and the third address space 101C may be continuous or discontinuous with the first address space 101A and the second address space 101B. In an embodiment, the amount of data covered by the first address space 101A may be 384 bytes (ie, between the 0th byte and the 383th byte), and the second address space 101B and the first address space The amount of data shared by the three-address space 101C may be 168 bytes (ie, between the 384th and the 551th), but the present invention is not limited thereto, and each address space is The amount of data covered can be configured according to actual needs.

處理單元11包含一系統管理中斷(system management interrupt;SMI)腳位111,SMI腳位111用以接收一中斷訊號,當SMI腳位111接收到中斷訊號時,SMI腳位111的邏輯準位(logic level)為高邏輯準位,此時處理單元11會進入系統管理模式(system management mode;SMM)。在系統管理模式中,處理單元11執行BIOS記憶體12中之BIOS碼,處理單元11藉由BIOS碼讀取記憶體單元101,以取得第二位址空間101B中之一識別碼,並藉由識別碼執行BIOS碼中對應之偵錯程式。在一實施例中,識別碼與偵錯程式之間具有一對一之對應關係,例如,為「2」之識別碼對應於第三偵錯程式,為「9」之識別碼對應於第六偵錯程式,當第二位址空間101B中儲存之識別碼為「2」時,處理單元11根據為「2」之識別碼執行第三偵錯程式,當第二位址空間101B中儲存之識別碼為「9」時,處理單元11根據為「9」之識別碼執行第六偵錯程式。接著,處理單元11在執行偵錯程式時產生偵錯資料,處理單元11將偵錯資料儲存於記憶體單元101之第三位址空間101C。在一實施例中,記憶體單元101可為電子抹除式可複寫唯讀記憶體(EEPROM),當處理單元11操作於系統管理模式時,處理單元11開啟記憶體單元101的寫入功能,待偵錯資料寫入第三位址空間101C後,處理單元11再關閉記憶體單元101的寫入功能,並離開系統管理模式。The processing unit 11 includes a system management interrupt (SMI) pin 111, and the SMI pin 111 is used to receive an interrupt signal. When the SMI pin 111 receives the interrupt signal, the logic level of the SMI pin 111 ( The logic level) is a high logic level, at which time the processing unit 11 enters a system management mode (SMM). In the system management mode, the processing unit 11 executes the BIOS code in the BIOS memory 12, and the processing unit 11 reads the memory unit 101 by the BIOS code to obtain an identification code in the second address space 101B, and The identification code executes the corresponding debug program in the BIOS code. In an embodiment, the identification code has a one-to-one correspondence with the debug program. For example, the identification code of "2" corresponds to the third debug program, and the identification code of "9" corresponds to the sixth code. In the debug program, when the identification code stored in the second address space 101B is "2", the processing unit 11 executes the third debug program according to the identification code of "2", and stores it in the second address space 101B. When the identification code is "9", the processing unit 11 executes the sixth debug program based on the identification code of "9". Next, the processing unit 11 generates debug data when the debug program is executed, and the processing unit 11 stores the debug data in the third address space 101C of the memory unit 101. In an embodiment, the memory unit 101 can be an electronic erasable rewritable read-only memory (EEPROM). When the processing unit 11 operates in the system management mode, the processing unit 11 turns on the writing function of the memory unit 101. After the error-checked data is written into the third address space 101C, the processing unit 11 turns off the write function of the memory unit 101 and leaves the system management mode.

進一步來看,記憶體模組10包含系統管理匯流排(System Management Bus;SMBus)介面,處理單元11以及伺服器中的其他單元亦具有系統管理匯流排介面,處理單元11以及伺服器的其他單元的系統管理匯流排介面經由一系統管理匯流排連接於記憶體模組10之系統管理匯流排介面。在偵錯資料儲存於記憶體單元101的第三位址空間101C後,處理單元11以及其他單元可讀取記憶體單元101,使記憶體模組10將記憶體單元101的第三位址空間101C中的偵錯資料輸出,並藉由系統管理匯流排傳遞。Further, the memory module 10 includes a system management bus (SMBus) interface, and the processing unit 11 and other units in the server also have a system management bus interface, the processing unit 11 and other units of the server. The system management bus interface is connected to the system management bus interface of the memory module 10 via a system management bus. After the debug data is stored in the third address space 101C of the memory unit 101, the processing unit 11 and other units can read the memory unit 101, so that the memory module 10 sets the third address space of the memory unit 101. The debug data in 101C is output and transmitted by the system management bus.

舉例來說,前述之伺服器的其他單元可為基板管理控制器(Baseboard Management Controller;BMC)及/或晶片組。如圖1所示,伺服器更可包含晶片組13及基板管理控制器14,處理單元11、晶片組13及基板管理控制器14分別藉由系統管理匯流排17、16、15連接於記憶體模組10,處理單元11、晶片組13以及基板管理控制器14可分別藉由系統管理匯流排17、16、15自記憶體模組10取得記憶體單元101儲存之偵錯資料。基此,除錯者可透過處理單元11及伺服器的其他單元取得偵錯資料後再進行更進一步之除錯程序。For example, the other units of the aforementioned server may be a Baseboard Management Controller (BMC) and/or a chipset. As shown in FIG. 1 , the server may further include a chip set 13 and a substrate management controller 14 . The processing unit 11 , the chip set 13 , and the substrate management controller 14 are respectively connected to the memory by the system management bus bars 17 , 16 , and 15 . The module 10, the processing unit 11, the chip set 13 and the substrate management controller 14 can obtain the debug data stored in the memory unit 101 from the memory module 10 by the system management busbars 17, 16, 15 respectively. Based on this, the debugger can obtain the debug data through the processing unit 11 and other units of the server, and then perform further debugging procedures.

此外,記憶體單元101亦可外接於其他除錯設備,例如分析儀(analyzer)或是示波器,除錯者可將除錯設備連接於記憶體單元101的系統管理匯流排介面,並在處理單元11將偵錯資料儲存於第三位址空間101C之後以除錯設備接收系統管理匯流排介面輸出之偵錯資料,並根據偵錯資料進行後續之除錯程序。In addition, the memory unit 101 can also be externally connected to other debugging equipment, such as an analyzer or an oscilloscope, and the debugger can connect the debugging device to the system management bus interface of the memory unit 101, and in the processing unit. 11 After the debug data is stored in the third address space 101C, the debug device receives the debug data output by the system management bus interface interface, and performs subsequent debugging procedures according to the debug data.

在一實施例中,記憶體模組10可包含積體電路匯流排介面(I2C),記憶體單元101可藉由積體電路匯流排介面將第三位址空間101C中之偵錯資料輸出至伺服器中具有積體電路匯流排介面之其他單元或是除錯設備,於此不再贅述。In an embodiment, the memory module 10 can include an integrated circuit bus interface (I2C), and the memory unit 101 can output the debug data in the third address space 101C through the integrated circuit bus interface. Other units in the server that have integrated circuit bus interface or debug devices are not described here.

在一實施例中,處理單元11可在開機階段中根據BIOS碼接收前述之中斷訊號,詳細而言,以統一可延伸韌體介面(Unified Extensible Firmware Interface;UEFI)之開機階段為例,在驅動程式執行環境(Driver Execution Environment;DXE)開機階段中,處理單元11的SMI腳位111已完成初始化,SMI腳位111可被BIOS碼觸發,使處理單元11操作於系統管理模式以執行偵錯程式且將偵錯資料儲存於記憶體單元101的第三位址空間101C。當伺服器遭遇開機異常而無法進入作業系統時,伺服器之除錯者可在顯示單元根據偵錯資料進行除錯,或是以測試儀器經由外部線路直接連接記憶體單元101的輸出埠,以讀取第三位址空間101C中偵錯資料來判斷伺服器遭遇開機異常的可能原因,並進行相應之除錯程序。In an embodiment, the processing unit 11 can receive the foregoing interrupt signal according to the BIOS code in the booting phase. In detail, the booting phase of the Unified Extensible Firmware Interface (UEFI) is taken as an example. In the booting phase of the Driver Execution Environment (DXE), the SMI pin 111 of the processing unit 11 has been initialized, and the SMI pin 111 can be triggered by the BIOS code, so that the processing unit 11 operates in the system management mode to execute the debug program. The debug data is stored in the third address space 101C of the memory unit 101. When the server encounters a boot abnormality and cannot enter the operating system, the debugger of the server may perform debugging according to the debug data in the display unit, or directly connect the output of the memory unit 101 via the external line with the test instrument. The debug data in the third address space 101C is read to determine the possible cause of the server encountering the boot abnormality, and the corresponding debug program is performed.

再者,當伺服器未遭遇開機錯誤而進入作業系統時,處理單元11在作業系統中可週期性地掃描多個系統參數,例如掃描伺服器中之不同硬體元件的各項參數,當處理單元11掃描到錯誤參數時,作業系統再觸發處理單元11進入系統管理模式。在系統管理模式中,處理單元11判斷錯誤參數的錯誤種類,並根據錯誤種類將不同的識別碼填入第二位址空間101B,當錯誤參數對應於多個不同的錯誤種類時,處理單元11可將多個識別碼填入第二位址空間101B。於此,處理單元11可在掃描到錯誤之後執行與錯誤種類有關之偵錯程式,並將偵錯資料儲存於第三位址空間101C。除錯者可自記憶體單元101取得處理單元11發現錯誤後產生之偵錯資料。Moreover, when the server enters the operating system without encountering a boot error, the processing unit 11 can periodically scan a plurality of system parameters in the operating system, such as scanning various parameters of different hardware components in the server, when processing When the unit 11 scans the error parameter, the operating system retries the processing unit 11 to enter the system management mode. In the system management mode, the processing unit 11 determines the error type of the error parameter, and fills the different address code into the second address space 101B according to the error type. When the error parameter corresponds to a plurality of different error types, the processing unit 11 A plurality of identification codes may be filled in the second address space 101B. Here, the processing unit 11 may execute a debug program related to the type of error after scanning the error, and store the debug data in the third address space 101C. The debugger can obtain the debug data generated by the processing unit 11 after the error is found from the memory unit 101.

在一實施例中,在處理單元11執行完偵錯程式後,處理單元11可將第二位址空間101B中對應於已執行之偵錯程式的識別碼清除,以供填入對應於其他錯誤種類的識別碼於第二位址空間101B中,並在下一次操作於系統管理模式時藉由前次儲存於第二位址空間101B的識別碼來執行其他未執行之偵錯程式。舉例來說,以第二位址空間101B中先儲存有對應於第一錯誤種類之第一識別碼為例,當處理單元11根據第一識別碼執行完對應的第一偵錯程式之後,處理單元11清除第二位址空間101B中之第一識別碼,並將對應於第二錯誤種類之第二識別碼填入,處理單元11於下一次操作於系統管理模式時即可根據第二識別碼來執行對應的第二偵錯程式。In an embodiment, after the processing unit 11 executes the debug program, the processing unit 11 may clear the identifier corresponding to the executed debug program in the second address space 101B for filling in other errors. The type of identification code is in the second address space 101B, and the other unexecuted debug program is executed by the identification code previously stored in the second address space 101B when the system operation mode is next operated. For example, taking the first identification code corresponding to the first error category first stored in the second address space 101B, after the processing unit 11 executes the corresponding first debugging program according to the first identification code, the processing is performed. The unit 11 clears the first identification code in the second address space 101B, and fills in the second identification code corresponding to the second error category, and the processing unit 11 can perform the second identification according to the next operation in the system management mode. The code executes the corresponding second debug program.

在一實施例中,記憶體模組10可藉由其系統管理匯流排傳遞任一記憶體單元的溫度資料,也就是說,記憶體單元101與記憶體模組10中的其他記憶體單元102、103均連接於同一系統管理匯流排而共用前述系統管理匯流排,為了避免不同記憶體單元同時藉由系統管理匯流排傳遞資料而造成衝突,在系統管理模式中,處理單元11先關閉記憶體模組10的溫度資料輸出功能,在處理單元11執行偵錯程式並將偵錯資料寫入記憶體單元101的過程中,記憶體模組10無法藉由系統管理匯流排傳遞溫度資料,待處理單元11執行完偵錯程式並將偵錯資料儲存於第三位址空間101C之後,處理單元11再重新啟動記憶體模組10的溫度資料輸出功能並離開系統管理模式。In one embodiment, the memory module 10 can transfer temperature data of any memory unit by its system management bus, that is, the memory unit 101 and other memory units 102 in the memory module 10. And 103 are connected to the same system management bus and share the foregoing system management bus. In order to avoid conflicts caused by different memory units simultaneously transferring data through the system management bus, in the system management mode, the processing unit 11 first closes the memory. The temperature data output function of the module 10, in the process that the processing unit 11 executes the debug program and writes the debug data to the memory unit 101, the memory module 10 cannot transfer the temperature data through the system management bus, pending After the unit 11 executes the debug program and stores the debug data in the third address space 101C, the processing unit 11 restarts the temperature data output function of the memory module 10 and leaves the system management mode.

綜上所述,根據本發明之伺服器的偵錯裝置及其偵錯方法之一實施例,儲存有序列存在檢測資料的記憶體單元可儲存識別碼及偵錯資料,除錯者可根據伺服器錯誤的實際狀況將不同的識別碼儲存於前述之位址空間,並可自記憶體單元取得偵錯資料,藉此提升除錯時的方便性及除錯之準確性;再者,以儲存有序列存在檢測資料的記憶體單元來儲存識別碼及偵錯資料,並不需要額外的硬體來執行除錯程序,且所儲存的識別碼及偵錯資料不會因為關機或移除電源而流失,進一步降低了伺服器整體的生產成本。In summary, according to an embodiment of the debug apparatus of the server and the method for detecting the same according to the present invention, the memory unit storing the sequence presence detection data can store the identification code and the debug data, and the debugger can be based on the servo. The actual status of the error is stored in the address space of the foregoing, and the error detection data can be obtained from the memory unit, thereby improving the convenience of debugging and the accuracy of debugging. Further, the storage is The memory unit of the detection data exists in the sequence to store the identification code and the debugging data, and does not require additional hardware to perform the debugging process, and the stored identification code and the debugging data are not lost due to shutdown or power removal. , further reducing the overall production cost of the server.

雖然本案已以實施例揭露如上然其並非用以限定本案,任何所屬技術領域中具有通常知識者,在不脫離本案之精神和範圍內,當可作些許之更動與潤飾,故本案之保護範圍當視後附之專利申請範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Any person having ordinary knowledge in the technical field can make some changes and refinements without departing from the spirit and scope of the present case. This is subject to the definition of the scope of the patent application.

10‧‧‧記憶體模組
101‧‧‧記憶體單元
101A‧‧‧第一位址空間
101B‧‧‧第二位址空間
101C‧‧‧第三位址空間
102‧‧‧記憶體單元
103‧‧‧記憶體單元
11‧‧‧處理單元
111‧‧‧SMI腳位
12‧‧‧BIOS記憶體
13‧‧‧晶片組
14‧‧‧基板管理控制器
15‧‧‧系統管理匯流排
16‧‧‧系統管理匯流排
17‧‧‧系統管理匯流排
10‧‧‧ memory module
101‧‧‧ memory unit
101A‧‧‧First address space
101B‧‧‧Second address space
101C‧‧‧3rd address space
102‧‧‧ memory unit
103‧‧‧ memory unit
11‧‧‧Processing unit
111‧‧‧SMI feet
12‧‧‧BIOS memory
13‧‧‧ Chipset
14‧‧‧Base Management Controller
15‧‧‧System Management Bus
16‧‧‧System Management Bus
17‧‧‧System Management Bus

[圖1] 為根據本發明之伺服器之一實施例之方塊示意圖。 [圖2] 為圖1之記憶體單元之位址空間配置之一實施態樣之示意圖。1 is a block diagram showing an embodiment of a server in accordance with the present invention. FIG. 2 is a schematic diagram showing an implementation of an address space configuration of the memory unit of FIG. 1. FIG.

Claims (10)

一種伺服器的偵錯裝置,包含: 一記憶體模組,包含一記憶體單元,該記憶體單元包含: 一第一位址空間,用以儲存複數序列存在檢測資料; 一第二位址空間,用以儲存對應於一偵錯程式之一識別碼;及 一第三位址空間; 一基本輸入輸出系統記憶體,用以儲存一基本輸入輸出系統碼,該基本輸入輸出系統碼包含該偵錯程式;及 一處理單元,耦接於該基本輸入輸出系統記憶體,用以根據一中斷訊號操作於一系統管理模式,於該系統管理模式中,該處理單元根據該識別碼執行該基本輸入輸出系統碼中之該偵錯程式以產生一偵錯資料,並將該偵錯資料儲存於該第三位址空間。A debugging device for a server, comprising: a memory module, comprising a memory unit, the memory unit comprising: a first address space for storing a plurality of sequence presence detection data; and a second address space For storing an identification code corresponding to a debugger; and a third address space; a basic input/output system memory for storing a basic input/output system code, the basic input/output system code including the detect And a processing unit coupled to the basic input/output system memory for operating in a system management mode according to an interrupt signal, wherein the processing unit executes the basic input according to the identification code The debug program in the system code is output to generate a debug data, and the debug data is stored in the third address space. 如請求項1所述之伺服器的偵錯裝置,其中該記憶體單元包含一系統管理匯流排介面或一積體電路匯流排介面,該記憶體單元藉由該系統管理匯流排介面或該積體電路匯流排介面輸出該偵錯資料。The debug device of the server of claim 1, wherein the memory unit comprises a system management bus interface or an integrated circuit bus interface, and the memory unit manages the bus interface or the product by the system. The body circuit bus interface outputs the debug data. 如請求項2所述之伺服器的偵錯裝置,更包含一系統管理匯流排連接於該記憶體模組及該系統管理匯流排介面,於該系統管理模式中,該處理單元關閉該記憶體模組之一溫度資料輸出功能,使該記憶體模組於該系統管理模式中無法經由該系統管理匯流排傳遞一溫度資料。The debug device of the server of claim 2, further comprising a system management bus connected to the memory module and the system management bus interface, wherein the processing unit turns off the memory in the system management mode The temperature data output function of the module enables the memory module to transmit a temperature data through the system management busbar in the system management mode. 如請求項1所述之伺服器的偵錯裝置,其中該處理單元係於執行一作業系統時根據一錯誤參數的一錯誤種類將對應於該錯誤種類的該識別碼儲存於該第二位址空間。The debug device of the server of claim 1, wherein the processing unit stores the identification code corresponding to the error type in the second address according to an error category of an error parameter when executing an operating system space. 如請求項1所述之伺服器的偵錯裝置,其中該處理單元於該偵錯資料儲存於該第三位址空間後更新該識別碼。The debug device of the server of claim 1, wherein the processing unit updates the identification code after the debug data is stored in the third address space. 一種伺服器的偵錯方法,包含: 一處理單元根據一中斷訊號操作於一系統管理模式; 該處理單元於該系統管理模式中執行一基本輸入輸出系統碼,以根據一記憶體模組之一記憶體單元之一第二位址空間所儲存之一識別碼執行該基本輸入輸出系統碼中對應於該識別碼之一偵錯程式,並產生一偵錯資料,其中該記憶體單元之一第一位址空間儲存有複數序列存在檢測資料;及 該處理單元於該系統管理模式中將該偵錯資料儲存於該記憶體單元之一第三位址空間。A method for debugging a server, comprising: a processing unit operating in a system management mode according to an interrupt signal; the processing unit executing a basic input/output system code in the system management mode, according to one of the memory modules One of the identifiers stored in the second address space of the memory unit performs an error detection program corresponding to the identification code in the basic input/output system code, and generates a debug data, wherein the memory unit is one of the The one address space stores the plurality of sequence presence detection data; and the processing unit stores the debug data in the third address space of one of the memory units in the system management mode. 如請求項6所述之伺服器的偵錯方法,更包含:該記憶體單元經由一系統管理匯流排介面或一積體電路匯流排介面輸出該偵錯資料。The method for detecting a fault of the server according to claim 6, further comprising: the memory unit outputting the debug data via a system management bus interface or an integrated circuit bus interface. 如請求項7所述之伺服器的偵錯方法,更包含:該處理單元於該系統管理模式中關閉該記憶體模組之一溫度資料輸出功能,使該記憶體模組於該處理單元操作於該系統管理模式時無法經由連接於該記憶體模組及該系統管理匯流排介面之一系統管理匯流排傳遞一溫度資料。The method for detecting a fault of the server according to claim 7, further comprising: the processing unit turning off a temperature data output function of the memory module in the system management mode, and operating the memory module in the processing unit In the system management mode, a temperature data cannot be transmitted through the system management busbar connected to the memory module and the system management bus interface. 如請求項6所述之伺服器的偵錯方法,其中於該處理單元根據該識別碼執行該偵錯程式之步驟中,該處理單元於執行一作業系統時根據一錯誤參數的一錯誤種類將對應於該錯誤種類的該識別碼儲存於該第二位址空間,以根據該識別碼執行該偵錯程式。The debugging method of the server according to claim 6, wherein in the step of the processing unit executing the debugging program according to the identification code, the processing unit performs an operating system according to an error type of an error parameter The identification code corresponding to the error type is stored in the second address space to execute the debug program according to the identification code. 如請求項6所述之伺服器的偵錯方法,更包含:該處理單元於該偵錯資料儲存於該第三位址空間後更新該識別碼。The method for detecting a fault of the server according to claim 6, further comprising: the processing unit updating the identifier after the debug data is stored in the third address space.
TW106116018A 2017-05-15 2017-05-15 Error detecting apparatus of server and error detecting method thereof TWI620061B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106116018A TWI620061B (en) 2017-05-15 2017-05-15 Error detecting apparatus of server and error detecting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106116018A TWI620061B (en) 2017-05-15 2017-05-15 Error detecting apparatus of server and error detecting method thereof

Publications (2)

Publication Number Publication Date
TWI620061B true TWI620061B (en) 2018-04-01
TW201901427A TW201901427A (en) 2019-01-01

Family

ID=62639735

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106116018A TWI620061B (en) 2017-05-15 2017-05-15 Error detecting apparatus of server and error detecting method thereof

Country Status (1)

Country Link
TW (1) TWI620061B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI687813B (en) * 2018-08-31 2020-03-11 英業達股份有限公司 Information sharing circuit and method for sharing memory state
CN110955566A (en) * 2018-09-27 2020-04-03 佛山市顺德区顺达电脑厂有限公司 Debugging method
US20220318087A1 (en) * 2021-04-01 2022-10-06 Micron Technology, Inc. Recording and decoding of information related to memory errors identified by microprocessors
TWI801412B (en) * 2018-09-06 2023-05-11 神雲科技股份有限公司 Debug method
US11726873B2 (en) 2021-12-20 2023-08-15 Micron Technology, Inc. Handling memory errors identified by microprocessors

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI715201B (en) * 2019-09-18 2021-01-01 神雲科技股份有限公司 Hang-up information recording method
TWI845166B (en) * 2023-02-16 2024-06-11 神雲科技股份有限公司 Display method for memory module fatal error

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6980660B1 (en) * 1999-05-21 2005-12-27 International Business Machines Corporation Method and apparatus for efficiently initializing mobile wireless devices
TW201037604A (en) * 2009-04-14 2010-10-16 Inventec Corp Initialization method for electronic device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6980660B1 (en) * 1999-05-21 2005-12-27 International Business Machines Corporation Method and apparatus for efficiently initializing mobile wireless devices
TW201037604A (en) * 2009-04-14 2010-10-16 Inventec Corp Initialization method for electronic device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI687813B (en) * 2018-08-31 2020-03-11 英業達股份有限公司 Information sharing circuit and method for sharing memory state
TWI801412B (en) * 2018-09-06 2023-05-11 神雲科技股份有限公司 Debug method
CN110955566A (en) * 2018-09-27 2020-04-03 佛山市顺德区顺达电脑厂有限公司 Debugging method
CN110955566B (en) * 2018-09-27 2023-08-08 佛山市顺德区顺达电脑厂有限公司 Error detecting method
US20220318087A1 (en) * 2021-04-01 2022-10-06 Micron Technology, Inc. Recording and decoding of information related to memory errors identified by microprocessors
US11720438B2 (en) * 2021-04-01 2023-08-08 Micron Technology, Inc. Recording and decoding of information related to memory errors identified by microprocessors
US11726873B2 (en) 2021-12-20 2023-08-15 Micron Technology, Inc. Handling memory errors identified by microprocessors

Also Published As

Publication number Publication date
TW201901427A (en) 2019-01-01

Similar Documents

Publication Publication Date Title
TWI620061B (en) Error detecting apparatus of server and error detecting method thereof
CN103930878B (en) Method, Apparatus and system for memory verification
US7565579B2 (en) Post (power on self test) debug system and method
US20060136794A1 (en) Computer peripheral connecting interface system configuration debugging method and system
US11175977B2 (en) Method and system to detect failure in PCIe endpoint devices
US20080016415A1 (en) Evaluation system and method
TW201341811A (en) Adapter module and motherboard testing device using the same
CN108549591A (en) A kind of black box device and its implementation of embedded system
CN107301042B (en) SoC application program guiding method with self-checking function
US20060265581A1 (en) Method for switching booting devices of a computer
CN109117299B (en) Error detecting device and method for server
KR900002438B1 (en) Inter-processor connecting system
US11249872B1 (en) Governor circuit for system-on-chip
KR20130126513A (en) Signal processing circuit and testing apparatus using the same
US20090144585A1 (en) Debugging method of the basic input/output system
US9983885B2 (en) BIOS system with non-volatile data memory
TWI668566B (en) Memory inspecting system, memory inspecting method, and error mapping table building method for memory inspecting
CN110956998A (en) Memory testing device and system
JP2007058450A (en) Semiconductor integrated circuit
CN104572423A (en) Debugging system and debugging device and method thereof
TWI789983B (en) Power management method and power management device
TWI845166B (en) Display method for memory module fatal error
CN112534414A (en) Software trace message receiver peripheral
JP2020140380A (en) Semiconductor device and debugging system
CN111949431B (en) Fatal error providing method and fatal error identification method for system-on-chip product

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees