Display control method, apparatus, and electronic device

By configuring the bus interface mode and mapping the video memory space of a designated chip on the control end, the multi-functional utilization of the designated chip is realized, which improves the chip utilization rate of the control end and saves graphics card resources.

CN115344221BActive Publication Date: 2026-03-17LOONGSON TECH CORP
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-20
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

In existing technologies, the chips configured in the control terminal are only used for controlling the server, resulting in low utilization.

Method used

Configure the mode of the first bus interface of the specified chip in the control terminal, map the video memory space of the specified chip through the server, read the data to be displayed from the video memory space of the specified chip, and display the data to be displayed on the display screen based on the specified chip.

Benefits of technology

It improves the chip utilization rate of the control end by using a designated chip as a graphics card to display the data required by the server, thus saving the server's graphics card resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115344221B_ABST
    Figure CN115344221B_ABST
Patent Text Reader

Abstract

The application provides a display control method and device and electronic equipment. In the method, a first bus interface of a specified chip in a control terminal is configured in a mode, and a display memory space of the specified chip is mapped through a server; the control terminal and the server are connected through the first bus interface, and the first bus interface is used for the server to access the display memory space. Display data to be displayed is read from the display memory space of the specified chip; wherein the display data to be displayed is data required to be displayed by the server connected with the control terminal. The display data to be displayed is displayed to a display screen based on the specified chip. In this way, through the configuration and mapping operation, the display data to be displayed of the server can be written into the display memory space of the specified chip, the specified chip is used as a display card, the display data to be displayed required to be displayed by the server is displayed based on the display memory space of the specified chip, and then the chip utilization rate of the control terminal can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electronic equipment technology, and in particular to a display control method, device and electronic equipment. Background Technology

[0002] Currently, to facilitate the operation of equipment, a control terminal is often set up to manage the server. For example, the control terminal can be used to remotely monitor the server, control the server restart, and so on.

[0003] In existing technologies, the chips configured in the control terminal are only used to control the server, resulting in low chip utilization. Summary of the Invention

[0004] This invention provides a display control method, apparatus, and electronic device to improve chip utilization.

[0005] Firstly, a display control method is provided, the method comprising:

[0006] The control terminal configures the mode of the first bus interface of a specified chip in the control terminal and maps the video memory space of the specified chip through the server; the control terminal and the server are connected through the first bus interface, which is used by the server to access the video memory space.

[0007] Read the data to be displayed from the video memory space of the specified chip; wherein, the data to be displayed is the data that the server connected to the control terminal needs to display;

[0008] The data to be displayed is displayed on the screen based on the specified chip.

[0009] Optionally, configuring the mode of the first bus interface of the specified chip and mapping the video memory space of the specified chip through the server includes:

[0010] Configure the first bus interface to a specified mode so that the server recognizes the control terminal connected based on the first bus interface as an external device and allocates a first bus domain to the control terminal.

[0011] The control terminal receives the data to be displayed written by the server based on the spatial address corresponding to the first bus domain;

[0012] Routing configuration is performed based on the space address corresponding to the first bus domain to map the space address to the address of the video memory space.

[0013] Optionally, the method further includes:

[0014] During the initialization phase of the specified chip, the target space size corresponding to the specified chip is configured;

[0015] The server sends representation information to characterize the target space size, so that the server allocates a first bus domain of a corresponding size to the control terminal connected to the first bus interface based on the target space size represented by the representation information.

[0016] Optionally, the method further includes:

[0017] The specified register of the control terminal is routed according to the space address to associate the space address with the specified address; the storage space corresponding to the specified address is used to cache the data to be displayed.

[0018] The step of configuring routing based on the spatial address corresponding to the first bus domain to map the spatial address to the address in the video memory space includes:

[0019] If the specified address is found to be inconsistent with the address of the video memory space, the specified address is mapped to the address of the video memory space.

[0020] Optionally, displaying the data to be displayed on the display screen based on the designated chip includes: outputting and displaying the data to be displayed on the display screen based on the display module configured in the designated chip;

[0021] After outputting the data to be displayed onto the display screen, the method further includes:

[0022] The system checks whether the data to be displayed is successfully displayed on the screen; if it is successfully displayed on the screen, it returns a display success command; otherwise, it returns a display failure command.

[0023] Secondly, a display control device is provided, the device comprising:

[0024] The first configuration module is used to configure the mode of the first bus interface of a specified chip in the control terminal, and to map the video memory space of the specified chip through the server; the control terminal and the server are connected through the first bus interface, which is used for the server to access the video memory space.

[0025] A reading module is used to read data to be displayed from the video memory space of the specified chip; wherein, the data to be displayed is data that the server connected to the control terminal needs to display;

[0026] The data display module is used to display the data to be displayed on the display screen based on the specified chip.

[0027] Optionally, the first configuration module is specifically used for:

[0028] Configure the first bus interface to a specified mode so that the server recognizes the control terminal connected based on the first bus interface as an external device and allocates a first bus domain to the control terminal.

[0029] The control terminal receives the data to be displayed written by the server based on the spatial address corresponding to the first bus domain;

[0030] Routing configuration is performed based on the space address corresponding to the first bus domain to map the space address to the address of the video memory space.

[0031] Optionally, the device further includes:

[0032] The second configuration module is used to configure the target space size corresponding to the specified chip during the initialization phase of the specified chip.

[0033] The sending module is used to send representation information representing the size of the target space to the server, so that the server allocates a first bus domain of a corresponding size to the control terminal connected to the first bus interface based on the target space size represented by the representation information.

[0034] Optionally, the device further includes:

[0035] The association module is used to configure the routing of a specified register of the control terminal according to the space address, so as to associate the space address with the specified address; the storage space corresponding to the specified address is used to cache the data to be displayed;

[0036] The first configuration module is also specifically used for:

[0037] If the specified address is found to be inconsistent with the address of the video memory space, the specified address is mapped to the address of the video memory space.

[0038] Optionally, the data display module is specifically used to: output and display the data to be displayed on the display screen based on the display module configured in the specified chip;

[0039] The device further includes:

[0040] The detection module is used to detect whether the data to be displayed is successfully displayed on the display screen after the data display module outputs and displays the data to be displayed on the display screen;

[0041] The return module is used to return a display success command if the content is successfully displayed on the display screen, and a display failure command otherwise.

[0042] Thirdly, an electronic device is provided, comprising:

[0043] One or more processors; and one or more machine-readable media thereon storing instructions that, when executed by the one or more processors, cause the electronic device to perform the above-described display control method.

[0044] Fourthly, one or more machine-readable media are provided, on which instructions are stored, which, when executed by one or more processors, cause the processors to perform the above-described display control method.

[0045] In this embodiment of the invention, the first bus interface of a specified chip is configured in a mode, and the video memory space of the specified chip is mapped through a server. The control terminal and the server are connected through the first bus interface, which is used by the server to access the video memory space. Data to be displayed is read from the video memory space of the specified chip; wherein, the data to be displayed is the data required to be displayed by the server connected to the control terminal. The data to be displayed is displayed on the screen based on the specified chip. Thus, through configuration and mapping operations, the server's data to be displayed can be written into the video memory space of the specified chip, using the specified chip as a graphics card. Based on the video memory space of the specified chip, the data to be displayed required by the server is displayed, thereby improving the chip utilization rate of the control terminal.

[0046] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0047] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0048] Figure 1 This is a flowchart of the steps of a display control method provided in an embodiment of the present invention;

[0049] Figure 2 This is a configuration initialization flowchart provided by an embodiment of the present invention;

[0050] Figure 3 This is a connection diagram provided in an embodiment of the present invention;

[0051] Figure 4This is another connection diagram provided in an embodiment of the present invention;

[0052] Figure 5 This is a schematic diagram of a processing flow provided in an embodiment of the present invention;

[0053] Figure 6 This is a structural block diagram of a display control device provided in an embodiment of the present invention. Detailed Implementation

[0054] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this invention will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.

[0055] Figure 1 This is a flowchart of the steps of a display control method provided in an embodiment of the present invention, as shown below. Figure 1 As shown, the method may include:

[0056] Step 101: Configure the mode of the first bus interface of the specified chip in the control terminal, and map the video memory space of the specified chip through the server; the control terminal and the server are connected through the first bus interface, which is used for the server to access the video memory space.

[0057] Step 102: Read the data to be displayed from the video memory space of the specified chip; wherein, the data to be displayed is the data that the server connected to the control terminal needs to display.

[0058] With the continuous development of technology, some system-on-a-chip (SoC) has display functionality, and can be used not only as a control chip but also as a graphics card. In this embodiment of the invention, the designated chip can be a chip that simultaneously possesses independent display functionality; that is, the designated chip can have both control and independent display functions. The specific model of the designated chip can be selected according to actual needs, as long as it ensures that the designated chip has both control and independent display functions.

[0059] In this embodiment of the invention, the method can be applied to the control end. Configuring the mode of the first bus interface and mapping the video memory space of the specified chip to the server can be considered as setting up the specified chip as a graphics card, thereby allowing the data to be displayed to be written into the video memory space of the specified chip and used as a graphics card. In this embodiment of the invention, the control end and the server can also be connected through the second bus interface of the specified chip. The second bus interface is used for the control end to send control commands to the server, such as restart commands, shutdown commands, application installation commands, etc. For example, the control end can generate control commands according to actual needs and then send the control commands to the server through the second bus interface. In this scenario, the server can be considered the controlled end. In this way, while implementing control functions for the server based on the specified chip, the display functions provided by the specified chip can be further utilized to display the data to be displayed by the server based on the video memory space of the specified chip, thereby improving the chip utilization rate of the control end.

[0060] Furthermore, the specific device types of the control terminal and server can be set according to actual needs, and this embodiment of the invention does not impose any restrictions on this. Furthermore, the control terminal can be connected to the server via a first bus interface and a second bus interface of a designated chip. The first bus interface can be used for the server to access the video memory space. This ensures that the control terminal can display the data to be displayed by the server while simultaneously controlling the server normally; that is, the designated chip is used as both the control chip and the server's graphics card for data display. The data to be displayed can be written by the server, and the specific type of data to be displayed can be set according to actual needs; this embodiment of the invention does not impose any restrictions on this. For example, the data to be displayed may include related data stored in the server, server device parameters, such as CPU utilization, memory utilization, CPU temperature, continuous running time, etc. This allows users to easily understand the server's status based on the displayed data.

[0061] Step 103: Display the data to be displayed on the screen based on the specified chip.

[0062] The display screen can be connected to a control terminal. The control terminal displays the data to be displayed based on a designated chip, essentially using the designated chip as a dedicated graphics card for the server to achieve the display function. In this way, by reusing the display function provided by the designated chip to display the data to be displayed by the server, the server's graphics card resources can be saved to some extent.

[0063] In summary, the display control method provided by this invention configures the mode of the first bus interface of a specified chip in the control terminal and maps the video memory space of the specified chip through a server. The control terminal and the server are connected through the first bus interface, which is used by the server to access the video memory space. Data to be displayed is read from the video memory space of the specified chip; wherein, the data to be displayed is the data required to be displayed by the server connected to the control terminal. The data to be displayed is displayed on the screen based on the specified chip. Thus, through configuration and mapping operations, the data to be displayed by the server can be written into the video memory space of the specified chip, using the specified chip as a graphics card. Based on the video memory space of the specified chip, the data to be displayed by the server is displayed, thereby improving the chip utilization rate of the control terminal.

[0064] Optionally, in this embodiment of the invention, step 101 may specifically include:

[0065] Step 1011: Configure the first bus interface to a specified mode.

[0066] Accordingly, when the first bus interface is configured in a specified mode, the server will identify the control terminal connected based on the first bus interface as an external device and allocate a first bus domain to the control terminal.

[0067] After allocating the first bus domain to the control terminal, the server writes the data to be displayed based on the space address corresponding to the allocated first bus domain. Specifically, the server can write the data to be displayed to the space address corresponding to the first bus domain. Correspondingly, the control terminal can receive the data to be displayed written by the server based on the space address corresponding to the first bus domain.

[0068] The specified mode can be a mode that enables the control terminal to be recognized as an external device. For example, the first bus interface can be a high-speed serial computer extended bus standard (Public Component Interconnect Express, PCIe) bus interface. The first bus interface can support master and slave modes, and the specified mode can be slave mode. This ensures that after configuration, the server can recognize the control terminal connected via the PCIe bus interface as a PCIe device, and the control terminal can act as a graphics card device to display information output by the server. Specifically, mode configuration can be performed during the initialization of the specified chip to configure the first bus interface of the specified chip as slave mode (EP mode). For example, the value of the corresponding register can be configured during initialization to configure the first bus interface of the specified chip as slave mode. Further, after the server recognizes the control terminal as a PCIe device, it will allocate a PCIe bus domain for the PCIe device. Specifically, this can be by allocating the address space of the PCIe device within the PCIe bus domain. This address space can correspond to a block of memory. The server can write the data to be displayed based on the address space corresponding to the first bus domain, i.e., the address of that address space.

[0069] In other embodiments, when the control terminal remotely controls the server, and the control terminal and server are connected via a first bus interface, the control terminal transmits instructions to a wireless module installed in the control terminal through the first bus interface. The wireless module then uses the wireless network to interact with the server. After recognizing the control terminal as an external device, the server allocates a first bus domain to the control terminal via the wireless network and sends the data to be displayed. Correspondingly, after receiving the data to be displayed through the wireless module, the control terminal writes the data to be displayed through the first bus interface based on the spatial address corresponding to the first bus domain.

[0070] Step 1012: Configure routing according to the space address corresponding to the first bus domain to map the space address to the address of the video memory space.

[0071] Specifically, the operation of the server mapping the video memory space of the specified chip can be to map the space address corresponding to the first bus domain allocated by the server to the address of the video memory space.

[0072] After allocating the first bus domain, the server can return the corresponding space address to the control terminal for routing configuration. Alternatively, the server and the control terminal may pre-agree on the space address corresponding to the first bus domain to be allocated to the control terminal for routing configuration; this embodiment of the invention does not impose any restrictions on this.

[0073] In this embodiment of the invention, by configuring the first bus interface to a specified mode, the server identifies the control terminal connected via the first bus interface as an external device and allocates a first bus domain to the control terminal. Routing is then configured based on the spatial address corresponding to the first bus domain to map the spatial address to an address in the video memory space. Since the server writes the data to be displayed based on the spatial address corresponding to the first bus domain, this embodiment maps the spatial address to an address in the video memory space of the control terminal. This ensures that when the server writes data to be displayed based on the spatial address corresponding to the first bus domain, the data to be displayed is written to the video memory space of the control terminal, thereby improving processing efficiency to some extent.

[0074] Optionally, in this embodiment of the invention, the following steps may also be performed:

[0075] Step 201: In the initialization phase of the specified chip, configure the target space size corresponding to the specified chip.

[0076] Specifically, the designated chip may include a Display Controller (DC) to implement independent display functions. During the initialization phase, the DC can be configured with a target memory size to allocate video memory. The target memory size is the size of the allocated video memory, which can be pre-specified based on actual needs. It should be noted that during the initialization phase, the operation of configuring the first bus interface to a specified mode can be performed sequentially or simultaneously with the operation of configuring the target memory size; this embodiment of the invention does not impose any restrictions on this.

[0077] Step 202: Send representation information to the server to represent the target space size, so that the server allocates a first bus domain of a corresponding size to the control terminal connected to the first bus interface based on the target space size represented by the representation information.

[0078] In this step, the characterization information can be a numerical value of the target space size. By sending the characterization information to the server, the server can know the actual size of the video memory space in the specified chip. Thus, after scanning the control terminal, that is, after recognizing the control terminal as an external device, it can allocate a first bus domain of the corresponding size to it, that is, allocate an address space of the corresponding size.

[0079] In this embodiment of the invention, the target space size corresponding to the specified chip is configured during the initialization phase of the specified chip. Characterization information representing the target space size is sent to the server, enabling the server to allocate a first bus domain of the corresponding size to the control terminal connected to the first bus interface based on the target space size represented by the characterization information. This ensures that the size of the address space allocated by the server is consistent with the size of the video memory space provided by the server, avoiding the inability to correctly write the required display data to the video memory due to size inconsistencies, thus preventing write operation errors.

[0080] Optionally, embodiments of the present invention may further include:

[0081] Step 301: Configure the routing of the specified register of the control terminal according to the space address to associate the space address with the specified address; the storage space corresponding to the specified address is used to cache the data to be displayed.

[0082] The designated register can be pre-set; for example, it is a register in the control terminal used to implement the PCIe controller. The designated address can be a pre-configured routing address according to actual needs, and this embodiment of the invention does not impose any restrictions on this. For example, an address that will not be used by other operations can be selected as the designated address to avoid operational conflicts. Specifically, code for routing the spatial address to the designated address can be configured in the designated register to associate the spatial address with the designated address. The operation of associating the spatial address with the designated address can be a routing configuration operation. By associating the spatial address with the designated address, when the server writes data to be displayed based on the spatial address, the data to be displayed will be written to the storage space corresponding to the designated address, and the data to be displayed will be cached based on the storage space corresponding to the designated address.

[0083] Accordingly, the operation of configuring routing based on the spatial address corresponding to the first bus domain to map the spatial address to the address of the video memory space can specifically include:

[0084] Step 302: If the specified address is found to be consistent with the address of the video memory space, the specified address is mapped to the address of the video memory space.

[0085] Specifically, the address of the video memory space can be obtained, and then compared with a specified address to determine if the specified address matches the address of the video memory space. If the specified address matches the address of the video memory space, it means that the storage space corresponding to the specified address is the video memory space. By simply configuring the routing, it can be ensured that when the server writes data to be displayed using the space address corresponding to the first bus domain, the data to be displayed is written to the video memory space.

