Title of Invention

METHOD AND SYSTEM FOR EFFICIENT MULTIPROCESSOR PROCESSING IN A MOBILE WIRELESS COMMUNICATION DEVICE

Abstract A method in a multiprocessor system having a plurality of hardware processors in a mobile wireless device, each hardware processor capable of processing at least one queue for processing at least one service application, and at least one task comprising at least one of the at least one queue, the method comprising the steps of: delegating a service application from a first hardware processor of the plurality of hardware processors to a queue of the at least one queue of a second hardware processor of the plurality of hardware processors; evaluating the queue of the second hardware processor according to a flow control criteria that utilizes a hysteresis effect and comprises a variable capacity threshold for each queue; processing the service application at the second hardware processor upon satisfying the flow control criteria; and rejecting the service application at the second hardware processor upon failing to satisfy the flow control criteria wherein the service application is selected among mobile wireless device applications in the mobile wireless device; and wherein the flow control criteria comprising the variable capacity threshold for each queue eliminates oscillations that occur when increasing and decreasing the queue of the at least one queue around the variable capacity threshold.
Full Text The present invention relates to method and system for efficient multiprocessor processing in a mobile wireless communication device.
BACKGROUND OF THE INVENTION
[0002] Emerging mobile communications are increasingly multi-media rich and often involve concurrent processing and memory intensive operations like location-based services, navigation services, video (recording, playback, streaming), text-to-speech synthesizers, and speech recognition, just to name a few.
[0003] To address these applications, designers of mobile devices are employing multi-processor architectures such as, for example, an ARM (Advanced Risk Machines) combined, or integrated, with a similar processor intercommunicating with conventional inter-processor protocols.
[0004] The foregoing architecture suffers from poor processing efficiency when sharing software service applications in a multiprocessor system. Embodiments in accordance with the invention presented below overcomes this deficiency.
SUMMARY OF THE INVENTION
[0005] Embodiments in accordance with the invention provide an apparatus and method for substantially improving the efficiency of a multiprocessor system.
[0006] In a first embodiment of the present invention, a multiprocessor system has a plurality of processors, each processor capable of processing at least one queue of at least one service application, and at least one task comprising at least one of the at least one queue. The multiprocessor system includes a method comprising the steps of delegating a service application from a first processor of the plurality of processors to a queue of the at least one queue of a second processor of the plurality of processors, evaluating the queue of the second processor according to flow control criteria, processing the service application at the second processor upon satisfying the
flow control criteria, and rejecting the service application at the second processor upon failing to satisfy the flow control criteria.
[0007] In a second embodiment of the present invention, a multiprocessor system has a plurality of processors, each processor capable of processing at least one queue of at least one service application, and at least one task comprising at least one of the at least one queue. A first processor and a second processor of the plurality of processors is programmed to delegate a service application from the first processor to a queue of the at least one queue of the second processor, evaluate the queue at the second processor according to flow control criteria, process the service application at the second processor upon satisfying the flow control criteria, and reject the service application at the second processor upon failing to satisfy the flow control criteria. [0008] In a third embodiment of the present invention, a mobile device has a multiprocessor system including a plurality of processors, each processor capable of processing at least one queue of at least one service application, and at least one task comprising at least one of the at least one queue. A first processor and a second processor of the plurality of processors are programmed to receive and transmit messages by way of the transceiver to a communication system, delegate a service application from the first processor to a queue of the at least one queue of the second processor, evaluate the queue at the second processor according to flow control criteria, process the service application at the second processor upon satisfying the flow control criteria, and reject the service application at the second processor upon failing to satisfy the flow control criteria.
BRIEF DESCRIPTION OF THE DRAWINGS
[0009] FIG. 1 is an illustration of a communication system communicating with a number of mobile devices according to an embodiment of the present invention. [0020] FIG. 2 is a detailed view of a mobile device according to an embodiment of the present invention.
[0021] FIG. 3 is detailed view of the processing system according to an embodiment of the present invention.

