CN109343954B - Electronic equipment working method and system - Google Patents

Electronic equipment working method and system Download PDF

Info

Publication number
CN109343954B
CN109343954B CN201811018901.8A CN201811018901A CN109343954B CN 109343954 B CN109343954 B CN 109343954B CN 201811018901 A CN201811018901 A CN 201811018901A CN 109343954 B CN109343954 B CN 109343954B
Authority
CN
China
Prior art keywords
memory
video
card
mode
write operation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811018901.8A
Other languages
Chinese (zh)
Other versions
CN109343954A (en
Inventor
吴彦永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811018901.8A priority Critical patent/CN109343954B/en
Publication of CN109343954A publication Critical patent/CN109343954A/en
Application granted granted Critical
Publication of CN109343954B publication Critical patent/CN109343954B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Abstract

The present disclosure provides a working method of an electronic device, wherein the electronic device at least includes a video card, a video memory and a memory, and the working method of the electronic device includes: acquiring operating parameters of target hardware, wherein the target hardware comprises a video card and/or a video memory; and controlling the working mode of the display card according to the operating parameters of the target hardware, wherein the working mode at least comprises a first mode and a second mode, the display card performs read-write operation on the display memory in the first mode, and the display card performs read-write operation on the memory and the display memory in the second mode. The disclosure also provides an electronic equipment working system.

Description

Electronic equipment working method and system
Technical Field
The disclosure relates to an electronic device working method and system.
Background
The display card is used as a bridge between the host and the display, mainly controls the output of display content of the computer, processes data transmitted from the central processing unit, and transmits the processed data to the display for display. When the display card processes data, the data needs to be temporarily stored in the display memory to assist in completing the data processing work. With the development of computer technology, the processing capability of the video card is more and more powerful, and the requirements on other hardware such as a video memory are also more and more high.
However, no matter the traditional desktop, all-in-one machine or notebook computer is used, if the independent video card is used, the matched video memory capacity is generally fixed, so that the use of various applications is limited.
Disclosure of Invention
One aspect of the present disclosure provides an electronic device operating method, where the electronic device at least includes a video card, a video memory, and a memory, and the method includes acquiring an operating parameter of target hardware, where the target hardware includes the video card and/or the video memory; and controlling the working mode of the display card according to the operating parameters of the target hardware, wherein the working mode at least comprises a first mode and a second mode, in the first mode, the display card performs read-write operation on the display memory, and in the second mode, the display card performs read-write operation on the memory and the display memory.
Optionally, the electronic device further includes a central processing unit, and when the operating mode of the display card is controlled to be the second mode, the reading and writing operation performed by the display card on the memory includes that the display card transmits a reading and writing operation instruction to the central processing unit through a data channel supporting a first protocol; and the central processing unit performs read-write operation on the memory based on the read-write operation instruction through a data channel supporting a second protocol.
Optionally, when the target hardware is the video memory, the operation parameter includes a current free storage space of the video memory, and controlling the working mode of the video card according to the operation parameter of the target hardware includes controlling the working mode of the video card to be a second mode when the current free storage space of the video memory is smaller than a free threshold, so that the video card performs read-write operation on the video memory and the memory.
Optionally, when the target hardware is the video card, the operation parameter includes a working frequency of the video card when performing a read/write operation on the video memory, and controlling a working mode of the video card according to the operation parameter of the target hardware includes controlling the working mode of the video card to be a second mode when the working frequency exceeds a frequency threshold, so that the video card performs the read/write operation on the video memory and the memory.
Optionally, when the target hardware is the video card, the operation parameter includes a temperature at which the video card performs a read/write operation on the video memory, and controlling the working mode of the video card according to the operation parameter of the target hardware includes controlling the working mode of the video card to be a second mode when the temperature exceeds a temperature threshold, so that the video card performs a read/write operation on the video memory and the memory.
Optionally, when the target hardware is the video card and the video memory, controlling the working mode of the video card according to the operating parameter of the target hardware includes controlling the working mode of the video card according to the operating parameter of the video card and the operating parameter of the video memory together.
Optionally, the method further includes configuring a predetermined storage area in the memory in advance, so that when the operating mode of the graphics card is the second mode, the graphics card can perform read/write operations in the predetermined storage area.
Another aspect of the present disclosure provides an electronic device operating system, where the electronic device at least includes a video card, a video memory, and a memory, and the system includes an obtaining module, configured to obtain an operation parameter of target hardware, where the target hardware includes the video card and/or the video memory; and a control module, configured to control a working mode of the graphics card according to an operation parameter of the target hardware, where the working mode at least includes a first mode and a second mode, and in the first mode, the graphics card performs a read-write operation on the graphics memory, and in the second mode, the graphics card performs a read-write operation on the memory and the graphics memory.
Optionally, the electronic device further includes a central processing unit, and when the control module controls the operating mode of the graphics card to be the second mode, the performing, by the graphics card, read and write operations on the memory includes: the display card transmits a read-write operation instruction to the central processing unit through a data channel supporting a first protocol; and the central processing unit performs read-write operation on the memory based on the read-write operation instruction through a data channel supporting a second protocol.
Optionally, when the target hardware is the video memory, the operation parameter includes a current free storage space of the video memory, and the control module is configured to control a working mode of the video card to be a second mode when the current free storage space of the video memory is smaller than a free threshold, so that the video card performs read/write operations on the video memory and the memory.
Optionally, when the target hardware is the video card, the operation parameter includes a working frequency of the video card during a read/write operation on the video memory, and the control module is configured to control a working mode of the video card to be a second mode when the working frequency exceeds a frequency threshold, so that the video card performs the read/write operation on the video memory and the memory.
Optionally, when the target hardware is the video card, the operation parameter includes a temperature of the video card during the read/write operation on the video memory, and the control module is configured to control a working mode of the video card to be a second mode when the temperature exceeds a temperature threshold, so that the video card performs the read/write operation on the video memory and the memory.
Optionally, when the target hardware is the video card and the video memory, the control module is configured to control a working mode of the video card according to an operation parameter of the video card and an operation parameter of the video memory.
Optionally, the system further includes a configuration module, configured to configure a predetermined storage area in the memory in advance, so that when the operating mode of the graphics card is the second mode, read and write operations can be performed in the predetermined storage area.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
fig. 1 schematically illustrates an application scenario of an electronic device operating method according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of operating an electronic device according to an embodiment of the present disclosure;
fig. 3 schematically illustrates a flowchart of a video card performing a read/write operation on a memory according to an embodiment of the present disclosure;
fig. 4 schematically illustrates a schematic diagram of a graphics card performing read/write operations on a memory according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a flow chart of a method of operating an electronic device according to another embodiment of the present disclosure;
fig. 6 schematically illustrates a schematic diagram of configuring a predetermined storage area in a memory according to an embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of an electronic device operating system, in accordance with an embodiment of the present disclosure;
FIG. 8 schematically illustrates a block diagram of an electronic device operating system, in accordance with another embodiment of the present disclosure; and
FIG. 9 schematically illustrates a block diagram of a computer system suitable for implementing the methods of the present disclosure, in accordance with an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
In those instances where a convention analogous to "at least one of A, B, and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B, and C" would include but not be limited to systems that have A alone, B alone, C alone, A and B together, A and C together, B and C together, and/or A, B, and C together, etc.). Where a convention analogous to "at least one of A, B, or C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B, or C" would include but not be limited to systems that have A alone, B alone, C alone, A and B together, A and C together, B and C together, and/or A, B, and C together, etc.). It will be further understood by those within the art that virtually any disjunctive word and/or phrase presenting two or more alternative terms, whether in the description, claims, or drawings, should be understood to contemplate the possibilities of including one of the terms, either of the terms, or both terms. For example, the phrase "a or B" should be understood to include the possibility of "a" or "B", or "a and B".
Some block diagrams and/or flowcharts are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). In addition, the techniques of this disclosure may take the form of a computer program product on a computer-readable medium having instructions stored thereon for use by or in connection with an instruction execution system.
The embodiment of the disclosure provides an electronic device working method and a system, wherein the electronic device at least comprises a video card, a video memory and a memory, and the electronic device working method comprises the steps of obtaining operation parameters of target hardware, wherein the target hardware comprises the video card and/or the video memory; and controlling the working mode of the display card according to the operating parameters of the target hardware, wherein the working mode at least comprises a first mode and a second mode, the display card performs read-write operation on the display memory in the first mode, and the display card performs read-write operation on the memory and the display memory in the second mode.
Fig. 1 schematically shows an application scenario of an electronic device operating method according to an embodiment of the present disclosure.
As shown in fig. 1, the electronic device 100 at least includes a video card 101, a video memory 102, and a memory 103. The graphics card 101 serves as a bridge between the host and the display, and controls the data output of the computer, for example, the data is converted into graphics through the display. Along with the complexity of the graphic picture is higher and higher, the requirement on the operation efficiency of the display card is higher and higher, for example, when a large-scale game is played, the displayed graphic is very complex, the requirement on the display card is correspondingly higher, the capacity of the display memory carried in the related technology is fixed, the operation efficiency of the display card is greatly limited, if the capacity of the display memory is increased, the display memory needs to be replaced, meanwhile, the price is very high, along with the rapid development of intelligent terminal products, the demand of the display memory is too large, the shortage occurs, and a single 1GB particle runs from 6 U.S. dollars before 2 years to 10+ U.S. dollars at present.
According to the embodiment of the present invention, the video card 101 may store the processed data in the video memory 102 and the memory 103, and control the working mode of the video card 101 according to the operating parameters of the video card 101 and/or the video memory 102 by obtaining the operating parameters of the video card 101 and/or the video memory 102, where the working mode at least includes a first mode and a second mode, in the first mode, the video card 101 performs a read-write operation on the video memory 102, and in the second mode, the video card 101 performs a read-write operation on the memory 103 and the video memory 102. According to the embodiment of the invention, the resources of the system memory can be called as dynamic expansion of the fixed video memory through the condition trigger design. Therefore, even under the condition that the storage space of the video memory is insufficient, the data can be read and written by the space of the memory.
According to the embodiment of the invention, the working mode of the display card is controlled according to the running parameters of the display card and/or the display memory, so that the display card has different working modes and can carry out read-write operation on both the memory and the display memory. The video memory capacity matched with the video card in the related technology is generally fixed, so that the use of various applications is limited, and the problem that the storage space of the video memory is difficult to expand conveniently in the related technology can be solved by calling the resources of the system memory to serve as the dynamic expansion of the fixed video memory.
It should be noted that fig. 1 is only an example of a scenario in which the embodiments of the present disclosure may be applied to help those skilled in the art understand the technical content of the present disclosure, and does not mean that the embodiments of the present disclosure may not be applied to other devices, systems, environments or scenarios.
Fig. 2 schematically shows a flow chart of an electronic device operating method according to an embodiment of the present disclosure.
According to an embodiment of the present invention, an electronic device at least includes a video card, a video memory and a memory, as shown in fig. 2, the method includes operations S210 to S220.
In operation S210, an operation parameter of target hardware is obtained, where the target hardware includes a video card and/or a video memory.
According to the embodiment of the invention, only the operation parameters of the display card can be acquired, for example, the working frequency, the temperature and the like of the display card can be acquired; or only the operating parameters of the video memory may be obtained, for example, the operating frequency of the video memory, the current remaining storage space of the video memory, the temperature, and the like may be obtained; and the operating parameters of the video card and the video memory can be simultaneously acquired, which is not described herein again.
In operation S220, the operating mode of the video card is controlled according to the operating parameter of the target hardware, where the operating mode at least includes a first mode and a second mode, and in the first mode, the video card performs read/write operation on the video memory, and in the second mode, the video card performs read/write operation on the memory and the video memory.
According to the embodiment of the present invention, the operation parameter of the video card and/or the video memory is used to determine a reference condition for determining whether to switch the working mode currently, for example, the obtained operation parameter of the video memory is the remaining storage space of the current video memory, and if the remaining storage space of the current video memory is smaller than a threshold, the working mode of the video card may be switched at this time, for example, the mode is switched from the first mode to the second mode, that is, the video card performs read-write operation on the video memory to perform read-write operation on the memory and the video memory, so that the purpose of expanding the storage space of the video memory may be achieved.
According to the embodiment of the invention, under the condition that the target hardware is the video card and the video memory, the working mode of the video card is controlled together according to the operating parameters of the video card and the operating parameters of the video memory. Whether the working mode is switched can be more reasonably decided.
According to the embodiment of the invention, the memory in the default state can be used as the system memory, and when the operation parameters of the detection video card and/or the video memory meet certain conditions, the state can be switched to the state of the extended video memory.
According to the embodiment of the invention, after the first mode is switched to the second mode, if a preset condition is met, for example, the operation parameter can be borne by the video memory, the second mode can be switched to the first mode again.
According to the embodiment of the present invention, the type of the electronic device is not limited, and includes, but is not limited to, an electronic device such as a smart phone, a notebook computer, a tablet computer, a desktop computer, a television, and the like.
According to the embodiment of the invention, the working mode of the display card is controlled according to the running parameters of the display card and/or the display memory, so that the display card has different working modes, and can perform read-write operation on both the memory and the display memory. The video memory capacity matched with the video card in the related technology is generally fixed, so that the use of various applications is limited, and the problem that the storage space of the video memory is difficult to expand conveniently in the related technology can be solved by calling the resources of the system memory to serve as the dynamic expansion of the fixed video memory.
The method shown in fig. 2 is further described with reference to fig. 3-6 in conjunction with specific embodiments.
Fig. 3 schematically shows a flowchart of a video card performing a read/write operation on a memory according to an embodiment of the present disclosure.
According to the embodiment of the present invention, the electronic device further includes a central processing unit, as shown in fig. 3, when the operating mode of the display card is controlled to be the second mode, the reading and writing operations of the memory by the display card include operations S221 to S222.
In operation S221, the display card transmits a read/write operation instruction to the central processing unit through the data channel supporting the first protocol.
In operation S222, the central processing unit performs a read/write operation on the memory based on the read/write operation instruction through the data channel supporting the second protocol.
According to the embodiment of the invention, for example, on the basis of the original collocation of the display card with the fixed display memory, the display card can access the central processing unit through the PCI-E bus, and the central processing unit can read and write the memory by using a DDR protocol. According to the embodiment of the invention, the size of the memory is not limited, for example, the size of the single capacity can be from 1GB/2GB/4GB/8GB to 16GB which is mainstream at present.
Fig. 4 schematically illustrates a schematic diagram of performing a read/write operation on a memory by a graphics card according to an embodiment of the present disclosure.
As shown in fig. 4, according to the embodiment of the present invention, on the basis of the original configuration of the graphics card (dppu) with the fixed video memory (VRAM), the graphics card (dppu) can access the CPU through the PCI-E bus, and the CPU can perform read/write operations on the memory (DDR) according to the DDR protocol. Fig. 4 illustrates that the display card transmits a read/write operation instruction to the central processing unit through the data channel supporting the first protocol, and the central processing unit performs a read/write operation on the memory based on the read/write operation instruction through the data channel supporting the second protocol.
According to the embodiment of the invention, the application scene of the independent display card can be supported by transmitting data through different protocols.
According to the embodiment of the invention, under the condition that the target hardware is the video memory, the operation parameters comprise the current free storage space of the video memory, and the control of the working mode of the video card according to the operation parameters of the target hardware comprises the following steps: and under the condition that the current free storage space of the video memory is smaller than the free threshold value, controlling the working mode of the video card to be a second mode so that the video card performs read-write operation on the video memory and the memory.
According to the embodiment of the invention, the current free storage space of the video memory can be monitored in real time, and if the current free storage space of the video memory is smaller than the free threshold value, the video card is controlled to perform read-write operation on the video memory and the memory. For example, the current free storage space of the video memory is 200M, but the preset free threshold is 250M, so that in order to ensure that data read and write are normal when the video card works, the video card can be controlled to perform read and write operations on the video memory and the memory.
Through the embodiment of the invention, if the current free storage space of the video memory is smaller than the free threshold, which indicates that the capacity of the video memory is insufficient and cannot meet the calculation requirement of the video card, the working mode of the video card is switched to the second mode, so that the video card performs read-write operation on the video memory and the memory, the calculation rate of the video card can be ensured, higher utilization efficiency of the video card is achieved, and the effect of intelligently switching the working mode of the video card is achieved.
According to the embodiment of the present invention, in a case that the target hardware is a video card, the operation parameter includes a working frequency of the video card when the video card performs a read-write operation on the video memory, and controlling the working mode of the video card according to the operation parameter of the target hardware includes: and under the condition that the working frequency exceeds the frequency threshold, controlling the working mode of the display card to be a second mode so that the display card performs read-write operation on the display memory and the memory.
According to the embodiment of the invention, the working frequency of the display card can be obtained through the driving of the display card, or the working frequency of the display card can be determined by obtaining the voltage or the current when the display card works.
According to the embodiment of the invention, under the condition that the working frequency exceeds the frequency threshold, the display card is controlled to carry out read-write operation on the display memory and the memory. For example, the current operating frequency of the video memory is 1200HZ, but the preset frequency threshold is within 1000HZ, so that in order to ensure that the data read and write are normal when the video card operates, the video card can be controlled to perform read and write operations on the video memory and the memory.
By the embodiment of the invention, whether the working mode is switched can be more reasonably decided, and the effect of intelligently switching the working mode of the display card is achieved.
According to the embodiment of the invention, under the condition that the target hardware is the video card, the operation parameter comprises the temperature of the video card when the video card performs read-write operation on the video memory, and the control of the working mode of the video card according to the operation parameter of the target hardware comprises the following steps: and under the condition that the temperature exceeds the temperature threshold, controlling the working mode of the display card to be a second mode so that the display card performs read-write operation on the display memory and the memory.
According to the embodiment of the invention, the higher the temperature of the video card in the read-write operation of the video memory is, the more energy consumption of the video card is caused, and the working frequency of the video card is also high. The temperature of the display card can be detected through the temperature sensor, and the temperature threshold value can be determined through multiple tests.
According to the embodiment of the invention, whether the working mode is switched is determined by acquiring the temperature of the display card, the realization is simple, and the memory capacity of the display can be expanded.
Fig. 5 schematically shows a flow chart of an electronic device operating method according to another embodiment of the present disclosure.
It should be noted that, in addition to operation S230, operations S210 to S220 described in fig. 2 are also included in this embodiment. The description of operations S210-S220 is omitted here for the sake of brevity of description.
As shown in fig. 5, the method further includes operation S230.
In operation S230, a predetermined storage area is configured in the memory in advance, so that when the operating mode of the graphics card is the second mode, the read/write operation can be performed in the predetermined storage area.
According to the embodiment of the invention, the predetermined storage area can be configured from the memory in advance through the system BIOS, for example, the low address bit 2G is used as a selectable state through the system BIOS, and when the working mode of the video card is the second mode, the read-write operation can be performed in the low address bit storage area.
Through the embodiment of the invention, the preset storage area is configured in the memory, and the video card can store the data in the preset storage area, so that the calculation rate of the video card can be ensured, higher utilization efficiency of the video card can be achieved, and the capacity of the video memory is equivalently expanded.
Fig. 6 schematically illustrates a schematic diagram of configuring a predetermined storage area in a memory according to an embodiment of the present disclosure.
As shown in fig. 6, the total capacity of two memory banks is 32GB, each with a capacity of 16GB, the storage space in one of the memory banks may be divided into multiple sections, for example, 2 or 4GB of memory space may be preset as a selectable part of the video card.
Fig. 7 schematically shows a block diagram of an electronic device operating system according to an embodiment of the present disclosure.
As shown in fig. 7, the electronic device at least includes a video card, a video memory, and a memory, and the electronic device operating system 300 includes an obtaining module 310 and a control module 320.
The obtaining module 310 is configured to obtain an operating parameter of target hardware, where the target hardware includes a video card and/or a video memory.
The control module 320 is configured to control a working mode of the video card according to an operating parameter of the target hardware, where the working mode at least includes a first mode and a second mode, and in the first mode, the video card performs a read/write operation on the video memory, and in the second mode, the video card performs a read/write operation on the memory and the video memory.
According to the embodiment of the invention, the working mode of the display card is controlled according to the running parameters of the display card and/or the display memory, so that the display card has different working modes and can carry out read-write operation on both the memory and the display memory. The video memory capacity matched with the video card in the related technology is generally fixed, so that the use of various applications is limited, and the problem that the storage space of the video memory is difficult to expand conveniently in the related technology can be solved by calling the resources of the system memory to serve as the dynamic expansion of the fixed video memory.
According to an embodiment of the present disclosure, the electronic device further includes a central processing unit, and when the control module 320 controls the operating mode of the display card to be the second mode, the reading and writing operations of the memory by the display card include that the display card transmits a reading and writing operation instruction to the central processing unit through a data channel supporting the first protocol; and the central processing unit carries out read-write operation on the memory based on the read-write operation instruction through the data channel supporting the second protocol.
According to the embodiment of the invention, the application scene of the independent display card can be supported by transmitting data through different protocols.
According to the embodiment of the present disclosure, in a case that the target hardware is a video memory, the operation parameter includes a current idle storage space of the video memory, and the control module 320 is configured to control the working mode of the video card to be the second mode when the current idle storage space of the video memory is smaller than an idle threshold, so that the video card performs read/write operations on the video memory and the memory.
According to the embodiment of the present disclosure, in a case that the target hardware is a video card, the operation parameter includes a working frequency of the video card during the read/write operation on the video memory, and the control module 320 is configured to control the working mode of the video card to be the second mode when the working frequency exceeds a frequency threshold, so that the video card performs the read/write operation on the video memory and the memory.
According to the embodiment of the present disclosure, when the target hardware is a video card, the operation parameter includes a temperature of the video card during the read/write operation on the video memory, and the control module 320 is configured to control the working mode of the video card to be the second mode when the temperature exceeds a temperature threshold, so that the video card performs the read/write operation on the video memory and the memory.
According to the embodiment of the present disclosure, in a case that the target hardware is a video card and a video memory, the control module 320 is configured to control the working mode of the video card according to the operating parameter of the video card and the operating parameter of the video memory.
Fig. 8 schematically illustrates a block diagram of an electronic device operating system according to another embodiment of the present disclosure.
As shown in fig. 8, the electronic device operating system 300 further includes a configuration module 330, configured to configure a predetermined storage area in the memory in advance, so that when the operating mode of the graphics card is the second mode, the graphics card can perform a read/write operation in the predetermined storage area.
Through the embodiment of the invention, the preset storage area is configured in the memory, and the video card can store data in the preset storage area, so that the calculation rate of the video card can be ensured, higher utilization efficiency of the video card is achieved, and the capacity of the video memory is expanded equivalently.
Any number of modules, sub-modules, units, sub-units, or at least part of the functionality of any number thereof according to embodiments of the present disclosure may be implemented in one module. Any one or more of the modules, sub-modules, units, and sub-units according to the embodiments of the present disclosure may be implemented by being split into a plurality of modules. Any one or more of the modules, sub-modules, units, sub-units according to embodiments of the present disclosure may be implemented at least in part as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in any other reasonable manner of hardware or firmware by integrating or packaging a circuit, or in any one of or a suitable combination of software, hardware, and firmware implementations. Alternatively, one or more of the modules, sub-modules, units, sub-units according to embodiments of the disclosure may be implemented at least partly as a computer program module, which when executed, may perform a corresponding function.
For example, any number of the acquisition module 310, the control module 320, and the configuration module 330 may be combined in one module to be implemented, or any one of them may be split into multiple modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the obtaining module 310, the controlling module 320 and the configuring module 330 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented by hardware or firmware, such as any other reasonable manner of integrating or packaging a circuit, or may be implemented by any one of or a suitable combination of software, hardware and software. Alternatively, at least one of the acquisition module 310, the control module 320 and the configuration module 330 may be implemented at least partially as a computer program module, which when executed, may perform a corresponding function.
Figure 9 schematically illustrates a block diagram of a computer system suitable for implementing the methods of the present disclosure, in accordance with an embodiment of the present disclosure. The computer system illustrated in FIG. 9 is only one example and should not impose any limitations on the scope of use or functionality of embodiments of the disclosure.
As shown in fig. 9, the computer system 400 includes a central processor 410, a computer-readable storage medium 420, a video card 430, and a video memory 440. The computer system 400 may perform a method according to an embodiment of the disclosure.
In particular, the central processor 410 or the graphics card 430 may include, for example, a general purpose microprocessor, an instruction set processor and/or related chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), and/or the like. The central processor 410 may also include on-board memory for caching purposes.
The graphics card 430 may be a single processing unit or a plurality of processing units for performing different actions of the method flows according to embodiments of the disclosure.
Computer-readable storage medium 420, for example, may be any medium that can contain, store, communicate, propagate, or transport the instructions. For example, a readable storage medium may include, but is not limited to, a memory, such as a Random Access Memory (RAM), and the like.
The display memory 440 may comprise a computer program 441, which computer program 441 may comprise code/computer executable instructions.
The computer program 441 may be configured with computer program code, for example, comprising computer program modules. For example, in an example embodiment, code in computer program 441 may include one or more program modules, including, for example, 441A, modules 441B, \8230. It should be noted that the division and number of the modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, and the program modules are executed by the graphics card 430.
The graphics card 430 may interact with the central processor 410 to perform a method according to an embodiment of the present disclosure, or any variation thereof, according to an embodiment of the present disclosure.
According to an embodiment of the present invention, at least one of the acquisition module 310, the control module 320 and the configuration module 330 may be implemented as a computer program module described with reference to fig. 9, which, when executed by the display card 430, may implement the corresponding operations described above.
Another aspect of the disclosure provides a computer program comprising computer executable instructions for implementing the method as described above when executed.
According to embodiments of the present disclosure, a computer-readable storage medium may be a computer-readable signal medium or a computer-readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, optical fiber cable, radio frequency signals, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (7)

