CN107656856B - CPLD-based system state display method and device - Google Patents

CPLD-based system state display method and device Download PDF

Info

Publication number
CN107656856B
CN107656856B CN201710874827.9A CN201710874827A CN107656856B CN 107656856 B CN107656856 B CN 107656856B CN 201710874827 A CN201710874827 A CN 201710874827A CN 107656856 B CN107656856 B CN 107656856B
Authority
CN
China
Prior art keywords
cpld
bmc
interface
system state
state 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.)
Active
Application number
CN201710874827.9A
Other languages
Chinese (zh)
Other versions
CN107656856A (en
Inventor
奚立达
宋丽青
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201710874827.9A priority Critical patent/CN107656856B/en
Publication of CN107656856A publication Critical patent/CN107656856A/en
Application granted granted Critical
Publication of CN107656856B publication Critical patent/CN107656856B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/32Monitoring with visual or acoustical indication of the functioning of the machine
    • G06F11/324Display of status information
    • G06F11/328Computer systems status display

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a CPLD-based system state display method and device, wherein the method comprises the following steps: monitoring the BMC activation state through the CPLD; when the BMC is not activated, sending system state information acquired by the PCH to the CPLD, wherein the CPLD performs LPC decoding on the system state information, and outputs the decoded system state information through a simulated UART interface for display; and when the BMC is activated, sending the system state information acquired by the PCH to the BMC, carrying out LPC decoding on the system state information by the BMC, outputting the decoded system state information through an SYS UART interface, and displaying the decoded system state information. The invention selects the CPLD chip to assist the BMC to output the UART interface of the system, analyzes the GPIO, LPC and UART and detects the related signals of the peripheral chip and outputs the signals through the simulation UART interface, thereby more comprehensively collecting the state information.

Description

CPLD-based system state display method and device
Technical Field
The invention relates to the technical field of computer servers, in particular to a CPLD-based system state display method and device.
Background
With the development of information technology, the application of servers is more and more extensive, the performance of servers is also continuously upgraded, BMC (Baseboard Management Controller) is used as a main control chip and a monitoring chip in a server system, the work performed by BMC is more and more, and more information needs to be collected and monitored.
Because the number of logic units and pin pins of the BMC is limited, a rapidly changing system signal cannot be captured, and because the BMC needs certain starting time and restarting operation limitation, the whole system cannot be monitored and controlled in real time at a certain time point; moreover, the BMC has more monitoring and management functions and larger load, so that certain influence is brought to the monitoring and controllability of the system by utilizing the BMC.
Therefore, the system status cannot be completely monitored and displayed by only using the BMC.
Disclosure of Invention
The invention aims to provide a CPLD-based system state display method and device, which aim to solve the problem that a BMC in a server system cannot monitor and control the whole system in real time in the whole process, and realize the purpose of utilizing the CPLD to assist the BMC in monitoring and controlling the system.
In order to achieve the technical purpose, the invention provides a system state display method based on a CPLD, which comprises the following steps:
monitoring the BMC activation state through the CPLD;
when the BMC is not activated, sending system state information acquired by the PCH to the CPLD, wherein the CPLD performs LPC decoding on the system state information, and outputs the decoded system state information through a simulated UART interface for display;
and when the BMC is activated, sending the system state information acquired by the PCH to the BMC, carrying out LPC decoding on the system state information by the BMC, outputting the decoded system state information through an SYS UART interface, and displaying the decoded system state information.
Preferably, the system state information includes progress, temperature, and debug Port of the BIOS fetch code.
Preferably, the analog UART interface is obtained by simulating a GPIO interface of the CPLD.
Preferably, the CPLD also monitors system state information of the CPU and VR.
The embodiment of the invention also provides a system state display device based on the CPLD, which comprises the CPLD, the BMC and the PCH;
the CPLD comprises a GPIO interface, an LPC interface and an analog UART interface, the GPIO interface is connected to a UART interface of the BMC, the LPC interface is connected to an LPC interface of the PCH, and the analog UART interface is connected to a DEBUG COM printing interface;
the LPC interface of the BMC is connected to the LPC interface of the PCH, the PCIE interface is connected to the PCH, and the SYS UART interface is connected to the SYS COM printing interface.
Preferably, system state information is transmitted between the CPLD and the PCH, and the system state information includes progress, temperature, and debug Port of the bios fetch code.
Preferably, the analog UART interface is obtained by simulating a GPIO interface of the CPLD.
Preferably, the device further comprises a CPU and a VR, and the CPU and the VR are respectively connected with the CPLD.
The effect provided in the summary of the invention is only the effect of the embodiment, not all the effects of the invention, and one of the above technical solutions has the following advantages or beneficial effects:
compared with the prior art, the invention utilizes the CPLD to assist the BMC in system monitoring and management, and more comprehensively collects state information. The starting time of the CPLD is far earlier than that of other chips including the BMC, so that the starting time of the BMC is not required to be considered; the CPLD can detect nanosecond-level signals, so that the problem that the BMC cannot capture fast signals due to slow monitoring time is perfectly solved; in addition, as the CPLD resources and the pin are enough, the problem that the BMC resources and the pin are not enough is solved; finally, the BMC cannot monitor the system when restarting or burning, but has no influence on the CPLD, and the CPLD is relatively stable.
Drawings
Fig. 1 is a flowchart of a CPLD-based system state display method provided in an embodiment of the present invention;
fig. 2 is a block diagram of a CPLD-based system state display device according to an embodiment of the present invention.
Detailed Description
In order to clearly explain the technical features of the present invention, the following detailed description of the present invention is provided with reference to the accompanying drawings. The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. It should be noted that the components illustrated in the figures are not necessarily drawn to scale. Descriptions of well-known components and processing techniques and procedures are omitted so as to not unnecessarily limit the invention.
The method and the device for displaying the system state based on the CPLD according to the embodiments of the present invention are described in detail below with reference to the accompanying drawings.
As shown in fig. 1, an embodiment of the present invention discloses a CPLD-based system state display method, including:
monitoring the BMC activation state through the CPLD;
when the BMC is not activated, sending system state information acquired by the PCH to the CPLD, wherein the CPLD performs LPC decoding on the system state information, and outputs the decoded system state information through a simulated UART interface for display;
and when the BMC is activated, sending the system state information acquired by the PCH to the BMC, carrying out LPC decoding on the system state information by the BMC, outputting the decoded system state information through an SYS UART interface, and displaying the decoded system state information.
The main chip components in the server mainly include a CPU, a BMC, a CPLD (Complex programmable logic Device), a VR (Voltage Regulator), a COM interface, and a PCH (Platform Controller Hub).
The power management of each core chip in the system is completed by VR, the CPLD controls the power-on time sequence of the whole system, after the CPLD is powered on, the CPU starts the fetch code from the PCH through the DMI bus and configures the internal register of the CPU, so that the whole system starts to work.
The BMC acquires other information in the system from the PCH through the PCIE interface and the LPC interface, wherein the information comprises progress, temperature, debug Port and the like of the BIOSfetch code, and the information is stored in the ROM after the BMC is activated and is transmitted to the SYS COM interface through the SYSUATR interface to be printed. However, since the BMC itself needs a certain startup time and a limitation of the restart operation, the BMC has a certain influence on monitoring the system state information during the time before the startup.
In the embodiment of the invention, the main chips of the server are connected with the CPLD according to the connection mode shown in FIG. 2, the signals of all chip components are transmitted to the CPLD, and the internal monitoring module of the CPLD processes different functional signals and latches the signals into the internal register, so that the system state in the system can be monitored.
After the system is powered on, the CPLD is activated to start to collect system state information and print and display the system state information, simultaneously the CPLD monitors the BMC activation state, and the system state information monitored by the BMC is transmitted to the CPLD for system state monitoring according to the activation state of the BMC:
the GPIO interface of the CPLD is connected with the UART interface of the BMC, so that the BMC state is monitored, and whether the BMC is activated or not is judged.
When the BMC is not activated, transmitting system signals acquired from the PCH and originally monitored by the BMC, including progress, temperature, DEBUG Port and the like of the BIOSfetch code to the CPLD, analyzing the system state information by the CPLD through an internal LPC decoding module to obtain corresponding information, simulating the GPIO by the CPLD to obtain a UART interface, outputting the analyzed system state information to a DEBUG COM printing interface through a simulated UART interface, printing and displaying related system prompt information.
When the BMC is activated, the CPLD does not share the monitoring task of the BMC any more, the BMC receives a part of LPC signals through an LPC protocol interface, and receives system signals acquired from the PCH through a PCIE interface, wherein the system signals comprise the progress, the temperature, the debug Port and the like of the BIOS fetch code, and the system state information is transmitted to an SYS UART interface in the BMC, is output to an SYS COM printing interface for printing and displays related system prompt information.
According to the invention, the CPLD chip is selected to assist the BMC to output the UART interface of the system, the GPIO, the LPC, the UART and the related signals of the detection peripheral chip are analyzed and output through the simulation UART interface, so that different prompt information is displayed, and meanwhile, the activation state of the BMC is monitored, and when the BMC is not activated, the system state information received by the BMC is output, so that the state information is collected more comprehensively.
The starting time of the CPLD is far earlier than that of other chips including the BMC, so that the starting time of the BMC is not required to be considered; the CPLD can detect nanosecond-level signals, so that the problem that the BMC cannot capture fast signals due to slow monitoring time is perfectly solved; in addition, as the CPLD resources and the pin are enough, the problem that the BMC resources and the pin are not enough is solved; finally, the BMC cannot monitor the system when restarting or burning, but has no influence on the CPLD, and the CPLD is relatively stable.
The embodiment of the invention also discloses a system state display device based on the CPLD, which comprises the CPLD, the BMC and the PCH as shown in figure 2.
The CPLD comprises a GPIO interface, an LPC interface and an analog UART interface, the GPIO interface is connected to a UART interface of the BMC, the LPC interface is connected to an LPC interface of the PCH, and the analog UART interface is connected to a DEBUG COM printing interface.
The LPC interface of the BMC is connected to the LPC interface of the PCH, the PCIE interface is connected to the PCH, and the SYS UART interface is connected to the SYS COM printing interface.
The GPIO interface of the CPLD is connected with the UART interface of the BMC, so that the BMC state is monitored, and whether the BMC is activated or not is judged.
When the BMC is not activated, transmitting system signals acquired from the PCH and originally monitored by the BMC, including progress, temperature, DEBUG Port and the like of the BIOSfetch code to the CPLD, analyzing the system state information by the CPLD through an internal LPC decoding module to obtain corresponding information, simulating the GPIO interface by the CPLD to obtain a UART interface, and outputting the analyzed system state information to a DEBUG COM printing interface through a simulated UART interface for printing.
When the BMC is activated, the CPLD does not share the monitoring task of the BMC any more, the BMC receives a part of LPC signals through an LPC protocol interface, and receives system signals acquired from the PCH through a PCIE interface, wherein the system signals comprise the progress, the temperature, the debug Port and the like of the BIOS fetch code, and the system state information is transmitted to an SYS UART interface in the BMC, is output to an SYS COM printing interface for printing and displays related system prompt information.
The device also comprises a CPU and a VR, wherein the CPU and the VR are respectively connected with a monitor of the CPLD, so that the system information of other main chips in the CPLD monitoring system is realized.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.

Claims (8)

1. A CPLD-based system state display method is characterized by comprising the following steps:
monitoring the BMC activation state through the CPLD; the monitoring of the BMC activation state through the CPLD is to monitor the BMC state by connecting a GPIO interface of the CPLD with a UART interface of the BMC and judge whether the BMC is activated;
when the BMC is not activated, sending system state information acquired by the PCH to the CPLD, wherein the CPLD performs LPC decoding on the system state information, and outputs the decoded system state information through a simulated UART interface for display;
and when the BMC is activated, sending the system state information acquired by the PCH to the BMC, carrying out LPC decoding on the system state information by the BMC, outputting the decoded system state information through an SYS UART interface, and displaying the decoded system state information.
2. The CPLD-based system state display method of claim 1, wherein the system state information includes progress, temperature and debug Port of BIOS fetch code.
3. The CPLD-based system state display method according to claim 1, wherein the simulated UART interface is obtained by simulating a GPIO interface of a CPLD.
4. The CPLD-based system status display method of claim 1, wherein the CPLD also monitors the system status information of the CPU and VR.
5. A system state display device based on CPLD is characterized by comprising a CPLD, a BMC and a PCH;
the CPLD comprises a GPIO interface, an LPC interface and an analog UART interface, the GPIO interface is connected to a UART interface of the BMC, the LPC interface is connected to an LPC interface of the PCH, and the analog UART interface is connected to a DEBUG COM printing interface;
the LPC interface of the BMC is connected to the LPC interface of the PCH, the PCIE interface is connected to the PCH, and the SYS UART interface is connected to the SYS COM printing interface.
6. The CPLD-based system status display device according to claim 5, wherein system status information is transmitted between the CPLD and the PCH, and the system status information includes the progress, temperature and debug Port of the BIOS fetch code.
7. The CPLD-based system state display device according to claim 5, wherein the simulated UART interface is obtained by simulating a GPIO interface of the CPLD.
8. The CPLD-based system status display device according to claim 5, wherein the device further comprises a CPU and a VR, the CPU and VR are respectively connected with the CPLD.
CN201710874827.9A 2017-09-25 2017-09-25 CPLD-based system state display method and device Active CN107656856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710874827.9A CN107656856B (en) 2017-09-25 2017-09-25 CPLD-based system state display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710874827.9A CN107656856B (en) 2017-09-25 2017-09-25 CPLD-based system state display method and device

Publications (2)

Publication Number Publication Date
CN107656856A CN107656856A (en) 2018-02-02
CN107656856B true CN107656856B (en) 2020-06-16

Family

ID=61131373

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710874827.9A Active CN107656856B (en) 2017-09-25 2017-09-25 CPLD-based system state display method and device

Country Status (1)

Country Link
CN (1) CN107656856B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108845913A (en) * 2018-06-19 2018-11-20 郑州云海信息技术有限公司 A kind of diagnostic card of system and its I/O state for obtaining CPLD
CN109032678B (en) * 2018-07-18 2020-07-07 苏州浪潮智能科技有限公司 Method, apparatus, medium, and method for controlling amount of BIOS print information
CN109062828A (en) * 2018-07-19 2018-12-21 郑州云海信息技术有限公司 A kind of CPLD and storage control circuit
CN109120143B (en) * 2018-07-25 2021-08-10 郑州云海信息技术有限公司 Method, main controller and system for controlling power on and power off
CN109308244A (en) * 2018-09-13 2019-02-05 郑州云海信息技术有限公司 A kind of display methods, system and the associated component of BMC module state
CN111679948B (en) * 2019-03-11 2023-08-15 深圳富联富桂精密工业有限公司 Hard disk state monitoring system and method thereof
CN114077566B (en) * 2020-08-20 2023-10-13 富联精密电子(天津)有限公司 System and method for data processing between upper computer and CPLD
CN112363894A (en) * 2020-11-09 2021-02-12 北京计算机技术及应用研究所 Domestic computer fault alarm system
CN113204466B (en) * 2021-04-29 2022-11-18 山东英信计算机技术有限公司 Over-temperature protection method and electronic equipment
CN114817096B (en) * 2022-04-08 2023-07-25 苏州浪潮智能科技有限公司 System, method, equipment and computer readable medium for switching serial ports of BMC and BIOS

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102722232B (en) * 2012-05-30 2016-09-21 曙光信息产业(北京)有限公司 Control system that a kind of ATCA blade powers on and method
CN103970635A (en) * 2014-04-28 2014-08-06 浪潮电子信息产业股份有限公司 Server hardware fault self-diagnosis method
CN104516434B (en) * 2014-12-11 2018-03-30 曙光云计算集团有限公司 Server system
CN104375915A (en) * 2014-12-16 2015-02-25 浪潮电子信息产业股份有限公司 Method for using interaction of server motherboard BMC and CPLD for rapid diagnosis of motherboard timing
CN104572226A (en) * 2015-02-04 2015-04-29 浪潮(北京)电子信息产业有限公司 Method and device for detecting mainboard starting abnormity

Also Published As

Publication number Publication date
CN107656856A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
CN107656856B (en) CPLD-based system state display method and device
US7987389B2 (en) System and method for testing sleep and wake functions of computer
US8538720B2 (en) Cold boot test system and method for electronic devices
TW201109913A (en) Main system board error-detecting system and its pluggable error-detecting board
TWI453583B (en) Computer system and diagnostic method thereof
CN107357694A (en) Error event reporting system and its method during startup self-detection
CN114138644A (en) BMC (baseboard management controller) debugging method, monitoring method, system, device, equipment and medium
CN109582505B (en) BIOS option default value recovery system, method and device
JP2002358212A (en) Microcomputer with debugging support function
CN103713977B (en) Microprocessor IP (internet protocol) kernel comparison and verification implementation method
US20140143601A1 (en) Debug device and debug method
CN113609051A (en) Hot plug method, system, device and computer storage medium for expansion board
KR20200062594A (en) Operating method in debugging system for vehicle
TW201527965A (en) System and method for detecting a BIOS test process of a computer
US8635502B2 (en) Debug card and method for diagnosing faults
CN108197063B (en) Active serial configuration method and device for SPI (serial peripheral interface) of FPGA (field programmable Gate array)
CN106649002A (en) Server and method for automatically overhauling baseboard management controller
US20140164815A1 (en) Server analyzing system
TWI675293B (en) A host boot detection method and its system
CN105068835B (en) Mobile terminal and debugging information display method thereof
CN110321171B (en) Startup detection device, system and method
CN115204081A (en) Chip simulation method, chip simulation platform, chip simulation system, and computer-readable storage medium
US10191875B2 (en) Techniques of providing serial port in non-legacy system via embedded-system device
CN102243601B (en) Debugging system and relevant method for detecting and controlling state of computer host
CN108073481B (en) Server system capable of providing hardware operation information and processing method thereof

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
TA01 Transfer of patent application right

Effective date of registration: 20200521

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant