CN113836068B - PCIe display card control method and device, server and electronic equipment - Google Patents

PCIe display card control method and device, server and electronic equipment Download PDF

Info

Publication number
CN113836068B
CN113836068B CN202111163076.2A CN202111163076A CN113836068B CN 113836068 B CN113836068 B CN 113836068B CN 202111163076 A CN202111163076 A CN 202111163076A CN 113836068 B CN113836068 B CN 113836068B
Authority
CN
China
Prior art keywords
pcie
display card
host
card
function mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111163076.2A
Other languages
Chinese (zh)
Other versions
CN113836068A (en
Inventor
么爱利
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202111163076.2A priority Critical patent/CN113836068B/en
Publication of CN113836068A publication Critical patent/CN113836068A/en
Application granted granted Critical
Publication of CN113836068B publication Critical patent/CN113836068B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4004Coupling between buses
    • G06F13/4022Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0026PCI express

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Physics (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a control method, a device, a server and electronic equipment of a PCIe display card, wherein the PCIe display card is respectively connected with a BMC and a HOST, the method is applied to the BMC, and the method comprises the following steps: detecting whether an external display demand exists on a target server or not so as to obtain a demand detection result, triggering the PCIe display card to send a mode switching notification to the HOST according to the demand detection result, so that the HOST controls the working mode of the PCIe display card according to the mode switching notification, further, the display card which is used less at ordinary times by the server is fully utilized, and the functional problems of log recording and the like are solved.

Description

PCIe display card control method and device, server and electronic equipment
Technical Field
The present invention relates to the field of server technologies, and in particular, to a method and an apparatus for controlling a PCIe graphics card, a server, and an electronic device.
Background
The internal structure of the server is very complex, but is not much different from the internal structure of a common computer, and comprises: central processing unit (CentralProcessing Unit, CPU), display card, hard disk, memory, system bus, etc. However, the server rarely uses the display card at ordinary times, and even in most of the time, the server does not need the display card function, so that the display card resource is wasted.
Disclosure of Invention
Accordingly, the present invention is directed to a method, an apparatus, a server and an electronic device for controlling a high-speed serial computer expansion bus standard (PeripheralComponent Interconnect Express, PCIe) video card, which can make full use of a video card that is less used by the server at ordinary times.
In a first aspect, an embodiment of the present invention provides a method for controlling a PCIe graphics card, where the PCIe graphics card is connected to a baseboard management controller (Baseboard Manager Controller, BMC) and a HOST (HOST), respectively; the method is applied to the BMC, and comprises the following steps:
Detecting whether an external display requirement exists on a target server or not so as to obtain a requirement detection result;
and triggering the PCIe display card to send a mode switching notification to the HOST according to the requirement detection result, so that the HOST controls the working mode of the PCIe display card according to the mode switching notification.
In one embodiment, the triggering the PCIe graphics card to send a mode switching notification to the HOST according to the requirement detection result, so that the HOST controls a working mode of the PCIe graphics card according to the mode switching notification, including:
If the external display requirement is detected to be absent, triggering the PCIe display card to send a first notification to the HOST, so that the HOST driver switches the current function mode of the PCIe display card to a storage function mode, and transmits data to be stored to the PCIe display card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored;
If the PCIe display card is in the storage function mode, triggering the PCIe display card to send a second notification to the HOST if the external display demand is detected, so that the HOST driver switches the current function mode of the PCIe display card from the storage function mode to the display card function mode, and the HOST stops transmitting the data to be stored to the PCIe display card; the display card function mode indicates that the PCIe display card is used for providing display card output.
In one embodiment, the method further comprises:
when the current function mode is switched to the storage function mode or the display card function mode, triggering and interrupting to the HOST through the PCIe display card so that the HOST completes software function switching corresponding to the current function mode;
and when the function switching is detected to be completed, determining that the current function mode of the PCIe display card takes effect.
In one embodiment, the method further comprises:
Before the current working mode of the PCIe graphics card is switched from the storage function mode to the graphics card function mode, extracting all data to be stored in the PCIe graphics card from the PCIe graphics card.
In one embodiment, the data to be stored includes any one or more of the following:
Log data of the HOST and user data of the HOST.
In a second aspect, an embodiment of the present invention further provides a method for controlling a PCIe graphics card, where the PCIe graphics card is connected to a BMC and an HOST respectively; the method is applied to the PCIe display card, and comprises the following steps:
Receiving a trigger instruction sent by the BMC; the trigger instruction is generated according to a requirement detection result and whether the BMC detects whether an external display requirement exists on a target server or not;
and sending a mode switching notification to the HOST according to the triggering instruction, so that the HOST controls the working mode of the PCIe display card according to the mode switching notification.
In a third aspect, the embodiment of the present invention further provides a method for controlling a PCIe graphics card, where the PCIe graphics card is connected to a BMC and an HOST respectively; the method is applied to the HOST, the method comprising:
Receiving a mode switching notification sent by the PCIe display card; the mode switching notification is a mode switching notification sent to the HOST by the PCIe graphics card according to a trigger instruction; the triggering instruction is generated according to a requirement detection result and whether the BMC detects whether an external display requirement exists on a target server or not;
And controlling the working mode of the PCIe display card according to the mode switching notification.
In a fourth aspect, an embodiment of the present invention further provides a server, including: the PCIe display card is respectively connected with the BMC and the HOST;
the BMC is used for triggering the PCIe display card to send a first notification to the HOST when detecting that the external display demand does not exist;
The HOST is used for driving the current function mode of the PCIe display card to be switched to a storage function mode when receiving the first notification, and transmitting data to be stored to the PCIe display card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored;
When the PCIe graphics card is in the storage function mode, the BMC is further configured to trigger the PCIe graphics card to send a second notification to the HOST when detecting that an external display requirement exists;
The HOST is used for driving the current function mode of the PCIe display card to switch from the storage function mode to the display card function mode when receiving the second notification, and stopping transmitting the data to be stored to the PCIe display card; the display card function mode indicates that the PCIe display card is used for providing display card output.
In an embodiment, the BMC is configured to generate a first switching instruction when detecting that there is no external display requirement, and trigger the PCIe graphics card to send the first notification to the HOST by using the first switching instruction, so that a current working mode of the PCIe graphics card is switched to the storage function mode.
In an embodiment, the BMC is further configured to generate a second switching instruction when detecting that an external display requirement exists, and trigger the PCIe graphics card to send the second notification to the HOST by using the second switching instruction, so that a current working mode of the PCIe graphics card is switched to the graphics card function mode.
In a fifth aspect, an embodiment of the present invention further provides a control device for a PCIe graphics card, where the PCIe graphics card is connected to a BMC and an HOST respectively; the apparatus is applied to the BMC, the apparatus comprising:
The detection module is used for detecting whether an external display requirement exists on the target server or not so as to obtain a requirement detection result;
And the triggering module is used for triggering the PCIe display card to send a mode switching notification to the HOST according to the requirement detection result so that the HOST controls the working mode of the PCIe display card according to the mode switching notification.
In a sixth aspect, an embodiment of the present invention further provides a control device for a PCIe graphics card, where the PCIe graphics card is connected to a BMC and an HOST respectively; the device is applied to the PCIe display card, and comprises:
the first receiving module is used for receiving a trigger instruction sent by the BMC; the trigger instruction is generated according to a requirement detection result and whether the BMC detects whether an external display requirement exists on a target server or not;
and the sending module is used for sending a mode switching notification to the HOST according to the triggering instruction so that the HOST controls the working mode of the PCIe graphics card according to the mode switching notification.
In a seventh aspect, an embodiment of the present invention further provides a control device for a PCIe graphics card, where the PCIe graphics card is connected to a BMC and an HOST respectively; the apparatus is applied to the HOST, the apparatus comprising:
The second receiving module is used for receiving the mode switching notification sent by the PCIe display card; the mode switching notification is a mode switching notification sent to the HOST by the PCIe graphics card according to a trigger instruction; the triggering instruction is generated according to a requirement detection result and whether the BMC detects whether an external display requirement exists on a target server or not;
and the control module is used for controlling the working mode of the PCIe display card according to the mode switching notification.
In an eighth aspect, an embodiment of the present invention further provides a server device, including a processor and a memory, where the memory stores computer executable instructions executable by the processor, and the processor executes the computer executable instructions to implement the method according to any one of the first aspect, the second aspect, and the third aspect.
In a ninth aspect, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions which, when invoked and executed by a processor, cause the processor to implement the method of any one of the second and third aspects.
According to the control method, the device, the server and the electronic equipment for the PCIe display card, the PCIe display card is respectively connected with the BMC and the HOST, the BMC detects whether an external display requirement exists on a target server or not to obtain a requirement detection result, and then the BMC triggers the PCIe display card to send a mode switching notification to the HOST according to the requirement detection result so that the HOST controls the working mode of the PCIe display card according to the mode switching notification. The method can switch the working mode of the PCIe display card according to the requirement, provide one working mode when the display is needed, switch to the other working mode when the display is not needed, add additional functions of the display card and meet other purposes. The embodiment of the invention can fully utilize the display cards which are less used by the server at ordinary times, and avoid the waste of display card resources.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a PCIe graphics card control method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a graphics card according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of another graphics card according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of control logic of a PCIe graphics card according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a PCIe graphics card control device according to an embodiment of the present invention;
Fig. 6 is a schematic structural diagram of a server device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described in conjunction with the embodiments, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Currently, PCIe graphics cards providing Video graphics array (Video GRAPHICS ARRAY, VGA) displays for servers are located within the BMC, connected to the HOST through a baseboard control manager (PlatformController Hub, PCH). However, in most of the time, this function is not needed, because the server has no external display, the display card function is wasted, and based on this, the embodiment of the invention provides a control method, a device, a server and electronic equipment for PCIe display cards, which can make full use of display cards which are used by the server in normal times, and avoid the waste of display card resources.
For the sake of understanding the present embodiment, first, a detailed description will be given of a method for controlling a PCIe graphics card disclosed in the present embodiment, where the PCIe graphics card is connected to a BMC and an HOST, respectively, referring to a schematic flow chart of a method for controlling a PCIe graphics card shown in fig. 1, the method is applied to the BMC, and the method mainly includes steps S110 to S120:
step S110, detecting whether the external display requirement exists on the target server or not to obtain a requirement detection result.
PCIe, among other things, is a high-speed serial computer expansion bus standard that can replace the old peripheral component interconnect standard (PeripheralComponent Interconnect, PCI). PCIe belongs to high-speed serial point-to-point dual-channel high-bandwidth transmission, and connected devices allocate exclusive channel bandwidths, do not share bus bandwidths, mainly support functions such as active power management, error reporting, end-to-end reliability transmission, hot plug, and quality of service, and have a main advantage of high data transmission rate. PCIe graphics cards refer to graphics cards that are adapted to PCIe interfaces.
BMCs are used to implement platform management (Platform Management), which represents a series of monitoring and control functions, the object of operation being system hardware. For example, by monitoring the temperature, voltage, fans, power supplies, etc. of the system and doing the corresponding adjustments to ensure that the system is in a healthy state. Meanwhile, platform management is also responsible for recording information and log records of various hardware and is used for prompting a user and positioning subsequent problems. These functions may be integrated into a controller, which is the BMC. For devices with high system requirements, such as a server, a BMC can be used, and typically, the BMC is a management component of a single board of the whole server. From the time of power-up of a server, all its components are responsible and managed by the BMC. For example, detecting whether an external display need exists, detecting a functional mode of the device, and so forth. It can also make firmware upgrade to the machine and check some operations of the machine equipment in the state that the machine is not started. Functionally, the BMC is mainly used for collecting various information on a single server and providing the information to upper-layer operation and maintenance network management software. The BMC can acquire or detect any information on any server, and even if the information cannot be acquired from the outside of the band, the BMC can acquire, acquire or detect any information to be acquired through the BMC through the scheme of combining out-of-band and in-band monitoring and providing an interface in an out-of-band unified mode.
HOST refers to a HOST, i.e., a HOST computer, which is typically defined as a large time-sharing computer system in a centralized computer mode in which multiple terminals communicate with and rely on it for processing. In contrast, in the client/server mode, the user's computer performs some processing of itself and accesses the server to obtain services such as file management, security, and printer management.
In practical application, the PCIe graphics card may be connected to the HOST through a PCH, where the PCH is a platform control center, and has a function of integrating a south bridge. The south bridge chip is responsible for communication between input/output (I/O) buses, and the north bridge is responsible for communication with the CPU. The memory controller and the PCIe controller in the north bridge are integrated into the CPU, which is equivalent to the whole north bridge chip integrated into the CPU, and only the south bridge is left on the main board, so the PCH can be understood as the south bridge.
It should be noted that, at present, the server product may generally support multiple graphics cards, for example, a BMC graphics card, an external graphics card, and so on. As shown in fig. 2, the display card is integrated in the BMC module and connected to the HOST through the PCH. For the external display card, as shown in fig. 3, the external display card is connected with the BMC through an external PCIe slot provided by the server, and is connected with the HOST through the PCH. The present embodiment is described with reference to a BMC graphics card. For example, as shown in fig. 4, the implementation of the method is based on a system-on-a-chip (Systemon Chip, SOC) including a BMC, and first, the BMC detects whether an external display requirement exists on a target server, so as to obtain a requirement detection result.
Step S120, triggering the PCIe display card to send a mode switching notification to HOST according to the requirement detection result, so that the HOST controls the working mode of the PCIe display card according to the mode switching notification.
It should be noted that, the complete working mode switching process needs to be initiated and completed by HOST software, and the BMC is responsible for triggering the PCIe graphics card to initiate the notification function, and is not responsible for switching logic. It may also be understood that the BMC is responsible for detecting a display requirement, triggering the PCIe graphics card to notify the HOST, performing function switching, and the HOST switches PCIe graphics card functions through related drivers.
In the embodiment of the application, the BMC detects whether the external display requirement exists on the target server or not so as to obtain a requirement detection result, and then triggers the PCIe display card to send a mode switching notification to the HOST according to the requirement detection result so as to enable the HOST to control the working mode of the PCIe display card according to the mode switching notification. The method can switch the working mode of the PCIe display card according to the requirement, provide one working mode when the display is needed, switch to the other working mode when the display is not needed, add additional functions of the display card and meet other purposes. The embodiment of the application can fully utilize the display cards which are less used by the server at ordinary times, and avoid the waste of display card resources.
In some embodiments, the PCIe graphics card operating mode may report both the accounting storage function mode and the graphics card function mode. As an example, the step S120 may specifically include the following steps:
in step S1202, if it is detected that there is no external display requirement, the PCIe graphics card is triggered to send a first notification to the HOST, so that the HOST driver switches the current function mode of the PCIe graphics card to the storage function mode, and transmits data to be stored to the PCIe graphics card.
The storage function mode in the embodiment of the application indicates that the video memory of the PCIe video card is used for the memory of the data to be stored. Like the memory of a computer, a video memory is a component for storing graphic information to be processed, performing the function of storing, but it stores information for each pixel that is output to the display by the video card as a counterpart. Similarly, the video memory may be used to store content that can be stored in the memory.
In practical applications, the first notification in this step may be a signal or an instruction. For example, the BMC triggers the PCIe graphics card to interrupt and notify HOST, so that HOST can perform device scanning again, and the switching of the current function mode of the PCIe graphics card to the storage function mode is completed.
For example, as shown in fig. 4, if the BMC detects that there is no external display requirement, for example, the HOST is not connected to a display device such as a display, the BMC triggers the PCIe graphics card to send a first notification to the HOST, and the HOST is responsible for switching the current functional mode of the PCIe graphics card to the storage functional mode based on the first notification. After the BMC detects that the PCIe graphics card is switched from the graphics card functional mode to the storage functional mode, enabling the function of the storage functional mode, and enabling the storage functional mode to take effect. As shown in the left half of FIG. 4, the high-speed serial computer expansion bus standard upstream port (PCIe upstream port) triggers an interrupt, which causes the PCIe graphics card to enter a Log Memory Logic system (Log Memory Logic), store related data to a Device Memory, and then be processed by the BMC's central processor. It should be noted that "Enable" in the above is responsible for controlling input and output of signals, and is a verb, i.e., an "Enable" signal, and a feeding Enable, i.e., a signal that enables feeding.
In addition, the PCIe display card in the embodiment of the application can be a PCIe display card capable of providing VGA display for a server, wherein the VGA is a video transmission standard, has the advantages of high resolution, high display speed, rich colors and the like, and is widely applied to the field of color displays. The VGA interface is an interface for outputting analog signals on the display card, most computers are connected with external display equipment through the analog VGA interface, display image information generated in a digital mode in the computers is converted into R, G, B three primary color signals and line and field synchronous signals by a digital/analog converter in the display card, and the signals are transmitted to the display equipment through cables.
In step S1204, if the PCIe display card is in the storage function mode and the external display requirement is detected, the PCIe display card is triggered to send a second notification to the HOST, so that the HOST driver switches the current function mode of the PCIe display card from the storage function mode to the display card function mode, and the HOST stops transmitting the data to be stored to the PCIe display card.
The display card functional mode indicates that the PCIe display card is used for providing display card output. The display card function is the default function of the PCIe display card.
For example, as shown in fig. 4, firstly, the BMC detects whether an external display requirement exists on the HOST, if the BMC detects that the external display requirement exists, for example, the HOST is connected to a display device such as a display, the BMC triggers the PCIe display card to send a second notification to the HOST, the HOST switches the current function mode of the PCIe display card to the display card function mode based on the second notification by writing a register into the PCIe display card, and after the BMC detects that the PCIe display card is switched from the storage function mode to the display card function mode, the function of the display card function mode is enabled, and the display card function mode is validated. As shown in the right half of FIG. 4, the high speed serial computer expansion bus standard upstream port (PCIe upstream port) triggers an interrupt to HOST, which causes the PCIe graphics card to enter the video graphics array functional logic system (VGA Function Logic), store the relevant data to the Device Memory, and then be processed by the BMC's central processor.
According to the control method for the PCIe display card, firstly, if the BMC detects that the external display requirement does not exist, the BMC triggers the PCIe display card to send a first notification to the HOST, so that the HOST driver switches the current function mode of the PCIe display card to the storage function mode, and transmits data to be stored to the PCIe display card; under the condition that the PCIe display card is in the storage function mode, if the BMC detects that the external display requirement exists, triggering the PCIe display card to send a second notification to the HOST through the BMC, so that the HOST driver switches the current function mode of the PCIe display card from the storage function mode to the display card function mode, and stopping transmitting data to be stored to the PCIe display card. In the embodiment of the invention, the function of the PCIe graphics card can be switched according to the need, when the display needs, the display function of the graphics card is provided, when the display needs are not needed, the function is switched to the other function, namely the memory of HOST is provided, and by switching the other function under the condition that the display function of the graphics card is not needed, the additional function of the graphics card is added, and other purposes are met.
In some embodiments, the switching of PCIe graphics functions is embodied by HOST. As an example, the method further comprises the steps of:
Step a), when the current function mode is switched to the storage function mode or the display card function mode, triggering and interrupting to HOST through the PCIe display card so as to enable the HOST to complete software function switching corresponding to the current function mode;
And b), when the function switching is detected to be completed, determining that the current function mode of the PCIe display card is effective.
The switching of PCIe graphics functions is illustratively implemented by HOST. The BMC detects whether the external display requirement exists on the HOST, and switches the internal functions of the PCIe device, namely HOST active switching, according to a switching instruction configured by PCIe according to a detection result. As shown in FIG. 4, logic functions within the PCIe device, which provide graphics card output (left) in one mode and use video memory as device memory (right) in another mode, mapped to HOST, may provide fast lossless switching. The HOST has a driver supporting dynamic lossless handover, and software in the HOST is responsible for function driving and function handover. HOST switches the PCIe graphics card from the graphics card function mode to the storage function mode, or switches the graphics card from the storage function mode to the graphics card function mode, and then the BMC detects that the switching is completed and starts to provide the storage function or the display function.
Through a switching instruction of PCIe configuration, the internal functions of PCIe equipment can be switched, HOST is actively switched, when the PCIe function requirement changes, the BMC triggers the interrupt notification HOST kernel to perform lossless function switching.
In some embodiments, a backup of data is required before switching from the storage function mode to the graphics card function mode to avoid data loss. As an example, the method further comprises the steps of:
and c), before the current working mode of the PCIe display card is switched from the storage function mode to the display card function mode, extracting all data to be stored in the PCIe display card from the PCIe display card.
Illustratively, a HOST-Base based backup system is the simplest data protection scheme, and in most cases, such backup is mostly implemented using a tape drive or backup hard disk that is self-contained on the server. When the BMC detects that the external display requirement exists, the BMC acquires HOST data from the PCIe display card, backups the HOST data to a tape drive or a backup hard disk on the server, after the backups are completed, the BMC controls PCIe to switch a storage function mode to a display card function mode, and after the BMC detects that the PCIe display card is switched from the storage function mode to the display card function mode, the function of the display card function mode is enabled, and the display card function mode is effective.
By backing up the data in the PCIe video memory before the PCIe video card is switched from the storage function mode to the video card function mode, the safety of the data is ensured, and the data loss caused by misoperation or system failure of the system is avoided.
In some embodiments, the type of data to be stored includes a plurality of types. As an example, the data to be stored includes any one or more of the following:
the log data of HOST and the user data of HOST.
The log data of HOST is generated on HOST, BMC can scan the video memory of PCIe video card regularly, provide the allocation interface of video memory space of video card through upper frame drive, divide the video memory of video card into different size areas for different data record, different data service call relevant interface store data to video memory of video card.
Through covering multiple HOST data types, the PCIe display card can store multiple HOST data, thereby adding additional functions of the display card, meeting other purposes and avoiding the waste of display card resources.
For the PCIe display card control method provided in the foregoing embodiment, the embodiment of the present invention further provides a server, where the server includes: PCIe graphics cards, BMCs and HOSTs, wherein the PCIe graphics cards are respectively connected with the BMCs and the HOSTs.
The BMC is used for triggering the PCIe display card to send a first notification to the HOST when detecting that the external display demand does not exist; the HOST is used for driving the current function mode of the PCIe display card to be switched to the storage function mode when receiving the first notification, and transmitting data to be stored to the PCIe display card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored; when the PCIe display card is in the storage function mode, the BMC is further used for triggering the PCIe display card to send a second notification to the HOST when detecting that the external display demand exists; the HOST is used for driving the current function mode of the PCIe display card to switch from the storage function mode to the display card function mode when receiving the second notification, and stopping transmitting data to be stored to the PCIe display card; the display card functional mode indicates that the PCIe display card is used for providing display card output.
The embodiment of the invention also discloses another control method of the PCIe display card, wherein the PCIe display card is respectively connected with the BMC and the HOST, the method is applied to the PCIe display card, and the method mainly comprises the following steps of S210 to S220:
Step S210, receiving a trigger instruction sent by the BMC; the trigger instruction is a trigger instruction which is generated by the BMC detecting whether an external display requirement exists on the target server to obtain a requirement detection result and according to the requirement detection result;
Step S220, according to the triggering instruction, a mode switching notification is sent to HOST, so that the HOST controls the working mode of the PCIe display card according to the mode switching notification.
The control method of the PCIe display card provided by the embodiment of the invention has the same technical characteristics as the control method of the PCIe display card provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
The embodiment of the invention also discloses another control method of the PCIe display card, wherein the PCIe display card is respectively connected with the BMC and the HOST, the method is applied to the HOST, and the method mainly comprises the following steps of S310 to S320:
Step S310, receiving a mode switching notification sent by a PCIe display card; the mode switching notification is a mode switching notification sent to the HOST by the PCIe graphics card according to the trigger instruction; the triggering instruction is a triggering instruction which is generated by the BMC detecting whether the external display requirement exists on the target server to obtain a requirement detection result and according to the requirement detection result;
step S320, the working mode of the PCIe display card is controlled according to the mode switching notification.
The control method of the PCIe display card provided by the embodiment of the invention has the same technical characteristics as the control method of the PCIe display card provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
In the server provided by the embodiment of the invention, the function of the PCIe display card can be switched as required, when the display needs, the display function of the display card is provided, and when the display needs are not needed, the function is switched to the other function, namely the memory of HOST is provided, and by switching the other function under the condition that the display function of the display card is not needed, the additional function of the display card is added, and other purposes are met.
In some embodiments, the BMC is configured to generate a first switching instruction when detecting that there is no external display requirement, and trigger the PCIe graphics card to send a first notification to the HOST by using the first switching instruction, so that a current working mode of the PCIe graphics card is switched to a storage function mode.
For example, firstly, the BMC detects whether an external display requirement exists on the HOST, if the BMC detects that the external display requirement does not exist, the BMC generates a first switching instruction, and triggers the PCIe graphics card to send a first notification to the HOST by using the first switching instruction, so that the current working mode of the PCIe graphics card is switched to the storage function mode.
Through the function of switching PCIe display card as required, when there is the demonstration needs, provide the display card and show the function, when there is not the demonstration needs, switch to another kind of function, increased the extra function of display card, satisfy other usage, avoid the waste of display card resource.
In some embodiments, the BMC is further configured to generate a second switching instruction when detecting that there is an external display requirement, and trigger the PCIe graphics card to send a second notification to the HOST by using the second switching instruction, so that a current working mode of the PCIe graphics card is switched to a graphics card functional mode.
For example, firstly, the BMC detects whether an external display requirement exists on the HOST, if the BMC detects that the external display requirement exists, the BMC generates a second switching instruction, so as to ensure that data in the PCIe is backed up before, and triggers the PCIe graphics card to send a second notification to the HOST through the second switching instruction, so that the current working mode of the PCIe graphics card is switched to the graphics card functional mode.
By backing up the data in the PCIe video memory before the PCIe video card is switched from the storage function mode to the video card function mode, the safety of the data is ensured, and the data loss caused by misoperation or system failure of the system is avoided.
The server provided by the embodiment of the invention has the same technical characteristics as the control method of the PCIe display card provided by the embodiment, so that the same technical problems can be solved, and the same technical effects can be achieved.
In summary, the control method of the PCIe graphics card provided by the embodiment of the present invention at least includes the following features:
(1) The method provided by the embodiment of the invention switches the function of the PCIe device as required, provides the display card function when the display needs, and switches to another function when the display needs are not needed, wherein the device provides the device memory for log backup in HOST.
(2) The PCIe device provided by the embodiment of the invention can be integrated in the BMC chip, is a part of the SOC, and can also be an independent plug-in card to provide HOST and BMC bidirectional data channels.
(3) When the PCIe device provided by the embodiment of the invention has a display requirement or a default state, the device is in a display mode, and the display of the PCIe device to the HOST terminal is a display card.
(4) When the HOST actively switches the PCIe device, the HOST is used for configuring PCIe configuration register switching, logic inside the PCIe device is responsible for performing function switching, the HOST is informed of interruption after the switching is completed, and device scanning is performed again, including but not limited to driving loading and software function switching.
(5) The BMC detects the function requirement, triggers the function switching of the equipment, the PCIe equipment triggers an interrupt to the HOST CPU during the switching, the CPU starts to configure a register to perform the function switching, and the BMC can train the equipment state until the switching is completed and can provide corresponding functions for a user.
The control method of the PCIe graphics card provided by the embodiment of the invention at least comprises the following four modules:
1) A switching instruction of PCIe configuration can switch the internal functions of PCIe equipment and HOST actively.
2) When the PCIe function requirement changes, the BMC triggers the interrupt to inform the HOST kernel of lossless function switching; logic functions in PCIe devices, which provide graphics card output in one mode and use video memory as device memory in another mode, and map to HOST, and which need to provide fast lossless switching, and when the non-graphics card mode is switched to graphics card mode, the device providing mechanism needs to inform BMC to recover the data in the memory;
3) Supporting dynamic lossless switching drive and software in HOST to be responsible for function drive and function switching;
4) A BMC detects the display requirements and triggers the software or driver for the switch.
For the control method of the PCIe display card provided by the foregoing embodiment, the embodiment of the present invention provides a control device for the PCIe display card, where the PCIe display card is connected to a BMC and an HOST respectively, and the device is applied to the BMC. Referring to a schematic structural diagram of a PCIe graphics card control device shown in fig. 5, the device mainly includes the following parts:
The detection module 501 is configured to detect whether an external display requirement exists on the target server, so as to obtain a requirement detection result;
and the triggering module 502 is configured to trigger the PCIe graphics card to send a mode switching notification to the HOST according to the requirement detection result, so that the HOST controls a working mode of the PCIe graphics card according to the mode switching notification.
In one embodiment, the triggering module 502 is specifically configured to:
if the external display requirement is detected to be absent, triggering the PCIe display card to send a first notice to the HOST, so that the HOST driver switches the current function mode of the PCIe display card to a storage function mode, and transmits data to be stored to the PCIe display card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored;
Under the condition that the PCIe display card is in a storage function mode, if the external display requirement is detected, triggering the PCIe display card to send a second notification to the HOST, so that the HOST drives the current function mode of the PCIe display card to switch from the storage function mode to the display card function mode, and stopping the HOST from transmitting data to be stored to the PCIe display card; the display card functional mode indicates that the PCIe display card is used for providing display card output.
According to the control device for the PCIe display card provided by the embodiment of the invention, firstly, if the BMC detects that the external display demand does not exist, the BMC triggers the PCIe display card to send a first notification to the HOST, so that the HOST driver switches the current function mode of the PCIe display card to the storage function mode and transmits data to be stored to the PCIe display card, and then, if the PCIe display card is in the storage function mode, the BMC triggers the PCIe display card to send a second notification to the HOST, so that the HOST driver switches the current function mode of the PCIe display card from the storage function mode to the display card function mode, and the HOST stops transmitting the data to be stored to the PCIe display card. The embodiment of the invention can utilize the display card function which is not needed by the server in most of time, and avoid the waste of display card resources.
In one embodiment, the apparatus further includes a determining module configured to: when the current function mode is switched to the storage function mode or the display card function mode, triggering and interrupting to HOST through the PCIe display card so as to enable the HOST to complete software function switching corresponding to the current function mode; and when the function switching is detected to be completed, determining that the current function mode of the PCIe display card is effective.
In one embodiment, the apparatus further includes a backup module configured to: before the current working mode of the PCIe display card is switched from the storage function mode to the display card function mode, all data to be stored in the PCIe display card are extracted from the PCIe display card.
In one embodiment, the data to be stored includes any one or more of the following:
the log data of HOST and the user data of HOST.
The implementation principle and the technical effects of the device provided by the embodiment of the invention are the same as those of the embodiment of the method and the server, and for the sake of brevity, reference is made to the corresponding contents of the embodiment of the method and the server.
For the control method of the PCIe display card provided by the foregoing embodiment, another control device of the PCIe display card is provided in the embodiment of the present invention, where the PCIe display card is connected to the BMC and the HOST respectively, and the device is applied to the PCIe display card, and the device mainly includes the following parts:
The first receiving module is used for receiving a trigger instruction sent by the BMC; the trigger instruction is a trigger instruction which is generated by the BMC detecting whether an external display requirement exists on the target server to obtain a requirement detection result and according to the requirement detection result;
And the sending module is used for sending a mode switching notification to the HOST according to the triggering instruction so that the HOST controls the working mode of the PCIe display card according to the mode switching notification.
The implementation principle and the technical effects of the device provided by the embodiment of the invention are the same as those of the method, the device and the server, and for the sake of brevity, reference is made to the corresponding contents in the embodiments of the method and the server where the embodiment of the device is not mentioned.
For the control method of the PCIe display card provided by the foregoing embodiment, the embodiment of the present invention provides another control device for a PCIe display card, where the PCIe display card is connected to a BMC and a HOST respectively, and the device is applied to the HOST, and the device mainly includes the following parts:
The second receiving module is used for receiving a mode switching notification sent by the PCIe display card; the mode switching notification is a mode switching notification sent to the HOST by the PCIe graphics card according to the trigger instruction; the triggering instruction is a triggering instruction which is generated by the BMC detecting whether the external display requirement exists on the target server to obtain a requirement detection result and according to the requirement detection result;
and the control module is used for controlling the working mode of the PCIe display card according to the mode switching notification.
The implementation principle and the technical effects of the device provided by the embodiment of the invention are the same as those of the method, the device and the server, and for the sake of brevity, reference is made to the corresponding contents in the embodiments of the method and the server where the embodiment of the device is not mentioned.
The embodiment of the invention provides electronic equipment, which comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the embodiments described above.
Fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, where the electronic device includes: a processor 60, a memory 61, a bus 62 and a communication interface 63, the processor 60, the communication interface 63 and the memory 61 being connected by the bus 62; the processor 60 is arranged to execute executable modules, such as computer programs, stored in the memory 61.
The Memory 61 may include a high-speed random access Memory (RAM, randomAccess Memory), and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the system network element and at least one other network element is achieved via at least one communication interface 63 (which may be wired or wireless), and may use the internet, a wide area network, a local network, a metropolitan area network, etc.
Bus 62 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be classified as address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 6, but not only one bus or type of bus.
The memory 61 is configured to store a program, and the processor 60 executes the program after receiving an execution instruction, and the method executed by the apparatus for flow defining disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 60 or implemented by the processor 60.
The processor 60 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuitry in hardware or instructions in software in the processor 60. The processor 60 may be a general-purpose processor, including a central processing unit (CentralProcessing Unit, CPU), a network processor (Network Processor, NP), etc.; but may also be a digital signal processor (DigitalSignalProcessing), application SPECIFIC INTEGRATED Circuit (ASIC), off-the-shelf Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in a memory 61 and the processor 60 reads the information in the memory 61 and in combination with its hardware performs the steps of the method described above.
The computer program product of the readable storage medium provided by the embodiment of the present invention includes a computer readable storage medium storing a program code, where the program code includes instructions for executing the method described in the foregoing method embodiment, and the specific implementation may refer to the foregoing method embodiment and will not be described herein.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, randomAccess Memory), a magnetic disk, an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, but it should be understood by those skilled in the art that the present invention is not limited thereto, and that the present invention is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (14)

1. The control method of the PCIe display card is characterized in that the PCIe display card is respectively connected with the BMC and the HOST; the method is applied to the BMC, and comprises the following steps:
Detecting whether an external display requirement exists on a target server or not so as to obtain a requirement detection result;
Triggering the PCIe display card to send a mode switching notification to the HOST according to the requirement detection result, so that the HOST controls the working mode of the PCIe display card according to the mode switching notification;
And triggering the PCIe graphics card to send a mode switching notification to the HOST according to the requirement detection result, so that the HOST controls the working mode of the PCIe graphics card according to the mode switching notification, and the method comprises the following steps:
If the external display requirement is detected to be absent, triggering the PCIe display card to send a first notification to the HOST, so that the HOST driver switches the current function mode of the PCIe display card to a storage function mode, and transmits data to be stored to the PCIe display card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored;
If the PCIe display card is in the storage function mode, triggering the PCIe display card to send a second notification to the HOST if the external display demand is detected, so that the HOST driver switches the current function mode of the PCIe display card from the storage function mode to the display card function mode, and the HOST stops transmitting the data to be stored to the PCIe display card; the display card function mode indicates that the PCIe display card is used for providing display card output.
2. The method as recited in claim 1, further comprising:
when the current function mode is switched to the storage function mode or the display card function mode, triggering and interrupting to the HOST through the PCIe display card so that the HOST completes software function switching corresponding to the current function mode;
and when the function switching is detected to be completed, determining that the current function mode of the PCIe display card takes effect.
3. The method as recited in claim 1, further comprising:
Before the current working mode of the PCIe graphics card is switched from the storage function mode to the graphics card function mode, extracting all data to be stored in the PCIe graphics card from the PCIe graphics card.
4. A method according to any one of claims 1to 3, wherein the data to be stored comprises any one or more of:
Log data of the HOST and user data of the HOST.
5. The control method of the PCIe display card is characterized in that the PCIe display card is respectively connected with the BMC and the HOST; the method is applied to the PCIe display card, and comprises the following steps:
Receiving a trigger instruction sent by the BMC; the trigger instruction is generated according to a requirement detection result and whether the BMC detects whether an external display requirement exists on a target server or not;
According to the trigger instruction, sending a mode switching notification to the HOST, so that the HOST controls the working mode of the PCIe display card according to the mode switching notification;
If the BMC detects that the external display requirement does not exist, triggering the PCIe display card to send a first notification to the HOST, so that the HOST driver switches the current function mode of the PCIe display card to a storage function mode, and transmits data to be stored to the PCIe display card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored; if the PCIe display card is in the storage function mode, triggering the PCIe display card to send a second notification to the HOST if the external display demand is detected, so that the HOST driver switches the current function mode of the PCIe display card from the storage function mode to the display card function mode, and the HOST stops transmitting the data to be stored to the PCIe display card; the display card function mode indicates that the PCIe display card is used for providing display card output.
6. The control method of the PCIe display card is characterized in that the PCIe display card is respectively connected with the BMC and the HOST; the method is applied to the HOST, the method comprising:
Receiving a mode switching notification sent by the PCIe display card; the mode switching notification is a mode switching notification sent to the HOST by the PCIe graphics card according to a trigger instruction; the triggering instruction is generated according to a requirement detection result and whether the BMC detects whether an external display requirement exists on a target server or not;
controlling the working mode of the PCIe display card according to the mode switching notification;
If the BMC detects that the external display requirement does not exist, triggering the PCIe display card to send a first notification to the HOST, so that the HOST driver switches the current function mode of the PCIe display card to a storage function mode, and transmits data to be stored to the PCIe display card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored; if the PCIe display card is in the storage function mode, triggering the PCIe display card to send a second notification to the HOST if the external display demand is detected, so that the HOST driver switches the current function mode of the PCIe display card from the storage function mode to the display card function mode, and the HOST stops transmitting the data to be stored to the PCIe display card; the display card function mode indicates that the PCIe display card is used for providing display card output.
7. A server, comprising: the PCIe display card is respectively connected with the BMC and the HOST;
the BMC is used for triggering the PCIe display card to send a first notification to the HOST when detecting that the external display demand does not exist;
The HOST is used for driving the current function mode of the PCIe display card to be switched to a storage function mode when receiving the first notification, and transmitting data to be stored to the PCIe display card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored;
When the PCIe graphics card is in the storage function mode, the BMC is further configured to trigger the PCIe graphics card to send a second notification to the HOST when detecting that an external display requirement exists;
The HOST is used for driving the current function mode of the PCIe display card to switch from the storage function mode to the display card function mode when receiving the second notification, and stopping transmitting the data to be stored to the PCIe display card; the display card functional mode indicates that the PCIe display card is used for providing display card output;
The BMC is further configured to trigger the PCIe graphics card to send a first notification to the HOST if the external display requirement is detected not to exist, so that the HOST driver switches a current function mode of the PCIe graphics card to a storage function mode, and transmits data to be stored to the PCIe graphics card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored; if the PCIe display card is in the storage function mode, triggering the PCIe display card to send a second notification to the HOST if the external display demand is detected, so that the HOST driver switches the current function mode of the PCIe display card from the storage function mode to the display card function mode, and the HOST stops transmitting the data to be stored to the PCIe display card; the display card function mode indicates that the PCIe display card is used for providing display card output.
8. The server of claim 7, wherein the BMC is configured to generate a first switching instruction when detecting that there is no external display requirement, and trigger the PCIe graphics card to send the first notification to the HOST using the first switching instruction, so that a current working mode of the PCIe graphics card is switched to the storage function mode.
9. The server of claim 7 or 8, wherein the BMC is further configured to generate a second switching instruction when detecting that an external display requirement exists, and trigger the PCIe graphics card to send the second notification to the HOST by using the second switching instruction, so that a current working mode of the PCIe graphics card is switched to the graphics card functional mode.
10. The control device of the PCIe display card is characterized in that the PCIe display card is respectively connected with the BMC and the HOST; the apparatus is applied to the BMC, the apparatus comprising:
The detection module is used for detecting whether an external display requirement exists on the target server or not so as to obtain a requirement detection result;
the trigger module is used for triggering the PCIe display card to send a mode switching notification to the HOST according to the requirement detection result so that the HOST controls the working mode of the PCIe display card according to the mode switching notification;
The triggering module is specifically used for: if the external display requirement is detected to be absent, triggering the PCIe display card to send a first notification to the HOST, so that the HOST driver switches the current function mode of the PCIe display card to a storage function mode, and transmits data to be stored to the PCIe display card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored; if the PCIe display card is in the storage function mode, triggering the PCIe display card to send a second notification to the HOST if the external display demand is detected, so that the HOST driver switches the current function mode of the PCIe display card from the storage function mode to the display card function mode, and the HOST stops transmitting the data to be stored to the PCIe display card; the display card function mode indicates that the PCIe display card is used for providing display card output.
11. The control device of the PCIe display card is characterized in that the PCIe display card is respectively connected with the BMC and the HOST; the device is applied to the PCIe display card, and comprises:
the first receiving module is used for receiving a trigger instruction sent by the BMC; the trigger instruction is generated according to a requirement detection result and whether the BMC detects whether an external display requirement exists on a target server or not;
the sending module is used for sending a mode switching notification to the HOST according to the triggering instruction so that the HOST controls the working mode of the PCIe graphics card according to the mode switching notification;
the BMC is used for triggering the PCIe display card to send a first notice to the HOST if the external display requirement is detected not to exist, so that the HOST driver switches the current function mode of the PCIe display card to a storage function mode and transmits data to be stored to the PCIe display card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored; if the PCIe display card is in the storage function mode, triggering the PCIe display card to send a second notification to the HOST if the external display demand is detected, so that the HOST driver switches the current function mode of the PCIe display card from the storage function mode to the display card function mode, and the HOST stops transmitting the data to be stored to the PCIe display card; the display card function mode indicates that the PCIe display card is used for providing display card output.
12. The control device of the PCIe display card is characterized in that the PCIe display card is respectively connected with the BMC and the HOST; the apparatus is applied to the HOST, the apparatus comprising:
The second receiving module is used for receiving the mode switching notification sent by the PCIe display card; the mode switching notification is a mode switching notification sent to the HOST by the PCIe graphics card according to a trigger instruction; the triggering instruction is generated according to a requirement detection result and whether the BMC detects whether an external display requirement exists on a target server or not;
the control module is used for controlling the working mode of the PCIe display card according to the mode switching notification;
the BMC is used for triggering the PCIe display card to send a first notice to the HOST if the external display requirement is detected not to exist, so that the HOST driver switches the current function mode of the PCIe display card to a storage function mode and transmits data to be stored to the PCIe display card; the storage function mode represents that the video memory of the PCIe video card is used for the memory of the data to be stored; if the PCIe display card is in the storage function mode, triggering the PCIe display card to send a second notification to the HOST if the external display demand is detected, so that the HOST driver switches the current function mode of the PCIe display card from the storage function mode to the display card function mode, and the HOST stops transmitting the data to be stored to the PCIe display card; the display card function mode indicates that the PCIe display card is used for providing display card output.
13. An electronic device comprising a memory, a processor, the memory having stored therein a computer program executable on the processor, characterized in that the processor, when executing the computer program, implements the steps of the method of any of the preceding claims 1 to 6.
14. A computer readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of any one of claims 1 to 6.
CN202111163076.2A 2021-09-30 2021-09-30 PCIe display card control method and device, server and electronic equipment Active CN113836068B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111163076.2A CN113836068B (en) 2021-09-30 2021-09-30 PCIe display card control method and device, server and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111163076.2A CN113836068B (en) 2021-09-30 2021-09-30 PCIe display card control method and device, server and electronic equipment