1. An electronic device working method is provided, wherein the electronic device at least comprises a display card, a display memory and a memory, and the method comprises the following steps:
acquiring operating parameters of target hardware, wherein the target hardware comprises the video card and/or the video memory;
controlling the working mode of the display card according to the operating parameters of the target hardware, wherein the working mode at least comprises a first mode and a second mode, the display card performs read-write operation on the display memory in the first mode, and the display card performs read-write operation on the memory and the display memory in the second mode;
wherein, under the condition that the target hardware is the video card, the operation parameter includes a working frequency of the video card when the video card performs read-write operation on the video memory, and controlling a working mode of the video card according to the operation parameter of the target hardware includes:
under the condition that the working frequency exceeds a frequency threshold, controlling the working mode of the display card to be a second mode so that the display card performs read-write operation on the display memory and the memory; or
Under the condition that the target hardware is the video card, the operation parameters include the temperature of the video card during the read-write operation of the video memory, and the controlling the working mode of the video card according to the operation parameters of the target hardware includes:
under the condition that the temperature exceeds the temperature threshold, controlling the working mode of the display card to be a second mode so that the display card performs read-write operation on the display memory and the memory;
under the condition that the target hardware is the video card and the video memory, controlling the working mode of the video card according to the operating parameters of the target hardware comprises the following steps:
and controlling the working mode of the video card together according to the operating parameters of the video card and the operating parameters of the video memory.
2. The method of claim 1, wherein the electronic device further comprises a central processing unit, and when the operating mode of the graphics card is controlled to be the second mode, the performing, by the graphics card, read and write operations on the memory comprises:
the display card transmits a read-write operation instruction to the central processing unit through a data channel supporting a first protocol; and
and the central processing unit carries out read-write operation on the memory based on the read-write operation instruction through a data channel supporting a second protocol.
3. The method of claim 1, wherein when the target hardware is the video memory, the operation parameter includes a current free storage space of the video memory, and controlling an operating mode of the video card according to the operation parameter of the target hardware includes:
and under the condition that the current free storage space of the video memory is smaller than a free threshold value, controlling the working mode of the video card to be a second mode so that the video card performs read-write operation on the video memory and the memory.
4. The method of claim 1, wherein the method further comprises:
and configuring a preset storage area in the memory in advance, so that read-write operation can be performed in the preset storage area under the condition that the working mode of the display card is the second mode.
5. An electronic device operating system, wherein the electronic device at least includes a video card, a video memory and a memory, the system comprises:
the acquisition module is used for acquiring the operating parameters of target hardware, wherein the target hardware comprises the video card and/or the video memory;
the control module is used for controlling the working mode of the video card according to the operating parameters of the target hardware, wherein the working mode at least comprises a first mode and a second mode, the video card performs read-write operation on the video memory in the first mode, and the video card performs read-write operation on the memory and the video memory in the second mode;
wherein the content of the first and second substances,
under the condition that the target hardware is the video card, the operation parameters include a working frequency of the video card when the video card performs read-write operation on the video memory, and controlling a working mode of the video card according to the operation parameters of the target hardware includes:
under the condition that the working frequency exceeds a frequency threshold, controlling the working mode of the display card to be a second mode so that the display card performs read-write operation on the display memory and the memory; or
Under the condition that the target hardware is the video card, the operation parameter includes a temperature when the video card performs read-write operation on the video memory, and controlling a working mode of the video card according to the operation parameter of the target hardware includes:
under the condition that the temperature exceeds a temperature threshold, controlling the working mode of the display card to be a second mode so that the display card performs read-write operation on the display memory and the memory;
under the condition that the target hardware is the video card and the video memory, controlling the working mode of the video card according to the operating parameters of the target hardware comprises the following steps:
and controlling the working mode of the video card together according to the operating parameters of the video card and the operating parameters of the video memory.
6. The system of claim 5, wherein the electronic device further includes a central processing unit, and when the control module controls the operating mode of the graphics card to be the second mode, the performing, by the graphics card, read and write operations on the memory includes:
the display card transmits a read-write operation instruction to the central processing unit through a data channel supporting a first protocol; and
and the central processing unit carries out read-write operation on the memory based on the read-write operation instruction through a data channel supporting a second protocol.
7. The system of claim 5, wherein the system further comprises:
and the configuration module is used for configuring a preset storage area in the memory in advance so as to enable the read-write operation to be carried out in the preset storage area under the condition that the working mode of the display card is the second mode.
CN201811018901.8A 2018-08-31 2018-08-31 Electronic equipment working method and system Active CN109343954B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811018901.8A CN109343954B (en) 2018-08-31 2018-08-31 Electronic equipment working method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811018901.8A CN109343954B (en) 2018-08-31 2018-08-31 Electronic equipment working method and system

Publications (2)

Publication Number Publication Date
CN109343954A CN109343954A (en) 2019-02-15
CN109343954B true CN109343954B (en) 2022-10-25

Family

ID=65292342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811018901.8A Active CN109343954B (en) 2018-08-31 2018-08-31 Electronic equipment working method and system

Country Status (1)

Country Link
CN (1) CN109343954B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113806062A (en) * 2020-06-16 2021-12-17 深圳Tcl数字技术有限公司 Memory working frequency adjusting method, intelligent terminal and storage medium
CN112925572B (en) * 2021-03-01 2023-05-23 联想(北京)有限公司 Control method and device and electronic equipment
CN116521112A (en) * 2023-05-15 2023-08-01 摩尔线程智能科技(北京)有限责任公司 Parameter adjusting method, display card, electronic equipment and storage medium
CN117455750B (en) * 2023-12-26 2024-04-02 芯瞳半导体技术(山东)有限公司 Video memory management method, device, system, medium and equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6271866B1 (en) * 1998-12-23 2001-08-07 Honeywell International Inc. Dual port memory system for buffering asynchronous input to a raster scanned display
CN102331918B (en) * 2011-07-07 2014-04-30 曙光信息产业股份有限公司 LoongSon blade integrated display card
CN103002445A (en) * 2012-11-08 2013-03-27 张维加 Safe mobile electronic equipment for providing application services
CN103902460A (en) * 2012-12-27 2014-07-02 鸿富锦精密工业(深圳)有限公司 Video card memorizer control system and electronic device

