Control methods for electronic devices and electronic devices
By determining the target program's requirements and adjusting the storage unit's operating mode, the problem of memory being unable to adapt to the performance improvement of the integrated graphics card was solved, enabling more efficient operation of electronic devices.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- LENOVO (BEIJING) LTD
- Filing Date
- 2022-07-25
- Publication Date
- 2026-06-30
AI Technical Summary
In the existing technology, the memory and other storage units of electronic devices cannot flexibly control their working mode according to the actual needs of the target program, which limits the performance improvement of the integrated graphics card (iGPU) and affects the display function.
By determining the target program's requirements for the processing units in the central processing unit and the integrated graphics card, the operating mode of the storage unit is adjusted to adapt to the target program's running requirements. This includes acquiring data such as identification information, current, and computing execution unit status, and controlling the frequency and latency of the storage unit.
This improves the processing efficiency of electronic devices for target programs, ensures that the working methods of the processing unit and the integrated graphics card are more compatible, and enhances the data throughput and overall performance of the integrated graphics card.
Smart Images

Figure CN115237204B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of hardware control of electronic devices such as computers, and particularly to a control method for an electronic device and an electronic device thereof. Background Technology
[0002] Many central processing units (CPUs) in computers and other electronic devices incorporate integrated graphics cards (iGPUs). The execution of a target program requires the processing units within the CPU and the iGPU. However, current methods for controlling the operation of memory and other storage units in electronic devices primarily aim to improve CPU performance, without flexibly controlling the memory's operating mode based on the actual needs of the running target program. This, in turn, fails to flexibly control or influence the operation of the CPU's processing units and the iGPU. For example, as the demands of some target programs on the iGPU increase, the operating mode of memory and other storage units may become insufficient to meet the iGPU's data throughput requirements, thus limiting the performance improvement of the iGPU and restricting the display functionality of the electronic device. Summary of the Invention
[0003] This application provides a control method for an electronic device, the method comprising:
[0004] Determine the runtime information of at least one target program in an electronic device;
[0005] Based on the aforementioned operational information, the target program's requirements for the processing unit in the central processing unit and / or the integrated graphics card of the electronic device are determined.
[0006] Based on the aforementioned demand information, the operating mode of the storage unit of the electronic device is determined, wherein the operating frequency range of the storage unit differs under different operating modes;
[0007] The storage unit is controlled to operate in a defined working mode to adapt to the execution of the target program.
[0008] Optionally, determining the target program's requirements for the processing unit in the central processing unit and / or integrated graphics card of the electronic device based on the runtime information includes:
[0009] Obtain the identification information of the target program from the runtime information;
[0010] Based on the identification information, the target program's requirements for the processing unit and / or integrated graphics card are determined.
[0011] Optionally, determining the target program's requirements for the processing unit in the central processing unit and / or integrated graphics card of the electronic device based on the runtime information includes:
[0012] When the target program is in the first running state, the current of each of the processing unit and / or the core graphics card is obtained respectively;
[0013] Based on the current, the requirement information of the target program is determined.
[0014] Optionally, determining the target program's requirements for the processing unit in the central processing unit and / or integrated graphics card of the electronic device based on the runtime information includes:
[0015] When the target program is in a second running state, the status information of the computing execution units in the core graphics card and the frequency of the core graphics card are obtained, wherein the working status information includes the number of computing execution units;
[0016] Based on the status information of the computing execution unit and / or the frequency of the integrated graphics card, the target program's requirements for the integrated graphics card are determined.
[0017] Optionally, determining the operating mode of the storage unit of the electronic device based on the demand information includes:
[0018] If it is determined that the target program's demand for the core graphics card is greater than a first threshold, the storage unit is controlled to operate in a first working mode.
[0019] If it is determined that the target program's demand for the processing unit is greater than a second threshold, the storage unit is controlled to operate in a second working mode, wherein the storage unit's operating frequency in the first working mode is higher than the storage unit's operating frequency in the second working mode.
[0020] Optionally, the meta-scheduler sends a first control instruction to the memory unit controller in the central processing unit;
[0021] The operating frequency and / or data latency of the storage unit are controlled by the storage unit controller to be within a range that is compatible with the required information.
[0022] Optionally, controlling the operating frequency and / or data latency of the storage unit within a range adapted to the demand information through the control of the storage unit controller includes:
[0023] The storage unit controller sends a second control instruction to the interface manager in the central processing unit, so that the interface manager controls the operating frequency and / or data latency of the storage unit through the corresponding interface.
[0024] Optionally, the interface manager controls the operating frequency and / or data latency of the storage unit through a corresponding interface, including:
[0025] The interface manager sends the second control command to the data management unit in the storage unit, so that the data management unit controls the storage array of the storage unit to operate in a working mode adapted to the demand information according to the second control command.
[0026] This application also provides an electronic device, including:
[0027] A detection module configured to determine the running information of at least one target program in an electronic device;
[0028] The determination module is configured to determine, based on the runtime information, the target program's requirements for the processing unit in the central processing unit and / or the integrated graphics card of the electronic device.
[0029] Based on the aforementioned demand information, the operating mode of the storage unit of the electronic device is determined, wherein the operating frequency range of the storage unit differs under different operating modes;
[0030] A control module configured to control the storage unit to operate in a defined working mode to adapt to the execution of the target program.
[0031] This application also provides an electronic device, including a processor and a memory, wherein the memory stores an executable program, and the processor processes the executable program to perform the steps of the method described above.
[0032] The control method of this application embodiment can control the operating mode of storage units such as memory in electronic devices according to the actual running status and needs of the target program, so that the adjusted operating mode of storage units such as memory is more suitable for the actual usage needs of the target program for the processing unit in the central processing unit and the integrated graphics card, thereby improving the processing efficiency of the electronic device for the target program. Attached Figure Description
[0033] Figure 1 This is a flowchart of a control method for an electronic device according to an embodiment of this application;
[0034] Figure 2 Examples of embodiments of this application Figure 1 A flowchart of one embodiment of step S200;
[0035] Figure 3 Examples of embodiments of this application Figure 1 A flowchart of another embodiment of step S200;
[0036] Figure 4 Examples of embodiments of this application Figure 1 A flowchart of another embodiment of step S200;
[0037] Figure 5 Examples of embodiments of this application Figure 1 A flowchart of one embodiment of step S300;
[0038] Figure 6 Examples of embodiments of this application Figure 1 A flowchart of one embodiment of step S400;
[0039] Figure 7 This is a schematic diagram illustrating the connection relationship between the central processing unit and memory in an embodiment of this application;
[0040] Figure 8 This is a flowchart illustrating the memory selection working mode in an embodiment of this application.
[0041] Figure 9 This is a structural block diagram of an electronic device according to an embodiment of this application;
[0042] Figure 10 This is a structural block diagram of an electronic device according to another embodiment of this application. Detailed Implementation
[0043] Various embodiments and features of this application are described herein with reference to the accompanying drawings.
[0044] It should be understood that various modifications can be made to the embodiments described herein. Therefore, the above description should not be considered as limiting, but merely as an example of embodiments. Other modifications within the scope and spirit of this application will be apparent to those skilled in the art.
[0045] The accompanying drawings, which are included in and form part of this specification, illustrate embodiments of the present application and, together with the general description of the present application given above and the detailed description of the embodiments given below, serve to explain the principles of the present application.
[0046] These and other features of this application will become apparent from the following description of preferred forms of embodiments given as non-limiting examples, with reference to the accompanying drawings.
[0047] It should also be understood that although this application has been described with reference to some specific examples, those skilled in the art can certainly implement many other equivalent forms of this application.
[0048] The above and other aspects, features and advantages of this application will become more apparent when taken in conjunction with the accompanying drawings and in view of the following detailed description.
[0049] Specific embodiments of this application are described thereafter with reference to the accompanying drawings; however, it should be understood that the claimed embodiments are merely examples of this application, which can be implemented in various ways. Well-known and / or repeated functions and structures are not described in detail to avoid unnecessary or redundant details that could obscure the application. Therefore, the specific structural and functional details claimed herein are not intended to be limiting, but merely serve as the basis and representative basis for the claims to teach those skilled in the art to use this application in a variety of substantially any suitable detailed structures.
[0050] This specification may use the phrases “in one embodiment,” “in another embodiment,” “in yet another embodiment,” or “in other embodiments,” all of which may refer to one or more of the same or different embodiments according to this application.
[0051] This application discloses a control method and an electronic device for an electronic device. This method can be applied to electronic devices such as computers. Different target programs running on an electronic device have different requirements for the processing unit in the central processing unit (CPU) and the integrated graphics card. The control method in this embodiment can control the operating state of storage units such as memory in the electronic device according to the actual running status and requirements of the target program. This adjusts the operating mode of the memory and other storage units to better suit the actual requirements of the target program for the CPU and integrated graphics card, thereby improving the processing efficiency of the electronic device.
[0052] The control method of this application embodiment will now be described in detail with reference to the accompanying drawings. Figure 1 This is a flowchart of a control method for an electronic device according to an embodiment of this application, such as... Figure 1 As shown and combined Figure 7 The method includes the following steps:
[0053] S100, determine the running information of at least one target program in the electronic device.
[0054] For example, a target program can be a computer program running on an electronic device such as a computer, which requires hardware support from the electronic device to run. However, different target programs have different hardware requirements. These hardware requirements include the processing unit (CPU) and / or integrated graphics card (IGPU) requirements of the electronic device. For instance, some target programs, such as some document processing and data transfer programs, have a higher requirement for the CPU's CPU compared to the IGPU. Other target programs, such as some image processing programs and game programs, have a higher requirement for the CPU's IGPU compared to the CPU's CPU.
[0055] The runtime information of the target program refers to relevant information during its use, including the target program's identification information, hardware requirements, and environmental information required during operation. During the execution of the target program, the electronic device can obtain this runtime information from relevant data contained within the target program, or determine the runtime information based on feedback data generated during the electronic device's processing of the target program.
[0056] S200, based on the running information, determine the target program's requirements for the processing unit in the central processing unit and / or the integrated graphics card of the electronic device.
[0057] For example, the central processing unit (CPU) of an electronic device includes a processing unit and an integrated graphics card. The processing unit is mainly used to interpret computer instructions and process data in computer software, while the integrated graphics card is a graphics processing core, also known as a GPU, integrated inside the CPU. It relies on the processor's powerful computing capabilities and intelligent energy efficiency design to achieve graphics processing functions with lower power consumption.
[0058] Different types of target programs have higher requirements for processing units (CPUs) than integrated graphics (GPUs), while other target programs have higher requirements for GPUs than for CPUs. Electronic devices determine the CPU and / or GPU requirements of target programs based on runtime information, thereby determining the relative proportion of CPU and GPU requirements for the target program.
[0059] For example, during the execution of the target program, the amount of data processed by the processing unit and the integrated graphics card, as well as the power consumption information, can be monitored. Based on the monitoring results, the demand for the processing unit and the integrated graphics card can be determined, and corresponding demand information can be generated.
[0060] S300, based on the demand information, determine the operating mode of the storage unit of the electronic device, wherein the operating frequency range of the storage unit is different under different operating modes.
[0061] For example, a storage unit can be a component in an electronic device capable of storing data, processing data, and / or working in conjunction with other components. For instance, a storage unit can be memory, registers, and other similar components in an electronic device. This storage unit has multiple operating modes, each corresponding to a different operation. For example, memory can operate in a low-frequency, low-latency mode or a high-frequency, high-latency mode. That is, the operating frequency range of the storage unit differs depending on the operating mode. Different operating modes can be adapted to the execution of corresponding target programs. For example, the operating mode of the memory can be determined based on the target program's requirements for the processing units in the central processing unit and / or the integrated graphics card. Adjusting the storage unit to an operating mode that matches the requirements allows it to better utilize its performance and improve processing efficiency.
[0062] S400, control the storage unit to operate in a determined working mode to adapt to the execution of the target program.
[0063] For example, the storage unit operates in a defined working mode, which can cooperate with and facilitate the operation of the processing unit and integrated graphics card in the central processing unit, making the working mode of the processing unit and / or integrated graphics card more suitable for the operation of the target program, thereby improving the running efficiency of the target program.
[0064] For example, when the target program heavily utilizes the integrated graphics card, the storage unit is RAM. On a hybrid memory architecture, after determining the memory's operating mode based on the target program's requirements, the memory's operating frequency range can be determined. This allows the memory to operate at high frequency and high latency to achieve performance close to GDDR mode. This, combined with the operation of the processing unit and the integrated graphics card, ensures that the processing unit's performance doesn't degrade excessively while significantly increasing the data throughput of the integrated graphics card (iGPU), thereby improving iGPU performance and the target program's running efficiency.
[0065] The control method of this application embodiment can control the operating mode of storage units such as memory in electronic devices according to the actual running status and needs of the target program, so that the adjusted operating mode of storage units such as memory is more suitable for the actual usage needs of the target program for the processing unit in the central processing unit and the integrated graphics card, thereby improving the processing efficiency of the electronic device for the target program.
[0066] In one embodiment of this application, the step of determining the target program's requirements for the processing unit in the central processing unit and / or integrated graphics card of the electronic device based on the runtime information is as follows: Figure 2 As shown, it includes:
[0067] S210, Obtain the identification information of the target program from the running information.
[0068] For example, the identification information of the target program is used to identify the identity, type, and / or system requirements of the target program. The identification information may be stored in a specific directory of the runtime information, and the electronic device retrieves the identification information from that specific directory, thereby being able to determine the identity, type, and / or system requirements of the target program based on the identification information.
[0069] In one embodiment, the identification information may appear in the form of a string or an identification code, so that the electronic device can obtain and use it.
[0070] S220, based on the identification information, determine the target program's requirements for the processing unit and / or integrated graphics card.
[0071] For example, the identification information identifies the target program's identity, type, and / or system requirements. This identification information allows the electronic device to determine the target program's requirements for processing units and / or integrated graphics. For instance, if the identification information identifies the target program as a large game, the electronic device can determine that the target program's requirements for processing units and / or integrated graphics are higher than its requirements for processing units. If the identification information identifies the target program as a document, the electronic device can determine that the target program's requirements for processing units are higher than its requirements for integrated graphics.
[0072] In one embodiment of this application, the step of determining the target program's requirements for the processing unit in the central processing unit and / or integrated graphics card of the electronic device based on the runtime information is as follows: Figure 3 As shown, it includes:
[0073] S230, when the target program is in the first running state, the current of the processing unit and / or the core graphics card is obtained respectively.
[0074] S240, Based on the current, determine the requirement information of the target program.
[0075] For example, the first running state can be one or more states during the execution of the target program in the electronic device. The target program requires a processing unit and / or integrated graphics during its execution, and both the processing unit and integrated graphics require power. Different operating modes of the processing unit and integrated graphics will result in different power requirements. In one embodiment, when the target program is in the first running state, including the entire execution process or different stages of execution, the current of the processing unit and integrated graphics can be monitored by a monitoring unit in the CPU, such as a PMC (Performance Monitoring Counter). Based on empirical or historical data, the current will change accordingly to meet varying demands.
[0076] In one embodiment, an increase in the current required by the processing unit indicates an increased demand for the processing unit from the target program, or that the target program is primarily using the processing unit relative to the integrated graphics. Conversely, a decrease in the current required indicates a decreased demand, or that the target program is primarily using the integrated graphics relative to the processing unit.
[0077] In another embodiment, an increase in the current required by the integrated graphics card indicates an increased demand on the integrated graphics card by the target program, or that the target program is primarily using the integrated graphics card relative to the processing unit. Conversely, a decrease in the current required indicates a decreased demand, or that the target program is primarily using the processing unit relative to the integrated graphics card.
[0078] Therefore, in this embodiment, the target program's requirements for the processing unit and / or integrated graphics can be accurately determined based on the acquired current, thereby determining the corresponding requirement information.
[0079] In one embodiment of this application, the step of determining the target program's requirements for the processing unit in the central processing unit and / or integrated graphics card of the electronic device based on the runtime information is as follows: Figure 4 As shown, it includes:
[0080] S250, when the target program is in the second running state, obtain the status information of the computing execution units in the core graphics card and the frequency of the core graphics card, wherein the working status information includes the number of computing execution units.
[0081] For example, the second running state may be the same as or different from the first running state, and the second running state may also be one or more states of the target program during its operation in the electronic device.
[0082] Integrated graphics cards contain Execution Units (Slices), which are responsible for instruction execution. They function as both controllers and arithmetic logic units (ALUs). The Execution Units are the main components of an integrated graphics card, and their operational status information reflects the actual demands of the integrated graphics. This status information includes quantity information, specifically the number of Execution Units required by the target program during runtime. This quantity information indicates the target program's requirements for the integrated graphics.
[0083] Furthermore, the operating frequency of the integrated graphics card can also indicate the target program's demand on it. For example, if the target program causes the integrated graphics card's operating frequency to gradually increase during runtime, it can be determined that the target program's demand on the integrated graphics card is gradually increasing. Conversely, it can be determined that the target program's demand on the integrated graphics card is gradually decreasing.
[0084] S260, based on the status information of the computing execution unit and / or the frequency of the integrated graphics card, determine the target program's requirement information for the integrated graphics card.
[0085] For example, the status information of the computing execution unit and the frequency of the integrated graphics card can accurately characterize the target program's demand for the integrated graphics card. Therefore, in this embodiment, the demand information of the integrated graphics card can be accurately determined based on the status information of the computing execution unit and / or the frequency of the integrated graphics card.
[0086] In one embodiment of this application, the step of determining the operating mode of the storage unit of the electronic device based on the demand information is as follows: Figure 5 As shown, it includes the following steps:
[0087] S310, if it is determined that the target program's demand for the core graphics card is greater than a first threshold, the storage unit is controlled to operate in a first working mode.
[0088] For example, the first threshold can be preset based on historical data and / or actual usage scenarios. The first threshold can be a critical threshold comparing the target program's demand for the integrated graphics card and the processing unit. When the target program's demand for the integrated graphics card exceeds the first threshold, it indicates that the demand for the integrated graphics card is greater than the demand for the processing unit. In this case, in order to make the electronic device more compatible with the target program, the storage unit can be controlled to operate in a first working mode.
[0089] Combination Figure 7For example, the first operating mode could be a high-frequency, high-latency operating mode for storage units such as memory, such as an operating frequency of 6400GHz to 10000GHz. This makes the memory's operating mode more compatible with the integrated graphics card and processing unit, enabling it to cooperate with and promote the work of the processing unit and integrated graphics card in the central processing unit, thereby making the operating mode of the processing unit and / or integrated graphics card more suitable for the execution of the target program, and improving the running efficiency of the target program.
[0090] Furthermore, in the first operating mode, the same amount of data is transferred from memory, and WCK_c and / or WCK_t in memory can operate at a relatively low frequency.
[0091] S320, if it is determined that the target program's demand for the processing unit is greater than a second threshold, the storage unit is controlled to operate in a second working mode, wherein the storage unit's operating frequency in the first working mode is higher than the storage unit's operating frequency in the second working mode.
[0092] For example, the second threshold can be preset based on historical data and / or actual usage scenarios. The second threshold can be a critical threshold comparing the target program's demand for the integrated graphics card and processing units. When the target program's demand for processing units exceeds the second threshold, it indicates that the demand for processing units is greater than the demand for the integrated graphics card. In this case, to make the electronic device more compatible with the target program, the storage unit can be controlled to operate in a second working mode.
[0093] In the second operating mode, the memory unit operates at a lower frequency than in the first operating mode. The second operating mode can be a low-frequency, low-latency operating mode for memory and other storage units, such as 3200GHz to 6000GHz. This makes the memory's operating mode more compatible with the integrated graphics card and processing unit, enabling it to work in conjunction with and enhance the operation of the processing unit and integrated graphics card within the central processing unit. Consequently, the operating mode of the processing unit and / or integrated graphics card is more suitable for the execution of the target program, improving the program's running efficiency.
[0094] In one specific embodiment, when the storage unit is RAM, and the RAM operates in the second working mode (DDR work mode), the RAM's WCK runs at 3.5GHz, achieving a DDR speed of 7000Mbps. When the target program's demand on the integrated graphics card increases, the RAM's working mode can be adjusted to the first working mode (GDDR work mode). In the first working mode, the RAM's WCK runs at 3.5GHz, achieving a DDR speed of 14000Mbps. Of course, by further increasing the number of data transmission cycles within a single WCK cycle, a DDR speed exceeding 14000Mbps can be achieved. This fully utilizes the shared memory bandwidth of the integrated graphics card (iGPU), thereby improving the iGPU's data throughput and increasing the speed of games, video encoding / decoding, and image editing.
[0095] In one embodiment of this application, the control unit operates in a determined working mode to adapt to the execution of the target program, such as... Figure 6 As shown and combined Figure 7 ,include:
[0096] S410, a first control command is sent to the memory unit controller in the central processing unit through the memory unit scheduler in the central processing unit.
[0097] For example, a central processing unit (CPU) includes a memory scheduler. When the memory is RAM, this scheduler can connect to a monitoring unit (such as a PMC) within the CPU, thereby generating corresponding first control instructions based on the current information of the processing units and the integrated graphics card fed back by the PMC. The memory scheduler then sends these first control instructions to a memory controller, such as a DDR controller. The memory controller is used to perform corresponding control on the memory and memory-related components according to the instructions.
[0098] S420, the operating frequency and / or data latency of the storage unit are controlled by the storage unit controller to be within a range that is compatible with the demand information.
[0099] For example, the operating frequency and data latency of storage units such as memory can be adjusted according to demand. The storage unit controller can adjust the operating frequency and / or data latency of the storage units based on the determined demand information, and control them within a range that matches the target program's demand information on the processing unit and / or integrated graphics card.
[0100] Combination Figure 8For example, when the storage unit operates in the first working mode, the storage unit controller can determine the first operating voltage of the storage unit through corresponding control instructions, controlling the operating frequency of the storage unit between 6400GHz and 10000GHz. When the storage unit operates in the second working mode, the storage unit controller can determine the second operating voltage of the storage unit through corresponding control instructions, controlling the operating frequency of the storage unit between 3200GHz and 6000GHz, and so on. Controlling the operating frequency and / or data latency within a range that is compatible with the demand information ensures that the storage unit and the CPU work together, promotes the work of the processing unit and the integrated graphics card, and improves the running efficiency of the target program.
[0101] In one embodiment of this application, controlling the operating frequency and / or data latency of the storage unit within a range adapted to the demand information through the control of the storage unit controller includes:
[0102] The storage unit controller sends a second control instruction to the interface manager in the central processing unit, so that the interface manager controls the operating frequency and / or data latency of the storage unit through the corresponding interface.
[0103] Continue to combine Figure 7 For example, the memory unit controller in the central processing unit is connected to the interface manager (DDR PHY) in the memory unit controller. The interface manager is used to control the peripheral interfaces between the CPU and other components, and can control the address information of data in memory and other storage units.
[0104] The memory cell controller connects to the interface manager via a connection path, which includes a data path (e.g., an 800MHz data path) and a control bit width (e.g., 128 bits). The data path is used to transmit data, such as sending data from the DFI Domain in the memory cell controller to the DFI Domain in the interface manager. The control bit width is used to transmit control commands. Thus, data and control commands are sent to the interface manager via the connection path. For example, clock timing can be controlled through the CK Domain in the interface manager, and the data management unit in memory, such as the WCK control unit in memory, can be controlled through its WCK Domain.
[0105] For example, the memory unit controller can send a second control instruction to the interface manager, which, in addition to instructing the interface manager to receive and transmit data, also instructs to increase the operating voltage of the memory, thereby increasing the operating frequency of the memory and other storage units from 6000GHz to 8000GHz. It can also adjust the control parameters corresponding to the data latency rate, thereby increasing the data latency rate, fully utilizing memory performance while maintaining overall memory performance stability.
[0106] Alternatively, in addition to instructing the interface manager to receive and send data, it can also instruct a reduction in the memory's operating voltage, thereby lowering the operating frequency of memory and other storage units from 8000GHz to 6000GHz. Furthermore, it can adjust the control parameters corresponding to the data latency rate, thereby reducing the data latency rate and maximizing memory performance while maintaining overall memory performance stability.
[0107] In one embodiment of this application, the interface manager controls the operating frequency and / or data latency of the storage unit through a corresponding interface, including:
[0108] The interface manager sends the second control command to the data management unit in the storage unit, so that the data management unit controls the storage array of the storage unit to operate in a working mode adapted to the demand information according to the second control command.
[0109] For example, the data management unit in the storage unit manages the transmitted data, including receiving and distributing data. For instance, the WCK control unit in memory obtains data from the interface manager and, according to the received second control command, distributes the data according to different data transmission speeds, such as sending it to the corresponding WCK Domain1 and WCK Domain2 for processing at two different transmission speeds: 6400 Mbps and 12800 Mbps. WCK Domain1 and WCK Domain2 then forward the data to the memory array for storage. Furthermore, the data management unit can control the operating mode of the memory array to adapt to demand information according to the second control command. Of course, other components of the storage unit can also operate in corresponding modes according to the second control command sent by the interface manager.
[0110] Based on the same inventive concept, embodiments of this application also provide an electronic device, which can be an intelligent device such as a computer, etc. Figure 9 As shown and combined Figure 7 The electronic device includes:
[0111] A detection module configured to determine the running information of at least one target program in an electronic device.
[0112] For example, a target program can be a computer program running on an electronic device such as a computer, which requires hardware support from the electronic device to run. However, different target programs have different hardware requirements. These hardware requirements include the processing unit (CPU) and / or integrated graphics card (IGPU) requirements of the electronic device. For instance, some target programs, such as some document processing and data transfer programs, have a higher requirement for the CPU's CPU compared to the IGPU. Other target programs, such as some image processing programs and game programs, have a higher requirement for the CPU's IGPU compared to the CPU's CPU.
[0113] The target program's runtime information refers to relevant information during its use, including the target program's identification information, hardware requirements, and environmental information needed during operation. During the target program's execution, the detection module can obtain this runtime information from relevant data contained within the target program, or determine it based on feedback data from the electronic device processing the target program.
[0114] The determination module is configured to determine, based on the runtime information, the target program's requirements for the processing unit in the central processing unit and / or the integrated graphics card of the electronic device.
[0115] Based on the aforementioned demand information, the operating mode of the storage unit of the electronic device is determined, wherein the operating frequency range of the storage unit differs under different operating modes;
[0116] For example, the central processing unit (CPU) of an electronic device includes a processing unit and an integrated graphics card. The processing unit is mainly used to interpret computer instructions and process data in computer software, while the integrated graphics card is a graphics processing core, also known as a GPU, integrated inside the CPU. It relies on the processor's powerful computing capabilities and intelligent energy efficiency design to achieve graphics processing functions with lower power consumption.
[0117] Different types of target programs have higher requirements for processing units (CPUs) than integrated graphics (GPUs), while other target programs have higher requirements for GPUs than for CPUs. The determination module uses runtime information to determine the target program's requirements for CPUs and / or GPUs in the electronic device's central processing unit (CPU), thereby determining the relative proportion of CPU and GPU requirements for the target program.
[0118] For example, during the execution of the target program, the determination module can monitor the amount of data processed by the processing unit and the integrated graphics card, as well as the power information used. Based on the monitoring results, it determines the demand for the processing unit and the integrated graphics card and generates corresponding demand information.
[0119] For example, a storage unit can be a component in an electronic device capable of storing data, processing data, and / or working in conjunction with other components. (Combined with...) Figure 8 For example, storage units can be memory, registers, and other similar components in electronic devices. These storage units have various operating modes, each corresponding to a different operation. For instance, memory can operate in a low-frequency, low-latency mode or a high-frequency, high-latency mode. That is, the operating frequency range of the storage unit differs depending on the operating mode. Different operating modes can be adapted to the execution of corresponding target programs. For example, a determining module can determine which operating mode the memory should operate in based on the target program's requirements for the processing units in the central processing unit and / or the integrated graphics card. Adjusting the storage unit to an operating mode that matches the requirements allows it to better utilize its performance and improve processing efficiency.
[0120] A control module configured to control the storage unit to operate in a defined working mode to adapt to the execution of the target program.
[0121] For example, the storage unit operates in a defined working mode, which can cooperate with and facilitate the operation of the processing unit and integrated graphics card in the central processing unit, making the working mode of the processing unit and / or integrated graphics card more suitable for the operation of the target program, thereby improving the running efficiency of the target program.
[0122] For example, when the target program heavily utilizes the integrated graphics card, the storage unit is RAM. In a hybrid memory architecture, after the control module determines the memory's operating mode based on the target program's requirements, it can determine the memory's operating frequency range. For instance, it can enable the memory to operate at high frequency and high latency to achieve performance close to GDDR mode. This, combined with the operation of the processing unit and the integrated graphics card, ensures that the processing unit's performance doesn't degrade excessively while significantly increasing the data throughput of the integrated graphics card (iGPU), thereby improving iGPU performance and the target program's running efficiency.
[0123] In one embodiment of this application, the determining module is further configured as follows:
[0124] Obtain the identification information of the target program from the runtime information;
[0125] Based on the identification information, the target program's requirements for the processing unit and / or integrated graphics card are determined.
[0126] In one embodiment of this application, the determining module is further configured as follows:
[0127] When the target program is in the first running state, the current of each of the processing unit and / or the core graphics card is obtained respectively;
[0128] Based on the current, the requirement information of the target program is determined.
[0129] In one embodiment of this application, the determining module is further configured as follows:
[0130] When the target program is in a second running state, the status information of the computing execution units in the core graphics card and the frequency of the core graphics card are obtained, wherein the working status information includes the number of computing execution units;
[0131] Based on the status information of the computing execution unit and / or the frequency of the integrated graphics card, the target program's requirements for the integrated graphics card are determined.
[0132] In one embodiment of this application, the determining module is further configured as follows:
[0133] If it is determined that the target program's demand for the core graphics card is greater than a first threshold, the storage unit is controlled to operate in a first working mode.
[0134] If it is determined that the target program's demand for the processing unit is greater than a second threshold, the storage unit is controlled to operate in a second working mode, wherein the storage unit's operating frequency in the first working mode is higher than the storage unit's operating frequency in the second working mode.
[0135] In one embodiment of this application, the control module is further configured as follows:
[0136] The memory unit scheduler in the central processing unit sends a first control command to the memory unit controller in the central processing unit.
[0137] The operating frequency and / or data latency of the storage unit are controlled by the storage unit controller to be within a range that is compatible with the required information.
[0138] In one embodiment of this application, the control module is further configured as follows:
[0139] The storage unit controller sends a second control instruction to the interface manager in the central processing unit, so that the interface manager controls the operating frequency and / or data latency of the storage unit through the corresponding interface.
[0140] In one embodiment of this application, the control module is further configured as follows:
[0141] The interface manager sends the second control command to the data management unit in the storage unit, so that the data management unit controls the storage array of the storage unit to operate in a working mode adapted to the demand information according to the second control command.
[0142] Based on the same inventive concept, embodiments of this application also provide an electronic device, such as... Figure 10 The diagram includes a processor and a memory, the memory storing an executable program, and the processor processing the executable program to perform the steps of the method described above.
[0143] The above embodiments are merely exemplary embodiments of this application and are not intended to limit this application. The scope of protection of this application is defined by the claims. Those skilled in the art can make various modifications or equivalent substitutions to this application within its substance and scope of protection, and such modifications or equivalent substitutions should also be considered to fall within the scope of protection of this application.
Claims
1. A control method for an electronic device, comprising: Determine the runtime information of at least one target program in an electronic device; Based on the running information, the target program's requirements for the processing unit and integrated graphics card in the central processing unit of the electronic device are determined, including obtaining the current of the processing unit and / or the integrated graphics card respectively when the target program is in a first running state. Based on the current, the requirement information of the target program is determined; Based on the aforementioned demand information, the operating mode of the storage unit of the electronic device is determined, wherein the operating frequency range of the storage unit differs under different operating modes; Controlling the storage unit to operate in a defined working mode to adapt to the execution of the target program includes: sending a first control instruction to the storage unit controller in the central processing unit via the storage unit scheduler in the central processing unit; and controlling the operating frequency and / or data latency of the storage unit within a range adapted to the demand information via the control of the storage unit controller.
2. The method according to claim 1, wherein determining the target program's requirements for the processing unit in the central processing unit and the integrated graphics card of the electronic device based on the runtime information further includes: Obtain the identification information of the target program from the runtime information; Based on the identification information, the target program's requirements for the processing unit and integrated graphics card are determined.
3. The method according to claim 1, wherein determining the target program's requirements for the processing unit in the central processing unit and the integrated graphics card of the electronic device based on the runtime information includes: When the target program is in a second running state, the status information of the computing execution units in the core graphics card and the frequency of the core graphics card are obtained, wherein the working status information includes the number of computing execution units; Based on the status information of the computing execution unit and / or the frequency of the integrated graphics card, the target program's requirements for the integrated graphics card are determined.
4. The method according to claim 1, wherein determining the operating mode of the storage unit of the electronic device based on the demand information includes: If it is determined that the target program's demand for the core graphics card is greater than a first threshold, the storage unit is controlled to operate in a first working mode. If it is determined that the target program's demand for the processing unit is greater than a second threshold, the storage unit is controlled to operate in a second working mode, wherein the storage unit's operating frequency in the first working mode is higher than the storage unit's operating frequency in the second working mode.
5. The method according to claim 1, wherein controlling the operating frequency and / or data latency of the storage unit within a range adapted to the demand information through the control of the storage unit controller comprises: The storage unit controller sends a second control instruction to the interface manager in the central processing unit, so that the interface manager controls the operating frequency and / or data latency of the storage unit through the corresponding interface.
6. The method according to claim 5, wherein the interface manager controls the operating frequency and / or data latency rate of the storage unit through a corresponding interface, comprising: The interface manager sends the second control command to the data management unit in the storage unit, so that the data management unit controls the storage array of the storage unit to operate in a working mode adapted to the demand information according to the second control command.
7. An electronic device, comprising: A detection module configured to determine the running information of at least one target program in an electronic device; The determination module is configured to determine the target program's requirements for the processing unit and integrated graphics card in the central processing unit of the electronic device based on the running information, including acquiring the current of the processing unit and / or the integrated graphics card respectively when the target program is in a first running state. Based on the current, the requirement information of the target program is determined; Based on the aforementioned demand information, the operating mode of the storage unit of the electronic device is determined, wherein the operating frequency range of the storage unit differs under different operating modes; A control module configured to control the storage unit to operate in a defined working mode to adapt to the execution of the target program; including: sending a first control instruction to the storage unit controller in the central processing unit via a storage unit scheduler in the central processing unit; and controlling the operating frequency and / or data latency of the storage unit within a range adapted to the demand information via the control of the storage unit controller.
8. An electronic device comprising a processor and a memory, the memory storing an executable program, the processor processing the executable program to perform the steps of the method as claimed in any one of claims 1 to 6.
Citation Information
Patent Citations
CN102402454A
CN104461849A
CN105334939A
CN108762937A
CN111221654A