Publications (2)

Publication Number Publication Date
CN113836068A CN113836068A (en) 2021-12-24
CN113836068B true CN113836068B (en) 2024-04-26

Family

ID=78967853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111163076.2A Active CN113836068B (en) 2021-09-30 2021-09-30 PCIe display card control method and device, server and electronic equipment

Country Status (1)

Country Link
CN (1) CN113836068B (en)

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5581788A (en) * 1992-12-14 1996-12-03 At&T Global Information Solutions Company System for testing the functionality of video cord and monitor by using program to enable user to view list of modes and select compatible mode
KR20000002552U (en) * 1998-07-08 2000-02-07 윤종용 Monitor power control circuit
CN102681699A (en) * 2012-04-19 2012-09-19 浪潮(北京)电子信息产业有限公司 System and method for realizing keyboard video mouse remote management
CN103853516A (en) * 2012-12-05 2014-06-11 联想(北京)有限公司 Electronic equipment and switching method
WO2016101411A1 (en) * 2014-12-25 2016-06-30 中兴通讯股份有限公司 Server display method and device
CN208940130U (en) * 2018-11-02 2019-06-04 深圳市大雅新科技有限公司 A kind of dual-mode dp signal automatic testing equipment
CN110531950A (en) * 2019-09-23 2019-12-03 北京小鸟科技股份有限公司 A kind of video card for supporting KVM to encode
CN110941399A (en) * 2019-12-05 2020-03-31 北京金山云网络技术有限公司 Data processing method and device and electronic equipment
CN111258672A (en) * 2020-01-09 2020-06-09 合肥联宝信息技术有限公司 Method for switching display card and electronic equipment
CN111753309A (en) * 2020-06-29 2020-10-09 西安易朴通讯技术有限公司 Display card switching method, server and storage medium
CN112346689A (en) * 2020-10-29 2021-02-09 浪潮电子信息产业股份有限公司 Integrated machine
CN112416279A (en) * 2020-11-16 2021-02-26 新华三云计算技术有限公司 Server display method, device, equipment and storage medium
CN112685347A (en) * 2020-12-31 2021-04-20 西安易朴通讯技术有限公司 Compatible method and device for PCIE (peripheral component interface express) equipment with different bandwidths and server
CN112799472A (en) * 2021-02-18 2021-05-14 深圳市鼎升科技有限公司 Notebook computer with external display card and display return function, circuit and display card switching method
CN113127194A (en) * 2021-03-26 2021-07-16 山东英信计算机技术有限公司 Management chip resource self-adaptive distribution method, device and medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10430366B2 (en) * 2016-12-20 2019-10-01 Dell Products L.P. Systems and methods for configuration of hot-inserted device prior to operating system control of device
US10210842B2 (en) * 2017-02-07 2019-02-19 American Megatrends, Inc. Techniques of displaying host data on a monitor connected to a service processor during pre-boot initialization stage

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5581788A (en) * 1992-12-14 1996-12-03 At&T Global Information Solutions Company System for testing the functionality of video cord and monitor by using program to enable user to view list of modes and select compatible mode
KR20000002552U (en) * 1998-07-08 2000-02-07 윤종용 Monitor power control circuit
CN102681699A (en) * 2012-04-19 2012-09-19 浪潮(北京)电子信息产业有限公司 System and method for realizing keyboard video mouse remote management
CN103853516A (en) * 2012-12-05 2014-06-11 联想(北京)有限公司 Electronic equipment and switching method
WO2016101411A1 (en) * 2014-12-25 2016-06-30 中兴通讯股份有限公司 Server display method and device
CN208940130U (en) * 2018-11-02 2019-06-04 深圳市大雅新科技有限公司 A kind of dual-mode dp signal automatic testing equipment
CN110531950A (en) * 2019-09-23 2019-12-03 北京小鸟科技股份有限公司 A kind of video card for supporting KVM to encode
CN110941399A (en) * 2019-12-05 2020-03-31 北京金山云网络技术有限公司 Data processing method and device and electronic equipment
CN111258672A (en) * 2020-01-09 2020-06-09 合肥联宝信息技术有限公司 Method for switching display card and electronic equipment
CN111753309A (en) * 2020-06-29 2020-10-09 西安易朴通讯技术有限公司 Display card switching method, server and storage medium
CN112346689A (en) * 2020-10-29 2021-02-09 浪潮电子信息产业股份有限公司 Integrated machine
CN112416279A (en) * 2020-11-16 2021-02-26 新华三云计算技术有限公司 Server display method, device, equipment and storage medium
CN112685347A (en) * 2020-12-31 2021-04-20 西安易朴通讯技术有限公司 Compatible method and device for PCIE (peripheral component interface express) equipment with different bandwidths and server
CN112799472A (en) * 2021-02-18 2021-05-14 深圳市鼎升科技有限公司 Notebook computer with external display card and display return function, circuit and display card switching method
CN113127194A (en) * 2021-03-26 2021-07-16 山东英信计算机技术有限公司 Management chip resource self-adaptive distribution method, device and medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
DVI显示技术在雷达终端中的应用;张继国;;电子工程师;20080715(07);16-17+21 *
智能显卡切换 让台式机也节能减排;Air Force;;电脑爱好者;20110501(09);97-98 *
线路保护装置采样值直采传输方案研究;马卫平;赵会彬;王振华;;计算机测量与控制;20161125(第11期);209-212 *