[0022] FIG. 4 is a block diagram of a software architecture applied to each
processor according to an embodiment of the present invention.
[0023] FIG. 5 is a diagram illustrating a variable capacity threshold according to
an embodiment of the present invention.
[0024] FIG. 6 is a flow chart depicting a method for improving the processing
efficiency of service applications operating in the mobile device according to an
embodiment of the present invention.
DETAILED DESCRIPTION OF THE DRAWINGS
[0015] While the specification concludes with claims defining the features of embodiments of the invention that are regarded as novel, it is believed that the embodiments of the invention will be better understood from a consideration of the following description in conjunction with the figures, in which like reference numerals are carried forward.
[0016] FIG. 1 is an illustration of a communication system 100 communicating with a number of mobile devices 106 according to an embodiment of the present invention. The communication system 100 is a conventional wireless network comprising a plurality of radio base stations 104, each covering a geographic cell site 102, which in the aggregate cover, for example, a metropolitan area. [0017] In this system 100, the mobile device 106 can take the form of a conventional cellular phone, or other radio communications device (e.g., a wireless PDA coupled to a wireless local area network). It would obvious to one of ordinary skill in the art, however, that the invention is applicable to a non-wireless mobile device 106 such as, for example, portable gaming device (e.g., GameBoyâ„¢), DVD video players, and so on. More broadly speaking, the invention discussed below is applicable to any mobile device 106 having an efficient multiprocessor system as depicted by a method 600 illustrated in FIG. 6 to be described shortly. [0018] For illustration purposes only, the discussion below will focus on a mobile device 106 with wireless capability. All alterations and additions to the proceeding description of the invention leading to an equivalent structure, that is, a structure that

presents the same function, way and result as the embodiments described herein is intended to be within the scope and spirit of the claims below. [0019] FIG. 2 shows a detailed view of the mobile device 106 according to an embodiment of the present invention. The mobile device 106 comprises conventional components such as a wireless transceiver 202, a display 204, an input/output port 208, a battery supply 210, and an audio system 212. The hashed line next to the wireless transceiver 202 represents an alternative embodiment characterized by a non-wireless mobile device 106 such as described above.
[0020] The processing system 206 is the processing center for the mobile device 106, which controls operations of the foregoing components 202-212. The processing system 206 controls singly or concurrently voice processing (e.g., voice calls), multimedia processing (video MPEG 4 player), data message processing (e.g., application downloads, short message system exchanges, etc.), and other house-keeping functions of the mobile device 106. The processing system 206 uses an operating system for distributing service applications in a manner consistent with method 600 of FIG. 6. Service applications can represent all inclusive software algorithms (e.g., an MPEG 4 video decoder), or portions thereof subdivided into tasks (e.g., input/output drivers, display drivers, etc.) and/or primitive instructions such as microcode. [0021] FIG. 3 shows a detailed view of the processing system 206, comprising a conventional memory 302, a plurality of processors 304-306 (shown by way of example as first and second processors) and an inter-processor manager 308 according to an embodiment of the present invention. The memory 302 can be a single or a combination of conventional memory devices (e.g., dynamic random access memory, flash memory, etc.) operated on individually or jointly by the elements 304-308 of the processing system 206.
[0022] The plurality of processors 304-306 employ conventional processing elements such as, for example, an ARM processor. The inter-processor manager 308 can comprise a conventional application specific integrated circuit (ASIC), a microprocessor, a state machine, or other processing means that is capable of operating according to the method 600 of FIG. 6. Alternatively, the processing function of the inter-processor manager 308 can take the form of hardware, software

or combinations thereof operating in whole or in part from the first or second processors 304, or independent hardware.
[0023] The processing elements 302-308 of the processing system 206 are interconnected by a conventional communication bus 310. The construction of the bus 310 can be physical or logical. In the former, the physical connection can be a conventional serial or parallel bus for transmitting signals between devices sourced by a conventional transceiver (e.g., universal asynchronous receiver transmitter - UART, or universal serial bus - USB driver). Alternatively, a portion or whole of the communication bus 310 can represent a logical connection such as software components sharing data structures. The processing elements 302-308 coupled to the communication bus 310 can be represented in a single integrated circuit (1C) device with sub-elements operating therein, or a combination of ICs, each operating as a corresponding one of the elements 302-308 of the processing system 206. [0024] FIG. 4 is a block diagram of a software architecture 400 applied to each processor 304-306 according to an embodiment of the present invention. The software architecture 400 comprises at least one task. In the present example, however, a number of tasks 402A-402N are shown in FIG. 4. Each task 402 comprises at least one queue 404 for processing at least one service application. In the present example, a number of queues 404A-404N are shown. The second processor 306 can have any number and combination of tasks 402 and corresponding service queues 404.
[0025] FIG. 6 is a flow chart depicting a method 600 for substantially improving the processing efficiency of service applications operating in the mobile device 106 according to an embodiment of the present invention. We begin with step 602, where the first and second processors 304-306 of the mobile device 106 are programmed to delegate a service application from the first processor 304 to a queue 404 of the second processor 306. The rationale for this delegation can be, for instance, the first processor 304 running out of processing capacity for a particular task 402 or sub-task (represented by a particular queue 404).
[0025] In step 604, the queue 404 of the second processor 306 is evaluated according to flow control criteria. In a first embodiment, the evaluation step can take

place at the inter-processor manager 308. Alternatively, the evaluation step can take place at the second processor 306. It will be appreciated by one of ordinary skill in the art that the method 600 described herein can be distributed to the processors 304-306, centralized in the inter-processor manager 308, or any combinations thereof. [0026] Returning to step 604, the flow control criteria can include a capacity threshold for each queue 404. The capacity threshold indicates the capacity of the queue 404 for processing service applications. In one embodiment, the service application is processed in step 608 by the second processor 306 if at decision block 606 it is determined that the capacity threshold of the queue 404 is not exceeded (i.e., the flow control criteria has been satisfied). On the other hand, the service application is rejected by the second processor 306 in step 610 upon determining at decision block 606 that the capacity threshold of the queue 404 has been exceeded. This embodiment reflects a fixed capacity threshold for managing the capacity of the queues 404. [0027] Alternatively, the capacity threshold can be variable. In such an embodiment, the capacity threshold can follow a hysteresis effect as demonstrated by the graph 500 of FIG. 5. In FIG. 5, the queue 404A (of FIG. 4) has three thresholds LO 502, MID 506 and HI 508. The LO 502 threshold represents an empty or nearly empty queue 502. The MID 506 threshold represents a half-full or nearly half-full queue 402A. And the HI 508 threshold represents a full or nearly full queue 404A. [0028] During operation, the queue 404A begins to fill with service applications received by the second processor 306. This process is represented as a capacity level 503A. As the capacity level 503A traversing the MID 506 threshold, a new capacity level 503B is created. The new capacity level 503B is artificially created so that in the process of reducing the capacity level represented by 504A (i.e., capacity level 503B in the reverse direction) more than one service application must be processed by the second processor 306 before reaching the MID 506 threshold. When reduction in the queue 404A reaches the MID 506 threshold, the capacity level 504A jumps to the capacity level 504B. From this point, increases in the size of the queue 404A again requires receiving more than one service application to reach the MID 506 threshold, thereby restarting the cycle described above.

[0029] The hysteresis effect demonstrated in FIG. 5 has the benefit of eliminating oscillations that can occur when increasing and decreasing the queue 404A around the MID 506 threshold. Using the MID 506 threshold as flow control criteria for managing the queues 404 of tasks 402 has the added benefit of a more stable environment for managing the queues 404 of each of the processors 304-306 by way of suspend and resume commands submitted in step 610.
[0030] In step 610, the second processor 306 submits a suspend command to the inter-processor manager 308, which in turn synchronizes the first processor 304 according to the suspend command. The suspend command indicates a corresponding one of a group of processing elements comprising the second processor 306, one or more tasks 402, and one or more associated queues 404 is no longer available to process service applications.
[0031] For the case where the suspend command corresponds to the second processor 306, all tasks 402 and associated queues 404 would no longer be available to process service applications from the first processor 304. Where the suspend command corresponds to one or more tasks 402, all associated queues 404 of the one or more tasks 404 would no longer be available for processing service applications from the first processor 304. This embodiment, however, leaves room for other tasks 402 and associated queues 404 of the second processor 306 to potentially process service applications from the first processor 304.
[0032] Where a suspend command represents one or more queues 404 of a particular task 402, the queues 404 identified are no longer available to process service applications from the first processor 304. This embodiment, however, leaves room for other queues 404 within the selected task 402 to receive service applications from the first processor 304.
[0033] Reestablishing reception of service applications at the corresponding one of the group of processing elements mentioned above occurs upon satisfying the flow control criteria as described above. When this happens, the second processor 306 submits a resume command to the inter-processor manager 308 indicating the corresponding one of the group of processing elements is available to process service applications, which in turn synchronizes the first processor 304 according to the