[0086] Conversely, if the specified address and the address in the video memory space are inconsistent, it indicates that routing configuration alone will cause the server to write the data to be displayed to the memory space corresponding to the first bus domain, but the data to be displayed will be written to the memory space corresponding to the specified address. Therefore, this step can be further performed. Specifically, a mapping relationship between the specified address and the address in the video memory space can be established, thereby mapping the specified address to the address in the video memory space.

[0087] For example, Figure 2 This is a configuration initialization flowchart provided by an embodiment of the present invention, such as... Figure 2 As shown, the first bus interface can be configured to a specified mode first, enabling the server to identify the control terminal during initialization, thereby ensuring that a first bus domain is allocated to the identified control terminal. Next, the target space size corresponding to the specified chip can be configured so that the server allocates a first bus domain of the corresponding size to the control terminal connected to the first bus interface after scanning for the control terminal.

[0088] Furthermore, routing configuration can be performed based on the spatial address corresponding to the first bus domain to map the spatial address of the first bus domain to the address of the video memory space, enabling the server to access the video memory space of the control terminal through the allocated spatial address corresponding to the first bus domain. This initialization configuration includes: configuring the first bus interface to a specified mode, configuring the target space size, and configuring routing based on the spatial address corresponding to the first bus domain. After initialization is completed by the initialization function of the specified chip, the server can recognize the control terminal as an external device and allocate the first bus domain to the control terminal, since the spatial address corresponding to the first bus domain is mapped to the address of the video memory space. When the server writes data to be displayed to the spatial address corresponding to the first bus domain, it can directly write the data to be displayed into the video memory space of the control terminal. The control terminal then reads the cached data to be displayed from the video memory space and displays it, thus completing the task of displaying the data to be displayed on the monitor of the control terminal. Specifically, routing configuration can involve configuring the address routing window. The aforementioned configuration operations can be performed in the operating system bootloader (PMON) of the control terminal.

[0089] In this embodiment of the invention, the designated register of the control terminal is routed according to the spatial address to associate the spatial address with the designated address. If an inconsistency is detected between the designated address and the address in the video memory space, the designated address is further mapped to the address in the video memory space. This ensures that the data to be displayed written by the server at the spatial address corresponding to the first bus domain can be ultimately written to the video memory space of the designated chip, thereby ensuring a certain degree of success rate for data writing operations.

[0090] Optionally, the operation of displaying the data to be displayed on the display screen based on the specified chip may specifically include: outputting the data to be displayed to the display screen based on the display module configured in the specified chip. Specifically, the display module configured in the specified chip may be a display controller, which may operate the video memory based on the address of the video memory space to load the data to be displayed, and render the loaded data to be displayed, and output the data to be displayed to the display screen.

[0091] Furthermore, after outputting the data to be displayed to the display screen, in this embodiment of the invention, it is also possible to detect whether the data to be displayed is successfully displayed on the display screen; if it is successfully displayed on the display screen, a display success command is returned; otherwise, a display failure command is returned.

[0092] Specifically, it can detect whether the image on the display screen is complete. If it is complete, it confirms that the data to be displayed has been successfully displayed. Conversely, it confirms that the data to be displayed has not been successfully displayed. Accordingly, it can return a display success command indicating successful display, or a display failure command indicating unsuccessful display. Upon returning, the display success command / display failure command can be sent to the server, or it can be sent to the server administrator, for example, to the mobile terminal used by the server administrator.

[0093] In this embodiment of the invention, based on the display module configured in the specified chip, the data to be displayed is output and displayed on the display screen. After the display is completed, it is further detected whether the data to be displayed is successfully displayed on the display screen, and a display success command / display failure command is returned accordingly, so that the server can easily know the display result.

[0094] Optionally, the server can be a server-side device, which can be any server platform. The control end can be a Baseboard Management Controller (BMC), and a designated chip can be used as the main chip of the BMC, i.e., a system-on-a-chip (SOC). The BMC can be plugged into the server as a board, and the two are connected by contact, both residing in the same device. Alternatively, it can be located in other devices, such as a computer, and the two are connected via a wired connection. This embodiment of the invention does not impose any limitations on this.

[0095] The following describes an exemplary application scenario related to an embodiment of the present invention. In the server industry, BMC boards are used to manage servers. BMC commands can be used to perform large-scale unattended operations on server clusters, such as remote management, monitoring, installation, and restarting of servers. In this embodiment of the present invention, a designated chip also has display functionality. To avoid resource waste, the designated chip can be used as a BMC board and connected to the server via a PCIe bus, thereby further using the designated chip as a PCIe graphics card for server display.

