Method and apparatus for adjusting working parameters, electronic device and readable storage medium
By dynamically adjusting the operating parameters of the CPU, GPU, DPU, DDR and DDIC during the local refresh process, the problem that local refresh technology cannot save power is solved, and efficient multi-module collaborative optimization and power saving effects are achieved.
Patent Information
- Application Number
- CN202411560750.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-04
- Publication Date
- 2025-10-17
- Estimated Expiration
- 2044-11-04
AI Technical Summary
Existing partial refresh technology cannot achieve the purpose of power saving because the associated module cannot recognize the change in data status, causing the graphics processor to still work in full-screen refresh mode, consuming more power.
By determining the local area corresponding to the local refresh, the operating parameter values of the associated modules, including frequency and voltage, are dynamically adjusted to optimize the working status of the CPU, GPU, DPU, DDR and DDIC to ensure efficient and timely local refresh.
It achieves multi-module collaborative optimization during the local refresh process, improves overall performance and saves computing resources, achieving power saving effects.
Smart Images

Figure CN119252215B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The application belongs to the field of data processing, and particularly relates to a working parameter adjustment method and device, electronic equipment and a readable storage medium. BACKGROUND
[0002] The local refresh technology is a technology for updating only a part of an area that changes on a display screen, so as to reduce data transmission and processing burden. The local refresh technology helps to reduce power consumption and improve overall performance in a graphics processing link. However, the technology currently faces the following problems in application:
[0003] At present, the local refresh technology is not adapted, although the local refresh can reduce the amount of data to be transmitted, the associated module associated with the screen display cannot identify the data state change, and the electronic equipment still cannot enter the expected power saving state. For example, in the case of local refresh, the graphics processor still works in the full-screen refresh mode when processing graphics data, thereby consuming more power.
[0004] Therefore, the current local refresh technical solution cannot achieve the purpose of power saving. SUMMARY
[0005] The embodiments of the application provide a working parameter adjustment method and device, electronic equipment and a readable storage medium, which can solve the problem that the current local refresh technical solution cannot achieve the purpose of power saving.
[0006] In a first aspect, the embodiments of the application provide a working parameter adjustment method, which comprises the following steps:
[0007] In the case of local refresh, N first local areas corresponding to the local refresh are determined, and N is a positive integer;
[0008] A first working parameter value is determined according to the N first local areas, and the first working parameter value comprises a first frequency value and a first voltage value;
[0009] The working parameter of the associated module is adjusted to the first working parameter value, and the associated module comprises at least one of the following: CPU, GPU, DPU, DDR and DDIC.
[0010] In a second aspect, the embodiments of the application provide a working parameter adjustment device, which comprises the following modules:
[0011] A first determination module is configured to determine, in the case of local refresh, N first local areas corresponding to the local refresh, and N is a positive integer;
[0012] A second determining module is configured to determine a first working parameter value according to the N first local areas, the first working parameter value including a first frequency value and a first voltage value.
[0013] An adjusting module is configured to adjust a working parameter of an associated module to the first working parameter value, the associated module including at least one of a CPU, a GPU, a DPU, a DDR, and a DDIC.
[0014] In a third aspect, an electronic device is provided, which includes a processor and a memory. The memory stores programs or instructions executable on the processor. When the programs or instructions are executed by the processor, the steps of the method according to the first aspect are implemented.
[0015] In a fourth aspect, a readable storage medium is provided, which stores programs or instructions. When the programs or instructions are executed by a processor, the steps of the method according to the first aspect are implemented.
[0016] In a fifth aspect, a chip is provided, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is configured to execute programs or instructions to implement the method according to the first aspect.
[0017] In a sixth aspect, a computer program product is provided, which is stored in a storage medium. The computer program product is executed by N processors to implement the method according to the first aspect.
[0018] In the embodiment of the present application, in the case of local refresh, it is necessary to determine which local areas need to be refreshed, the areas that need to be refreshed are referred to as first local areas, N is a positive integer, representing the number of local areas that need to be updated. The larger the size of the local area, the higher the processing frequency and voltage required to ensure timely and efficient refresh. Therefore, according to the N first local areas, the first working parameter value is determined, which includes the first frequency value and the first voltage value. The working parameters of the associated modules need to be adjusted according to the needs of local refresh to ensure efficient and timely refresh, and the working parameters of the associated modules are adjusted to the first working parameter value, that is, the frequency and voltage of the GPU are adjusted to ensure that the GPU can efficiently render the local image; the frequency and voltage of the DPU are adjusted to ensure that the DPU can efficiently process the local data; the frequency and voltage of the DDR are adjusted to ensure that the DDR can efficiently transmit the local data; the frequency and voltage of the DDIC are adjusted to ensure that the DDIC can efficiently control the local display; by adjusting the working parameters of CPU, GPU, DPU, DDR and DDIC, multi-module collaborative optimization can be achieved, ensuring efficient collaborative work of each associated module during local refresh, improving overall performance, and by dynamically adjusting the working parameter value according to the change of the local area, the working parameters of the associated modules during local refresh can be dynamically adjusted according to the size of the computing resources required by local refresh, saving computing resources and achieving the purpose of power saving. BRIEF DESCRIPTION OF DRAWINGS
[0019] Figure 1 is a schematic diagram of the working process of screen display provided by an embodiment of the present application;
[0020] Figure 2 is a flowchart of a working parameter adjustment method provided by an embodiment of the present application;
[0021] Figure 3 is a schematic diagram of a first local area provided by an embodiment of the present application;
[0022] Figure 4 is a structural diagram of a working parameter adjustment device provided by an embodiment of the present application;
[0023] Figure 5 is one of the hardware structure schematic diagrams of the electronic device of the embodiment of the present application;
[0024] Figure 6 is the second hardware structure schematic diagram of the electronic device of the embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the accompanying drawings of the embodiments of the present application to clearly describe the technical solutions of the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0026] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0027] In order to better explain the embodiments of the present application, Figure 1 Explain the working process of the screen display:
[0028] like Figure 1 As shown in FIG, the system on chip (SOC) is responsible for processing image data and transmits the processed image data to the memory on the screen through the MIPI DSI interface.
[0029] The screen includes a high-frequency TE oscillator and RAM memory. The high-frequency TE oscillator generates a sync signal called TE (Timing Enable), which triggers the screen driver circuit to start operating. The RAM memory stores image data and periodically reads image data and sends it to the screen driver circuit.
[0030] The screen driver circuit generates electrical signals that drive the screen based on the image data read from the RAM and the received TE synchronization signal. These electrical signals are transmitted to the display module, causing the screen to display the image.
[0031] Therefore, the SoC is responsible for image processing and transferring the image data to the screen RAM via the MIPI DSI interface. Then, the high-frequency TE oscillator inside the screen generates a synchronization signal. The driver circuit sends the correct electrical signal to the screen panel based on the image data and synchronization signal in the RAM, ultimately displaying the image on the screen.
[0032] To solve the problems in the related art, the embodiment of the present application provides a working parameter adjustment method, device, electronic equipment and readable storage medium, which can solve the problem that the current local refresh technical solution cannot achieve the purpose of power saving in the related art.
[0033] The working parameter adjustment method provided by the embodiment of the present application will be described in detail in combination with the drawings, specific embodiments and application scenarios.
[0034] Figure 2 A flowchart of the working parameter adjustment method provided by the embodiment of the present application.
[0035] As shown in the figure, the working parameter adjustment method can include steps 210-230, and the method is applied to a working parameter adjustment device, as follows: Figure 2
[0036] Step 210, in the case of local refresh, determining N first local areas corresponding to the local refresh, wherein N is a positive integer;
[0037] As shown in the figure, the N first local areas include a first local area 310, a first local area 320 and a first local area 330. Figure 3
[0038] Determining the N first local areas corresponding to the local refresh facilitates subsequent targeted local refresh of the N first local areas, and adjusting the working parameters of the associated module according to the N first local areas to achieve the purpose of power saving.
[0039] Step 220, determining a first working parameter value according to the N first local areas, wherein the first working parameter value includes a first frequency value and a first voltage value.
[0040] The first frequency value is the refresh frequency or working frequency of the electronic equipment when processing the local area. The higher the frequency value, the more times it processes in a unit of time, and the faster the processing speed.
[0041] The first voltage value is the voltage level required by the electronic equipment when processing the local area. The higher the voltage value, the higher the processing capacity and the faster the response speed that the device can provide.
[0042] For each local area, its size is calculated, and the first working parameter value is dynamically adjusted according to the size of the first local area, which can more effectively allocate resources. Larger local areas will obtain higher frequency and voltage, thereby improving processing efficiency.
[0043] In step 220, the following steps can be included:
[0044] In a case where the frame rate of the local refresh is greater than the preset frame rate, a local refresh scheduling coefficient value is determined according to the N first local areas.
[0045] The preset frame rate can be 3 frames, 5 frames, or 8 frames.
[0046] For example, when the local refresh continues to trigger, in a case where the frame rate of the local refresh is greater than 5 frames, the dynamic adjustment state is automatically entered, and a local refresh scheduling coefficient value is determined according to the N first local areas.
[0047] Therefore, in a case where the frame rate of the local refresh is greater than the preset frame rate, a local refresh scheduling coefficient value is determined according to the N first local areas, so that a first working parameter value is determined according to the local refresh scheduling coefficient value, which can avoid frequent fluctuations of the working parameters of the associated module and ensure the working stability of the associated module.
[0048] In a possible embodiment, step 220 can specifically include the following steps:
[0049] In step 221, a local refresh scheduling coefficient value is determined according to the N first local areas, and the local refresh scheduling coefficient value is proportional to the area size of the N first local areas.
[0050] In step 222, a first working parameter value is determined according to the local refresh scheduling coefficient value, and the local refresh scheduling coefficient value is proportional to the first working parameter value.
[0051] The local refresh scheduling coefficient value is a coefficient for scheduling local area refresh, which is used to control the resource allocation of the device when processing the local area and reflects the importance and processing priority of the local area.
[0052] The first working parameter value is a parameter value for controlling the device or working state, such as refresh frequency, processing speed, etc., which directly affects the working efficiency and performance of the device or.
[0053] Regarding step 221: The larger the size of the local area, the more resources are generally needed for processing or refreshing. Therefore, the local refresh scheduling coefficient value is proportional to the size of the local area. The size of each local area is calculated, and then a corresponding scheduling coefficient value is assigned according to the size. The larger the size, the higher the scheduling coefficient value, and the first working parameter value is determined according to the local refresh scheduling coefficient value.
[0054] Regarding step 222: The higher the local refresh scheduling coefficient value, the more resources and higher processing priority are needed for the local area. Therefore, the first working parameter value should also be increased accordingly. The first working parameter value is adjusted according to the size of the local refresh scheduling coefficient value. The higher the scheduling coefficient value, the higher the first working parameter value.
[0055] Thus, by dynamically adjusting the scheduling coefficient value and the working parameter value according to the size of the local area, resources can be allocated more effectively. Larger local areas will obtain more resources, thereby improving processing efficiency. Larger local areas usually require higher processing priority, and by adjusting the working parameter value, it can be ensured that these areas are processed in time, avoiding delays or errors due to insufficient resources. Dynamic adjustment of resource allocation and working parameters according to changes in local areas enhances the adaptability and flexibility of the system, and can maintain efficient operation in different scenarios.
[0056] In one possible embodiment, step 221 can specifically include the following steps:
[0057] According to the N first local areas, the interval size between two adjacent first local areas, the area size of each first local area, and the refresh rate of each first local area are determined to obtain N-1 interval sizes, N area sizes, and N refresh rates; and the resolution of the display screen is determined.
[0058] According to the N-1 interval sizes, the N area sizes, the N refresh rates, and the resolution of the display screen, a local refresh scheduling coefficient value is determined.
[0059] The local refresh scheduling coefficient value needs to consider the following factors:
[0060] The size of the local area, the larger the area, the higher the local refresh scheduling coefficient value should be to ensure that it obtains sufficient computing resources for high-quality refresh.
[0061] The refresh rate of the local area, the higher the refresh rate of the area, the higher the local refresh scheduling coefficient value should be to ensure that these rapidly changing areas can be updated in time.
[0062] The interval size between adjacent areas, the larger the interval between adjacent areas, the more computing resources need to be allocated to these areas individually, so the local refresh scheduling coefficient value will also be relatively higher.
[0063] The resolution of the overall display screen, the higher the screen resolution, the number of local areas will also increase accordingly, which will affect the overall coefficient allocation.
[0064] After considering these factors, an accurate local refresh scheduling coefficient value can be determined, which will directly determine the computing resources and working parameters obtained by each local area subsequently.
[0065] Therefore, by accurate local area identification and parameter setting, the refresh quality of important areas can be maximized, global information such as screen resolution is fully utilized, more intelligent and optimized local refresh scheduling is realized, and power saving effect can be improved.
[0066] The local refresh scheduling coefficient value is determined according to the N-1 interval sizes, the N region sizes, the N refresh rates, and the resolution of the display screen.
[0067] For each first local area, a local refresh parameter value is determined according to the interval size, the region size, and the refresh rate of the first local area, to obtain N local refresh parameter values; the interval size of the first local area is the size of the interval between the first local area and the adjacent local area in a preset direction.
[0068] The local refresh scheduling coefficient value is determined according to the N local refresh parameter values and the resolution of the display screen.
[0069] Interval size: the distance or interval between the first local area and the adjacent local area in a preset direction. The interval size affects the independence and mutual influence of the local areas. For example, in the calculation of the second local area, the interval size of the second local area is the interval size between the first local area and the second local area; in the calculation of the third local area, the interval size of the third local area is the interval size between the second local area and the third local area.
[0070] Region size: the size of the first local area itself. The larger the region size, the more resources are needed for processing or refreshing.
[0071] Refresh rate: the number of times the local area is refreshed per unit time. The higher the refresh rate, the faster the frequency of local area update and the faster the processing speed.
[0072] Local refresh parameter value: used to describe the refresh demand and resource allocation of the local area.
[0073] The determination of the local refresh parameter value needs to consider the interval size, the region size, and the refresh rate of the local area. The interval size affects the independence and mutual influence of the local areas, the region size affects the resource demand, and the refresh rate affects the processing speed.
[0074] For each first local area, the interval size between it and the adjacent local area in a preset direction is calculated. For each first local area, the size of itself is calculated; according to the characteristics of the local area or the system demand, the refresh rate of each first local area is determined.
[0075] Comprehensively calculate the local refresh parameter value: Based on the interval size, area size and refresh rate, comprehensively calculate the local refresh parameter value of each first local area. The smaller the interval size, the larger the area size, and the higher the refresh rate, the larger the local refresh parameter value.
[0076] According to the N first local areas, the area size of each first local area and the refresh rate of each first local area can be determined. As shown in formula (1):
[0077]
[0078] Among them, (1+k n )*h n *f n , is the local refresh parameter value;
[0079] n: refers to the total number of local refresh areas, n = 1, 2, 3…, n, which indicates the number of local refresh areas;
[0080] C: refers to the total number of lines corresponding to the screen resolution. Taking an electronic device with a resolution of 1080x2400 as an example, C = 2400;
[0081] k n : represents the distribution coefficient of the nth local refresh area, which is the quotient of the interval size and the resolution;
[0082] When n=1, k=0;
[0083] When n>1, k n =(Row-start n -Row-end n-1 -1) / C,Row-start n Refers to the first row position of the nth local brush area, Row-end n-1 Refers to the tail position of the n-1th local brush area;
[0084] h n : Indicates the number of local refresh rows in the nth local refresh area;
[0085] f n : Indicates the refresh rate of the nth local refresh area. 60 represents a 60FPS refresh rate.
[0086] like Figure 3 As shown, the first local area 310 has an area size of 100 lines and a refresh rate of 1 FPS;
[0087] The first local area 320 has an area size of 1200 lines and a refresh rate of 60 FPS;
[0088] The first local area 330 has an area size of 200 rows and a refresh rate of 30 FPS.
[0089] Specifically, the first local area corresponds to the local area information shown in Table 1. Figure 3
[0090] Table 1
[0091]
[0092] With the detailed local area information, the final local refresh scheduling coefficient value can be determined according to the data.
[0093] The local refresh scheduling coefficient value is determined according to the N local refresh parameter values and the resolution of the display screen, including:
[0094] The sum of the N local refresh parameter values is determined.
[0095] The quotient of the sum of the N local refresh parameter values and the resolution of the display screen is calculated.
[0096] The local refresh scheduling coefficient value is determined according to the quotient of the sum of the N local refresh parameter values and the resolution of the display screen.
[0097] As shown in Table 1, 100+720 30+700 2.5 = 79132.5, i.e. the sum of the N local refresh parameter values is 79132.5;
[0098] As shown in formula (1), 79132.5 ÷ 2400 ÷ 60 = 54.95%, i.e. the local refresh scheduling coefficient value is 54.95%.
[0099] In one possible embodiment, step 222 can specifically include the following steps:
[0100] The local refresh coefficient value associated local refresh coefficient interval is determined.
[0101] According to the mapping relationship set, the first working parameter value associated with the local refresh coefficient interval is determined; the mapping relationship set includes multiple sets of mapping relationship between local refresh coefficient intervals and working parameter values.
[0102] According to the local refresh scheduling coefficient value calculated in the foregoing, the specific interval range to which it belongs is determined. The range of the entire local refresh scheduling coefficient value can be divided into multiple different intervals, and each interval represents the size of the required computing resources.
[0103] A mapping relationship set needs to be established in advance, which includes the mapping relationship between multiple sets of local refresh coefficient intervals and corresponding working parameter values. As shown in Table 2:
[0104] Table 2
[0105] Local refresh coefficient interval CPU frequency CPU voltage GPU frequency GPU voltage 75%-100% 3.0G 0.8V 734 Mhz 0.63V 50%-75% 2.5G 0.7V 607 Mhz 0.58V 25%-50% 1.5G 0.6V 389 Mhz 0.53V 0%-25% 1.0G 0.5V 160 Mhz 0.48V Local refresh coefficient interval DPU frequency DPU voltage DDR frequency DDR voltage 75%-100% 514 Mhz 0.73V 2.7G 1.08V 50%-75% 375 Mhz 0.68V 1.7G 1.03V 25%-50% 325 Mhz 0.63V 768 Mhz 0.98V 0%-25% 200 Mhz 0.57V 547 Mhz 0.94V
[0106] Exemplarily, the local refresh scheduling coefficient value is 54.95%, the local refresh coefficient value is associated with a local refresh coefficient interval of 50%-75%, and according to the mapping relationship set, a first working parameter value associated with the local refresh coefficient interval of 50%-75% is determined. The first working parameter value includes: CPU frequency of 2.5G, CPU voltage of 0.7V, GPU frequency of 607Mhz, GPU voltage of 0.58V, DPU frequency of 375Mhz, DPU voltage of 0.68V, DDR frequency of 1.7G, and DDR voltage of 1.03V.
[0107] Based on the mapping relationship set, the corresponding first working parameter value can be directly found according to the previously determined local refresh coefficient interval, and dynamic mapping of the local refresh coefficient value to the specific working parameter value can be realized.
[0108] Therefore, the division of the local refresh coefficient interval and the setting of the working parameter value corresponding to each interval can be flexibly adjusted according to actual needs. According to the mapping relationship set, the first working parameter value associated with the local refresh coefficient interval can be determined, and the corresponding computing resources and performance parameters can be accurately allocated. Therefore, the advantages of local refresh can be fully utilized, and more intelligent and efficient power saving technology can be realized.
[0109] In step 230, the working parameters of the associated module are adjusted to the first working parameter value, and the associated module includes at least one of the following: CPU, GPU, DPU, DDR, and DDIC.
[0110] The associated module is a related hardware and software module responsible for driving and updating the local area.
[0111] The associated module will be described below:
[0112] The central processing unit (CPU) is the core processing unit of the computer, responsible for executing calculation and control instructions.
[0113] The graphics processing unit (GPU) is a processor specially used for processing graphics and image data, suitable for high-concurrency computing tasks.
[0114] The data processing unit (DPU) is a processor that focuses on efficient data processing, commonly used to accelerate data-intensive applications.
[0115] Double Data Rate Synchronous Dynamic Random-Access Memory (DDR), a type of memory that can transmit data on both the rising and falling edges of each clock cycle, increasing the data transfer rate.
[0116] Display Driver Integrated Circuit (DDIC), a circuit specifically designed to control displays, responsible for converting image data into display signals.
[0117] The working parameters include working frequency and working voltage, which will be explained separately as follows:
[0118] Working frequency refers to the number of instructions executed by the associated module per second, usually measured in Hertz (Hz). Higher working frequency means the processor can perform more calculations per second, providing higher performance. Common working frequencies for associated modules range from a few hundred megahertz (MHz) to several gigahertz (GHz).
[0119] Working voltage refers to the voltage supplied to the associated module, usually measured in volts (V). The size of the working voltage directly affects the power consumption and heat generation of the associated module.
[0120] Working frequency and working voltage are two key indicators of the performance and power consumption of the associated module. Higher working frequency means higher performance and higher power consumption. Higher voltage means higher power consumption and heat generation, and performance will also increase accordingly.
[0121] Therefore, by adjusting the working parameters of the associated module to the first working parameter value, the dynamic adjustment of the working parameters of the associated module is realized, which can be reasonably configured and adjusted according to specific needs, effectively balancing performance and power consumption.
[0122] In one possible embodiment, after step 230, the following steps can also be included:
[0123] In the case of local refresh, determine the M second local areas corresponding to the local refresh, where M is a positive integer;
[0124] In the case where the positions and sizes of the M second local areas and the N first local areas are consistent, the working parameters of the associated module are kept at the first working parameter value to update the local image of the M second local areas;
[0125] In the case that the positions and sizes of the M second local areas and the N first local areas are inconsistent, a second working parameter value is determined according to the M second local areas, the second working parameter value including a second frequency value and a second voltage value.
[0126] Second local area: A new local area that needs to be updated during the local refresh process. Compared with the first local area, the second local area can have different positions and sizes.
[0127] Second working parameter value: The working parameter value required when refreshing the second local area, including a second frequency value and a second voltage value, used to control the resource allocation and processing speed of the electronic device when processing the second local area.
[0128] Second frequency value: The refresh frequency or working frequency of the electronic device when processing the second local area. The higher the frequency value, the more times it is processed per unit time, and the faster the processing speed.
[0129] Second voltage value: The voltage level required by the electronic device when processing the second local area. The higher the voltage value, the higher the processing capability and faster response speed the device can provide.
[0130] During the local refresh process, it is necessary to determine which local areas need to be updated. These areas are referred to as second local areas. M is a positive integer representing the number of local areas that need to be updated.
[0131] If the positions and sizes of the second local areas are completely consistent with those of the first local areas, it means that the refresh requirement has not changed, so the first working parameter value can be used to update the local image. If the positions and sizes are consistent, the working parameters of the associated module are kept as the first working parameter value. If the positions and sizes of the second local areas are inconsistent with those of the first local areas, it means that the refresh requirement has changed, and the working parameter value needs to be re-determined.
[0132] By dynamically adjusting the working parameter value, resources can be allocated more accurately. If the second local areas are consistent with the first local areas, the first working parameter value can be continued to be used to avoid resource waste. If the positions and sizes are inconsistent, resources are re-allocated according to the new requirements. By dynamically adjusting the working parameter value, the processing priority can be determined more accurately. For example, local areas with inconsistent positions and sizes may require higher frequency and voltage to ensure timely updating. The ability to dynamically adjust the working parameter value according to the specific circumstances of the local area enhances adaptability and flexibility, enabling efficient operation in different scenarios.
[0133] In the subsequent partial refresh process, when the second partial region and the first partial region have the same size and position, the working parameters of the associated module are kept at the first working parameter value. Since the second partial region and the first partial region are completely consistent in position and size, the previously determined first working parameter value can be directly reused, i.e., there is no need to recalculate and assign new working parameters for the second partial region, but the previous parameter settings are retained.
[0134] In this way, without recalculating and assigning working parameters, the previous parameter settings can be directly reused, ensuring the update quality while reducing the consumption of computing resources, thereby improving the update efficiency.
[0135] In a possible embodiment, in the case of non-partial refresh, the working parameters of the associated module are adjusted to a third working parameter value, which is the working parameter value corresponding to full-screen refresh.
[0136] Non-partial refresh: the need to refresh the entire screen or entire region, rather than only refreshing the partial region. Non-partial refresh usually involves a larger amount of data and higher resource requirements.
[0137] Third working parameter value: the working parameter value required by the system or device in the case of non-partial refresh. These parameter values are used to control resource allocation and processing speed during full-screen refresh.
[0138] Full-screen refresh: refreshing the entire screen or entire region, usually involving updating all pixels or data points. Full-screen refresh usually requires higher frequency and voltage to ensure timely updating of all regions.
[0139] In the case of non-partial refresh, the entire screen or entire region needs to be refreshed, so higher frequency and voltage are required to ensure timely updating of all regions. The third working parameter value is the working parameter value corresponding to full-screen refresh. The working parameters of the associated module are adjusted to the third working parameter value. The third working parameter value usually includes higher frequency and voltage values to meet the requirements of full-screen refresh. Using the adjusted third working parameter value, the entire screen or entire region is refreshed.
[0140] In the case of non-partial refresh, that is, when there is no partial refresh condition triggered, the entire screen needs to be refreshed. The third working parameter value is the corresponding working parameter determined for the full-screen refresh scenario, which is different from the first working parameter value. The third working parameter value is determined according to the requirements of full-screen refresh, and the third working parameter value needs to be able to meet the performance and power consumption requirements of full-screen refresh, which is usually higher than the first working parameter value of partial refresh.
[0141] By dynamically adjusting the working parameter value, resources can be allocated more accurately. In the case of non-local refresh, the system can provide sufficient frequency and voltage according to the demand of full-screen refresh, ensuring that all areas can be updated in time. By dynamically adjusting the working parameter value according to the refresh demand, the adaptability and flexibility of the system are enhanced, and efficient operation can be maintained in different scenarios.
[0142] Thus, the working parameter configuration of the associated module can be flexibly switched according to different refresh scenarios, improving adaptability. In the full-screen refresh scenario, the second working parameter value optimized for this scenario is used to ensure refresh quality.
[0143] In the embodiments of the present application, in the case of local refresh, it is necessary to determine which local areas need to be refreshed. The areas that need to be refreshed are referred to as first local areas. N is a positive integer, representing the number of local areas that need to be updated. The larger the size of the local area, the higher the processing frequency and voltage required to ensure timely and efficient refresh. Therefore, according to the N first local areas, a first working parameter value is determined, which includes a first frequency value and a first voltage value. The working parameters of the associated module need to be adjusted according to the demand of local refresh to ensure efficient and timely refresh. The working parameters of the associated module are adjusted to the first working parameter value, i.e. the frequency and voltage of the GPU are adjusted to ensure that the GPU can efficiently render the local image; the frequency and voltage of the DPU are adjusted to ensure that the DPU can efficiently process local data; the frequency and voltage of the DDR are adjusted to ensure that the DDR can efficiently transmit local data; the frequency and voltage of the DDIC are adjusted to ensure that the DDIC can efficiently control local display; by adjusting the working parameters of CPU, GPU, DPU, DDR and DDIC, multi-module collaborative optimization can be achieved to ensure efficient collaborative work of each associated module during local refresh, improve overall performance, and by dynamically adjusting the working parameter value according to the change of the local area, the working parameters of the associated module during local refresh can be dynamically adjusted according to the size of the computing resources required by local refresh, saving computing resources and achieving the purpose of power saving.
[0144] The working parameter adjustment method provided by the embodiments of the present application can be executed by the working parameter adjustment device. In the embodiments of the present application, the working parameter adjustment device is taken as an example to illustrate the working parameter adjustment device provided by the embodiments of the present application.
[0145] Figure 4 is a block diagram of a working parameter adjustment device provided by the embodiments of the present application. The device 400 includes:
[0146] The first determination module 410 is configured to determine N first local areas corresponding to local refresh in the case of local refresh, wherein N is a positive integer.
[0147] The second determining module 420 is configured to determine a first working parameter value according to the N first local areas, where the first working parameter value comprises a first frequency value and a first voltage value.
[0148] The adjusting module 430 is configured to adjust a working parameter of an associated module to the first working parameter value, where the associated module comprises at least one of a CPU, a GPU, a DPU, a DDR and a DDIC.
[0149] In a possible implementation, the second determining module 420 is specifically configured to:
[0150] determine a local refresh scheduling coefficient value according to the N first local areas, where the local refresh scheduling coefficient value is proportional to a size of the N first local areas;
[0151] determine a first working parameter value according to the local refresh scheduling coefficient value, where the local refresh scheduling coefficient value is proportional to the first working parameter value.
[0152] In a possible implementation, the second determining module 420 is specifically configured to:
[0153] determine, according to the N first local areas, a size of an interval between two adjacent first local areas, a size of each of the first local areas, and a refresh rate of each of the first local areas, to obtain N-1 interval sizes, N area sizes and N refresh rates; and determine a resolution of the display screen;
[0154] determine a local refresh scheduling coefficient value according to the N-1 interval sizes, the N area sizes, the N refresh rates and the resolution of the display screen.
[0155] In a possible implementation, the second determining module 420 is specifically configured to:
[0156] for any one of the first local areas, determine a local refresh parameter value according to a size of an interval, a size of an area and a refresh rate of the first local area, to obtain N local refresh parameter values, where the size of the interval is a size of an interval between the first local area and a local area adjacent to the first local area in a preset direction.
[0157] determine a local refresh scheduling coefficient value according to the N local refresh parameter values and the resolution of the display screen.
[0158] In a possible implementation, the second determining module 420 is specifically configured to:
[0159] determine a local refresh coefficient interval to which a local refresh coefficient value is associated.
[0160] According to the mapping relationship set, a first working parameter value associated with the local refresh coefficient interval is determined; the mapping relationship set includes multiple sets of mapping relationships between local refresh coefficient intervals and working parameter values.
[0161] In a possible embodiment, the apparatus 400 includes:
[0162] The third determination module is configured to determine, in the case of local refresh, M second local areas corresponding to the local refresh, where M is a positive integer;
[0163] The retention module is configured to, in the case where the positions and sizes of the M second local areas and the N first local areas are consistent, maintain the working parameter of the association module as the first working parameter value, so as to update the local image of the M second local areas.
[0164] The fourth determination module is configured to, in the case where the positions and sizes of the M second local areas and the N first local areas are inconsistent, determine a second working parameter value according to the M second local areas, where the second working parameter value includes a second frequency value and a second voltage value.
[0165] In a possible embodiment, the adjustment module 430 is further configured to, in the case of non-local refresh, adjust the working parameter of the association module to a third working parameter value, where the third working parameter value is a working parameter value corresponding to full-screen refresh.
[0166] In the embodiment of the present application, in the case of local refresh, it is necessary to determine which local areas need to be refreshed, the areas that need to be refreshed are referred to as first local areas, N is a positive integer, representing the number of local areas that need to be updated. The larger the size of the local area, the higher the processing frequency and voltage required to ensure timely and efficient refresh. Therefore, according to the N first local areas, the first working parameter value is determined, which includes the first frequency value and the first voltage value. The working parameters of the associated modules need to be adjusted according to the needs of local refresh to ensure efficient and timely refresh, and the working parameters of the associated modules are adjusted to the first working parameter value, that is, the frequency and voltage of the GPU are adjusted to ensure that the GPU can efficiently render the local image; the frequency and voltage of the DPU are adjusted to ensure that the DPU can efficiently process local data; the frequency and voltage of the DDR are adjusted to ensure that the DDR can efficiently transmit local data; the frequency and voltage of the DDIC are adjusted to ensure that the DDIC can efficiently control local display; by adjusting the working parameters of CPU, GPU, DPU, DDR and DDIC, multi-module collaborative optimization can be achieved, ensuring efficient collaborative work of each associated module during local refresh, improving overall performance, and by dynamically adjusting the working parameter value according to the change of the local area, the working parameters of the associated modules during local refresh can be dynamically adjusted according to the size of the computing resources required by local refresh, saving computing resources and achieving the purpose of power saving.
[0167] The working parameter adjustment device in the embodiment of the present application can be an electronic device or a component in an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. For example, the electronic device can be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted electronic device, a mobile Internet device (MID), an augmented reality (AR) / virtual reality (VR) device, a robot, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. It can also be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine, or a self-service machine, etc. The embodiment of the present application is not limited in this regard.
[0168] The working parameter adjustment apparatus of the embodiments of the present application can be an apparatus with an action system. The action system can be an Android action system, an iOS action system, or other possible action systems, which are not specifically limited in the embodiments of the present application.
[0169] The working parameter adjustment apparatus provided by the embodiments of the present application can implement each process implemented by the method embodiments, and thus the details are not described herein again.
[0170] Optionally, as shown in Figure 5 The embodiments of the present application also provide an electronic device 510, which includes a processor 511, a memory 512, a program or instruction stored in the memory 512 and executable on the processor 511. When the program or instruction is executed by the processor 511, each step of any working parameter adjustment method embodiment described above is implemented, and the same technical effects can be achieved. To avoid repetition, the details are not described herein again.
[0171] It should be noted that the electronic device of the embodiments of the present application includes the mobile electronic device and the non-mobile electronic device described above.
[0172] Figure 6 To implement the hardware structure of an electronic device according to an embodiment of the present application.
[0173] The electronic device 600 includes, but is not limited to, a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, and a processor 610, etc.
[0174] Those skilled in the art can understand that the electronic device 600 can also include a power supply (such as a battery) for supplying power to each component. The power supply can be logically connected to the processor 610 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. Figure 6 The electronic device structure shown in the above figure does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components, which are not described herein again.
[0175] The processor 610 is configured to determine N first local areas corresponding to the local refresh in the case of local refresh, where N is a positive integer.
[0176] The processor 610 is further configured to determine a first working parameter value according to the N first local areas, where the first working parameter value includes a first frequency value and a first voltage value.
[0177] The processor 610 is further configured to adjust a working parameter of an association module to the first working parameter value, the association module including at least one of a CPU, a GPU, a DPU, a DDR, and a DDIC.
[0178] Optionally, the processor 610 is further configured to determine a local refresh scheduling coefficient value according to the N first local areas, the local refresh scheduling coefficient value being proportional to area sizes of the N first local areas.
[0179] The processor 610 is further configured to determine a first working parameter value according to the local refresh scheduling coefficient value, the local refresh scheduling coefficient value being proportional to the first working parameter value.
[0180] Optionally, the processor 610 is further configured to determine, according to the N first local areas, an interval size between two adjacent first local areas, an area size of each of the first local areas, and a refresh rate of each of the first local areas, to obtain N-1 interval sizes, N area sizes, and N refresh rates, and determine a resolution of the display screen.
[0181] The processor 610 is further configured to determine a local refresh scheduling coefficient value according to the N-1 interval sizes, the N area sizes, the N refresh rates, and the resolution of the display screen.
[0182] Optionally, the processor 610 is further configured to, for any one of the first local areas, determine a local refresh parameter value according to an interval size, an area size, and a refresh rate of the first local area, to obtain N local refresh parameter values, the interval size of the first local area being a size of an interval between the first local area and a local area adjacent to the first local area in a preset direction.
[0183] The processor 610 is further configured to determine a local refresh scheduling coefficient value according to the N local refresh parameter values and the resolution of the display screen.
[0184] Optionally, the processor 610 is further configured to determine a local refresh coefficient interval to which the local refresh coefficient value is associated.
[0185] The processor 610 is further configured to determine a first working parameter value associated with the local refresh coefficient interval according to a mapping relationship set, the mapping relationship set including a plurality of mapping relationships between local refresh coefficient intervals and working parameter values that are mutually mapped.
[0186] Optionally, the processor 610 is further configured to determine M second local areas corresponding to local refresh, M being a positive integer.
[0187] The processor 610 is further configured to, in a case where the positions and sizes of the M second local areas and the N first local areas are consistent, keep the working parameter of the associated module as the first working parameter value, to update the local image of the M second local areas.
[0188] The processor 610 is further configured to, in a case where the positions and sizes of the M second local areas and the N first local areas are inconsistent, determine a second working parameter value according to the M second local areas, the second working parameter value including a second frequency value and a second voltage value.
[0189] Optionally, the processor 610 is further configured to, in a case of non-local refreshing, adjust the working parameter of the associated module to a third working parameter value, the third working parameter value being a working parameter value corresponding to full-screen refreshing.
[0190] In an embodiment of the present application, in a case of local refreshing, it is necessary to determine which local areas need to be refreshed, and the areas that need to be refreshed are referred to as first local areas. N is a positive integer, representing the number of local areas that need to be updated. The larger the size of the local area, the higher the processing frequency and voltage required to ensure timely and efficient refreshing. Therefore, according to the N first local areas, a first working parameter value is determined, the first working parameter value including a first frequency value and a first voltage value. The working parameter of the associated module needs to be adjusted according to the requirements of local refreshing, to ensure efficient and timely refreshing. The working parameter of the associated module is adjusted to the first working parameter value, that is, the frequency and voltage of the GPU are adjusted, to ensure that the GPU can efficiently render the local image; the frequency and voltage of the DPU are adjusted, to ensure that the DPU can efficiently process local data; the frequency and voltage of the DDR are adjusted, to ensure that the DDR can efficiently transmit local data; the frequency and voltage of the DDIC are adjusted, to ensure that the DDIC can efficiently control local display; by adjusting the working parameters of the CPU, GPU, DPU, DDR and DDIC, multi-module collaborative optimization can be achieved, to ensure that each associated module works efficiently and collaboratively during local refreshing, to improve overall performance. By dynamically adjusting the working parameter value according to the change of the local area, the working parameter of the associated module during local refreshing can be dynamically adjusted according to the size of the computing resources required by local refreshing, to save computing resources and achieve the purpose of power saving.
[0191] It should be understood that in an embodiment of the present application, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042, and the graphics processor 6041 processes image data of a static picture or video image obtained by an image capture device (such as a camera) in a video image capture mode or an image capture mode. The display unit 606 may include a display panel 6061, and the display panel 6061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 607 includes a touch panel 6071 and at least one of other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include two parts: a touch detection device and a touch controller. Other input devices 6072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and an action stick, which will not be repeated here. The memory 609 can be used to store software programs and various data, including but not limited to applications and action systems. The processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes the action system, user pages and applications, etc., and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 610.
[0192] The memory 609 can be used to store software programs and various data. The memory 609 can mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area can store an operating system, application programs or instructions required by N functions (such as a sound playing function, an image playing function, etc.), and the like. In addition, the memory 609 can include a volatile memory or a non-volatile memory, or the memory 609 can include both a volatile memory and a non-volatile memory. The non-volatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM), a Static RAM (SRAM), a Dynamic RAM (DRAM), a Synchronous DRAM (SDRAM), a Double Data Rate SDRAM (DDR SDRAM), an Enhanced SDRAM (ESDRAM), a Synchlink DRAM (SLDRAM), and a Direct Rambus RAM (DRRAM). The memory 609 in the embodiments of the present application includes but is not limited to these and any other suitable types of memory.
[0193] The processor 610 can include one or more processing units; optionally, the processor 610 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and an application program, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 610.
[0194] The embodiments of the present application also provide a readable storage medium, the readable storage medium stores programs or instructions, the programs or instructions are executed by a processor to realize each process of the above-mentioned working parameter adjustment method embodiments, and the same technical effects can be achieved. To avoid repetition, details are not described here.
[0195] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes a computer readable storage medium, such as a computer readable only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0196] The embodiment of the present application further provides a chip, which comprises a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running programs or instructions to realize each process of the above working parameter adjustment method embodiment and achieve the same technical effects. To avoid repetition, details are not described here.
[0197] It should be understood that the chip mentioned in the embodiment of the present application can also be referred to as a system level chip, a system chip, a chip system or a system on chip, etc.
[0198] The embodiment of the present application provides a computer program product, which is stored in a storage medium, and the program product is executed by N processors to realize each process of the above working parameter adjustment method embodiment and achieve the same technical effects. To avoid repetition, details are not described here.
[0199] It should be noted that in this paper, the term "including", "containing" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the method and device in the embodiment of the present application is not limited to the order of the functions shown or discussed, but can also include the functions performed in a substantially simultaneous manner or in the opposite order according to the functions involved, for example, the described method can be performed in an order different from the described order, and various steps can also be added, omitted or combined. In addition, the features described with reference to some examples can be combined in other examples.
[0200] Through the above description of the embodiments, those skilled in the art can clearly understand that the above-mentioned example methods can be realized by means of software and a necessary general hardware platform, and of course, can also be realized by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a computer software product in essence or in the form of a part that contributes to the prior art, which is stored in a storage medium (such as a ROM / RAM, a magnetic disc, an optical disc), and includes a plurality of instructions for causing a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present application.
[0201] The embodiments of the present application are described above in combination with the drawings, but the present application is not limited to the above-mentioned specific embodiments, and the above-mentioned specific embodiments are only illustrative and not restrictive. Those skilled in the art can make many forms under the inspiration of the present application without departing from the scope of the present application and the scope protected by the claims.
Claims
1. A method for adjusting working parameters, characterized in that: The method comprises: In the case of partial refresh, determining N first partial areas corresponding to the partial refresh, where N is a positive integer; Determining a first operating parameter value according to the N first local areas, where the first operating parameter value includes a first frequency value and a first voltage value; Adjusting an operating parameter of an associated module to the first operating parameter value, the associated module includes at least one of the following: CPU, GPU, DPU, DDR, and DDIC.
2. The method according to claim 1, wherein determining the first operating parameter value according to the N first local areas comprises: Determining a local refresh scheduling coefficient value according to the N first local areas, wherein the local refresh scheduling coefficient value is proportional to the area size of the N first local areas; A first operating parameter value is determined according to the local refresh scheduling coefficient value, and the local refresh scheduling coefficient value is proportional to the first operating parameter value.
3. The method according to claim 2, characterized in that The determining of the local refresh scheduling coefficient value according to the N first local areas includes: Determining, based on the N first partial areas, an interval size between two adjacent first partial areas, an area size of each first partial area, and a refresh rate of each first partial area to obtain N-1 interval sizes, N area sizes, and N refresh rates; and determining a resolution of a display screen; A local refresh scheduling coefficient value is determined according to the N-1 interval sizes, the N area sizes, the N refresh rates, and the resolution of the display screen.
4. The method according to claim 3, characterized in that Determining a local refresh scheduling coefficient value according to the N-1 interval sizes, the N area sizes, the N refresh rates, and the resolution of the display screen includes: For any of the first local areas, determining a local refresh parameter value based on the interval size, area size, and refresh rate of the first local area to obtain N local refresh parameter values; the interval size of the first local area is the size of the interval between the first local area and an adjacent local area in a preset direction; A local refresh scheduling coefficient value is determined according to the N local refresh parameter values and the resolution of the display screen.
5. The method according to claim 2, characterized in that The determining of the first operating parameter value according to the local refresh scheduling coefficient value includes: determining a local refresh coefficient interval associated with the local refresh coefficient value; According to a mapping relationship set, a first operating parameter value associated with the local refresh coefficient interval is determined; the mapping relationship set includes a plurality of mapping relationships between mutually mapped local refresh coefficient intervals and operating parameter values.
6. The method according to claim 1, characterized in that After adjusting the operating parameter of the associated module to the first operating parameter value, the method further includes: In the case of partial refresh, determining M second local areas corresponding to the partial refresh, where M is a positive integer; When the positions and sizes of the M second local areas are consistent with those of the N first local areas, maintaining the operating parameter of the association module at the first operating parameter value to update the local images of the M second local areas; When the positions and sizes of the M second local areas are inconsistent with those of the N first local areas, a second operating parameter value is determined based on the M second local areas, where the second operating parameter value includes a second frequency value and a second voltage value.
7. The method according to claim 1, characterized in that The method further comprises: In the case of non-partial refresh, the operating parameter of the associated module is adjusted to a third operating parameter value, and the third operating parameter value is an operating parameter value corresponding to full-screen refresh.
8. A working parameter adjustment device, characterized in that: The device comprises: A first determining module is configured to determine N first local areas corresponding to the local refresh in the case of the local refresh, where N is a positive integer; a second determining module, configured to determine a first operating parameter value according to the N first local areas, the first operating parameter value including a first frequency value and a first voltage value; The adjustment module is used to adjust the operating parameters of the associated module to the first operating parameter value, and the associated module includes at least one of the following: CPU, GPU, DPU, DDR and DDIC.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Display control method, display driving chip, equipment and storage medium
CN115909972A
Screen updating method and apparatus, electronic device, and readable storage medium
WO2024175002A1