resume command. In an alternative embodiment where the inter-processor manager 308 is not used, the suspend and resume commands are transmitted from the second processor 306 to the first processor 304.
[0034] The variable capacity level utilizing a hysteresis behavior as described above provides a stable environment for managing queues 404 using suspend and resume commands. The system designer of the processing system 206 can select the MID 504 threshold and hysteresis range defined by boundaries 504-505 for each queue 404 in a manner that optimizes the overall performance of the system. Alternatively, this threshold and variable range can be dynamically altered by each of the queues 404 according to historical usage and performance of service applications processed in each queue 404. This processing can also take place in the inter-processor manager 308 monitoring the plurality of processors. [0035] Referring back to step 602, the first processor 304 can be programmed to request an update regarding the capacity of the queue 404 of the second processor 306 before delegating the service application thereto. Alternatively, the first processor 304 can be programmed to request an update from a plurality of processors exceeding two, thereby selecting an optimal processor (e.g., the second processor 306) according to the status of the queue(s) 404 operating in said processor.
[0036] In yet another embodiment, the inter-processor manager 308 can request an update from the queue 404 of each processor, and submit an aggregate update to the processors representing the capacity of each of the queues of the plurality of processors. The aggregate update can then be used by the first processor 304 to select an optimal resource for processing the service application.
[0037] In an alternative embodiment, one or more of the processors (e.g., a third processor, not shown in FIG. 3) can autonomously submit an update regarding the capacity of its queue(s) 404 to the plurality of processors in the processing system 206. Where an inter-processor manager 308 is used, the update can be submitted to the plurality of processors for later dissemination.
[0038] It should be evident from the foregoing embodiments that each improves the effectiveness of the first processor 304 in selecting an available resource for processing the service application. In addition, it would be appreciated by one of

ordinary skill in the art that the frequency or periodicity of these updates can be adjusted statically, dynamically or a combination thereof according to the needs of the processing system 206.
[0039] Referring back to step 610, the second processor 306 can be programmed to negotiate with the first processor 304 processing of the service application. Negotiations can entail, for instance, postponing acceptance or rejection of the service application and re-delegating the service application to another one of the plurality of processors in the processing system 206. In either case, the negotiations serves as a means to obtain additional time for processing and reducing the size of the queue(s) 404 of the second processor 306.
[0040] In light of the foregoing description, it should be recognized that embodiments in the present invention could be realized in hardware, software, or a combination of hardware and software. These embodiments could also be realized in numerous configurations contemplated to be within the scope and spirit of the claims below. It should also be understood that the claims are intended to cover the structures described herein as performing the recited function and not only structural equivalents. The claims are sufficiently general to include equivalent structures. [0041] For example, a software implementation of a method and a hardware implementation of the same method can not be structural equivalents in that the software implementation is dependent on a processing system for execution, while the hardware implementation may have self-contained processing means. It is well known in the art, however, that software and hardware implementations may be designed to be equivalent structures generating the same results. Accordingly, all equivalent modifications and additions to the description above are intended to be inclusive of the scope the following claims. [0042] what is claimed is:






We claim:
1. A method in a multiprocessor system having a plurality of hardware processors in a
mobile wireless device, each hardware processor capable of processing at least one queue for
processing at least one service application, and at least one task comprising at least one of the at
least one queue, the method comprising the steps of:
delegating a service application from a first hardware processor of the plurality of hardware processors to a queue of the at least one queue of a second hardware processor of the plurality of hardware processors;
evaluating the queue of the second hardware processor according to a flow control criteria that utilizes a hysteresis effect and comprises a variable capacity threshold for each queue;
processing the service application at the second hardware processor upon satisfying the flow control criteria; and
rejecting the service application at the second hardware processor upon failing to satisfy the flow control criteria
wherein the service application is selected among mobile wireless device applications in the mobile wireless device; and
wherein the flow control criteria comprising the variable capacity threshold for each queue eliminates oscillations that occur when increasing and decreasing the queue of the at least one queue around the variable capacity threshold.
2. The method of claim 1, further comprising the steps of:
processing the service application at the second hardware processor if the variable capacity threshold of the queue is not exceeded; and
rejecting the service application at the second hardware processor upon exceeding the variable capacity threshold of the queue,
wherein the variable capacity threshold is varied according to historical usage and performance of service applications.
3. The method of claim 2, wherein the variable capacity threshold is variable to manage the queues of the hardware processors by way of suspend and resume commands in a stable manner.
4. The method of claim 1, comprising the steps of:
submitting a suspend command from the second hardware processor to the plurality of hardware processors indicating a corresponding one of a group of processing elements is no longer available to process service applications, wherein the corresponding one of a group of processing elements comprises the second hardware processor, the queue, or a task of the at least one task of the second hardware processor corresponding to the queue; and
upon reestablishing the flow control criteria, submitting a resume command from the second hardware processor to the plurality of hardware processors indicating the corresponding one of the group of processing elements is available to process service applications
wherein the submitting of the suspend command and the submitting of the resume command manage the at least one queue and corresponding at least one task by increasing and decreasing the size of the at least one queue of the at least one service application.
5. The method of claim 1, further comprising the step of requesting at the first hardware processor an update regarding the capacity from the queue of the second hardware processor prior to delegating the service application thereto.
6. The method of claim 1, further comprising the step of requesting at the first hardware processor an update regarding the capacity from the at least one queue of the plurality of hardware processors prior to selecting the second hardware processor to process the service application.
7. The method of claim 1, wherein the multiprocessor system further comprises an inter-processor manager, and wherein the method further comprises the steps of:
requesting at the inter-processor manager an update regarding the capacity from the at least one queue of each hardware processor; and
submitting from the inter-processor manager an aggregate update to the plurality of hardware processors, the aggregate update representing the update received from each hardware processor.
8. The method of claim 1, wherein the multiprocessor system further comprises an inter-
processor manager, and wherein the method further comprises the steps of:
submitting a suspend command from the second hardware processor to the inter-processor manager indicating a corresponding one of the group comprising the second hardware processor, the queue, and a task of the at least one task of the second hardware processor corresponding to the queue is no longer available to process service applications;
synchronizing at the inter-processor manager the second hardware processor according to the suspend command;
upon reestablishing flow control criteria, submitting a resume command from the second hardware processor to the inter-processor manager indicating the corresponding one of the group is available to process service applications; and
synchronizing at the inter-processor manager the second hardware processor according to the resume command
wherein the submitting of the suspend command and the submitting of the resume command manage the at least one queue and corresponding at least one task by increasing and decreasing the size of at least one queue of the second hardware processor.
9. The method of claim 1, further comprising the step of submitting from a third hardware processor of the plurality of hardware processors an update to the plurality of hardware processors of the at least one queue of the third hardware processor.
10. The method of claim 1, further comprising the steps of:
processing the service application at the second hardware processor if the capacity threshold of the queue is not exceeded; and
negotiating between the second hardware processor and the first hardware processor processing of the service application upon exceeding the capacity threshold of the queue.
11. The method of claim 10, wherein the negotiating step further comprises the step of submitting to the first hardware processor among one of a group of negotiation options comprising postponing rejection or acceptance of the service application, and re-delegating the service application to another one of the plurality of hardware processors.

