CN116414744A - Information processing method and device and electronic equipment - Google Patents

Information processing method and device and electronic equipment Download PDF

Info

Publication number
CN116414744A
CN116414744A CN202310397272.9A CN202310397272A CN116414744A CN 116414744 A CN116414744 A CN 116414744A CN 202310397272 A CN202310397272 A CN 202310397272A CN 116414744 A CN116414744 A CN 116414744A
Authority
CN
China
Prior art keywords
data
information
identifier
trigger
data information
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.)
Pending
Application number
CN202310397272.9A
Other languages
Chinese (zh)
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.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202310397272.9A priority Critical patent/CN116414744A/en
Publication of CN116414744A publication Critical patent/CN116414744A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/20Handling requests for interconnection or transfer for access to input/output bus
    • G06F13/28Handling requests for interconnection or transfer for access to input/output bus using burst mode transfer, e.g. direct memory access DMA, cycle steal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Bus Control (AREA)

Abstract

The embodiment of the application discloses an information processing method, an information processing device and electronic equipment, and belongs to the technical field of communication. The information processing method comprises the following steps: receiving request information sent by slave equipment, wherein the request information carries a first trigger identifier; determining data information corresponding to the first trigger identifier from a pre-stored data information set; and executing corresponding data carrying operation according to the data information.

Description

Information processing method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an information processing method, an information processing device and electronic equipment.
Background
With the increasing integration of System On Chip (SOC) chips, there are more and more slave devices mounted on Chip based on-Chip bus that are currently used, however, a large number of slave devices create huge management pressure for the processor master device on the bus. Further, since the master device generally responds one by one when processing the request information of the slave devices, when it is necessary to process the request information of a plurality of slave devices, the processing of the request information of the slave devices is liable to have a problem that the response is not timely.
Disclosure of Invention
An object of the embodiments of the present application is to provide an information processing method, an information processing device, and an electronic device, which can solve a problem in the related art that a response to request information of a slave device is not timely.
In order to solve the above technical problems, embodiments of the present application are implemented as follows:
in a first aspect, an embodiment of the present application provides an information processing method, applied to a DMA controller, where the method includes:
receiving request information sent by slave equipment, wherein the request information carries a first trigger identifier;
determining data information corresponding to the first trigger identifier from a pre-stored data information set;
and executing corresponding data carrying operation according to the data information.
In a second aspect, an embodiment of the present application provides an information processing apparatus, applied to a DMA controller, including:
the receiving module is used for receiving request information sent by the slave equipment, wherein the request information carries a first trigger identifier;
the determining module is used for determining data information corresponding to the first trigger identifier from a pre-stored data information set;
and the execution module is used for executing corresponding data carrying operation according to the data information.
In a third aspect, embodiments of the present application provide an electronic device comprising a DMA controller implementing the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions for execution by a processor to control a DMA controller to perform the steps of the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, the chip including a DMA controller and a communication interface, the communication interface being coupled to the DMA controller, the DMA controller implementing the method according to the first aspect.
In a sixth aspect, embodiments of the present application provide a computer program product stored in a storage medium, which when executed by a processor controls a DMA controller to implement a method according to the first aspect.
In the embodiment of the application, the request information sent by the slave device is received, the request information carries the first trigger identifier, the data information corresponding to the first trigger identifier is determined from the pre-stored data information set, and the corresponding data carrying operation is executed according to the data information. Therefore, after the DMA controller receives the first trigger identifier, the corresponding data information can be found from the pre-stored data information set, and then the corresponding data carrying operation is executed based on the data information.
Drawings
FIG. 1 is a flow chart of an information processing method provided in an embodiment of the present application;
fig. 2a is a hardware configuration diagram of an electronic device according to an embodiment of the present application;
fig. 2b is a schematic diagram of information loop processing provided in an embodiment of the present application.
FIG. 3 is one of the flowcharts of the information processing method provided in the embodiment of the present application;
FIG. 4 is a second flowchart of an information processing method according to an embodiment of the present disclosure;
FIG. 5a is one of the block diagrams of an information processing apparatus provided in the embodiment of the present application;
FIG. 5b is a second block diagram of an information processing apparatus according to an embodiment of the present application;
FIG. 5c is a third block diagram of the information processing apparatus according to the embodiment of the present application;
fig. 6 is a block diagram of an electronic device provided in an embodiment of the present application;
fig. 7 is a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or otherwise described herein, and that the objects identified by "first," "second," etc. are generally of a type and do not limit the number of objects, for example, the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
For a better understanding of the embodiments of the present application, the following terms are presented in terms of the embodiments of the present application:
a slave device (slave device) may be understood as a sub-module in a system on a chip for performing a specific task.
A master device (master device) may be understood as a task scheduling module in a system on a chip that issues instructions for individual slave sub-devices, such as a central processing unit (Central Processing Unit, CPU).
A direct memory access (Direct Memory Access, DMA) controller, which can be understood as a unique peripheral that transfers data inside the system, is used to achieve high speed data transfer between the bus device and the memory.
Alternatively, in the embodiment of the present application, the slave device, the master device, and the DMA controller are mounted on the same bus.
In the embodiment of the application, the DMA controller can take over the processing of the request information of a plurality of slave devices, so that the processing pressure of the master device for the request information is effectively released, and the risk of untimely response of the request information of the slave devices is reduced.
The information processing method provided by the embodiment of the application is described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is one of flowcharts of an information processing method provided in an embodiment of the present application. As shown in fig. 1, the information processing method may be applied to a DMA controller, and includes the steps of:
step 101, receiving request information sent by a slave device, wherein the request information carries a first trigger identifier.
In the step, in the working stage of the device, the slave device sends request information to the DMA controller at the trigger time of the task, wherein the request information can carry a first trigger identifier.
Wherein the request information may be understood as an interrupt request information. For example, for a multimedia chip, the trigger time may be understood as a frame completion signal sent after one frame of image processing is completed.
Specifically, the trigger time of a task may be understood as an interrupt request signal sent to the DMA controller after the device processes the current task, and triggers the next task.
The first trigger identifier may be a preset identifier associated with the data information.
The DMA controller can determine corresponding data information based on the first trigger mark carried in the request information by receiving the request information sent by the slave device, and further execute corresponding data carrying operation based on the data information.
The data handling operation may be instruction data required for the handling slave device to execute the corresponding task, or may be other data required for the handling slave device.
It is to be understood that in the embodiment of the present application, the handling content of the data handling operation is not particularly limited.
Therefore, the slave device can send the request information to the master device instead of directly sending the request information to the DMA controller, and the DMA controller executes corresponding data handling operation, so that the processing pressure of the master device for the request information is effectively released, and the risk of untimely response of the request information of the slave device is reduced.
Step 102, determining data information corresponding to the first trigger from a pre-stored data information set.
In this step, the data information set may be stored in advance in an on-chip Static Random-Access Memory (SRAM) inside the DMA controller.
In some embodiments, the data information sets may also be stored in a memory (memory) external to the DMA controller.
Wherein the data information set comprises at least one piece of data information, and one piece of data information comprises a data source address, a data destination address and a length of data.
Optionally, the data information set includes data information that is not itself required by the slave device in performing the corresponding task.
By way of example, a data information set may be understood as a list of address information with a length that is customizable, where each item of information in the list includes a first trigger (e.g., trigger 1), a data source address (e.g., src_addr1), a data destination address (e.g., dst_addr1), and a length of data (e.g., data_Length 1), as specifically described in Table 1.
TABLE 1
Figure BDA0004178018180000051
In this embodiment, after the DMA controller receives the request information sent by the slave device, the DMA controller may search for the data information corresponding to the first trigger from the data information set based on the first trigger carried in the request information, so as to execute the corresponding data handling operation based on the data source address, the data destination address, and the length of the data included in the data information.
For example, when the first trigger carried in the received request information is trigger 1 in table 1, the "src_addr1, dst_addr1, and data_Length1" queried in table 1 may be used as the data information corresponding to the trigger 1.
It is to be understood that the above data may include instruction data, operation data, image data, and the like. In the case where the data is instruction data, that is, in the case where the data information is instruction data information, the instruction data information includes an instruction data source address, an instruction data destination address, and a length of the instruction data.
And 103, executing corresponding data carrying operation according to the data information.
In this step, after the data information corresponding to the first trigger is found, the corresponding data handling operation may be performed based on the data information corresponding to the first trigger.
For example, the corresponding data handling operation may be performed based on the data source address, the data destination address, and the length of the data included in the data information.
In an exemplary embodiment, the slave device performs a corresponding task based on the instruction data information, in the case where the data information is instruction data information. That is, in the case where the conveyance content of the data conveyance operation is instruction data required by the slave device when executing the corresponding task, the slave device may execute the corresponding task based on the corresponding instruction data. For example, the slave device is an image processing IP core (Intellectual Property Core) and can perform corresponding image processing operations according to the transmitted instructions. If the slave device is a communication IP core, the corresponding data receiving and transmitting task can be performed.
Thus, through the data information set with the first trigger identifier similar to the data information set in the table 1, the host of the DMA controller for processing the request information of the slave device is realized, and the master device (central processing unit) only needs to load the relevant address information in the device initialization stage and then does not need to participate in other relevant tasks. In addition, the unique calibration of the specific data information is carried out through the first trigger identifier, so that the information synchronization between the slave device and the DMA controller is realized in a simple manner.
In the embodiment of the application, the request information sent by the slave device is received, the request information carries the first trigger identifier, the data information corresponding to the first trigger identifier is determined from the pre-stored data information set, and the corresponding data carrying operation is executed according to the data information. Therefore, after the DMA controller receives the first trigger identifier, the corresponding data information can be found from the pre-stored data information set, and then the corresponding data carrying operation is executed based on the data information.
Referring to fig. 2a, fig. 2a is a hardware configuration diagram of an electronic device according to an embodiment of the present application. As shown in fig. 2a, the electronic device includes a DMA controller, a data bus, and a plurality of slave devices, where the DMA controller may communicate with the plurality of slave devices through the data bus, so that the DMA controller may implement processing requirements of the plurality of slave devices for requesting information.
Optionally, before the receiving the request information sent by the slave device, the method further includes:
storing configuration information in the data information set;
the configuration information comprises a first trigger identifier and data information corresponding to the first trigger identifier.
In this embodiment, by storing configuration information including the first trigger and data information corresponding to the first trigger in the data information set in advance, the query determination efficiency of the corresponding data information can be improved.
Optionally, the data information set is stored in the DMA controller, thereby further improving the information acquisition efficiency.
The data information set is stored in the DMA controller, which can be understood as an initialization stage of the slave device function (for example, a camera application of the mobile phone is turned on, the mobile phone needs to initialize the multimedia chip first and then enables the camera function), and the processor writes data information corresponding to data required by the slave device (for example, a chip submodule (Intellectual Property, IP) with a specific function for a series of image processing included in one multimedia chip, decoding the IP and displaying the IP) to the DMA controller in the form of an address information list. If the data to be requested changes during operation of the slave device, the processor writes new data information (source address, destination address, data length) into the memory in the DMA.
Optionally, the determining the data information corresponding to the first trigger identifier from the pre-stored data information set includes:
under the condition that the first trigger identifier is a sequence identifier, N data identifiers corresponding to the sequence identifier are determined from a pre-stored data information set, and data information corresponding to each data identifier in the N data identifiers is acquired, wherein N is an integer larger than 1;
the executing the corresponding data handling operation according to the data information includes:
and according to the ordering relation of the N data identifiers in the sequence identifier, sequentially executing corresponding data carrying operation according to the data information corresponding to each data identifier.
In this embodiment, the identification type of the first trigger identifier may be identified, and in the case that the first trigger identifier is identified as the sequence identifier, N data identifiers corresponding to the sequence identifier are searched in the DMA controller, so that according to the ordering relationship of the N data identifiers in the sequence identifier, corresponding data handling operations are sequentially executed according to the data information corresponding to each data identifier, thereby implementing batch handling of data, and effectively improving the handling efficiency of data.
In an exemplary case, when the handling content of the data handling operation is instruction data of the slave device, the single trigger of the slave device and the batch handling can be realized in a sequence triggering manner, so that the data processing efficiency is effectively improved, and the overall timeliness is enhanced.
The data information set may include not only an address information list but also a sequence trigger list. Each item of information in the sequence trigger list has a unique sequence identifier (e.g. sequence identifier 1), and the information corresponding to the sequence identifier is not specific address information, but a group of identifier sequences (e.g. id0, id1, id2 …) and the number of trigger identifiers (e.g. seq_longt0) of the group of identifier sequences, see in particular table 2.
TABLE 2
Figure BDA0004178018180000081
For example, when the first trigger identifier carried in the request information sent by the slave device is a sequence identifier, the DMA controller sequentially executes corresponding data handling operations according to each data identifier in the N data identifiers corresponding to the sequence identifier until the data information corresponding to the last data identifier in the identifier sequence completes the corresponding data handling operations, and then ends the corresponding data handling flow. Optionally, the corresponding data information, namely the data source address, the data destination address and the length of the data, can be found through the data identification.
The data destination address can be understood as the address of the slave device, the N data destination addresses corresponding to the N data identifiers can be the addresses of N different slave devices, so that only one slave device is required to send a request through a preconfigured sequence trigger list, the N slave devices obtain data, the data carrying efficiency is improved, and the arbitration requirement when a plurality of slave devices apply for data simultaneously is reduced.
Optionally, the method further comprises:
transmitting target information to the slave device, wherein the target information comprises a second trigger identifier;
wherein the second trigger is used for enabling the slave device to send new request information.
In this embodiment, by sending the target information including the second trigger to the slave device, so that the slave device may send new request information based on the second trigger, that is, may implement chain processing of the request information or implement loop processing of the request information, thereby effectively increasing flexibility of data handling.
It will be appreciated that the configuration register in the slave device contains a trigger register for storing the trigger, and that the stored trigger is updated as new triggers are received.
The DMA controller may send the trigger identifier stored in the trigger identifier register to the DMA controller when the slave device needs to fetch new data, and the DMA controller may fetch corresponding data according to the trigger identifier to the slave device, that is, determine corresponding data information based on the trigger identifier, and then perform corresponding data handling operation according to the data information, so as to implement the corresponding data to the slave device.
In yet another embodiment, the content of the transfer acquired by the slave device according to the data transfer operation includes the trigger identifier of the next request of the slave device, and the trigger identifier of the next request is written into the trigger identifier register of the slave device. After the slave device finishes executing the current task, the slave device initiates the next request according to the trigger identifier of the next request stored in the trigger identifier register.
By the method, a chained request (data packet 0- > data packet 1- > data packet 2- > data packet 3 … - > data packet n) or a cyclic request (data packet 0- > data packet 1- > data packet 2- > data packet 3- > data packet 0) can be realized, so that the carrying flexibility is improved.
A typical register scheme is shown in table 3.
TABLE 3 Table 3
Figure BDA0004178018180000091
Figure BDA0004178018180000101
For example, a certain slave device needs to circularly execute a corresponding task based on 4 groups of instruction data, where the 4 groups of instruction data may be cmd1, cmd2, cmd3 and cmd4, cmd1 includes a trigger 2 corresponding to cmd2, cmd2 includes a trigger 3 corresponding to cmd3, cmd3 includes a trigger 3 corresponding to cmd4, and cmd4 includes a trigger 1 corresponding to cmd 1.
After receiving cmd1, the slave device updates the trigger identifier stored in the trigger identifier register of the slave device into a trigger identifier corresponding to cmd2, namely a trigger identifier 2, wherein the trigger identifier 2 is used for triggering the slave device to send request information corresponding to cmd2 after executing the task corresponding to cmd1 so as to start executing the task corresponding to cmd 2;
after receiving cmd2, the slave device updates the trigger identifier stored in the trigger identifier register of the slave device into a trigger identifier corresponding to cmd3, namely a trigger identifier 3 according to cmd2, wherein the trigger identifier 3 is used for triggering the slave device to send request information corresponding to cmd3 after executing the task corresponding to cmd2 so as to start executing the task corresponding to cmd 3;
after receiving cmd3, the slave device updates the trigger identifier stored in the trigger identifier register of the slave device into a trigger identifier corresponding to cmd4, namely a trigger identifier 4, wherein the trigger identifier 4 is used for triggering the slave device to send request information corresponding to cmd4 after executing the task corresponding to cmd3 so as to start executing the task corresponding to cmd 4;
after receiving cmd4, the slave device updates the trigger identifier stored in the trigger identifier register of the slave device to a trigger identifier corresponding to cmd1, namely, a trigger identifier 1 according to cmd4, wherein the trigger identifier 1 is used for triggering the slave device to send request information corresponding to cmd1 after executing the task corresponding to cmd4 so as to start executing the task corresponding to cmd 1.
The loop processing of the corresponding task can be realized based on the above-described procedure, which can be shown in fig. 2 b.
Referring to fig. 3, fig. 3 is one of flowcharts of an information processing method provided in an embodiment of the present application. As shown in fig. 3, the information processing method includes:
step 301, initializing an address list.
The above address list initialization can be understood as writing all data information required by the slave device to the DMA controller in the form of an address information list.
Step 302, waiting for a trigger time of the task.
The trigger time of the task can be understood as an interrupt request signal sent to the DMA controller after the device processes the current task, and triggers the next task.
The slave device sends request information to the DMA controller at the trigger time of the task, wherein the request information can carry a trigger identifier.
Step 303, detecting a trigger.
If the DMA controller detects a trigger, step 304 is executed; if no trigger is detected, execution returns to step 302.
Step 304, determining corresponding data information based on the trigger.
Wherein, the corresponding data information can be searched from the DMA controller based on the trigger identification.
Step 305, the DMA controller performs a corresponding data handling operation based on the data information.
After the corresponding data handling operation is performed, the process returns to step 302.
In the embodiment of the application, the request information sent by the slave device is received, the request information carries the first trigger identifier, the data information corresponding to the first trigger identifier is determined from the pre-stored data information set, and the corresponding data carrying operation is executed according to the data information. Therefore, after the DMA controller receives the first trigger identifier, the corresponding data information can be found from the pre-stored data information set, and then the corresponding data carrying operation is executed based on the data information.
Referring to fig. 4, fig. 4 is a second flowchart of an information processing method according to an embodiment of the present application. As shown in fig. 4, the information processing method includes:
step 401, initializing an address list.
The above address list initialization can be understood as writing all data information required by the slave device to the DMA controller in the form of an address information list.
Step 402, waiting for a trigger time of a task.
The trigger time of the task can be understood as an interrupt request signal sent to the DMA controller after the device processes the current task, and triggers the next task.
The slave device sends request information to the DMA controller at the trigger time of the task, wherein the request information can carry a sequence identifier.
Step 403, detecting the sequence identifier.
If a sequence identity is detected, then step 404 is performed; if no sequence identity is detected, execution returns to step 402.
Step 404, checking the sequence identifier, and reading the trigger identifier of the first position of the sequencing position corresponding to the sequence identifier.
For example, referring to table 2, the trigger at the first bit of the ordering position corresponding to sequence identification 1 is id0.
Step 405, the DMA controller executes a corresponding data handling operation based on the read data information of the trigger, and reads the trigger ordered in the next bit after the corresponding data handling operation is executed.
Step 406, detecting whether the currently read trigger is the last trigger in the sequence identifier.
If yes, go back to execute step 402; if not, go back to step 405.
In this embodiment of the present application, the DMA controller sequentially executes the corresponding data handling operations according to each of the N data identifiers corresponding to the sequence identifier until the data information corresponding to the last data identifier in the sequence identifier completes the corresponding data handling operation, and then ends the corresponding data handling flow. The method and the device have the advantages that only one slave device is required to send a request, N slave devices acquire data, data carrying efficiency is improved, and arbitration requirements of a plurality of slave devices for applying for data simultaneously are reduced.
According to the information processing method provided by the embodiment of the application, the execution subject can be an information processing device. In the embodiments of the present application, an information processing apparatus provided in the embodiments of the present application will be described by taking an example in which the information processing apparatus executes an information processing method.
Referring to fig. 5a, fig. 5a is a block diagram of an information processing apparatus provided in an embodiment of the present application. As shown in fig. 5a, the information processing apparatus 500 includes:
a receiving module 501, configured to receive request information sent by a slave device, where the request information carries a first trigger identifier;
a determining module 502, configured to determine data information corresponding to the first trigger identifier from a pre-stored data information set;
and the execution module 503 is configured to execute a corresponding data handling operation according to the data information.
Optionally, the determining module 502 determines N data identifiers corresponding to the sequence identifier from a pre-stored data information set, and obtains data information corresponding to each data identifier in the N data identifiers, where N is an integer greater than 1, specifically where the first trigger identifier is a sequence identifier;
the executing module 503 is specifically configured to sequentially execute corresponding data handling operations according to the ordering relationship of the N data identifiers in the sequence identifier and the data information corresponding to each data identifier.
Optionally, as shown in fig. 5b, the information processing apparatus 500 further includes:
a sending module 504, configured to send target information to the slave device, where the target information includes a second trigger identifier;
wherein the second trigger is used for enabling the slave device to send new request information.
Optionally, the data information includes a data source address, a data destination address, and a length of data.
Optionally, in the case that the data information is instruction data information, the slave device performs a corresponding task based on the instruction data information.
Optionally, as shown in fig. 5c, the information processing apparatus 500 further includes:
a storage module 505 for storing configuration information in the data information set;
the configuration information comprises a first trigger identifier and data information corresponding to the first trigger identifier.
The information processing apparatus in the embodiment of the present application may be an electronic device, or may be a component in an electronic device, for example, an integrated circuit or a chip. The electronic device may be a terminal, or may be other devices than a terminal. By way of example, the electronic device may be a mobile phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, mobile internet appliance (Mobile Internet Device, MID), augmented Reality (Augmented Reality, AR)/Virtual Reality (VR) device, robot, wearable device, ultra-Mobile Personal Computer, UMPC, netbook or personal digital assistant (Personal Digital Assistant, PDA), etc., and may also be a network attached storage (Network Attached Storage, NAS), personal computer (Personal Computer, PC), television (Television, TV), teller machine or self-service machine, etc., and the embodiments of the present application are not particularly limited.
The information processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The information processing device provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and can achieve the same technical effects, so that repetition is avoided, and details are not repeated here.
Optionally, as shown in fig. 6, the embodiment of the present application further provides an electronic device 600, including a DMA controller 601, where the DMA controller 601 implements each step of the above embodiment of the information processing method, and can achieve the same technical effects, so that repetition is avoided, and no further description is given here.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Referring to fig. 7, fig. 7 is a block diagram of an electronic device provided in an embodiment of the present application. As shown in fig. 7, the electronic device 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, processor 710, and DMA controller 711.
Those skilled in the art will appreciate that the electronic device 700 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 710 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than shown, or may combine certain components, or may be arranged in different components, which are not described in detail herein.
The DMA controller 711 receives request information sent by a slave device, where the request information carries a first trigger identifier; determining data information corresponding to the first trigger identifier from a pre-stored data information set; and executing corresponding data carrying operation according to the data information.
Optionally, the DMA controller 711 determines N data identifiers corresponding to the sequence identifier from a pre-stored data information set, and obtains data information corresponding to each data identifier in the N data identifiers, where N is an integer greater than 1, when the first trigger identifier is a sequence identifier; and according to the ordering relation of the N data identifiers in the sequence identifier, sequentially executing corresponding data carrying operation according to the data information corresponding to each data identifier.
Optionally, the DMA controller 711 sends target information to the slave device, the target information including a second trigger;
wherein the second trigger is used for enabling the slave device to send new request information.
Optionally, the data information includes a data source address, a data destination address, and a length of data.
Optionally, in the case that the data information is instruction data information, the slave device performs a corresponding task based on the instruction data information.
Optionally, the DMA controller 711 stores configuration information in the data information set;
the configuration information comprises a first trigger identifier and data information corresponding to the first trigger identifier.
The electronic device 700 including the DMA controller 711 can perform various processes for implementing the above-described embodiments of the information processing method, and achieve the same technical effects, and for avoiding repetition, a detailed description is omitted herein.
It should be appreciated that in embodiments of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, with the graphics processor 7041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes at least one of a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts, a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a first storage area storing programs or instructions and a second storage area storing data, wherein the first storage area may store an operating system, application programs or instructions (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like. Further, the memory 709 may include volatile memory or nonvolatile memory, or the memory 709 may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM), static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (ddr SDRAM), enhanced SDRAM (Enhanced SDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). Memory 709 in embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 710 may include one or more processing units; optionally, processor 710 integrates an application processor that primarily processes operations involving an operating system, user interface, application programs, and the like, and a modem processor that primarily processes wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, and when the program or the instruction is executed by the processor, the DMA controller is controlled to implement each process of the embodiment of the information processing method, and the same technical effects can be achieved, so that repetition is avoided, and no detailed description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes computer readable storage medium such as computer readable memory ROM, random access memory RAM, magnetic or optical disk, etc.
The embodiment of the application further provides a chip, the chip includes a DMA controller and a communication interface, the communication interface is coupled with the DMA controller, and the DMA controller implements each process of the above information processing method embodiment and can achieve the same technical effect, so as to avoid repetition, and no further description is provided herein. The communication interface and the DMA controller coupling may be understood as a DMA controller being mounted on a bus through a communication interface.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
The embodiments of the present application provide a computer program product, which is stored in a storage medium, and when executed by a processor of the program product, controls a DMA controller to implement each process of the embodiments of the information processing method described above, and can achieve the same technical effects, so that repetition is avoided, and detailed description is omitted herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), including several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (15)

1. An information processing method applied to a direct memory access DMA controller, the method comprising:
receiving request information sent by slave equipment, wherein the request information carries a first trigger identifier;
determining data information corresponding to the first trigger identifier from a pre-stored data information set;
and executing corresponding data carrying operation according to the data information.
2. The method of claim 1, wherein the determining data information corresponding to the first trigger from a pre-stored set of data information comprises:
under the condition that the first trigger identifier is a sequence identifier, N data identifiers corresponding to the sequence identifier are determined from a pre-stored data information set, and data information corresponding to each data identifier in the N data identifiers is acquired, wherein N is an integer larger than 1;
the executing the corresponding data handling operation according to the data information includes:
and according to the ordering relation of the N data identifiers in the sequence identifier, sequentially executing corresponding data carrying operation according to the data information corresponding to each data identifier.
3. The method according to claim 1, wherein the method further comprises:
transmitting target information to the slave device, wherein the target information comprises a second trigger identifier;
wherein the second trigger is used for enabling the slave device to send new request information.
4. A method according to any one of claims 1 to 3, wherein the data information comprises a data source address, a data destination address and a length of data.
5. A method according to any one of claims 1 to 3, wherein in case the data information is instruction data information, the slave device performs a corresponding task based on the instruction data information.
6. A method according to any one of claims 1 to 3, wherein prior to said receiving the request information sent from the device, the method further comprises:
storing configuration information in the data information set;
the configuration information comprises a first trigger identifier and data information corresponding to the first trigger identifier.
7. An information processing apparatus, characterized by being applied to a DMA controller, comprising:
the receiving module is used for receiving request information sent by the slave equipment, wherein the request information carries a first trigger identifier;
the determining module is used for determining data information corresponding to the first trigger identifier from a pre-stored data information set;
and the execution module is used for executing corresponding data carrying operation according to the data information.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the determining module is specifically configured to determine N data identifiers corresponding to the sequence identifier from a pre-stored data information set, and obtain data information corresponding to each data identifier in the N data identifiers, where N is an integer greater than 1, when the first trigger identifier is the sequence identifier;
the execution module is specifically configured to sequentially execute corresponding data handling operations according to the ordering relationship of the N data identifiers in the sequence identifier and the data information corresponding to each data identifier.
9. The apparatus of claim 7, wherein the apparatus further comprises:
the sending module is used for sending target information to the slave equipment, wherein the target information comprises a second trigger identifier;
wherein the second trigger is used for enabling the slave device to send new request information.
10. The apparatus according to any one of claims 7 to 10, wherein the data information comprises a data source address, a data destination address, and a length of data.
11. The apparatus according to any one of claims 7 to 10, wherein in the case where the data information is instruction data information, the slave device performs a corresponding task based on the instruction data information.
12. The apparatus according to any one of claims 7 to 10, further comprising:
the storage module is used for storing configuration information in the data information set;
the configuration information comprises a first trigger identifier and data information corresponding to the first trigger identifier.
13. An electronic device comprising a DMA controller implementing the steps of the information processing method according to any one of claims 1 to 6.
14. A readable storage medium having stored thereon a program or instructions which, when executed by a processor, control a DMA controller to carry out the steps of the information processing method according to any one of claims 1 to 6.
15. A chip, characterized in that the chip comprises a DMA controller and a communication interface, the communication interface and the DMA controller being coupled, the DMA controller implementing the steps of the information processing method according to any of claims 1 to 6.
CN202310397272.9A 2023-04-14 2023-04-14 Information processing method and device and electronic equipment Pending CN116414744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310397272.9A CN116414744A (en) 2023-04-14 2023-04-14 Information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310397272.9A CN116414744A (en) 2023-04-14 2023-04-14 Information processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116414744A true CN116414744A (en) 2023-07-11

Family

ID=87059284

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310397272.9A Pending CN116414744A (en) 2023-04-14 2023-04-14 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116414744A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117971743A (en) * 2024-03-28 2024-05-03 天津大学四川创新研究院 Embedded platform synchronous communication system and method based on bus structure

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117971743A (en) * 2024-03-28 2024-05-03 天津大学四川创新研究院 Embedded platform synchronous communication system and method based on bus structure
CN117971743B (en) * 2024-03-28 2024-06-18 天津大学四川创新研究院 Embedded platform synchronous communication system and method based on bus structure

Similar Documents

Publication Publication Date Title
JP7322254B2 (en) System and method for assigning tasks in a neural network processor
CN108304334B (en) Application processor and integrated circuit including interrupt controller
CN107315566B (en) Apparatus and method for performing vector circular shift operation
CN108038112B (en) File processing method, mobile terminal and computer readable storage medium
US9703603B1 (en) System and method for executing accelerator call
CN107315563B (en) Apparatus and method for performing vector compare operations
CN105335309B (en) A kind of data transmission method and computer
US11803490B2 (en) Apparatus and method for data transmission and readable storage medium
JP6998991B2 (en) Information processing methods and equipment
CN111258935A (en) Data transmission device and method
US9424651B2 (en) Method of tracking marker and electronic device thereof
CN116414744A (en) Information processing method and device and electronic equipment
CN111651202A (en) Device for executing vector logic operation
Yang et al. Shortening the boot time of android os
US9792225B2 (en) Host and computer system having the same
WO2023226845A1 (en) Image data transmission method and apparatus, and electronic device
CN111258769B (en) Data transmission device and method
US9589126B2 (en) Lock control method and electronic device thereof
CN107609119B (en) File processing method, mobile terminal and computer readable storage medium
CN108415655B (en) Touch data processing method and device, all-in-one machine and storage medium
CN114070892A (en) Data transmission method and device
KR20150116720A (en) Memory System and Electronic device including memory system
KR101134464B1 (en) Method and apparatus for providing network asynchronous input/output processing
US20240064202A1 (en) Methods and apparatus to synchronize touch events
CN112506815B (en) Data transmission method and data transmission device

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