[0096] Figure 3 This is a connection diagram provided by an embodiment of the present invention, such as... Figure 3 As shown, the server can connect to the BMC (Band Control Center) via a first bus interface and a second bus interface. The BMC can use a 2K0500 chip. When used as a BMC, it needs to connect to the server via the second bus interface. To achieve display functionality (PCIe graphics card function), it can connect to the server via the first bus interface. The DC controller of the BMC can operate the video memory for output display. There can be multiple second bus interfaces, such as I2C bus, LPC bus, etc. Furthermore, when using a specific chip as a graphics card, the server needs to be able to access the video memory space of the specified chip via the PCIe bus. In this embodiment, the server can write the data to be displayed into the video memory space of the specified chip in the BMC based on the space address corresponding to the first bus domain. The display controller inside the specified chip in the BMC can output the data to be displayed from the video memory space to the display, thereby completing the display function.

[0097] Figure 4 This is another connection diagram provided by an embodiment of the present invention, such as... Figure 4 As shown, the server side includes a CPU, which can access the video memory space of the BMC side. Specifically, the CPU inside the server side can access the memory through the PCIe bus between the two. The server side can pre-allocate a portion of the PCIe bus domain to the BMC side from the bus domains available for allocation to all external devices. The BMC side can map the space address corresponding to the PCIe bus domain to the address of the video memory space in the BMC side. This mapping operation can be implemented based on the CPU inside the BMC side, and the PCIe bus can be the first bus mentioned above, and the PCIe bus domain can be the first bus domain mentioned above.

[0098] It should be noted that the server side can be a PCI Express root complex (RC) side, and the BMC side can be an Endpoint Device (EP). The video memory space can be a Dynamic Random Access Memory (DRAM) domain.

[0099] Furthermore, Figure 5 This is a schematic diagram of a processing flow provided by an embodiment of the present invention, such as... Figure 5 As shown, the control terminal can initialize the display controller and allocate video memory space.

[0100] Specifically, the control terminal can determine that the server has successfully allocated the first bus domain to the control terminal if it receives a flag from the server indicating that the first bus domain allocation was successful; otherwise, it can determine that the server has failed to allocate the first bus domain to the control terminal. Furthermore, the control terminal can determine that the video memory space has been successfully allocated if initialization is completed normally and the address of the video memory space is obtained; otherwise, it can determine that the video memory space has not been successfully allocated.

[0101] If the server successfully allocates the first bus domain and video memory space to the control terminal, the address corresponding to the first bus domain is mapped to the address in the video memory space. Then, the data to be displayed in the video memory space is displayed. Conversely, if the server fails to allocate the first bus domain and / or fails to allocate video memory space to the control terminal, a prompt message indicating that the data to be displayed cannot be displayed can be output.

[0102] The server side requires no special configuration; it simply boots normally, undergoing firmware and kernel booting before scanning for external devices. If the controller is successfully identified as an external device, it allocates the first bus domain to it. The controller can be ported and adapted based on existing firmware and kernel. After firmware boot initialization and kernel booting into the system, the controller initializes the display controller and allocates video memory.

[0103] In this embodiment, the designated chip is further used as a graphics card for server display. This maximizes the functionality of the designated chip, expands its application scenarios, and allows it to play a greater role. Simultaneously, using the designated chip as a graphics card reduces the number of graphics cards required, thus saving costs.

[0104] It should be noted that, in this embodiment of the invention, the server may write the data to be displayed into the allocated first bus domain, and then the control terminal may actively read and write it into the video memory space to achieve display.

[0105] Figure 6 This is a structural block diagram of a display control device provided in an embodiment of the present invention, such as... Figure 6 As shown, the device may include:

[0106] The first configuration module 601 is used to configure the mode of the first bus interface of a specified chip in the control terminal, and to map the video memory space of the specified chip through the server; the control terminal and the server are connected through the first bus interface, which is used for the server to access the video memory space.

[0107] The reading module 602 is used to read data to be displayed from the video memory space of the designated chip; wherein, the data to be displayed is data that the server connected to the control terminal needs to display;

[0108] The data display module 603 is used to display the data to be displayed on the display screen based on the specified chip.

[0109] Optionally, the first configuration module 601 is specifically used for:

[0110] Configure the first bus interface to a specified mode so that the server recognizes the control terminal connected based on the first bus interface as an external device and allocates a first bus domain to the control terminal.

[0111] The control terminal receives the data to be displayed written by the server based on the spatial address corresponding to the first bus domain;

[0112] Routing configuration is performed based on the space address corresponding to the first bus domain to map the space address to the address of the video memory space.

[0113] Optionally, the device further includes:

[0114] The second configuration module is used to configure the target space size corresponding to the specified chip during the initialization phase of the specified chip.

[0115] The sending module is used to send representation information representing the size of the target space to the server, so that the server allocates a first bus domain of a corresponding size to the control terminal connected to the first bus interface based on the target space size represented by the representation information.

[0116] Optionally, the device further includes:

[0117] The association module is used to configure the routing of a specified register of the control terminal according to the space address, so as to associate the space address with the specified address; the storage space corresponding to the specified address is used to cache the data to be displayed;

[0118] The first configuration module 601 is further specifically used for:

[0119] If the specified address is found to be inconsistent with the address of the video memory space, the specified address is mapped to the address of the video memory space.

[0120] Optionally, the data display module 603 is specifically used to: output and display the data to be displayed on the display screen based on the display module configured in the specified chip;

[0121] The device further includes:

[0122] The detection module is used to detect whether the data to be displayed is successfully displayed on the display screen after the data display module 603 outputs and displays the data to be displayed on the display screen;

[0123] The return module is used to return a display success command if the content is successfully displayed on the display screen, and a display failure command otherwise.

[0124] In summary, the display control device provided in this embodiment of the invention configures the mode of the first bus interface of a specified chip in the control terminal and maps the video memory space of the specified chip through a server. The control terminal and the server are connected through the first bus interface, which is used by the server to access the video memory space. Data to be displayed is read from the video memory space of the specified chip; wherein, the data to be displayed is the data required to be displayed by the server connected to the control terminal. The data to be displayed is displayed on the screen based on the specified chip. Thus, through configuration and mapping operations, the data to be displayed by the server can be written into the video memory space of the specified chip, using the specified chip as a graphics card. Based on the video memory space of the specified chip, the data required by the server is displayed, thereby improving the chip utilization rate of the control terminal.

[0125] This invention also provides an electronic device, comprising:

[0126] One or more processors; and one or more machine-readable media thereon storing instructions that, when executed by the one or more processors, cause the electronic device to perform the above-described display control method.

[0127] Embodiments of the present invention also provide one or more machine-readable media having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the above-described display control method.

[0128] This invention also provides a computer-readable storage medium storing a computer program. When executed by a processor, this computer program implements the various processes of the display control method provided in the above embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here. The computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0129] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0130] It will be readily apparent to those skilled in the art that any combination of the above embodiments is feasible, and therefore any combination of the above embodiments is an implementation scheme of the present invention. However, due to space limitations, this specification will not describe them in detail here.

[0131] The methods provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. Based on the above description, the required structure for constructing a system having the inventive solution is readily apparent. Furthermore, this invention is not directed to any particular programming language. It should be understood that the contents of the invention described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best mode of implementation of the invention.

[0132] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0133] Similarly, it should be understood that, in order to simplify the invention and aid in understanding one or more of the various inventive aspects, features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the above description of exemplary embodiments of the invention. However, this disclosure should not be construed as reflecting an intention that the claimed invention requires more features than expressly recited in each claim. Rather, as reflected in the claims, inventive aspects lie in fewer than all features of the single foregoing disclosed embodiment. Therefore, the claims following the detailed description are hereby expressly incorporated into that detailed description, wherein each claim itself is a separate embodiment of the invention.

[0134] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and further, they can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0135] Furthermore, those skilled in the art will understand that although some embodiments described herein include certain features but not others included in other embodiments, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, in the claims, any of the claimed embodiments can be used in any combination.

[0136] The various component embodiments of the present invention can be implemented in hardware, or as software modules running on one or more processors, or a combination thereof. Those skilled in the art will understand that microprocessors or digital signal processors (DSPs) can be used in practice to implement some or all of the functions of some or all of the components in the display control method according to embodiments of the present invention. The present invention can also be implemented as a device or apparatus program (e.g., a computer program and computer program product) for performing part or all of the methods described herein. Such programs implementing the present invention can be stored on a computer-readable medium or can be in the form of one or more signals. Such signals can be downloaded from an Internet website, provided on a carrier signal, or provided in any other form.

[0137] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names.

Claims

