GB2440689A - Allocation of data storage in a multithreaded data storage system - Google Patents

Allocation of data storage in a multithreaded data storage system Download PDF

Info

Publication number
GB2440689A
GB2440689A GB0720214A GB0720214A GB2440689A GB 2440689 A GB2440689 A GB 2440689A GB 0720214 A GB0720214 A GB 0720214A GB 0720214 A GB0720214 A GB 0720214A GB 2440689 A GB2440689 A GB 2440689A
Authority
GB
United Kingdom
Prior art keywords
data
data storage
execution
code
storage means
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.)
Withdrawn
Application number
GB0720214A
Other versions
GB0720214D0 (en
Inventor
John Howson
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.)
Imagination Technologies Ltd
Original Assignee
Imagination Technologies 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
Priority claimed from GBGB0519597.9A external-priority patent/GB0519597D0/en
Application filed by Imagination Technologies Ltd filed Critical Imagination Technologies Ltd
Priority to GB0720214A priority Critical patent/GB2440689A/en
Publication of GB0720214D0 publication Critical patent/GB0720214D0/en
Publication of GB2440689A publication Critical patent/GB2440689A/en
Withdrawn legal-status Critical Current

Links

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/1605Handling requests for interconnection or transfer for access to memory bus based on arbitration
    • 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
    • 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/38Concurrent instruction execution, e.g. pipeline, look ahead
    • G06F9/3836Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution
    • G06F9/3851Instruction issuing, e.g. dynamic instruction scheduling or out of order instruction execution from multiple instruction streams, e.g. multistreaming
    • 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/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Abstract

A multithreaded data processing system includes data storage means 1036. Data masters 1001 issue data service requests to Data Master Selection (DMS) unit 1006. DMS 1006 selects a data master 1001 in dependence upon the availability of data storage resource within data storage means 1036. After selecting a data master, the DMS allocates the required data storage, updates resource manager 1002, and passes the selected data master's request to Programmable data sequencer (PDS) 1004. PDS 1004 is supplied with a code execution address by the selected data master. Code executed from the code execution address causes data to be written to the data storage means 1036. Execution of the code may generate data directly to data store 1036 or fetch data from memory via DMA unit 1008. PDS 1004 may be a programmable processor or implemented as a thread. The invention may be applied to a tile-based rendering system (Fig. 7) for processing video and 3-dimensional computer graphics.

Description

