Hard disk controller reset system, method, logic controller and voltage monitor
Through the hard disk controller reset system, the logic controller and voltage monitor are used to determine the initial level according to the PG signal output by the power supply, which solves the problem of abnormal SSD power-on timing and achieves the effective operation of the hard disk controller and the reliability of data storage. .
Patent Information
- Application Number
- CN202210179459.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-25
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2042-02-25
AI Technical Summary
The power-on sequence hardware design of the SSD controller is unreasonable, resulting in initialization abnormalities, which may cause the SSD to be unable to recognize and save data normally, affecting its reliable operation.
Design a reset system for the hard disk controller, including a power module, a logic controller and a voltage monitor. The logic controller determines the initial level based on the PG signal output by the power supply, and passes the target level to the voltage monitor to decide whether Perform a reset operation to ensure the effective operation of the hard disk controller.
It realizes real-time monitoring of the power module, ensures the effective operation of the hard disk controller, adjusts the reset delay time, meets the reliability requirements of hardware power-on initialization, and avoids unexplained errors and data loss.
Smart Images

Figure CN114566195B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of hard disk control technology, and in particular to a hard disk controller reset system, method, logic controller and voltage monitor. Background Art
[0002] In the case of SSDs being used with servers / storage devices, reliable hardware circuit design is crucial to ensure reliable operation of the SSD. For example, the power-on timing and reset signal power-on timing of some SSD controller chips are crucial. If the power-on timing hardware design is unreasonable, the SSD controller power-on initialization may be abnormal, and the initialization configuration parameters may run abnormally. The above abnormal SSD controller initialization status may cause the SSD controller to have unexplained errors, and the SSD disk may not be recognized normally, and cannot run reliably and save user data normally. Summary of the invention
[0003] In order to solve the above technical problem or at least partially solve the above technical problem, the present application provides a reset system, method, logic controller and voltage monitor for a hard disk controller.
[0004] According to one aspect of an embodiment of the present application, a reset system of a hard disk controller is provided, the system comprising: a power module, a logic controller, a voltage monitor and a hard disk controller, the output end of the power module is connected to the input end of the logic controller, the output end of the logic controller is connected to the input end of the voltage monitor, and the voltage monitor is connected to the hard disk controller;
[0005] The power supply module is used to output multiple PG signals to the logic controller using various power supplies;
[0006] The logic controller is used to input the PG signal to each diode in the logic controller, determine the initial level output by each diode, determine the target level output by the logic controller to the voltage monitor according to the initial level output by each diode; send the target level to the power supply monitor, wherein the diodes correspond to the power supplies one by one;
[0007] The power supply monitor is used to determine whether to perform a reset operation on the hard disk controller according to the target level.
[0008] Furthermore, the logic controller includes a plurality of branches, each branch is respectively connected to the power supply in the power module, and each branch includes a resistor and a diode.
[0009] Furthermore, the power supply monitor includes: a SENSE input terminal, a SENSE output terminal, a CT terminal, a comparator and a delay device, wherein the SENSE input terminal is connected to the positive input terminal of the comparator, the reverse input terminal of the comparator is grounded, the output terminal of the comparator and the CT terminal are both connected to the input terminal of the delay device, and the output terminal of the delay device is connected to the SENSE output terminal.
[0010] According to another aspect of the embodiment of the present application, a method for resetting a hard disk controller is also provided, which is applied to a logic controller, and the method includes:
[0011] receiving a PG signal output to the logic controller after each power supply is powered on;
[0012] Inputting the PG signal to each diode in the logic controller and determining the initial level output by each diode, wherein the diodes correspond to the power supplies one by one;
[0013] determining a target level output by the logic controller to the voltage monitor according to the initial levels output by each diode;
[0014] The target level is sent to the voltage monitor, so that the voltage monitor determines whether to perform a reset operation on the hard disk controller according to the target level.
[0015] Furthermore, the step of inputting the PG signal to each diode in the logic controller and determining the initial level state of the level output by each diode includes:
[0016] Input the PG signal to each diode in the logic controller, and determine the target output state of the corresponding power supply according to the PG signal through the diode;
[0017] Based on the correspondence between the preset output state and the level, an initial level corresponding to the target output state is determined, wherein when the target output state is an abnormal state, the initial level is a low level, or, when the target output state is a normal state, the initial level is a high level.
[0018] Further, determining the target level output by the logic controller to the voltage monitor according to the initial level output by each diode includes:
[0019] In the case that there is at least one low level among the initial levels output by the diodes, determining that the target level output by the logic controller to the voltage controller is a low level;
[0020] or,
[0021] In the case that there is no low level in the initial levels outputted by the respective diodes, it is determined that the target level outputted by the logic controller to the voltage controller is a high level.
[0022] According to another aspect of the embodiment of the present application, a reset method of a hard disk controller is also provided, which is applied to a voltage monitor, and the method includes:
[0023] receiving a target level output by a logic controller;
[0024] Inputting the target level into a comparator inside the voltage monitor, and determining the level type of the target level through the comparator;
[0025] In a case where the level type is used to indicate that the target level is a high level, determining a delay time for controlling the hard disk controller to delay entering a release-reset state;
[0026] When the delay time is reached, a first control signal is sent to the hard disk controller, wherein the first control signal is used to control the hard disk controller to enter a release-reset state.
[0027] Furthermore, the method further comprises:
[0028] In a case where the level type is used to indicate that the target level is a low level, a second control signal is sent to the hard disk controller, wherein the second control signal is used to control the hard disk controller to enter a reset state.
[0029] According to another aspect of the embodiment of the present application, a logic controller is further provided, including:
[0030] A receiving module, used for receiving a PG signal output to the logic controller after each power supply is powered on;
[0031] An input module, used to input the PG signal to each diode in the logic controller and determine the initial level output by each diode, wherein the diode corresponds to the power supply one by one;
[0032] A determination module, used to determine a target level output by the logic controller to the voltage monitor according to an initial level output by each diode;
[0033] The sending module is used to send the target level to the monitor, so that the monitor determines whether to perform a reset operation on the hard disk controller according to the target level.
[0034] According to another aspect of the embodiment of the present application, a voltage monitor is provided, including:
[0035] A receiving module, used for receiving a target level output by a logic controller;
[0036] An input module, used for inputting the target level into a comparator inside the voltage monitor, and determining the level type of the target level through the comparator;
[0037] a determination module, configured to determine a delay time for controlling the hard disk controller to delay entering a release-reset state when the level type indicates that the target level is a high level;
[0038] The sending module is used to send a first control signal to the hard disk controller when the delay time is reached, wherein the first control signal is used to control the hard disk controller to enter a release reset state.
[0039] According to another aspect of an embodiment of the present application, a storage medium is further provided, which includes a stored program, and the above steps are executed when the program is run.
[0040] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; wherein: the memory is used to store computer programs; and the processor is used to execute the steps in the above method by running the program stored in the memory.
[0041] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps in the above method.
[0042] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the embodiment of the present application uses the logic controller to output the target level according to the PG signal output by each power supply, and transmits the target level to the voltage monitor, and the voltage monitor determines the output status of each power supply through the target level, thereby determining whether to reset the hard disk controller. In this way, real-time monitoring of the power module is achieved to ensure the effective operation of the hard disk controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0044] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0045] Figure 1 A schematic diagram of a hard disk controller reset system provided in an embodiment of the present application;
[0046] Figure 2 A timing diagram of the delay time provided in the embodiment of the present application;
[0047] Figure 3 A flowchart of a hard disk controller reset method provided in an embodiment of the present application;
[0048] Figure 4 A flowchart of a hard disk controller reset method provided by another embodiment of the present application;
[0049] Figure 5 A block diagram of a logic controller provided in an embodiment of the present application;
[0050] Figure 6 A block diagram of a voltage monitor device provided in an embodiment of the present application;
[0051] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. The schematic embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0053] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another similar entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0054] The present application provides a hard disk controller reset system, method, logic controller and voltage monitor. The method provided by the present application can be applied to any required electronic device, for example, it can be a server, terminal and other electronic devices, which are not specifically limited here. For the convenience of description, it is referred to as electronic device in the following.
[0055] According to one aspect of an embodiment of the present application, a reset system for a hard disk controller is provided. Figure 1 A schematic diagram of a hard disk controller reset system provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the system includes: a power module 100, a logic controller 200, a voltage monitor 300 and a hard disk controller 400, the output end of the power module 100 is connected to the input end of the logic controller 200, the output end of the logic controller 200 is connected to the input end of the voltage monitor 300, and the voltage monitor 300 is connected to the hard disk controller 400;
[0056] The power module 100 is used to output multiple PG signals to the logic controller using various power supplies;
[0057] The logic controller 200 is used to input the PG signal to each diode in the logic controller, determine the initial level output by each diode, determine the target level output by the logic controller to the voltage monitor according to the initial level output by each diode; and send the target level to the power supply monitor, wherein the diode corresponds to the power supply one by one.
[0058] The power monitor 300 is used to determine whether to perform a reset operation on the hard disk controller 400 according to the target level.
[0059] In the embodiment of the present application, the logic controller 200 includes a plurality of branches, each branch is respectively connected to the power supply in the power module, and each branch includes a resistor and a diode.
[0060] As an example, Figure 1 As shown, the power module includes: P2V5_NAND_VCC power supply, P0V9 power supply, P1V2_DRAM power supply, P1V8_NAND_IO power supply, P2V5_DRAM_VPP power supply, P0V6_VREFCA power supply, P0V6_DARM_VTT power supply, P0V0_VREF power supply, and P3V3 power supply. Each power supply outputs a PG signal to the logic controller.
[0061] In an embodiment of the present application, the logic controller includes multiple branches, each branch is used to receive the PG signal output by each power supply in the power module, each branch includes a resistor and a diode, each diode is used to output a corresponding initial level according to the PG signal, and then the logic controller summarizes the initial levels output by each diode to obtain a total target level.
[0062] As an example, Figure 1 As shown, diode D1 is used to receive the PG signal output by P2V5_NAND_VCC power supply, diode D2 is used to receive the PG signal output by P0V9 power supply, diode D3 is used to receive the PG signal output by P1V2_DRAM power supply, diode D4 is used to receive the PG signal output by P2V5_DRAM_VPP power supply, and so on, diode D8 is used to receive the PG signal output by P3V3 power supply. This is achieved by a simple diode combined into an "AND gate" circuit, and the diode needs to be selected from materials with small forward conduction voltage drop and small junction capacitance.
[0063] In the embodiment of the present application, each diode is used to detect the PG signal. If a certain power supply does not output or the output is unstable, the corresponding PG signal output is low level. For example: the P2V5_NAND_VCC voltage has not been output normally, and the other 7 circuits are normal; then the cathode level of the D1 diode is low level, and according to the unidirectional conductivity of the diode, the anode voltage of the D1 diode is also low level, that is, the overall target level after the diode is combined is low level, and the "RST_n" signal of the voltage monitor delay logic control unit is low level.
[0064] In the embodiment of the present application, when all 8 power supplies are powered on and their outputs are normal, the overall PG signal outputs a high level after the diodes are combined, and the "RST_n" signal of the voltage monitor delay logic control unit is a high level.
[0065] In an embodiment of the present application, the power supply monitor 300 includes: a SENSE input terminal, a SENSE output terminal, a CT terminal, a comparator and a delay device, wherein the SENSE input terminal is connected to the positive input terminal of the comparator, the reverse input terminal of the comparator is grounded, the output terminal of the comparator and the CT terminal are both connected to the input terminal of the delay device, and the output terminal of the delay device is connected to the SENSE output terminal.
[0066] In the embodiment of the present application, the power monitor is mainly used to control the time relationship between the power supply voltage of the system and the "RST_n" signal of the hard disk controller. The power monitor can be implemented using an integrated IC chip. The C1 capacitor at the CT terminal is used to adjust the delay time between the SENSE and SENSE_OUT terminals, Tdelay(s) = [CCT(uF)x4] + 40us, such as the C1 capacitor selection of 470pf, and in the case of a high level, the delay time is about 1.92ms.
[0067] In an embodiment of the present application, for a scenario where the power supply voltage in the system is not output normally during the power-on process, when the SENSE end (corresponding to the target level of the closing diode) is at a low level, after passing through the comparator, the SENSE OUT end of the power monitor outputs a low level. At this time, the hardware controller is reset and the hard disk cannot be started.
[0068] In the scenario where the power supply voltage in the hard disk is output normally during the power-on process, when the SENSE end is at a high level, after the high level passes through the internal comparator and the Delay delayer, the SENSE OUT end outputs a high level, at which time the hard disk controller is reset and the SSD starts normally. Specifically, when the SENSE end is at a high level, the Delay delayer receives the high level input by the SENSE end and the capacitance value of the C1 capacitor input, and then determines the delay time based on the high level and the capacitance value. After the delay time is reached, the Delay delayer outputs a signal to the hard disk controller to reset the hard disk controller.
[0069] It should be noted that different types of hard disk controllers have different requirements for time. The setting of the Delay timer can also be determined according to the tINIT time required by the hard disk controller (see the attached Figure 2 ) As an example, when the power supply of the hardware controller is normal, at least 500us later, the reset signal of the master controller is in "high level, released reset state".
[0070] The embodiment of the present application uses the system to, on the one hand, use the logic controller to output the target level according to the PG signal output by each power supply, and pass the target level to the voltage monitor. The voltage monitor determines the output status of each power supply through the target level, thereby determining whether to reset the hard disk controller. In this way, real-time monitoring of the power module is achieved to ensure the effective operation of the hard disk controller. On the other hand, when determining to perform a reset operation on the hard disk controller, the reset delay time can also be adjusted to meet the power-on timing requirements of the hard disk controller reset signal, providing guarantees for the successful power-on initialization of the controller and the reliable operation after power-on.
[0071] In addition, the application circuit and device provided in the embodiment of the present application are simple in design, easy to use, occupy little PCB space, and the power-on time relationship between the power supply in the hard disk mainboard and the controller reset signal can be adjusted. According to one aspect of the embodiment of the present application, a method embodiment for resetting a hard disk controller is provided. Figure 3 A flowchart of a hard disk controller reset method provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the method includes:
[0072] Step S11, receiving the PG signal output to the logic controller after each power supply is powered on.
[0073] Step S12, inputting the PG signal to each diode in the logic controller, and determining the initial level output by each diode, wherein the diode corresponds to the power supply one by one.
[0074] In the embodiment of the present application, step S12, inputting the PG signal to each diode in the logic controller and determining the initial level state of the level output by each diode, includes the following steps A1-A2:
[0075] Step A1, inputting the PG signal to each diode in the logic controller, and determining the target output state of the corresponding power supply according to the PG signal through the diode.
[0076] In the embodiment of the present application, the diode determines the target output state of the corresponding power supply according to the PG signal, which can be a normal state or an abnormal state. The normal state is used to indicate that the power supply can output normally, and the abnormal state is used to indicate that the power supply does not output or the output is unstable.
[0077] Step A2, based on the correspondence between the preset output state and the level, determine the initial level corresponding to the target output state, wherein when the target output state is an abnormal state, the initial level is a low level, or, when the target output state is a normal state, the initial level is a high level.
[0078] Step S13, determining the target level output by the logic controller to the voltage monitor according to the initial level output by each diode.
[0079] In an embodiment of the present application, the target level output by the logic controller to the voltage monitor is determined based on the initial levels output by each diode, including: when there is at least one low level among the initial levels output by each diode, determining that the target level output by the logic controller to the voltage controller is a low level.
[0080] In an embodiment of the present application, the target level output by the logic controller to the voltage monitor is determined based on the initial levels output by each diode, including: when there is no low level in the initial levels output by each diode, determining that the target level output by the logic controller to the voltage controller is a high level.
[0081] Step S14: sending the target level to the voltage monitor, so that the voltage monitor determines whether to perform a reset operation on the hard disk controller according to the target level.
[0082] In the embodiment of the present application, after receiving the target level, the logic controller sends the target level to the voltage monitor, and then the voltage monitor determines whether to perform a reset operation on the hardware controller according to the target level. For example, when the target level is a low level, the voltage monitor performs a reset operation on the hardware controller. When the target level is a high level, the voltage monitor performs a reset operation on the hardware controller.
[0083] The present application also provides a method for resetting a hard disk controller. Figure 4 A flowchart of a hard disk controller reset method provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the method includes:
[0084] Step S21, receiving the target level output by the logic controller.
[0085] Step S22, inputting the target level into the comparator inside the voltage monitor, and determining the level type of the target level through the comparator.
[0086] Step S23: when the level type indicates that the target level is a high level, determining a delay time for controlling the hard disk controller to delay entering a release-reset state.
[0087] Step S24: When the delay time is reached, a first control signal is sent to the hard disk controller, wherein the first control signal is used to control the hard disk controller to enter a release reset state.
[0088] In the embodiment of the present application, when the level type is used to indicate that the target level is a high level, the voltage monitor will perform a reset operation on the hard disk controller, and the voltage monitor will determine the delay time for the hard disk controller to enter the de-reset state, and the delay time can be determined based on the C1 capacitor at the CT terminal. When the delay time is reached, a first control signal is sent to the hard disk controller, and the first control signal is used to control the hard disk controller to enter the de-reset state.
[0089] In an embodiment of the present application, the method further includes: when the level type is used to indicate that the target level is a low level, sending a second control signal to the hard disk controller, wherein the second control signal is used to control the hard disk controller to enter a reset state.
[0090] In an embodiment of the present application, for a scenario where the power supply voltage in the SSD board is not output normally during the power-on process, when the SENSE end (corresponding to the target level of the closing diode) is at a low level, a low level is output through the SENSE OUT end of the internal comparator. At this time, the controller is reset and the SSD cannot be started.
[0091] In the scenario where the power supply voltage in the SSD board is output normally during the power-on process, when the SENSE end is high, the high level passes through the internal comparator and the SENSE OUT end of the Delay delayer to output a high level. At this time, the controller is reset and the SSD starts normally. The setting of the Delay delayer needs to be determined according to the tINIT time required by the SSD controller.
[0092] Figure 5 This is a block diagram of a logic controller provided in an embodiment of the present application. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both.
[0093] like Figure 5 As shown, the device comprises:
[0094] The receiving module 41 is used to receive the PG signal output to the logic controller after each power supply is powered on;
[0095] An input module 42, used to input the PG signal to each diode in the logic controller and determine the initial level output by each diode, wherein the diode corresponds to the power supply one by one;
[0096] A determination module 43, used to determine a target level output by the logic controller to the voltage monitor according to the initial level output by each diode;
[0097] The sending module 44 is used to send the target level to the voltage monitor, so that the monitor determines whether to perform a reset operation on the hard disk controller according to the target level.
[0098] In an embodiment of the present application, the input module 42 is used to input the PG signal to each diode in the logic controller, and determine the target output state of the corresponding power supply according to the PG signal through the diode; based on the correspondence between the preset output state and the level, determine the initial level corresponding to the target output state, wherein when the target output state is an abnormal state, the initial level is a low level, or, when the target output state is a normal state, the initial level is a high level.
[0099] In the embodiment of the present application, the determination module 43 is used to determine that the target level output by the logic controller to the voltage controller is a low level when there is at least one low level in the initial levels output by each diode;
[0100] or,
[0101] In the embodiment of the present application, the determination module 43 is used to determine that the target level output by the logic controller to the voltage controller is a high level when there is no low level in the initial levels output by each diode.
[0102] Figure 6 This is a block diagram of a voltage monitor provided in an embodiment of the present application. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both.
[0103] like Figure 6 As shown, the device comprises:
[0104] A receiving module 51, used for receiving a target level output by a logic controller;
[0105] An input module 52, used for inputting the target level into a comparator inside the voltage monitor, and determining the level type of the target level through the comparator;
[0106] A determination module 53, configured to determine a delay time for controlling the hard disk controller to delay entering a release-reset state when the level type indicates that the target level is a high level;
[0107] The sending module 54 is used to send a first control signal to the hard disk controller when the delay time is reached, wherein the first control signal is used to control the hard disk controller to enter a release reset state.
[0108] The present application also provides an electronic device, such as Figure 7 As shown, the electronic device may include: a processor 1501 , a communication interface 1502 , a memory 1503 and a communication bus 1504 , wherein the processor 1501 , the communication interface 1502 , and the memory 1503 communicate with each other via the communication bus 1504 .
[0109] Memory 1503, used for storing computer programs;
[0110] The processor 1501 is used to implement the steps of the above embodiment when executing the computer program stored in the memory 1503.
[0111] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0112] The communication interface is used for communication between the above terminal and other devices.
[0113] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0114] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0115] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which instructions are stored. When the computer-readable storage medium is executed on a computer, the computer executes the method for resetting the hardware controller described in any of the above embodiments.
[0116] In another embodiment provided by the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the method for resetting the hardware controller described in any one of the above embodiments.
[0117] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk SolidState Disk), etc.
[0118] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
[0119] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.
Claims
1. A reset system for a hard disk controller, characterized in that: The system comprises: a power module, a logic controller, a voltage monitor and a hard disk controller, wherein the output end of the power module is connected to the input end of the logic controller, the output end of the logic controller is connected to the input end of the voltage monitor, and the voltage monitor is connected to the hard disk controller; The power supply module is used to output multiple PG signals to the logic controller using various power supplies; The logic controller is used to input the PG signal to each diode in the logic controller, determine the initial level output by each diode, determine the target level output by the logic controller to the voltage monitor according to the initial level output by each diode; send the target level to the voltage monitor, wherein the diodes correspond to the power supplies one by one; The voltage monitor is used to determine whether to perform a reset operation on the hard disk controller according to the target level; The voltage monitor includes: a SENSE input terminal, a SENSE output terminal, a CT terminal, a comparator and a delay device, wherein the SENSE input terminal is connected to the positive input terminal of the comparator, the reverse input terminal of the comparator is grounded, the output terminal of the comparator and the CT terminal are both connected to the input terminal of the delay device, and the output terminal of the delay device is connected to the SENSE output terminal.
2. The system according to claim 1, characterized in that The logic controller includes a plurality of branches, each branch is respectively connected to the power supply in the power module, and each branch includes a resistor and a diode.
3. A hard disk controller reset method, applied to a logic controller, characterized in that: The method comprises: receiving a PG signal output to the logic controller after each power supply is powered on; Inputting the PG signal to each diode in the logic controller and determining the initial level output by each diode, wherein the diodes correspond to the power supplies one by one; determining a target level output by the logic controller to the voltage monitor according to the initial levels output by each diode; Sending the target level to the voltage monitor, so that the voltage monitor determines whether to perform a reset operation on the hard disk controller according to the target level; The step of inputting the PG signal to each diode in the logic controller and determining the initial level state of the level output by each diode includes: Input the PG signal to each diode in the logic controller, and determine the target output state of the corresponding power supply according to the PG signal through the diode; Based on the correspondence between the preset output state and the level, an initial level corresponding to the target output state is determined, wherein when the target output state is an abnormal state, the initial level is a low level, or, when the target output state is a normal state, the initial level is a high level.
4. The method according to claim 3, characterized in that: The step of determining a target level output by the logic controller to the voltage monitor according to the initial levels output by each diode comprises: In the case that there is at least one low level among the initial levels output by each diode, determining that the target level output by the logic controller to the voltage monitor is a low level; or, In the case that there is no low level in the initial levels outputted by the respective diodes, it is determined that the target level outputted by the logic controller to the voltage monitor is a high level.
5. A hard disk controller reset method, applied to a voltage monitor, characterized in that: The method comprises: receiving a target level output by a logic controller, wherein the logic controller executes the hard disk controller reset method according to claim 3 to output the target level; Inputting the target level into a comparator inside the voltage monitor, and determining the level type of the target level through the comparator; In a case where the level type is used to indicate that the target level is a high level, determining a delay time for controlling the hard disk controller to delay entering a release-reset state; When the delay time is reached, a first control signal is sent to the hard disk controller, wherein the first control signal is used to control the hard disk controller to enter a release-reset state.
6. The method according to claim 5, characterized in that The method further comprises: In a case where the level type is used to indicate that the target level is a low level, a second control signal is sent to the hard disk controller, wherein the second control signal is used to control the hard disk controller to enter a reset state.
7. A logic controller, characterized in that: include: A receiving module, used for receiving a PG signal output to the logic controller after each power supply is powered on; An input module, used to input the PG signal to each diode in the logic controller and determine the initial level output by each diode, wherein the diode corresponds to the power supply one by one; A determination module, used to determine a target level output by the logic controller to the voltage monitor according to an initial level output by each diode; A sending module, used for sending the target level to the monitor, so that the monitor determines whether to perform a reset operation on the hard disk controller according to the target level; The step of inputting the PG signal to each diode in the logic controller and determining an initial level output by each diode comprises: Input the PG signal to each diode in the logic controller, and determine the target output state of the corresponding power supply according to the PG signal through the diode; Based on the correspondence between the preset output state and the level, an initial level corresponding to the target output state is determined, wherein when the target output state is an abnormal state, the initial level is a low level, or, when the target output state is a normal state, the initial level is a high level.
8. A voltage monitor, characterized in that: include: A receiving module, configured to receive a target level output by a logic controller, wherein the logic controller executes the hard disk controller reset method according to claim 3 to output the target level; An input module, used for inputting the target level into a comparator inside the voltage monitor, and determining the level type of the target level through the comparator; a determination module, configured to determine a delay time for controlling the hard disk controller to delay entering a release-reset state when the level type indicates that the target level is a high level; The sending module is used to send a first control signal to the hard disk controller when the delay time is reached, wherein the first control signal is used to control the hard disk controller to enter a release reset state.
Citation Information
Patent Citations
Circuit for realizing multi-path power supply control under PCI-E channel by adopting MCU
CN112462673A
Logical drive allocation method, device and system, electronic equipment and storage medium
CN114020681A
Failure determination apparatus, power supply device, determination method for failure determination apparatus, and program
JP2018157450A
Inspection device and inspection method
US20120092038A1