Also Published As

Publication number Publication date
CN113836068A (en) 2021-12-24

Similar Documents

Publication Publication Date Title
US20100274986A1 (en) Control apparatus and control method therefor
CN105814541A (en) Computer device and memory starting method for computer device
CN114116378B (en) Method, system, terminal and storage medium for acquiring PCIe (peripheral component interconnect express) equipment temperature
EP4220377A1 (en) Cloud desktop display method and system
US10387260B2 (en) Reboot system and reboot method
CN111475218A (en) Server starting method, server and computer readable storage medium
US9720755B2 (en) Information processing device
US10649832B2 (en) Technologies for headless server manageability and autonomous logging
CN113836068B (en) PCIe display card control method and device, server and electronic equipment
US20160187955A1 (en) Information processing apparatus, information processing method and computer program product
CN116644011B (en) Quick identification method, device and equipment of I2C equipment and storage medium
CN112445444A (en) Image forming apparatus and security control system
US10805379B2 (en) Techniques of video update on a client based on browser status
CN111475435A (en) Storage medium sharing method and device, electronic equipment and storage medium
CN116028125A (en) Remote control startup display mode setting method, system, terminal and storage medium
CN107066072B (en) Electronic device and control method thereof
CN110008071B (en) Remote debugging device and method
CN115599617A (en) Bus detection method and device, server and electronic equipment
CN110968393B (en) Migration processing method of virtual machine, storage medium and computing device
CN114860512A (en) Method, device, equipment and system for detecting working state of SOC (system on chip) chip of vehicle
CN109992510B (en) Remote debugging device and method
CN116954972A (en) Fault positioning method, positioning device, terminal equipment and storage medium
US11847085B2 (en) Method, system, and server for monitoring status of solid state drive
CN112463446B (en) PCIe device recovery method and system, electronic device and storage medium
US20230092303A1 (en) Information processing apparatus, information processing method and non-transitory recording medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant