TF (Transflash) card slot multiplexing method and system based on server PCH (physical channel) and BMC (baseboard management controller)
Technical Field
The invention belongs to the technical field of servers, and particularly relates to a TF card slot multiplexing method and a TF card slot multiplexing system based on a server PCH and a BMC.
Background
The TF card is widely used on a server and used for storing information such as a system log, and the BMC and the system need to store related log information, so that two TF card seats need to be placed on a mainboard and are respectively used for storing related data by the BMC and a system end.
However, in the case of limited motherboard space, placing two TF card sockets wastes the motherboard space, and some functional configurations may be sacrificed in some projects.
Disclosure of Invention
Aiming at the defects in the prior art, the invention provides a TF card slot multiplexing method based on a server PCH and a BMC, aiming at solving the problem that the space of a mainboard is wasted by placing two TF card holders under the condition that the space of the mainboard is limited in the prior art.
The technical scheme provided by the invention is as follows: a TF card slot multiplexing method based on a server PCH and a BMC is characterized in that a TF card slot is arranged on a server mainboard, when a TF card is not in place, the in-place signal of the TF card slot is low, and the PCH and the BMC judge that the TF card is not in place at the moment; when TF is in place, the in-place signal of the TF card slot is high, and the PCH and the BMC judge that the TF card is in place at the moment;
the method comprises the following steps:
judging the in-place state of a TF card on the server mainboard, wherein the in-place state of the TF card comprises in-place state and out-of-place state;
when the TF card is in place, judging a device which accesses the TF card slot at present, wherein the device comprises a PCH and a BMC;
when a device currently accessing the TF card slot is a PCH, controlling the PCH and the TF card to carry out data communication;
when the device which accesses the TF card slot is the BMC, controlling the BMC and the TF card to carry out data communication;
when the PCH and the BMC access the TF card slot at the same time, the PCH and the BMC are controlled to sequentially and respectively complete data communication with the TF card according to a preset priority.
As an improvement, the method further comprises the steps of:
and presetting the priority of devices accessing the TF card slot, wherein the priority of the PCH is greater than that of the BMC under the default condition.
As an improved scheme, when the device currently accessing the TF card slot is a PCH, the step of controlling the PCH and the TF card to perform data communication specifically includes the following steps:
when the current device accessing the TF card slot is a PCH, setting a PCH interrupt signal of the PCH low, and sending the signal of setting the PCH interrupt signal low to the BMC;
and when the BMC receives a signal that the PCH interrupt signal is set to be low, setting a selection signal between the BMC and a selection switch MUX to be high, opening a link between the PCH and the TF card slot, and executing data interaction action.
As an improvement, the method further comprises the steps of:
and when the data interaction between the PCH and the TF card is finished, setting the PCH interrupt signal to be high.
As an improved scheme, when the device currently accessing the TF card slot is a BMC, the step of controlling the BMC to perform data communication with the TF card specifically includes the following steps:
when the device currently accessing the TF card slot is the BMC, setting a BMC interrupt signal to be low;
when the BMC interrupt signal is set to be low, judging whether the PCH interrupt signal is high;
and when the PCH interrupt signal is judged to be high, setting a selection signal between the BMC and a selection switch MUX low, opening a link between the BMC and the TF card slot, and executing data interaction action.
As an improvement, the method further comprises the steps of:
and when the data interaction between the BMC and the TF card is completed, setting the BMC interrupt signal to be high.
Another object of the present invention is to provide a TF card slot multiplexing system based on a server PCH and a BMC, the system comprising:
the TF card on-site state judgment module is used for judging the on-site state of the TF card on the server mainboard, and the on-site state of the TF card comprises an on-site state and a non-on-site state;
the access judging module is used for judging devices which access the TF card slot at present when the TF card is judged to be in place, wherein the devices comprise a PCH and a BMC;
the first communication control module is used for controlling the PCH and the TF card to carry out data communication when a device which accesses the TF card slot at present is the PCH;
the second communication control module is used for controlling the BMC and the TF card to carry out data communication when a device which accesses the TF card slot is the BMC currently;
the third communication control module is used for controlling the PCH and the BMC to sequentially and respectively complete data communication with the TF card according to a preset priority when the PCH and the BMC access the TF card slot at the same time;
the server mainboard is provided with a TF card slot, when the TF card is not in place, the in-place signal of the TF card slot is low, and the PCH and the BMC judge that the TF card is not in place at the moment; when TF is in place, the in-place signal of the TF card slot is high, and the PCH and the BMC judge that the TF card is in place at the moment.
As an improvement, the system further comprises:
the device comprises a presetting module and a BMC setting module, wherein the presetting module is used for presetting the priority of devices accessing the TF card slot, and the priority of the PCH is greater than that of the BMC under the default condition.
As an improved scheme, the first communication control module specifically includes:
a PCH interrupt signal low-setting module, configured to set a PCH interrupt signal of the PCH low when a device currently accessing the TF card slot is the PCH;
the PCH interrupt signal feedback module is used for sending a signal with a low PCH interrupt signal to the BMC;
the selection signal setting-high module is used for setting a selection signal between the BMC and a selection switch MUX high when the BMC receives a signal that the PCH interrupt signal is set low;
the first interactive action execution module is used for opening a link between the PCH and the TF card slot and executing data interactive action;
and the PCH interrupt signal high-setting module is used for setting the PCH interrupt signal high when the data interaction between the PCH and the TF card is completed.
As an improved scheme, the second communication control module specifically includes:
the BMC interrupt signal low setting module is used for setting the BMC interrupt signal low when the device which accesses the TF card slot is the BMC;
a PCH interrupt signal determination module, configured to determine whether the PCH interrupt signal is high when the BMC interrupt signal is set to low;
the selection signal low setting module is used for setting a selection signal between the BMC and a selection switch MUX low when the PCH interrupt signal is judged to be high;
the second interactive action execution module is used for opening a link between the BMC and the TF card slot and executing data interactive action;
and the BMC interrupt signal high setting module is used for setting the BMC interrupt signal high when the data interaction between the BMC and the TF card is completed.
In the embodiment of the invention, the in-place state of the TF card on the server mainboard is judged; when the TF card is judged to be in place, judging the devices currently accessing the TF card slot, wherein the devices comprise a PCH and a BMC; when the device currently accessing the TF card slot is a PCH, controlling the PCH and the TF card to carry out data communication; when the device currently accessing the TF card slot is the BMC, controlling the BMC to perform data communication with the TF card; when the current PCH and the current BMC access the TF card slot simultaneously, the PCH and the BMC are controlled to sequentially finish data communication with the TF card respectively according to the preset priority, so that the data communication of the PCH and the BMC is realized by arranging the TF card slot on the server mainboard, and the problem of insufficient mainboard space is solved.
Drawings
In order to more clearly illustrate the detailed description of the invention or the technical solutions in the prior art, the drawings that are needed in the detailed description of the invention or the prior art will be briefly described below. Throughout the drawings, like elements or portions are generally identified by like reference numerals. In the drawings, elements or portions are not necessarily drawn to scale.
FIG. 1 is a flowchart illustrating an implementation of the TF card slot multiplexing method based on the server PCH and the BMC according to the present invention;
FIG. 2 is a TF card slot multiplexing framework topology diagram based on server PCH and BMC provided by the present invention;
fig. 3 is a flowchart illustrating an implementation of controlling the PCH and the TF card to perform data communication when a device currently accessing the TF card slot is the PCH according to the present invention;
fig. 4 is a flowchart illustrating an implementation of controlling the BMC and the TF card to perform data communication when the device currently accessing the TF card slot is the BMC according to the present invention;
FIG. 5 is a block diagram of a TF card slot multiplexing system based on a server PCH and a BMC provided in the present invention;
fig. 6 is a block diagram of a first communication control module provided in the present invention;
fig. 7 is a block diagram of a second communication control module according to the present invention.
Detailed Description
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. The following examples are merely for illustrating the technical solutions of the present invention more clearly, and therefore are only examples, and the protection scope of the present invention is not limited thereby.
Fig. 1 is a flowchart illustrating an implementation of the TF card slot multiplexing method based on the server PCH and the BMC provided by the present invention, which specifically includes the following steps:
in step S101, determining an in-place state of a TF card on the server motherboard, where the in-place state of the TF card includes an in-place state and a non-in-place state;
in step S102, when it is determined that the TF card is in place, it is determined that a device currently accessing the TF card slot includes a PCH and a BMC.
In step S103, when the device currently accessing the TF card slot is a PCH, the PCH and the TF card are controlled for data communication.
In step S104, when the device currently accessing the TF card slot is the BMC, controlling the BMC and the TF card to perform data communication.
In step S105, when the PCH and the BMC access the TF card slot at the same time, the PCH and the BMC are controlled to sequentially and respectively complete data communication with the TF card according to a preset priority.
The server mainboard is provided with a TF card slot, when the TF card is not in place, the in-place signal of the TF card slot is low, and the PCH and the BMC judge that the TF card is not in place at the moment; when TF is in place, the in-place signal of the TF card slot is high, and the PCH and the BMC judge that the TF card is in place at the moment;
in this embodiment, a selection signal is provided between the selection switch MUX and the BMC, the selection switch MUX is connected to the PCH and the BMC through data signals, and the selection switch MUX is connected to the TF card slot through data signals, as shown in fig. 2, wherein in fig. 2, a letter a represents the selection signal, a letter b represents the data signal, a letter c represents the PCH interrupt signal, and a letter d represents the BMC interrupt signal. The letter e indicates the TF card in bit signal.
The following steps are also required to be executed before the step S101 is executed:
and presetting the priority of devices accessing the TF card slot, wherein the priority of the PCH is greater than that of the BMC under the default condition.
As shown in fig. 3, when the device currently accessing the TF card slot is a PCH, the step of controlling the PCH and the TF card to perform data communication specifically includes the following steps:
in step S201, when the device currently accessing the TF card slot is a PCH, setting a PCH interrupt signal of the PCH low, and sending the PCH interrupt signal low to the BMC;
in step S202, when the BMC receives the signal that the PCH interrupt signal is set to low, the selection signal between the BMC and the selection switch MUX is set to high, and the link between the PCH and the TF slot is opened, so as to perform a data interaction.
In this embodiment, the PCH interrupt signal is asserted high when data interaction between the PCH and the TF card is completed.
As shown in fig. 4, when the device currently accessing the TF card slot is a BMC, the step of controlling the BMC to perform data communication with the TF card specifically includes the following steps:
in step S301, when the device currently accessing the TF card slot is a BMC, setting a BMC interrupt signal to low;
in step S302, when the BMC interrupt signal is set low, it is determined whether the PCH interrupt signal is high, if so, step S303 is executed, otherwise, the process is ended;
in step S303, when the PCH interrupt signal is determined to be high, the selection signal between the BMC and the selection switch MUX is set to low, and the link between the BMC and the TF slot is opened to perform a data interaction.
In this embodiment, the BMC interrupt signal is set high when the data interaction between the BMC and the TF card is completed.
In this embodiment of the present invention, when the PCH and the BMC access the TF card slot simultaneously, the specific implementation of the step of sequentially and respectively completing data communication between the PCH and the BMC and the TF card according to the preset priority level may be performed in sequence with reference to the two flows shown in fig. 3 and fig. 4, which is not described herein again.
Fig. 5 is a block diagram illustrating a structure of a TF card slot multiplexing system based on a server PCH and a BMC according to the present invention, where only portions related to an embodiment of the present invention are shown for convenience of description.
TF card slot multiplexing system based on server PCH and BMC includes:
a TF card on-site state determining module 11, configured to determine an on-site state of a TF card on the server motherboard, where the on-site state of the TF card includes an on-site state and an off-site state;
the access judging module 12 is configured to judge, when it is judged that the TF card is in place, a device currently accessing the TF card slot, where the device includes a PCH and a BMC;
the first communication control module 13 is configured to control the PCH and the TF card to perform data communication when a device currently accessing the TF card slot is the PCH;
the second communication control module 14 is configured to control the BMC and the TF card to perform data communication when a device currently accessing the TF card slot is the BMC;
a third communication control module 15, configured to control the PCH and the BMC to sequentially and respectively complete data communication with the TF card according to a preset priority when the PCH and the BMC access the TF card slot at the same time;
the server mainboard is provided with a TF card slot, when the TF card is not in place, the in-place signal of the TF card slot is low, and the PCH and the BMC judge that the TF card is not in place at the moment; when TF is in place, the in-place signal of the TF card slot is high, and the PCH and the BMC judge that the TF card is in place at the moment.
In this embodiment, the presetting module 16 is configured to preset a priority of a device accessing the TF card slot, where the priority of the PCH is greater than the priority of the BMC by default.
As shown in fig. 6, the first communication control module 13 specifically includes:
a PCH interrupt signal lowering module 17, configured to lower a PCH interrupt signal of a PCH when a device currently accessing the TF card slot is the PCH;
a PCH interrupt signal feedback module 18, configured to send a signal that the PCH interrupt signal is low to the BMC;
a select signal high module 19, configured to set a select signal between the BMC and the select switch MUX high when the BMC receives a signal that the PCH interrupt signal is set low;
the first interaction performing module 20 is configured to open a link between the PCH and the TF card slot, and perform a data interaction;
a PCH interrupt signal high module 21, configured to set the PCH interrupt signal high when data interaction between the PCH and the TF card is completed.
As shown in fig. 7, the second communication control module 14 specifically includes:
a BMC interrupt signal set-low module 22, configured to set a BMC interrupt signal low when the device currently accessing the TF card slot is a BMC;
a PCH interrupt signal determination module 23, configured to determine whether the PCH interrupt signal is high when the BMC interrupt signal is set to low;
a selection signal low-setting module 24, configured to set a selection signal between the BMC and the selection switch MUX low when the PCH interrupt signal is determined to be high;
the second interaction action execution module 25 is configured to open a link between the BMC and the TF card slot, and execute a data interaction action;
a BMC interrupt signal set-high module 26, configured to set the BMC interrupt signal high when the data interaction between the BMC and the TF card is completed.
The functions of the modules are described in the above embodiments, and are not described herein again.
In the embodiment of the invention, the in-place state of the TF card on the server mainboard is judged; when the TF card is judged to be in place, judging the devices currently accessing the TF card slot, wherein the devices comprise a PCH and a BMC; when the device currently accessing the TF card slot is a PCH, controlling the PCH and the TF card to carry out data communication; when the device currently accessing the TF card slot is the BMC, controlling the BMC to perform data communication with the TF card; when the current PCH and the current BMC access the TF card slot simultaneously, the PCH and the BMC are controlled to sequentially finish data communication with the TF card respectively according to the preset priority, so that the data communication of the PCH and the BMC is realized by arranging the TF card slot on the server mainboard, and the problem of insufficient mainboard space is solved.
The above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.