1. A display control method characterized by comprising: The method comprises: The first bus interface of the specified chip in the control terminal is configured in mode, and the video memory space of the specified chip is mapped through the server, comprising: configuring the first bus interface in a specified mode, so that the server identifies the control terminal connected based on the first bus interface as an external device, and allocates a first bus domain to the control terminal; Wherein, the specified chip has control function and separate display function, the control terminal is connected with the server through the first bus interface, and the first bus interface is used for the server to access the video memory space; Read the to-be-displayed data from the video memory space of the specified chip; wherein the to-be-displayed data is the data required to be displayed by the server connected with the control terminal; Display the to-be-displayed data to the display screen based on the specified chip.

2. The method of claim 1, wherein, The first bus interface of the specified chip in the control terminal is configured in mode, and the video memory space of the specified chip is mapped through the server, further comprising: The control terminal receives the to-be-displayed data written by the server based on the space address corresponding to the first bus domain; According to the routing configuration of the space address corresponding to the first bus domain, the space address is mapped to the address of the video memory space.

3. The method of claim 2, wherein, The method further comprises: In the initialization link of the specified chip, the target space size corresponding to the specified chip is configured; Send the representation information representing the target space size to the server, so that the server allocates the first bus domain corresponding to the size to the control terminal connected with the first bus interface based on the target space size represented by the representation information.

4. The method of claim 2, wherein, The method further comprises: According to the space address, the specified register of the control terminal is configured in routing, so as to associate the space address with the specified address; the storage space corresponding to the specified address is used to cache the to-be-displayed data; According to the routing configuration of the space address corresponding to the first bus domain, the space address is mapped to the address of the video memory space, comprising: If it is detected that the specified address is inconsistent with the address of the video memory space, the specified address is mapped to the address of the video memory space.

5. The method of claim 1, wherein, The to-be-displayed data is displayed to the display screen based on the specified chip, comprising: Based on the display module configured in the specified chip, the to-be-displayed data is output and displayed to the display screen; After the to-be-displayed data is output and displayed to the display screen, the method further comprises: Detect whether the to-be-displayed data is successfully displayed in the display screen; if it is successfully displayed in the display screen, return a display success instruction; otherwise, return a display failure instruction.

6. A display control device characterized by comprising: The device comprises: The first configuration module is configured to perform mode configuration on a first bus interface of a specified chip in a control terminal, and map a display memory space of the specified chip through a server, including: configuring the first bus interface as a specified mode, so that the server identifies the control terminal connected based on the first bus interface as an external device, and allocates a first bus domain for the control terminal; wherein the specified chip has a control function and a separate display function, the control terminal is connected with the server through the first bus interface, and the first bus interface is used for the server to access the display memory space; The reading module is configured to read to-be-displayed data from the display memory space of the specified chip; wherein the to-be-displayed data is data required to be displayed by a server connected with the control terminal; The data display module is configured to display the to-be-displayed data to a display screen based on the specified chip.

7. The apparatus of claim 6, wherein, The first configuration module is further configured to: The control terminal receives the to-be-displayed data written by the server based on a space address corresponding to the first bus domain; The space address is mapped to an address of the display memory space through routing configuration based on the space address corresponding to the first bus domain.

8. The apparatus of claim 6, wherein, The device further includes: The second configuration module is configured to configure a target space size corresponding to the specified chip in an initialization link of the specified chip; The sending module is configured to send representation information representing the target space size to the server, so that the server allocates a first bus domain with a corresponding size for the control terminal connected with the first bus interface based on the target space size represented by the representation information.

9. The apparatus of claim 7, wherein, The device further includes: The association module is configured to perform routing configuration on a specified register of the control terminal based on the space address, so as to associate the space address to a specified address; a storage space corresponding to the specified address is used to cache the to-be-displayed data; The first configuration module is further configured to: In a case where the specified address is detected to be inconsistent with an address of the display memory space, the specified address is mapped to the address of the display memory space.

10. The apparatus of claim 6, wherein, The data display module is specifically configured to output and display the to-be-displayed data to the display screen based on a display module configured in the specified chip; The device further includes: The detection module is configured to detect whether the to-be-displayed data is successfully displayed in the display screen after the data display module outputs and displays the to-be-displayed data to the display screen; The returning module is configured to return a display success instruction if the to-be-displayed data is successfully displayed in the display screen; otherwise, a display failure instruction is returned.

11. An electronic device, comprising: One or more processors; And one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the method of any one of claims 1-5. One or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the method of any one of claims 1-5.

12. One or more machine readable media having instructions, recorded thereon, that if executed by a machine, cause the machine to perform operations comprising: ​

Citation Information

Patent Citations

  • PCIe display card control method and device, server and electronic equipment

    CN113836068A