<p>Scalable Multi-threaded Media Processing Architecture This invention
relates to a system capable of processing multi-media data such video and 3-dimensional computer graphics and in particular to methods of processing multiple parallel streams of such data within a scalable multi-threaded environment.</p>
<p>Background of Invention</p>
<p>International patent application number W097/38372 (the contents of which are incorporated herein by reference) describes a system for processing multiple real time data sources through a multi-threaded media processing core. The processing core handles a number of execution threads of instructions. A determination is made as to which thread has the highest priority for execution and execution is formed on that thread in accordance with this.</p>
<p>International patent application number W002/0671 16 entitled to control a priority lead structure on a multi-threaded processor (the contents of which are incorporated herein by reference) elaborates further on the arbitration schemes which are possible between different executing threads. It provides a method apparatus for controlling execution rates for instruction threads. The rate at which instructions are to be executed is stored and requests are issued to cause instruction to execute in response to the stored rate. The stored rate is reduced in response to execution of instructions and increased in the absence of instructions for execution. Furthermore, instruction rate is controlled by storing the average rate at which each thread should execute instructions. A value representing the number of instructions available not yet issued is monitored and decreased in response to instruction execution. Also, a ranking order can be assigned to a plurality of instruction threads using a plurality of metrics relating to the threads.</p>
<p>In a further development, a technique known as Enhanced interleaved multi-threading' works by maintaining a superset of execution threads from which a subset is maintained as active. The number of active threads is determined by the latency of the execution unit to which they are issuing instructions. Threads are then swapped between the active subset and the superset based on resource dependencies, i.e., if an</p>
<p>I</p>
<p>active thread is waiting for the data to be returned from memory it will be swapped for a currently inactive one that is ready to proceed.</p>
<p>Summary of the Invention</p>
<p>Preferred embodiments of the present invention provide a system which enables a multi-threaded processing pipeline to be used to processes multiple input data streams that represent bulk non real time data sources in a manner that maximises latency absorption and utilisation of pipeline processing resource by using a multi-phased approach to scheduling.</p>
<p>This is performed by using a three phase scheduling system which differentiates the management of data storage within the processing pipeline from the allocation of processing threads within the same pipeline and the scheduling of instructions based on execution resource conflicts.</p>
<p>In accordance with an embodiment of a first aspect of the invention there is provided a method for processing multiple streams of data on a plurality of execution threads comprising the steps of selecting data from at least one of a plurality of data sources in dependence on the availability of storage in a data storage means, allocating an address in the data storage means for the data thus selected, loading selected data at the data address thus allocated, constructing an execution task comprising the selected data source, the data address, and an execution address, queuing the task with other previously constructed tasks, determining which processing resources are required for each task, selecting tasks for execution in dependence on the processing resources available, distributing tasks selected for execution across a plurality of processing threads, determining whether any of the threads will stall because of data dependencies, repeatedly selecting a subset of threads to be active that will not stall due to said data dependencies, and, executing active thraeds.</p>
<p>Preferably an embodiment includes a means for scheduling tasks based on available resource.</p>
<p>Preferably an embodiment includes a means for avoiding prolonged blocking in a data source.</p>
<p>Preferably an embodiment includes a method for loading data into a unified storage area by way of a programmable data sequencer.</p>
<p>Preferably an embodiment may be modified such that the programmable data sequencer is provided on a data processing thread.</p>
<p>Preferably an embodiment provides a method for ensuring data is processed in the correct order.</p>
<p>Preferably the method may be embodied in a tile based rendering system.</p>
<p>Preferably the programmable data sequencer is used for texture coordinate iteration and texture fetches through the system.</p>
<p>Preferably embodiments of the invention are scalable by the different multi processors cores (wherein each multi processor core is matched to a different sector of a tile, the tile size may be adjusted based on the number of attached pipelines, the vertex data is distributed evenly across the pipelines using a pre-scheduling block, and a vent processor is distributed evenly across the pipelines also by a pre-scheduling block).</p>
<p>In accordance with an embodiment of a further aspect of the invention there is provided, a method for allocating data storage in a multithreaded data processing system comprising the steps of selecting data from one of a plurality of data sources in dependence on the availability of data storage, supplying a code execution address to a programmable data sequencer, executing code from the code execution address to cause data to be written to the data storage means.</p>
<p>Brief Description of the Drawings</p>
<p>Preferred embodiments of the invention will now be described in detail by way of example with reference to the accompanying drawings in which: Figure 1 -illustrates the proposed scheduling phases of an embodiment of the invention discussed above; Figure2 -illustrates the Improved Multi-Media Processing Architecture embodying the invention; Figure 3 -detailed diagram of architecture of Figure 2; Figure 4 -illustrates thread States within Thread Manager of Figure 3; Figure 5 -illustrates a typical Tile Based Rendering System; Figure 6-illustrates a typical HSR unit within a tile based rendering system which may use an embodiment of the invention; Figure 7-illustrates a tile based rendering system implemented using an embodiment of the invention; Figure 8 -illustrates tile sector to Pixel Data Master (PDM) mapping; Figure 9 -illustrates a system scaled to two pipelines;</p>
<p>Detailed Description of Preferred Embodiment</p>
<p>Figure 1 illustrates the scheduling phases with the system. The first phase starts with data source selection at 110 of an input from available sources 100 on the basis of there being sufficient resource available in the Processor Storage Resource 140. Allocation of the Processor Storage Resource is then performed at 120 yielding a Data Address within the storage. This address is then used at 130 to load data required for the servicing of the selected source. A task is then constructed at 150 which is composed of (but not limited to) the originating data source ID, an execution address supplied by the data source 100 and the data address. The generated task is then inserted into a task queue 160.</p>
<p>The second scheduling phase involves each task within the queue generated by the first phase being distributed across one or more processing threads within a multi-threaded processing pipeline based on the availability of processing resource within that pipeline. The processing resources required to execute any given task are used to dictate which task within the task queue may be run at 162, specifically the required number of processing threads and temporary storage required to execute those threads. The selected task is then distributed across execution threads 170 at 164.</p>
<p>The third and final execution phase determines which threads may be run at without incurring a stall due to resources that are not currently available e.g. data returned by an external memory read or branch condition that is not currently valid.</p>
<p>This is done in a manner that combines the simple resource checking described in patent WO 907/38372 and the technique of "Enchanced interleaved multi-threading".</p>
<p>This results in a maintained set of active threads 180, the number of which is tied to the execution latency of "Execute" 190 (typically an ALU). It should be noted that the third phase executes threads to completion at which point both the threads and any allocated memory resource are returned to the system.</p>
<p>Figure 2 illustrates the proposed processing architecture to implement figure 1 at a high level. The data sources 810 will from now on be referred as "Data Masters" on the basis that they are responsible for instigating all processing within the system.</p>
<p>A Coarse Grain Scheduler (CGS) 820 coupled to the data masters undertakes the activities described above within scheduling phase one. The CGS passes tasks to a Multi-Threaded Media Processor (MTMP) 830 which implements scheduling phases two and three described above. Processed data is "emitted" from the MTMP to the data processing pipelines 840. This system differs to that described in International patent no. W097/38372 by the addition of the CGS and the internal differences within the MTMP associated with the 3 phased scheduling scheme.</p>
<p>Figure 3 illustrates the details of the basic system in greater detail. The data masters 1001 issue data service requests to a Data Master Selection unit (DMS) 1006 in the CGS 1000. These data requests are in the form of a count of data instances plus the size of an individual data instance. A data instance is defined as a unique quanta of data that may be processed without reference to any other data within the incoming data stream, and as such may be processed in parallel with all other data instances supplied by this or any other data master.</p>
<p>The DMS cycles through the data masters looking for one that may be serviced within the resources that are currently indicated as free by a Resource Manager 1002 as described in scheduling phase I above. When selecting a data master the DMS also takes into account a minimum data instance count (Referred to as the Data Master Minimum Service Count) that is indicated by the data masters.</p>
<p>There must be sufficient resource available to service a multiple of the minimum data instance count stipulated. Once a data master has been selected the DMS allocates the required resources updating the Resource manager as appropriate before passing the selected data master's request onto a Programmable Data Sequencer (PDS) 1004. It should be noted that the resource allocation is in the form of input and output data storage within the MTMP's shared data store 1036.</p>
<p>Input buffer storage is allocated on a per service request basis, however output buffer storage needs additional management in certain circumstances. Specifically certain data types require output buffering to be persistent across multiple service requests (e.g. pixel data), in these cases the output buffering is managed in terms of "macro" tasks. A macro task being defined as a group of tasks over which output buffering must be persistent. To handle this the DMS/resource manager allocates</p>
<p>S</p>
<p>output buffer storage only on the first task for a data master where there is no output buffer storage currently allocated. This allocation then remains persistent until the data master signals that the macro task is complete, where it may be freed.</p>
<p>It will be noted that it is possible for a data master that requires a large amount of resource for its minimum serviceable quanta to be blocked from processing. This is prevented by the DMS maintaining a timeout counter for each data master. This timeout counter is incremented each time it has a service request rejected, when this counter reaches a pre-detennined value the data master concerned will be serviced irrespective of currently available resources i.e. the DMS will be prevented from processing until sufficient resources are available. In addition a software control is made available to control and disable/enable the servicing of each data master. This software control can be used to manipulate the amount of processing time available to each data master.</p>
<p>The PDS is a fully programmable processor that is supplied with a code execution address by a data master selected by the DMS. The indicated code is executed once for each data instance that is being serviced from the data master. The code may use data supplied by the data master to generate data directly into the shared data store 1036 or to fetch data from memory via a DMA unit 1008 into the shared data store 1036. It should be noted that the PDS could be implemented as a thread within the MTMP. However this would then take processing resource from other activities.</p>
<p>Once all data instances from a selected data master have been serviced by the PDS a task is issued to the MTMP's task queue 1022. The execution address for the task is preferably supplied directly from the code executed within the PDS. Thus the PDS operation is equivalent to the "Data Load" step 130 from figure 1.</p>
<p>The task queue is scanned by a Task Control Unit (TCU) 1024 for tasks that can be issued to a Thread Manager 1026, this is any task that, * has no outstanding execution dependencies, * whose temporary storage allocation and number of execution threads for the specified minimum number of data instances (same number as Data Master Minimum Service Count) OR * whose age has reached or exceeded the maximum allowable</p>
<p>S</p>
<p>Execution dependencies are used to block the execution of a task while there is some external or internal activity that must complete before the task can be allowed to proceed. Examples of such dependencies are (but not limited to) an "external" dependency or a "sequential" dependency.</p>
<p>An external dependency is a condition which is sourced from a piece of hardware external to the MTMP which blocks the task's execution until the condition is released. For example a task may require one of the processing pipelines 1040 to complete before proceeding.</p>
<p>A sequential dependency is applied where a task may update an output buffer register that is also updated on a task that preceded its arrival in the queue. When the task manager sees a task with a sequential dependency set it will allow all tasks from the same data master in the queue that were supplied before it to complete before allowing it to proceed. It should be noted that only tasks from the same data master are blocked in these circumstances, this is why the data master/source ID is included within the task data. In a further modification to this mechanism each task could carry a mask of output registers that are modified, the sequential dependency then being applied selectively only where those masks overlap.</p>
<p>In order to prevent a task with large resource requirements from being blocked for long periods of time each task in the queue has an "Age" counter which is incremented each time a task is rejected for processing by the TCU. When the age counter reaches a defined limit a task that has no outstanding execution dependencies will be selected for processing irrespective of available thread and temporary storage availability.</p>
<p>Once a task has been selected for service its data instances are distributed to threads as they and the required temporary register resources become available as shown schematically in the scheduling phase 2 in figure 1. Temporary register storage is also allocated from the shared data store 1036 with the store being pre divided in a fixed manner between input, output and temporary storage areas which are then managed independently. It should be noted that input and temporary storage be combined into a single partition and both allocated in phase 1 of the scheduling, however this has the disadvantage of reserving temporary storage for longer than necessary.</p>
<p>The Thread Manager 1026 performs the actions required to implement scheduling phase 3 as shown in figure 1. The thread manager maintains a number of simultaneous execution threads of which a subset are active at any given time.</p>
<p>Execution of code for the active threads is by round robin e.g. if there are two active threads within the system, instruction fetches are issued for thread 0, threat 1, thread 0, thread 1 etc. As ALU pipelines do not typically produce a result in the same clock cycle as issuing an operation down the pipeline instructions referencing the result of a previous instruction would typically stall. However as instructions are interleaved as described above from threads operating on unrelated data instances the time between potentially dependent register accesses for code running within any given execution thread is increased buy the number of active thread, as such the number of active threads is chosen such that it equals the latency of the ALU pipeline.</p>
<p>Figure 4 illustrates the four possible states of a thread and the activities that cause a transition between those states. Threads start in a free' state at 1200 until the TCU 1024 (figure 3) issues data instances to run on them as previously described causing a transition to the Ready' state 1210. Threads remain in a ready state until the thread manager places a currently active thread into an inactive or free state, causing a ready thread to transition to Active' at 1220. Threads remain active until such point as they encounter a dependency that would result in a stall if they where to continue execution. When a thread hits such a dependency the thread manager moves its state to Inactive' at 1230. It should be noted that if no other threads are in a Ready' state at this point the thread manager will signal the Instruction Fetch and Decode unit (IFD) 1028 of Figure 3 to insert no-ops into the instruction stream being fed to an ALU 1034 between the IFD and the SDS. A thread remains in an Inactive' state until all dependencies that caused its deactivation have been satisfied at which point the thread transitions back to a Ready' state at 1210. In order to avoid active threads from blocking execution of any Ready' threads for prolonged periods of time the thread manager will change an active thread back to a ready state if a thread exceeds a pre-defined active time limit. At the point an instruction is encountered that is marked as Last' (i.e., the last instruction) the thread manager will revert the state of the thread back to Free' at 1200. Execution of an instruction marked as "last" also results in any allocated temporary or input storage being freed, although not output storage. The possible dependencies that result in the de-activation of a thread are, * Code cache miss * Branch dependent on a condition code that is currently invalid * Data from an external memory read not yet returned * Attempt to aquire a semaphore that is currently owned by another thread * Waiting synchronisation In order to minimise latency for selection of active threads the thread manager updates the status of inactive threads to ready' as soon as any outstanding dependencies complete.</p>
<p>The thread manager issues instruction fetches for active threads to the Instruction Fetch and Decode unit (1FD) 1028 which issues fetches to the instruction cache 1030. If an issued fetch causes a cache miss the 1FD informs the thread manager of this, which will deactivate the thread as described above, until such time as the Instruction cache retrieves the required cache line. Fetched instructions are decoded and any branch or control instruction executed within the IFD. Any control or branch instruction that references a control resource (such as a condition code) that is not currently valid will result in the IFD informing the thread manager that the thread should be deactivated until such point as the control resource becomes valid.</p>
<p>All other instructions are passed to the ALU 1034 for execution. It will be noted that the ALU operates directly on the data contained within the shared data store.</p>
<p>Prior to completion most threads will signal an emit to the Processing Pipelines 1040 which will read required data from the output buffers allocated within the shared data store 1036. When this process is complete the processing pipeline signals that the output buffer resource has been freed.</p>
<p>In a preferred embodiment of the invention the system is adapted for use within a tile base rendering system.</p>
<p>Tile based rendering systems are known. These break down an image to be rendered into a plurality of rectangular blocks or tiles. The way in which this is done and the subsequent texturing and shading performed is shown schematically in figure 5. A primitive/command fetch unit 1501 fetches a stream of commands and primitive data from memory and passes it to a geometry processing unit 1502 which transforms it into screen space using a well known method. The data is then supplied to a tiling unit 1503, which inserts the screen space geometry into lists for a set of defined rectangular regions, or tiles, 1504. Each list contains primitives that exist wholly or partially in a sub-region of a screen (i.e. a tile). A list exists for every tile on the screen, although it should be borne in mind that some lists may have no data in them.</p>
<p>The tiled data lists are fetch by a tile parameter fetch unit 1505 which feeds them tile by tile to a hidden surface removal unit (HSR) 1506 and from there to a texturing and shading unit (TSU) 1508. The HSR unit processes each primitive in the tile and passes only data for visible pixels to the TSU as described below.</p>
<p>The texturing and shading unit takes the data from the HSR unit and uses it to fetch textures and apply shading to each pixel within a visible object using techniques that are well known.</p>
<p>The TSU then feeds the textured and shaded data to the alpha test unit 1509, fogging unit 1510 and alpha blending unit 1511 which perform alpha test, fogging and alpha blending respectively in a well known manner. Alpha blending is performed to an on chip tile buffer 1512 thereby eliminating external memory bandwidth associated with this operation. On completion of each tile the Pixel processing unit 1514 performs any backend processes such as packing or anti-alias filtering before writing the resulting data out to external memory used to store the rendered scene 1516.</p>
<p>Figure 6 describes the HSR unit of a typical tile based rendering device in more detail. Specifically the rasteriser 1602 tests the depths of incoming primitive pixels against the on chip tile buffer 1608, if a pixel location is found to be visible a "tag" uniquely identifying that object is written to the tag buffer 1604. The contents of the tag buffer need to be passed to the texturing and shading unit any time a pixel requires overwriting with a pixel from an object that is transparent. When this occurs the current contents of the tag buffer are passed to the Sorter 1606, which sorts and passes the contents of the tag buffer to the texturing and shading unit based on object tags such that the texturing and shading unit sees all the pixels associated with each visible object within the tile in one go. This process is referred to as pass "spawning".</p>
<p>Figure 7 describes the further embodiment of the invention as applied to tile based rendering. For reasons of clarity the MTMP control and execution pipe 1852 encompasses the task queue 1022, task control unit 1024, thread manager 1026, thread PC 1032, instruction fetch and decode 1028 and the ALU 1034. It should also be noted that code 1030 and data 1010 caches have also been removed for reasons of clarity only.</p>
<p>S</p>
<p>In this example the MTMIP replaces the function of geometry processing 1502, texturing and shading 1508, alpha test 1509, fogging 1510 and alpha blend 1511 unit from figure 5. In addition the accumulation buffer is replaced with output buffer space allocated from the shared data store. This integration of functionality into a single unit with general programmability results in an exceptionally capable system that may either directly emulate or replace fixed function blocks or replace them with an arbitrary piece of code supplied by an attached application.</p>
<p>The Data masters 1820 are now allocated specific functions as follows.</p>
<p>The pixel data master (PDM) 1826 incorporates the functionality of tiled parameter fetch 1505 and hidden surface removal 1506 in figure 5. The PDM feeds pixel processing requests to the DMS 1806 in blocks of N pixels, where in this example N lies between 4 and 128, with 4 being the required minimum due to the well known manner in which pixel processing pipelines must implement rate of change calculations. Each data service request represents multiple pixels in order to minimise the overheard within the PDS 1804 when processing pixel data. It should be noted that the PDM also passes parameters required for triangle rasterisation to the coordinate iterators 1810.</p>
<p>The vertex data master (VDM) 1822 fetches incoming primitives from external memory and passes indices for vertices that should be fetched in each data service request. It should be noted that the VDM also directly passes sideband information to the tiling engine 1862 to enable it to correctly re-construct primitives from the processed vertices.</p>
<p>The event data master (EDM) 1824 is fed with events from the other data masters within the system and from the Host allowing the architecture to be used for processing system events and general commands avoiding the need to interrupt the host processor to service these events.</p>
<p>It should be noted that additional data masters can be added to the system, for example a data master could be implemented that takes a feed from the tiled parameter fetch unit allowing the fetched primitive data to be pre-processed before it is passed to the HSR unit (which would in effect become another processing pipeline).</p>
<p>This pre-processing would allow for generation of procedural geometry such as high order surfaces while the tiled lists are being processed allowing for a significant reduction in consumed memory for tiled primitive lists.</p>
<p>The processing pipelines 1860 are also now allocated specific functions with the tiling engine 1862, the pixel processing 1864 and the texturing unit 1866 being directly equivalent to same units in figure 5.</p>
<p>The approach to data processing is as described previously with a few additional functions available. Specifically the PDS may now, for pixel data, also load data into the shared data store by way of a set of coordinate iterators 1810 or the texturing unit 1866.</p>
<p>Pixel processing occurs whenever the PDM's HSR unit spawns a pass which will cause it to signal the DMS that it has data to be processed. When selected the code executed on the PDS loads coordinate and texture data into the aflocated area of the shared data store. Data instances within the system represent a single pixel with executed code storing the results into the allocated output buffer within the shared data store. It should be noted that each pixel data instance does not perform an emit to the pixel processing unit 1864 as the output buffer is not finalised until the entire tile has been processed. In order for the tile data to be emitted the EDM 1824 is fed by a signal from the PDM that indicates that the tile is complete. The EDM then generates a task that is used to emit the tiled data to the pixel processing unit. It should be noted that the EDM can beused to generate events in this manner for many other purposes, for example a task could be emitted between passes spawned by the HSR unit allowing processing to be performed on the contents of the tile buffer between each pass. It should be noted that it is possible to perform any amount or type of processing on these events, for example when emitting the completed tile additional processing could be performed to generate levels for a mip-map (a well known technique) for the emitted data.</p>
<p>Vertex processing operates in a similar manner to a generic data source as described previously with an emit being performed to the tiling engine per processed vertex.</p>
<p>In a further extension to the embodiment the architecture may also be scaled.</p>
<p>For pixel processing this is accomplished by laying down multiple media processing cores with each core mapped to a different "sector" of the tile as illustrated in figure 8. It will be noted that the split occurs where visible tags are transferred from the HSR unit's tag buffer 2000 to the tag sorters 2010, 2011, with a tag sorter being dedicated to each PDM 2020, 2021, this maximises the level of parallelism between the two pipelines without the need to split the HSR unit at the front end.</p>
<p>As these different sectors are non overlapping they can inherently be processed in parallel across multiple pipelines. Typically as the number of pipelines are increased the tile size is increased in proportion to the number of attached pipes e.g. if a single pipeline is attached to an HSR unit that works on a l6x16 tile, then two pipelines would be attached to an HSR unit that works on a 32x16 tile and soon.</p>
<p>Alternatively the size of the sectors can be reduced allowing the tile size to be kept constant, however this will result in a reduction of efficiency when processing pixel data in each pipeline.</p>
<p>Generally speaking the approach of scaling the tile size to match the number of pipelines can continue until the performance of the HSR unit is saturated i.e. it becomes difficult to scale its performance further. At this point scaling can be continued by laying down multiple parallel HSR units.</p>
<p>For vertex processing scalability can be achieved by distributing the incoming primitive data across the available pipelines. This is typically done using either a simple round robin mechanism or by sending blocks of vertices to the pipeline which is the least busy. The former mechanism is preferred as it simplifies the tiling mechanism later in the pipeline.</p>
<p>Figure 9 illustrates the arrangement for a two pipeline system. It should be noted that each of Pipe 1 2250 and Pipe 2 2251 represent both CGS and MTMP previously described separately in order to aid clarity.</p>
<p>The HSR unit 2200 processes incoming tiled parameter lists as previously described. The pixel data masters 2230 and 2231 are each mapped to a different part of the HSR unit's tag buffer as described above. Each PDM is dedicated to a specific media processing core 2250, 2251. It should be noted that the texturing (2260,2261) and pixel processing (2270, 2271) pipelines are duplicated along with the media processing core. The processed pixel data is passed from the MTMP's to the pixel processing units 2270, 2271 at the completion of a tile as previously described. The pixel processing units are duplicated along with the processing units as they have a non overlapping assignment to pixels stored in memory making them directly scalable along with the rest of the pixel processing pipeline.</p>
<p>The vertex data master 2210 and the event data master 2220 each feed service requests into the pre-scheduler 2240. The pre-scheduler maintains a service queue per attached pipeline for each of data masters (VDM, EDM). The queues are filled in simple round robin order such that processing requests are distributed evenly across the attached pipelines. Processed vertices are passed from the MTMP to the tiling unit 2280 which re-combines them with primitive data generated by the VDM before applying the tiling process as previously described.</p>