Documents:

3375-DELNP-2007-Abstract-(29-05-2012).pdf

3375-delnp-2007-abstract.pdf

3375-DELNP-2007-Assignment-(21-12-2011).pdf

3375-DELNP-2007-Claims-(29-05-2012).pdf

3375-delnp-2007-claims.pdf

3375-DELNP-2007-Correspondence Others-(29-05-2012).pdf

3375-DELNP-2007-Correspondence-Others-(21-12-2011).pdf

3375-delnp-2007-correspondence-others-1.pdf

3375-delnp-2007-correspondence-others.pdf

3375-DELNP-2007-Description (Complete)-(29-05-2012).pdf

3375-delnp-2007-description (complete).pdf

3375-DELNP-2007-Drawings-(29-05-2012).pdf

3375-delnp-2007-drawings.pdf

3375-DELNP-2007-Form-1-(29-05-2012).pdf

3375-delnp-2007-form-1.pdf

3375-delnp-2007-form-18.pdf

3375-DELNP-2007-Form-2-(29-05-2012).pdf

3375-delnp-2007-form-2.pdf

3375-DELNP-2007-Form-3-(29-05-2012).pdf

3375-delnp-2007-form-3.pdf

3375-delnp-2007-form-5.pdf

3375-DELNP-2007-GPA-(21-12-2011).pdf

3375-DELNP-2007-GPA-(29-05-2012).pdf

3375-delnp-2007-pct-210.pdf

3375-delnp-2007-pct-304.pdf

3375-DELNP-2007-Petition-137-(29-05-2012).pdf


Patent Number 259701
Indian Patent Application Number 3375/DELNP/2007
PG Journal Number 13/2014
Publication Date 28-Mar-2014
Grant Date 24-Mar-2014
Date of Filing 07-May-2007
Name of Patentee MOTOROLA MOBILITY, INC.
Applicant Address 1303 EAST ALGONQUIN ROAD,SCHAUMBURG, ILLINOIS 60196, UNITED STATES OF AMERICA.
Inventors:
# Inventor's Name Inventor's Address
1 CHARBEL KHAWAND 13411 S.W. 2ND STREET, MIAMI, FLORIDA 33184, USA
2 RAZIUDDIN ALI 1702 ROYAL GROVE WAY, WESTON, FLORIDA 33327, USA
3 MAYRA ZAYAS 16159 S.W. 2ND DRIVE, PEMBROKE PINES, FLORIDA 33027, USA
PCT International Classification Number G06F 9/44
PCT International Application Number PCT/US2005/040040
PCT International Filing date 2005-11-07
PCT Conventions:
# PCT Application Number Date of Convention Priority Country
1 10/988,062 2004-11-13 U.S.A.