Also Published As

Publication number Publication date
CN109343954A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
CN109343954B (en) Electronic equipment working method and system
CN109388595B (en) High bandwidth memory system and logic die
US9489763B2 (en) Techniques for setting up and executing draw calls
JP6078173B2 (en) Power saving method and apparatus in display pipeline by powering down idle components
TWI452514B (en) Computer system and method for configuring the same
CN108140234B (en) GPU operation algorithm selection based on command stream marking
KR102239229B1 (en) Dynamic load balancing of hardware threads in clustered processor cores using shared hardware resources, and related circuits, methods, and computer-readable media
TW201432612A (en) Hybrid display frame buffer for display subsystem
CN110321189B (en) Method and equipment for presenting hosted program in hosted program
CN111080761B (en) Scheduling method and device for rendering tasks and computer storage medium
US20110242115A1 (en) Method for performing image signal processing with aid of a graphics processing unit, and associated apparatus
CN106156132B (en) Picture loading display method and device
KR102147912B1 (en) Processor chip and control methods thereof
CN102663989A (en) Buffer processing method and device for display of mobile terminal
CN108604213B (en) System and method for individually configuring dynamic random access memory sharing a common command access bus
US10509748B2 (en) Memory sharing for application offload from host processor to integrated sensor hub
CN109992230B (en) Control method and electronic device
US20220342835A1 (en) Method and apparatus for disaggregation of computing resources
CN111107532B (en) Information processing method and device and electronic equipment
CN107656702A (en) Accelerate the method and its system and electronic equipment of disk read-write
CN103137092A (en) Arbitration method, arbitration circuit, liquid crystal display (LCD) driving circuit and LCD driving system
CN110489359B (en) Data transmission control method and system
CN103607596A (en) Clock calibration processing method and device
CN104679679A (en) Resolution image processing system based on embedded type
CN113609150B (en) Hardware-based atomic writing method, equipment and system

Legal Events

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