Claims (1)

  1. <p>S</p>
    <p>CLAIMS</p>
    <p>1. A method for allocating data storage in a multithreaded data processing system comprising the steps of selecting data from one of a plurality of data sources in dependence on the availability of data storage, supplying a code execution address to a programmable data sequencer, executing code from the code execution address to cause data to be written to the data storage means.</p>
    <p>2. A method according to claim I wherein the execution of the code causes data to be written directly from the data source to the data storage means.</p>
    <p>3. A method according to claim 1 or 2 wherein execution of the code causes data to be fetched from another data storage location and written into the data storage means.</p>
    <p>4. A method according to claim 1, 2 or 3 wherein the programmable data sequencer comprises a thread on the multi threaded processing system.</p>
    <p>5. A method according to any of claims I -4 wherein a data storage in the data storage means is allocated each time a data source is selected.</p>
    <p>6. A method according to any of claims 1 -5 wherein a data source includes a plurality of data instances which share the same output buffer requirements, and output buffer data storage is allocated in the data storage means on the first of these data instances only, until the data source signals that the data instances sharing the same output buffer requirements have been exhausted.</p>
    <p>7. A method according to claim 1 wherein the execution of the code causes texture coordinate or other data iterated within an iteration to be written to the data storage means.</p>
    <p>S</p>
    <p>8. A method according to claim I wherein the execution of the code causes texture data to be sampled, filtered and written into the data storage means by a texting engine.</p>
    <p>9. Apparatus for allocating data storage in a multithreaded processing system comprising means for selecting data from one of a plurality of data sources in dependence on the availability of data storage, means for supplying a code execution address to a programmable data sequencer, and means for execution the code from the code execution address and causing data to be written to the data storage.</p>
GB0720214A 2005-09-26 2006-09-26 Allocation of data storage in a multithreaded data storage system Withdrawn GB2440689A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
GB0720214A GB2440689A (en) 2005-09-26 2006-09-26 Allocation of data storage in a multithreaded data storage system

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
GBGB0519597.9A GB0519597D0 (en) 2005-09-26 2005-09-26 Scalable multi-threaded media processing architecture
GB0720214A GB2440689A (en) 2005-09-26 2006-09-26 Allocation of data storage in a multithreaded data storage system
GB0618972A GB2430513B (en) 2005-09-26 2006-09-26 Scalable multi-threaded media processing architecture

Publications (2)

Publication Number Publication Date
GB0720214D0 GB0720214D0 (en) 2007-11-28
GB2440689A true GB2440689A (en) 2008-02-06

Family

ID=38947388

Family Applications (1)

Application Number Title Priority Date Filing Date
GB0720214A Withdrawn GB2440689A (en) 2005-09-26 2006-09-26 Allocation of data storage in a multithreaded data storage system

Country Status (1)

Country Link
GB (1) GB2440689A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5412788A (en) * 1992-04-16 1995-05-02 Digital Equipment Corporation Memory bank management and arbitration in multiprocessor computer system
EP0843262A2 (en) * 1996-11-15 1998-05-20 Hyundai Electronics America, Inc. Memory request reordering in a data processing system
WO1999019805A1 (en) * 1997-10-10 1999-04-22 Rambus Incorporated Method and apparatus for two step memory write operations
US6415340B1 (en) * 1997-07-10 2002-07-02 Micron Technology, Inc. Method and apparatus for synchronous data transfers in a memory device with selectable data or address paths
US6523098B1 (en) * 1999-12-22 2003-02-18 Intel Corporation Mechanism for efficient low priority write draining

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5412788A (en) * 1992-04-16 1995-05-02 Digital Equipment Corporation Memory bank management and arbitration in multiprocessor computer system
EP0843262A2 (en) * 1996-11-15 1998-05-20 Hyundai Electronics America, Inc. Memory request reordering in a data processing system
US6415340B1 (en) * 1997-07-10 2002-07-02 Micron Technology, Inc. Method and apparatus for synchronous data transfers in a memory device with selectable data or address paths
WO1999019805A1 (en) * 1997-10-10 1999-04-22 Rambus Incorporated Method and apparatus for two step memory write operations
US6523098B1 (en) * 1999-12-22 2003-02-18 Intel Corporation Mechanism for efficient low priority write draining

Also Published As

Publication number Publication date
GB0720214D0 (en) 2007-11-28

Similar Documents

Publication Publication Date Title
EP1932077B1 (en) Scalable multi-threaded media processing architecture
US10664942B2 (en) Reconfigurable virtual graphics and compute processor pipeline
US10579388B2 (en) Policies for shader resource allocation in a shader core
US9513975B2 (en) Technique for computational nested parallelism
US7594095B1 (en) Multithreaded SIMD parallel processor with launching of groups of threads
US10095526B2 (en) Technique for improving performance in multi-threaded processing units
TWI425418B (en) Across-thread out of order instruction dispatch in a multithreaded microprocessor
US8752064B2 (en) Optimizing communication of system call requests
US20100026682A1 (en) Graphics processing systems
US20120179851A1 (en) Computer System Interrupt Handling
US20140184617A1 (en) Mid-primitive graphics execution preemption
KR20120058605A (en) Hardware-based scheduling of gpu work
US10146575B2 (en) Heterogeneous enqueuing and dequeuing mechanism for task scheduling
US20190340722A1 (en) Data processing systems
US9594599B1 (en) Method and system for distributing work batches to processing units based on a number of enabled streaming multiprocessors
US20120194527A1 (en) Method for Preempting Graphics Tasks to Accommodate Compute Tasks in an Accelerated Processing Device (APD)
US20130141447A1 (en) Method and Apparatus for Accommodating Multiple, Concurrent Work Inputs
US20120194526A1 (en) Task Scheduling
TWI489289B (en) Pre-scheduled replays of divergent operations
CN114968549A (en) Method and apparatus for allocating resources to tasks
GB2588984A (en) Methods and allocators for allocating portions of a storage unit using virtual partitioning
US20130135327A1 (en) Saving and Restoring Non-Shader State Using a Command Processor
GB2440689A (en) Allocation of data storage in a multithreaded data storage system
US9147224B2 (en) Method for handling state transitions in a network of virtual processing nodes
CN114968550A (en) Method and apparatus for allocating resources to tasks

Legal Events

Date Code Title Description
WAP Application withdrawn, taken to be withdrawn or refused ** after publication under section 16(1)