Hard disk management system, screen printing information acquisition method, electronic equipment and storage medium
By using a multi-channel serial bus hub to switch working mode in the hard disk management system, the problem that the board management controller is difficult to compatible with the hard disks of different serial bus protocol versions is solved, and the silk screen information acquisition of hard disks of different protocol versions is realized, and management is improved Compatibility and communication efficiency.
Patent Information
- Application Number
- CN202411388360.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-01-07
- Estimated Expiration
- 2044-09-30
AI Technical Summary
Existing substrate management controllers are difficult to compatible with hard disks with different serial bus protocol versions, resulting in the inability to effectively obtain the screen printing information of the hard disk.
Design a hard disk management system. By adding a serial bus hub to the motherboard, the hub has multiple channels, which can switch the working mode according to the serial bus protocol used by the hard disk, and realize the silk screen information collection of hard disks of different serial bus protocol versions. .
The screen printing information acquisition of hard disks with different serial bus protocol versions is achieved, and the defect that the substrate management controller is unable to be compatible with different serial bus protocols is overcome, and the compatibility and communication efficiency of hard disk management are improved.
Smart Images

Figure CN119271608A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computers, and in particular to a hard disk management system, a method for obtaining silk-screen information, an electronic device and a storage medium. Background Art
[0002] In the related art, the baseboard management controller usually obtains and manages the silk-screen information of the hard disk through a serial bus, and the common serial bus is the I2C bus (Inter-Integrated Circuit). However, with the emergence of hard disks supporting the I3C protocol (Improved Inter-Integrated Circuit, an improved version of the I2C bus), the hardware circuit design can no longer meet the demand due to the incompatibility of I2C and I3C in the level standards.
[0003] Therefore, how a baseboard management controller obtains silk-screen information from hard disks using different serial bus protocol versions is a technical problem that needs to be solved urgently by those skilled in the art. Summary of the invention
[0004] The purpose of the present invention is to provide a hard disk management system, a silk screen information acquisition method, an electronic device and a storage medium, which can use a serial bus hub to connect to the hard disk, and use the serial bus collector to switch the working mode according to the serial bus protocol used by the hard disk, so as to realize the silk screen information collection of hard disks with different serial bus protocol versions.
[0005] In order to solve the above technical problems, the present invention provides a hard disk management system, comprising:
[0006] A mainboard and a hard disk backplane, wherein the mainboard includes a baseboard management controller and a serial bus hub, and the hard disk backplane includes a hard disk connector; the baseboard management controller is connected to the serial bus hub, and the serial bus hub has a plurality of first channels; the hard disk is connected to the hard disk connector, and the hard disk connector is connected to a corresponding first channel in the serial bus hub via a first type serial bus, and the first type serial bus supports a first serial bus protocol and a second serial bus protocol;
[0007] The serial bus hub is used to switch the working mode of the corresponding first channel according to the target serial bus protocol used by the hard disk, so that the baseboard management controller obtains the first silk screen information from the hard disk through the first channel; the target serial bus protocol is the first serial bus protocol or the second serial bus protocol.
[0008] Optionally, the mainboard further includes a first serial bus connector, and the hard disk backplane further includes a second serial bus connector and a backplane device; the baseboard management controller is connected to the serial bus hub via the first type serial bus, and is connected to the first serial bus connector via a second type serial bus; the second serial bus connector is connected to the first type serial bus connector and the backplane device via the second type serial bus; the second type serial bus only supports a second serial bus protocol;
[0009] The baseboard management controller is used to obtain first silk screen information from the hard disk by using the first serial bus protocol and the serial bus hub, and to obtain second silk screen information from the backplane device by using the second serial bus protocol.
[0010] Optionally, the mainboard further comprises a serial bus switch, the serial bus switch has a plurality of second channels, and the same group of backplane components are connected to corresponding second channels;
[0011] The baseboard management controller is used to obtain second silk screen information from the backplane device through the corresponding second channel in the serial bus switch.
[0012] Optionally, the backplane device includes a backplane expander, a field replaceable unit and a backplane sensor.
[0013] Optionally, the main board also includes a central processing unit and a first multi-channel input and output interface, and the hard disk backplane also includes a second multi-channel input and output interface; the central processing unit is connected to the hard disk connector via a high-speed serial bus, the first multi-channel input and output interface is connected to the second multi-channel input and output interface, and the high-speed serial bus and the first type serial communication bus between the serial bus hub and the hard disk connector are both set in the first multi-channel input and output interface and the second multi-channel input and output interface.
[0014] The present invention also provides a method for obtaining silk screen information, which is applied to the hard disk management system as described above, and the method comprises:
[0015] The serial bus hub switches the working mode of the corresponding first channel according to the target serial bus protocol used by the hard disk; the target serial bus protocol is the first serial bus protocol or the second serial bus protocol;
[0016] When the working mode switching is completed, the baseboard management controller obtains the first silk screen information from the hard disk through the first channel.
[0017] Optionally, the serial bus hub switches the working mode of the corresponding first channel according to the target serial bus protocol used by the hard disk, including:
[0018] The serial bus hub performs a protocol handshake with the hard disk through the first channel to determine a target serial bus protocol used by the hard disk;
[0019] If the target serial bus protocol is the first serial bus protocol, switching the first channel to the first working mode and dynamically assigning a bus address to the hard disk;
[0020] If the target serial bus protocol is a second serial bus protocol, switching the first channel to a second operating mode;
[0021] The baseboard management controller obtains first silk screen information from the hard disk through the first channel, including:
[0022] If the target serial bus protocol is the first serial bus protocol, the baseboard management controller uses the first channel and the dynamic bus address of the hard disk to obtain the first silk screen information from the hard disk;
[0023] If the target serial bus protocol is the second serial bus protocol, the baseboard management controller uses the first channel and the fixed bus address of the hard disk to obtain the first silk screen information from the hard disk.
[0024] Optionally, it also includes:
[0025] The baseboard management controller communicates with the serial bus hub using the first serial bus protocol to obtain the first silk screen information from the hard disk through the serial bus hub;
[0026] The baseboard management controller obtains second silk-screen information from a backplane component in the hard disk backplane using a second serial bus protocol.
[0027] Optionally, the baseboard management controller uses the second serial bus protocol to obtain the second silk screen information from the backplane device in the hard disk backplane, including:
[0028] The baseboard management controller sends a preset instruction to the serial bus switch in the mainboard using the second serial bus protocol to start the second channel in the serial bus switch;
[0029] The second serial bus protocol and the second channel are used to obtain third silk screen information from the backplane component.
[0030] Optionally, the second channel corresponds to a setting position of the backplane component on the hard disk backplane.
[0031] The present invention also provides an electronic device, comprising the hard disk management system as described above.
[0032] The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the above-mentioned method for obtaining silk-screen information is implemented.
[0033] The present invention provides a hard disk management system, comprising: a main board and a hard disk backplane, the main board comprising a baseboard management controller and a serial bus hub, the hard disk backplane comprising a hard disk connector; the baseboard management controller is connected to the serial bus hub, the serial bus hub has a plurality of first channels; a hard disk is connected to the hard disk connector, the hard disk connector is connected to a corresponding first channel in the serial bus hub via a first type serial bus, the first type serial bus supports a first serial bus protocol and a second serial bus protocol; the serial bus hub is used to switch the working mode of the corresponding first channel according to a target serial bus protocol used by the hard disk, so that the baseboard management controller obtains first silk screen information from the hard disk via the first channel; the target serial bus protocol is the first serial bus protocol or the second serial bus protocol.
[0034] It can be seen that the present invention particularly adds a serial bus hub in the mainboard, and the serial bus hub has multiple first channels. The hard disk connector in the hard disk backplane is connected to the corresponding first channel in the serial bus hub through the first type serial bus, that is, different hard disks are connected to the corresponding first channels in the serial bus hub through the first type serial bus. Among them, the first type serial bus supports the first serial bus protocol and the second serial bus protocol. Furthermore, in actual applications, the serial bus hub can switch the working mode of the corresponding first channel according to whether the target serial bus protocol used by the hard disk is the first serial bus protocol or the second serial bus protocol, so that the baseboard management controller obtains the first silk screen information from the hard disk through the first channel, so that the silk screen information collection of hard disks using different serial bus protocol versions can be realized. The present invention also provides a silk screen information acquisition method, an electronic device and a computer-readable storage medium, which have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention 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, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0036] Figure 1 A structural block diagram of a first hard disk management system provided by an embodiment of the present invention;
[0037] Figure 2 A structural block diagram of a second hard disk management system provided by an embodiment of the present invention;
[0038] Figure 3 A structural block diagram of a third hard disk management system provided by an embodiment of the present invention;
[0039] Figure 4 A structural block diagram of a fourth hard disk management system provided by an embodiment of the present invention;
[0040] Figure 5 A flowchart of a method for obtaining silk screen information provided by an embodiment of the present invention;
[0041] Figure 6 An I3C-adapted NVME backplane system architecture diagram provided in an embodiment of the present invention;
[0042] Figure 7 The present invention is a flowchart of another method for obtaining silk screen information provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0044] In the related art, the baseboard management controller usually uses a serial bus to obtain and manage the silk screen information of the hard disk. The common serial bus is the I2C bus (Inter-Integrated Circuit). However, the introduction of the I3C protocol (Improved Inter-Integrated Circuit, an improved version of the I2C bus) and the emergence of hard disks that support the I3C protocol, due to the incompatibility of I2C and I3C in the level standard, makes it difficult for the baseboard management controller to be compatible with the hard disks using different serial bus protocol versions, making it difficult for it to obtain the silk screen information of the hard disk.
[0045] In view of this, and in response to the technical problem of how a baseboard management controller can acquire silk screen information for hard disks using different serial bus protocol versions, the present invention can provide a hard disk management system and a silk screen information acquisition method, which can use a serial bus hub to connect to the hard disk, and use the serial bus collector to switch the working mode according to the serial bus protocol used by the hard disk, so as to realize the silk screen information collection of hard disks with different serial bus protocol versions.
[0046] The following first introduces the hard disk management system provided by the embodiment of the present invention. Figure 1 , Figure 1 This is a structural block diagram of a first hard disk management system provided by an embodiment of the present invention. The system may include:
[0047] A main board and a hard disk backplane, wherein the main board includes a baseboard management controller and a serial bus hub, and the hard disk backplane includes a hard disk connector; the baseboard management controller is connected to the serial bus hub, and the serial bus hub has multiple first channels; the hard disk is connected to the hard disk connector, and the hard disk connector is connected to the corresponding first channel in the serial bus hub through a first type serial bus, and the first type serial bus supports a first serial bus protocol and a second serial bus protocol.
[0048] The serial bus hub is used to switch the working mode of the corresponding first channel according to the target serial bus protocol used by the hard disk, so that the baseboard management controller obtains the first silk screen information from the hard disk through the first channel; the target serial bus protocol is the first serial bus protocol or the second serial bus protocol.
[0049] It should be noted that the first type serial bus may be an I3C bus, the first serial bus protocol may be an I3C bus protocol, and the second serial bus protocol may be an I2C bus protocol. In addition, a plurality of hard disk connectors may be provided on the hard disk backplane. In addition, the first silk-screen information may be hard disk information.
[0050] In this embodiment, in order to ensure that the baseboard management controller can obtain silk screen information from hard disks using different serial bus protocols, the above-mentioned serial bus hub is specially set. The serial bus hub has multiple first channels for connecting to different hard disks through a first type serial bus, that is, there is a one-to-one correspondence between the hard disk and the first channel. In addition, the serial bus hub can switch the working mode of the corresponding first channel according to the target serial bus protocol used by the hard disk, so as to adapt to and be compatible with different serial bus protocols. In this way, the baseboard management controller can obtain silk screen information from hard disks using different serial bus protocols through the serial bus hub, thereby overcoming the defect in the related art that the baseboard management controller is not compatible with different serial bus protocols and cannot obtain silk screen information from hard disks using different serial bus protocols.
[0051] In addition, it is worth pointing out that the purpose of connecting the hard disk to different channels of the serial bus hub in this embodiment is that although the I3C bus protocol supports dynamic setting of the bus address, when it is backward compatible with the I2C bus protocol, the hard disks using the I2C bus protocol have the same bus address, and the bus address of such hard disks cannot be modified. If multiple hard disks using the I2C bus protocol are connected to the same channel, it is easy to cause the inability to distinguish each hard disk according to the bus address. The baseboard management controller needs to use different designations to open and access each first channel, that is, to connect the hard disk to different first channels, which can distinguish different hard disks, thereby effectively compatibility with hard disks using different serial bus protocols.
[0052] Furthermore, in addition to the hard disk connector, the hard disk backplane may also include other hard disk-related backplane components. For example, these backplane components may include a backplane expander, a field replaceable unit, and a backplane sensor. Among them, the backplane expander can provide functional expansion for the hard disk connector, for example, it can save the hardware link information between the central processing unit and the hard disk. The field replaceable unit can save the backplane asset information, such as the manufacturer, the hard disk PCBA material number, the number of hard disks, etc. The backplane sensor is used to collect the backplane working status information, for example, it can collect the backplane temperature information. The baseboard management controller also needs to collect the silk screen information from the above-mentioned backplane components. At this time, the baseboard management controller can be connected to the above-mentioned backplane components through the above-mentioned serial bus hub, and collect data with it through the serial bus hub. However, the above-mentioned backplane components usually only support the I2C protocol but not the I3C protocol; and the time for switching the I2C&I3C protocols at the serial bus hub can reach up to 20ms, and frequent switching will lead to reduced communication efficiency. Therefore, in this embodiment, the I2C link can also be retained in the mainboard so that the baseboard management controller can communicate with the backplane device through the I2C link, thereby ensuring communication efficiency.
[0053] Based on this, please refer to Figure 2 , Figure 2 This is a structural block diagram of the second hard disk management system provided by an embodiment of the present invention. In this schematic diagram, the mainboard further includes a first serial bus connector, the hard disk backplane further includes a second serial bus connector and a backplane device; the baseboard management controller is connected to the serial bus hub via the first type serial bus, and is connected to the first serial bus connector via the second type serial bus; the second serial bus connector is connected to the first type serial bus connector and the backplane device via the second type serial bus; the second type serial bus only supports the second serial bus protocol;
[0054] The baseboard management controller is used to obtain first silk screen information from the hard disk by using the first serial bus protocol and the serial bus hub, and to obtain second silk screen information from the backplane device by using the second serial bus protocol.
[0055] It should be noted that the second silk-screen information may include hardware link information between the central processing unit and the hard disk, backplane asset information, etc.; the second type serial bus may be an I2C bus.
[0056] It can be seen that in this embodiment, the baseboard management controller uses the first serial bus protocol and the serial bus hub to obtain the first silk screen information from the hard disk, and uses the second serial bus protocol to obtain the second silk screen information from the backplane device, so that the silk screen information can be obtained from the hard disk and the backplane device through different serial bus links to ensure communication efficiency.
[0057] Furthermore, considering that multiple hard disk backplanes may be provided in the server system, and each hard disk backplane is provided with the above-mentioned backplane components, and the bus addresses of the same type of backplane components are the same, such as the backplane expanders have the same bus address, and the field replaceable units have the same bus address. Furthermore, the baseboard management controller may not be able to distinguish the backplane components of different hard disk backplanes by the bus address. In this regard, the present embodiment may further add a serial bus switcher to the mainboard, and the serial bus switcher may have multiple second channels, and the same group of backplane components is connected to the corresponding second channels, that is, a group of backplane components corresponds to one second channel. In this way, similar to a serial bus hub, the baseboard management controller can use different second channels to distinguish the backplane components of different hard disk backplanes.
[0058] Based on this, please refer to Figure 3 , Figure 3 This is a structural block diagram of the third hard disk management system provided by an embodiment of the present invention. In this schematic diagram, the mainboard further includes a serial bus switch, the serial bus switch has a plurality of second channels, and the same group of backplane components are connected to the corresponding second channels;
[0059] The baseboard management controller is used to obtain second silk screen information from the backplane device through the corresponding second channel in the serial bus switch.
[0060] Furthermore, in order to improve the bus integration, the present embodiment can also set the high-speed serial bus (such as PCIe bus) between the central processor and the hard disk and the first type serial bus between the serial bus hub and the hard disk in the same interface. Figure 4 , Figure 4This is a structural block diagram of the fourth hard disk management system provided by an embodiment of the present invention. The mainboard further includes a central processing unit and a first multi-channel input and output interface, and the hard disk backplane further includes a second multi-channel input and output interface; the central processing unit is connected to the hard disk connector via a high-speed serial bus, the first multi-channel input and output interface is connected to the second multi-channel input and output interface, and the high-speed serial bus and the first type serial communication bus between the serial bus hub and the hard disk connector are both set in the first multi-channel input and output interface and the second multi-channel input and output interface.
[0061] It is worth pointing out that each first channel in the serial bus hub can be connected to the first multi-channel input / output interface (MCIO), and the second multi-channel input / output interface guides the first type serial communication bus corresponding to each first channel to each hard disk connector. In this way, when the hard disk is connected to the hard disk connector, the first type serial communication bus between it and the serial bus hub is also connected.
[0062] Further, in Figure 4 In the process, the CPU can also write the VPP address (hard link information between the CPU and the hard disk) to the backplane expander.
[0063] Based on the above embodiments, the present invention particularly adds a serial bus hub in the mainboard, and the serial bus hub has multiple first channels. The hard disk connector in the hard disk backplane is connected to the corresponding first channel in the serial bus hub through the first type serial bus, that is, different hard disks are connected to the corresponding first channels in the serial bus hub through the first type serial bus. Among them, the first type serial bus supports the first serial bus protocol and the second serial bus protocol. Furthermore, in actual applications, the serial bus hub can switch the working mode of the corresponding first channel according to whether the target serial bus protocol used by the hard disk is the first serial bus protocol or the second serial bus protocol, so that the baseboard management controller obtains the first silk screen information from the hard disk through the first channel, so that silk screen information collection can be realized for hard disks using different serial bus protocol versions.
[0064] Based on the above embodiment, a method for obtaining silk screen information provided by an embodiment of the present invention is introduced below. Figure 5 , Figure 5 A flowchart of a method for obtaining silk screen information provided by an embodiment of the present invention. The method is applied to the hard disk management system as described above and may include:
[0065] S501. The serial bus hub switches the working mode of the corresponding first channel according to the target serial bus protocol used by the hard disk; the target serial bus protocol is the first serial bus protocol or the second serial bus protocol.
[0066] Specifically, the serial bus hub can first perform a protocol handshake with the hard disk through the first channel to determine the target serial bus protocol used by the hard disk. If the target serial bus protocol is the first serial bus protocol, the first channel can be switched to the first working mode (open drain mode). In addition, the I3C protocol requires the host to dynamically assign a bus address to the slave, so the serial bus hub also needs to dynamically assign a bus address to the hard disk. If the target serial bus protocol is the second serial bus protocol, only the first channel needs to be switched to the second working mode (push-pull mode)
[0067] Based on this, the serial bus hub switches the working mode of the corresponding first channel according to the target serial bus protocol used by the hard disk, which may include:
[0068] Step 11: The serial bus hub performs a protocol handshake with the hard disk through the first channel to determine a target serial bus protocol used by the hard disk;
[0069] Step 12: If the target serial bus protocol is the first serial bus protocol, switching the first channel to the first working mode, and dynamically assigning a bus address to the hard disk;
[0070] Step 13: If the target serial bus protocol is a second serial bus protocol, switch the first channel to a second operating mode.
[0071] S502: When the working mode switching is completed, the baseboard management controller obtains first silk screen information from the hard disk through the first channel.
[0072] Specifically, when the working mode is switched, the baseboard management controller needs to obtain the first silk screen information from the hard disk through the first channel in different ways according to the target serial bus protocol used by the hard disk. If the target serial bus protocol is the first serial bus protocol, the baseboard management controller uses the first channel and the dynamic bus address of the hard disk to obtain the first silk screen information from the hard disk; if the target serial bus protocol is the second serial bus protocol, the baseboard management controller uses the first channel and the fixed bus address of the hard disk to obtain the first silk screen information from the hard disk. In this way, hard disks using different serial bus protocols can be compatible.
[0073] Based on this, the baseboard management controller obtains the first silk screen information from the hard disk through the first channel, which may include:
[0074] Step 21: If the target serial bus protocol is the first serial bus protocol, the baseboard management controller uses the first channel and the dynamic bus address of the hard disk to obtain first silk screen information from the hard disk;
[0075] Step 22: If the target serial bus protocol is the second serial bus protocol, the baseboard management controller uses the first channel and the fixed bus address of the hard disk to obtain the first silk screen information from the hard disk.
[0076] Furthermore, as described above, in addition to the hard disk connector, the hard disk backplane may also include other hard disk-related backplane components. For example, a backplane expander, a field replaceable unit, a backplane sensor, etc. The baseboard management controller also needs to collect silk screen information from the above-mentioned backplane components. In order to improve communication efficiency and avoid delays caused by protocol switching, the I2C link can also be retained in the mainboard in this embodiment so that the baseboard management controller can communicate with the backplane components through the I2C link. In this way, the baseboard management controller can use different serial bus protocols and obtain silk screen information from the hard disk and backplane components respectively through different serial buses.
[0077] Based on this, the silk screen information acquisition method may further include:
[0078] Step 31: the baseboard management controller communicates with the serial bus hub using the first serial bus protocol to obtain the first silk screen information from the hard disk through the serial bus hub;
[0079] Step 32: The baseboard management controller uses the second serial bus protocol to obtain the second silk screen information from the backplane device in the hard disk backplane.
[0080] Furthermore, considering that a server system may be provided with multiple hard disk backplanes, in order to distinguish the backplane components on different hardware backplanes, this embodiment may further add a serial bus switch in the mainboard, and the serial bus switch may have multiple second channels, and the same group of backplane components is connected to the corresponding second channels, that is, a group of backplane components corresponds to one second channel. In this way, similar to a serial bus hub, the baseboard management controller may use different second channels to distinguish the backplane components of different hard disk backplanes.
[0081] Based on this, the baseboard management controller uses the second serial bus protocol to obtain the second silk screen information from the backplane device in the hard disk backplane, including:
[0082] Step 41: the baseboard management controller sends a preset instruction to the serial bus switch in the mainboard using the second serial bus protocol to start the second channel in the serial bus switch;
[0083] Step 42: Obtain third silk-screen information from the backplane component using the second serial bus protocol and the second channel.
[0084] Furthermore, considering that the backplane components and the second serial bus connector are relatively fixed in their locations, and the second channel can be used to distinguish between different backplane components, the second channel can be made to correspond to the location of the backplane components on the hard disk backplane to facilitate the baseboard management controller to manage the backplane components at various locations of the server. In this way, when the baseboard management controller obtains the second silk-screen information through different second channels, it can determine the physical location of the corresponding component.
[0085] Furthermore, the baseboard management controller can also receive hard disk BDF information sent by the basic input and output system to further improve the silk screen information.
[0086] Based on the above embodiments, the present invention particularly adds a serial bus hub in the mainboard, and the serial bus hub has multiple first channels. The hard disk connector in the hard disk backplane is connected to the corresponding first channel in the serial bus hub through the first type serial bus, that is, different hard disks are connected to the corresponding first channels in the serial bus hub through the first type serial bus. Among them, the first type serial bus supports the first serial bus protocol and the second serial bus protocol. In this way, the serial bus hub can switch the working mode of the corresponding first channel according to whether the target serial bus protocol used by the hard disk is the first serial bus protocol or the second serial bus protocol, so that the baseboard management controller obtains the first silk screen information from the hard disk through the first channel, so that silk screen information collection can be realized for hard disks using different serial bus protocol versions.
[0087] Based on the above embodiments, the hard disk management system and the method for obtaining silk screen information are fully introduced below based on specific schematic diagrams and flow charts. Figure 6 , Figure 6 An NVME backplane system architecture diagram adapted to I3C provided by an embodiment of the present invention, wherein:
[0088] ① Add an I3C HUB (serial bus hub) on the motherboard. The I3C HUB is connected to the I3C High-voltage mode Bus port (high voltage mode bus interface) of the BMC upstream. The port supports voltage levels of 1V8 / 3V3. There are 8 channels downstream, and every two channels are connected to a MCIO X8 (first multi-channel input and output interface) on the motherboard. Each MCIOX8 (second multi-channel input and output interface) on the backplane outputs two groups of I3C, which are connected to two hard disks respectively (NVME hard disk high-speed signal bandwidth is usually X4, one MCIO X8 corresponds to two hard disks, and the two groups of I3C come from different channels of the I3C HUB).
[0089] ②I3C HUB supports Open_Drain (open drain mode, the first working mode) / Push-Pull compatiblemode (push-pull mode, the second working mode). In these two modes, the status of the IO pin is determined by the I2C&I3C protocol. By configuring the parameters in the VIOM_LDO_Voltag register (mode switching register), the dynamic switching of the Open_Drain / Push-Pull mode is realized. Among them, in the Open_Drain mode, the port pull-up voltage is the voltage of the VDDIN power supply pin of the I3C HUB chip (3V3). In the Push-Pull mode, the port can be switched through LDO, and the pull-up voltage corresponds to the voltage of the VIOS pin (1V8). In addition, the device end address in the I3C protocol is allocated by the HOST end, and dynamic address allocation is adopted. The same I3C device can be allocated to different addresses. In other words, the address of the I3C hard disk can be allocated by the I3C HUB. The device end address in the I2C protocol is determined by the pull-up and pull-down of the hardware line. For the same model of hard disk, its I2C address is the same. To avoid I2C address conflicts, each hard disk is connected to the I3C HUB through different channels to communicate with the HOST, which can ensure that the line is compatible with I2C communication in scenarios where it supports I3C communication. For devices compatible with I3C & I2C, the bus working mode can be flexibly switched through the I3C HUB.
[0090] ③ The communication between the hard disk and the BMC is switched to the hardware line where the I3C HUB is located. Other devices such as CPLD (backplane expander), FRU (field replaceable unit), SENSOR (backplane sensor), etc. are connected to the I2C port of the BMC through the backplane, the I2C HEADER (first serial bus connector, (second serial bus connector) of the mainboard, and the I2C SWITCH (serial bus switch) of the mainboard in sequence. The reason for retaining the hardware line here is that the switching time of I2C & I3C can reach up to 20ms, and frequent switching will lead to reduced communication efficiency. Therefore, I3C is added in the present invention to communicate with the backplane.
[0091] ④How to obtain the BMC chassis silk screen (please refer to Figure 7): a. During BIOS initialization, PCI bus scanning and enumeration are performed to obtain the BDF code (Bus, Device, Function) of each hard disk and its corresponding relationship with the CPU PORT (central processing unit port) (BIOS obtains the BDF code of the hard disk through the PCIE bus, and the corresponding relationship between the PCIE bus and the CPU PORT is determined by the hardware circuit); b. BMC is connected to the backplane through the I2C port via the I2C HEADER, and communicates with the backplane CPLD to obtain the CPU / VPP ADDR (VPP address) information corresponding to the upstream MCIO of the backplane. Based on the truth table, determine the CPU PORT corresponding to the backplane (the corresponding relationship between the PCIE bus and MCIO is determined on the hardware circuit. Each MCIO has a unique CPU / VPP ADDR corresponding to it, so the CPU PORT corresponding to the upstream of the backplane can be determined through the CPU / VPP ADDR); c. BMC obtains hard disk related information through the I3C port (compatible with I2C). Because each hard disk corresponds to a channel of the I3C HUB, and the address of the I3C HUB can be configured by the reg#126 register, and the channel needs to be opened / closed through specific instructions, the I3C HUB address + specific instructions correspond to the hard disk one by one. In addition, the corresponding relationship between each channel of the I3C HUB and MCIO is determined by the hardware circuit, so the BMC can determine the MCIO corresponding to the hard disk based on the I3C HUB address + specific instructions; d. BIOS reports the BDF code corresponding to each CPU PORT of the BMC through the eSPI bus. In summary, the BMC can obtain the BDF code, hard disk information, I3C HUB channel, and MCIO corresponding to each CPU PORT, and summarize the data and display it on the BMC WEB.
[0092] ⑤ Each backplane corresponds to an I2C SWITCH channel on the motherboard, similar to I3C HUB. Each I2C SWITCH address is fixed, and specific instructions are required to open the corresponding channel. Therefore, BMC can communicate with the downstream backplane through I2C SWITCH address + specific instructions (the CPLD address on the backplane is the same in the current design, so the two backplanes cannot be connected to the same channel of I2C SWITCH). While obtaining VPP / CPU APPR, you can communicate with the FRU on the backplane to obtain the material number of the backplane, the number of hard disks supported, and other information. At the same time, establish the corresponding relationship between the backplane and the hard disk. Secondly, in order to avoid long / messy wiring in the server, the placement of I2CHEADER is divided into front window, middle, and rear window. The front window backplane will only be connected to the front window I2C HEADER. At the same time, I2CHEADER and the I2C SWITCH channel are bound on the hardware line, so BMC can identify the backplane and hard disk as front window / middle / rear window. In summary, the BMC obtains the backplane information corresponding to the hard disk and its position in the chassis and displays it on the BMC interface.
[0093] The embodiment of the present invention further provides an electronic device, comprising the hard disk management system as described above, and its specific hardware interface can be referred to as Figures 1 to 4 , Figure 6 .
[0094] Since the embodiment of the electronic device part corresponds to the embodiment of the hard disk management system part, the embodiment of the electronic device part refers to the description of the embodiment of the hard disk management system part, which will not be repeated here.
[0095] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the method for obtaining silk screen information as described in the above embodiment is implemented.
[0096] Since the embodiments of the computer program product part correspond to the embodiments of the silk screen information acquisition method part, please refer to the description of the embodiments of the silk screen information acquisition method part for the embodiments of the computer program product part, and will not be repeated here.
[0097] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for obtaining silk screen information as described in the above embodiment is implemented.
[0098] Since the embodiments of the computer-readable storage medium part correspond to the embodiments of the silk-screen information acquisition method part, the embodiments of the storage medium part refer to the description of the embodiments of the silk-screen information acquisition method part, which will not be repeated here.
[0099] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0100] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0101] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0102] The hard disk management system, the method for obtaining silk-screen information, the electronic device and the storage medium provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principle and implementation mode of the present invention. The description of the above embodiments is only used to help understand the method and the core idea of the present invention. It should be pointed out that for ordinary technicians in this technical field, the present invention can also be improved and modified without departing from the principle of the present invention, and these improvements and modifications also fall within the protection scope of the present invention.
Claims
1. A hard disk management system, characterized in that: include: A main board and a hard disk backplane, wherein the main board includes a baseboard management controller and a serial bus hub, and the hard disk backplane includes a hard disk connector; The baseboard management controller is connected to the serial bus hub, and the serial bus hub has a plurality of first channels; the hard disk is connected to the hard disk connector, and the hard disk connector is connected to the corresponding first channel in the serial bus hub through a first type serial bus, and the first type serial bus supports a first serial bus protocol and a second serial bus protocol; The serial bus hub is used to switch the working mode of the corresponding first channel according to the target serial bus protocol used by the hard disk, so that the baseboard management controller obtains the first silk screen information from the hard disk through the first channel; The target serial bus protocol is the first serial bus protocol or the second serial bus protocol.
2. The hard disk management system according to claim 1, characterized in that: The mainboard further includes a first serial bus connector, and the hard disk backplane further includes a second serial bus connector and a backplane component; The baseboard management controller is connected to the serial bus hub via the first type serial bus, and is connected to the first serial bus connector via the second type serial bus; The second serial bus connector is connected to the first type serial bus connector and the backplane device via the second type serial bus; The second type serial bus only supports a second serial bus protocol; The baseboard management controller is used to obtain first silk screen information from the hard disk by using the first serial bus protocol and the serial bus hub, and to obtain second silk screen information from the backplane device by using the second serial bus protocol.
3. The hard disk management system according to claim 2, characterized in that: The mainboard further comprises a serial bus switch, wherein the serial bus switch has a plurality of second channels, and the same group of backplane components are connected to corresponding second channels; The baseboard management controller is used to obtain second silk screen information from the backplane device through the corresponding second channel in the serial bus switch.
4. The hard disk management system according to claim 2, characterized in that: The backplane device includes a backplane expander, a field replaceable unit and a backplane sensor.
5. The hard disk management system according to claim 1, characterized in that: The main board also includes a central processing unit and a first multi-channel input and output interface, and the hard disk backplane also includes a second multi-channel input and output interface; the central processing unit is connected to the hard disk connector via a high-speed serial bus, the first multi-channel input and output interface is connected to the second multi-channel input and output interface, and the high-speed serial bus and the first type serial communication bus between the serial bus hub and the hard disk connector are both arranged in the first multi-channel input and output interface and the second multi-channel input and output interface.
6. A method for obtaining silk screen information, characterized in that: Applied to the hard disk management system according to any one of claims 1 to 5, the method comprises: The serial bus hub switches the working mode of the corresponding first channel according to the target serial bus protocol used by the hard disk; the target serial bus protocol is the first serial bus protocol or the second serial bus protocol; When the working mode switching is completed, the baseboard management controller obtains the first silk screen information from the hard disk through the first channel.
7. The method for obtaining silk screen information according to claim 6, characterized in that: The serial bus hub switches the working mode of the corresponding first channel according to the target serial bus protocol used by the hard disk, including: The serial bus hub performs a protocol handshake with the hard disk through the first channel to determine a target serial bus protocol used by the hard disk; If the target serial bus protocol is the first serial bus protocol, switching the first channel to the first working mode and dynamically assigning a bus address to the hard disk; If the target serial bus protocol is a second serial bus protocol, switching the first channel to a second operating mode; The baseboard management controller obtains first silk screen information from the hard disk through the first channel, including: If the target serial bus protocol is the first serial bus protocol, the baseboard management controller uses the first channel and the dynamic bus address of the hard disk to obtain the first silk screen information from the hard disk; If the target serial bus protocol is the second serial bus protocol, the baseboard management controller uses the first channel and the fixed bus address of the hard disk to obtain the first silk screen information from the hard disk.
8. The method for obtaining silk screen information according to claim 6, characterized in that: Also includes: The baseboard management controller communicates with the serial bus hub using the first serial bus protocol to obtain the first silk screen information from the hard disk through the serial bus hub; The baseboard management controller obtains second silk-screen information from a backplane component in the hard disk backplane using a second serial bus protocol.
9. The method for obtaining silk screen information according to claim 8, characterized in that: The baseboard management controller uses the second serial bus protocol to obtain second silk screen information from the backplane device in the hard disk backplane, including: The baseboard management controller sends a preset instruction to the serial bus switch in the mainboard using the second serial bus protocol to start the second channel in the serial bus switch; The second serial bus protocol and the second channel are used to obtain third silk screen information from the backplane component.
10. An electronic device, characterized in that: It comprises the hard disk management system as described in any one of claims 1 to 5.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the method for obtaining silk screen information according to any one of claims 6 to 9 is implemented.
Citation Information
Patent Citations
Mainboard and signal switching system thereof
CN112559408A
Hub, master-slave mode switching system and vehicle
CN116909960A
Universal serial bus control device, system, method, equipment, medium and product
CN118394695A
Method, device and equipment for transmitting position information of high-speed serial bus equipment
CN118689810A
High-capacity moving storage of universal serial bus interface and its implementation method
CN1299096A
Cited By
Computer serial bus equipment system, equipment silk-screen acquisition method, medium and program product
CN120011285A