Store coherence verification with invalidation of page translations
By delaying the SRQ drain cycle to align with TLB invalidation, the method addresses cache coherence issues in multiprocessor systems, ensuring efficient and reliable page translation updates across processing elements.
Patent Information
- Application Number
- JP2024516776
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-04
- Filing Date
- 2022-09-29
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2042-09-29
AI Technical Summary
In multiprocessor systems, maintaining cache coherence and efficiently invalidating page translations across processing elements is challenging due to the asynchronous nature of TLB updates and SRQ drain cycles, leading to potential race conditions and cache coherence failures.
Applying a delay to the store reorder queue (SRQ) drain cycle to synchronize with translation lookaside buffer (TLB) invalidation instructions, ensuring that SRQ entries are properly drained before sending acknowledgment signals, thereby reducing the likelihood of cache coherence failures.
Enhances cache coherence by providing additional time to verify SRQ logic functionality, reducing the chances of cache coherence failures and ensuring accurate and timely invalidation of page translations across processing elements.
Smart Images

Figure 2024533553000001
Abstract
Description
[Technical field]
[0001] The present invention relates to execution in a processor, and more particularly to data processing, and even more particularly to cache coherence and page translation invalidation in a multi-core processor, microprocessor, or multi-processor system. [Background technology]
[0002] In one example, a computing system can utilize virtual memory to access addresses in physical memory without having to consider the exact location of the addresses in physical memory. A mapping between virtual memory addresses and physical memory addresses can be maintained and stored as a page table. In one example, when a program accesses a virtual memory address, an address translation using the page table can be performed to identify the physical memory address referenced by the accessed virtual memory address. Data stored at the identified physical memory address can then be read from the physical memory address.
[0003] In a multiprocessor system that includes multiple processing elements (e.g., a system with multiple processors or a processor with multiple cores), all cores may share a page table. To improve the efficiency of accessing translations in the page table, each processing element (processor or core) may store its own translation lookaside buffer (TLB). Each TLB may be a cache that represents a portion of the page table. The TLB may contain multiple entries from the page table, and each TLB entry may contain a mapping from a virtual address to a physical address. In one example, TLB entries may be maintained such that the portion of the total available memory covered by the TLB includes the most recently accessed, most commonly accessed, or most likely to be accessed portion of the total available memory. As data is moved into or out of physical memory (e.g., a new process is started, a context switch, etc.), entries in the TLB must be updated to reflect the presence of the new data, and TLB entries associated with data that has been removed from the system memory must be invalidated. Because each core maintains its own TLB, the cores must communicate with each other to maintain cache coherency. Summary of the Invention
[0004] The summary of the present disclosure is provided to aid in understanding the computer processing system and method for invalidating page translation entries and maintaining cache coherence, and is not intended to limit the present disclosure or the present invention. The present disclosure is directed to those skilled in the art. It should be understood that various aspects and features of the present disclosure may be advantageously used alone in some cases and in combination with other aspects and features of the present disclosure in other cases. Thus, modifications and changes may be made to the memory system, architectural structure, and method of operation to achieve different effects.
[0005] In some examples, a method for invalidating page translation entries in a data processing system is generally described. The data processing system may include a plurality of processing elements. The method may include applying a delay to a drain cycle of a store order queue (SRQ) of the processing element. The method may further include draining the SRQ under the delayed drain cycle. The method may further include receiving a translation lookaside buffer invalidate (TLBI) instruction from an interconnect connecting the plurality of processing elements. The TLBI instruction may be an instruction to invalidate a translation lookaside buffer (TLB) entry corresponding to at least one of a virtual memory page and a physical memory frame. The TLBI instruction may be broadcast by another processing element. Applying a delay to the drain cycle of the SRQ may reduce a difference between the drain cycle of the SRQ and an invalidation cycle associated with the TLBI.
[0006] In some examples, a computing system configured to invalidate entries of page translations in a data processing system is generally described. The computing system may include a first processing element, a second processing element, and an interconnect coupled to the first processing element and the second processing element. The first processing element may be configured to broadcast a translation lookaside buffer invalidate (TLBI) instruction on the interconnect. The TLBI instruction may be an instruction to invalidate translation lookaside buffer (TLB) entries corresponding to at least one of a virtual memory page and a physical memory frame. The second processing element may be configured to apply a delay to a drain cycle of a store order queue (SRQ) of the second processing element. The second processing element may be further configured to drain the SRQ under the delayed drain cycle. The second processing element may be further configured to receive the TLBI instruction from the interconnect. By applying the delay to the drain cycle of the SRQ, a difference between the drain cycle of the SRQ and the invalidation cycle associated with the TLBI is reduced.
[0007] In some examples, a processing element configured to invalidate entries of page translations in a data processing system is generally described. The processing element may include a processor pipeline having one or more load store units (LSUs) configured to execute load and store instructions. The one or more LSUs may be configured to apply a delay to a drain cycle of a store reorder queue (SRQ) of the processing element. The one or more LSUs may be further configured to drain the SRQ under the delayed drain cycle. The one or more LSUs may be configured to receive a translation lookaside buffer invalidate (TLBI) instruction from an interconnect connecting the multiple processing elements. The TLBI instruction may be an instruction to invalidate a translation lookaside buffer (TLB) entry corresponding to at least one of a virtual memory page and a physical memory frame. The TLBI instruction is broadcast by another processing element. By applying a delay to the drain cycle of the SRQ, a difference between the drain cycle of the SRQ and the invalidation cycle associated with the TLBI is reduced.
[0008] Further features as well as the structure and operation of various embodiments are described in detail below with reference to the accompanying drawings. [Brief description of the drawings]
[0009] Various aspects, features, and embodiments of the processor, processor system, or method for processing data, or combinations thereof, are believed to be better understood when read in conjunction with the accompanying drawings. Although embodiments are provided in the drawings for the purpose of illustrating aspects, features, or various embodiments or combinations of the processor, processor system, and method for managing and processing data, the claims should not be limited to the exact systems, embodiments, methods, processes, or devices, or combinations thereof, shown in the drawings, and the illustrated features and / or processes may be used alone or in combination with other features and / or processes. It should be noted that elements with reference numbers are numbered according to the drawing in which the elements are introduced and are generally (but not necessarily) referred to by the same numbers in subsequent drawings. And similar reference numbers in the drawings generally (but not necessarily) represent similar parts in exemplary embodiments of the present invention. [Figure 1] FIG. 1 illustrates a typical computing or data processing system according to one embodiment. [Diagram 2] FIG. 2 is a block diagram of a processor according to one embodiment. [Diagram 3] FIG. 2 illustrates an example implementation of store coherence verification associated with invalidating page translations in one embodiment. [Figure 4] FIG. 1 illustrates another example implementation of store coherence verification in connection with invalidating page translations in one embodiment. [Diagram 5] FIG. 1 illustrates another example implementation of store coherence verification in connection with invalidating page translations in one embodiment. [Figure 6] FIG. 1 illustrates an example flowchart for store coherence verification in connection with invalidating page translations according to one embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] The following description is provided to explain the general principles of the present invention, and is not intended to limit the inventive concepts claimed herein. In the following detailed description, numerous details are set forth to provide an understanding of the processor, its architectural structure, and its method of operation, but those skilled in the art will appreciate that many different embodiments of the processor, its architectural structure, and its method of operation can be practiced without these specific details. And the claims and the invention should not be limited to the embodiments, subassemblies, features, processes, methods, aspects, characteristics, or details specifically described and shown herein. Moreover, specific features described herein can be used in combination with other described features, in each of the various possible combinations and permutations.
[0011] Unless otherwise defined in this specification, all terms are intended to be given the broadest possible interpretation, including the meaning understood by a person of ordinary skill in the art or defined in dictionaries, specialized books, etc., or both, and the meaning implied by this specification.
[0012] The term "workload" of a processor refers to the number of instructions executed by that processor during a given period or at a particular moment.
[0013] A processor may process instructions by executing the instructions in a series of small steps. In some cases, a processor may be pipelined to increase the number of instructions processed by the processor (and therefore increase the speed of the processor). Pipelining refers to having separate stages within a processor, each stage performing one or more of the small steps required to execute an instruction. In one example, the pipeline (in addition to other circuitry) may be located in a part of the processor called a processor core. Some processors may have multiple processor cores (e.g., multiprocessor systems), and in some cases, each processor core may have multiple pipelines. When a processor core has multiple pipelines, a group of instructions (called an issue group) may be issued in parallel to multiple pipelines and executed in parallel by each of the pipelines. A pipeline may include multiple stages, such as a decode stage, a dispatch stage, and an execute stage. An execute stage may include each execution unit that processes a different type of operation specified by the instruction. For example, a load store unit (LSU) is an execution unit that processes, for example, load and store instructions.
[0014] In one example, the physical address of the store instruction to be executed may be stored as an entry in a store reorder queue (SRQ) in the LSU. In one example, the SRQ may reside in an L1 data cache of a processor core. The entry in the SRQ may be a committed store instruction. A committed store instruction may be a store instruction that is completed by a processor or processing element, where the completion cannot be undone and other processing elements do not see the completion until the SRQ is drained to memory (e.g., a level 2 (L2) cache). When an SRQ or committed store instruction is drained to memory (e.g., a level 2 (L2) cache), the value stored or updated at the memory address specified by the committed store instruction is visible to all processors or processing elements in the multiprocessor system. For example, if the L2 cache is a global memory accessible to all processing elements, when an SRQ entry is drained to the L2 cache, the value updated by the store instruction in the drained SRQ entry is visible to all processing elements. In one or more exemplary embodiments, an L2 cache may be a memory local to a processing element, and a higher level cache, such as a level 3 (L3) cache, may be a global memory accessible to multiple processing elements. SRQ entries may be drained from the SRQ in local memory to global memory.
[0015] In one example, a mapping between a virtual address and a physical address may become invalid in response to certain events. For example, when data is moved into or out of physical memory (e.g., a new process is started, a context switch, etc.), entries in the TLB must be updated to reflect the presence of the new data, and TLB entries associated with data that has been removed from the system memory must be invalidated. In one example, an instruction to invalidate a TLB entry may be referred to as a TLB invalidate instruction (TLBI). When a mapping between a virtual address and a physical address becomes invalid, a TLBI instruction is issued to all cores to remove the TLB entry corresponding to the invalidated mapping. In one example, one core may be assigned the task of broadcasting a TLBI instruction to other cores in a multiprocessor system.
[0016] In one example, a first processor may invalidate a particular TLB entry in its TLB. The particular TLB entry may map a particular virtual address to a particular physical address. The first processor may stall any process and / or instruction associated with the particular physical address (e.g., a committed store instruction that writes to the particular physical address). The first processor may then broadcast a TLBI instruction on the interconnect accessible to all processors in the multiprocessor system. A second processor in the multiprocessor system may receive the TLBI instruction from the interconnect and, in response, drain SRQ entries associated with the particular physical address to memory. After draining, the second processor may invalidate entries in its TLB that contain the particular physical address. In response to the invalidation, the second processor may send an acknowledgement back to the first processor indicating that the second processor has completed the TLB invalidation. The first processor may wait for acknowledgements from the second processor and all other processors in the multiprocessor system before invalidating the particular TLB entry in its TLB.
[0017] However, in one example, the propagation time of the TLBI instruction may include the time it takes for the TLBI instruction to propagate from the first processing element to the interconnect, propagate through the interconnect, and propagate from the interconnect to the second processing element. During this propagation time, the second processor may be draining its SRQ at its normal SRQ drain rate or drain cycle. A problem may occur if the SRQ entry associated with the particular physical address of the TLBI instruction is not drained by the second processing element before the second processing element acknowledges back to the first processing element that broadcasted the TLBI instruction. For example, SRQ logic or algorithms may be used to detect the completion of the SRQ drain by the second processing element. If the SRQ logic becomes corrupted and misdetects whether the SRQ has been fully drained, it may send an acknowledgement before the second processing element has fully drained the SRQ. As a result of the second processing element not fully draining the SRQ before sending an acknowledgement, the value of the particular physical address indicated by the TLBI instruction may not be up-to-date when all processing elements have completed invalidation according to the broadcasted TLBI instruction. For example, a processing element may read a stale value from a particular physical address after all processing elements have completed their invalidations. Thus, a conflicting condition exists between the invalidation (or page translation) of a TLB entry, the commitment in the SRQ, and the drain, which may affect the visibility of a store instruction result to all processing elements in a multiprocessor system.
[0018] The methods and systems described herein can increase the race condition window between a TLB entry invalidation (e.g., TLBI) cycle and a drain cycle of a processor in a multiprocessor system to test whether the processor's SRQ logic is functioning correctly. Increasing this race condition window can increase the likelihood that an SRQ drain event (or SRQ cycle) will overlap with a TLBI invalidation cycle. As an example, a delay can be applied to a processor's SRQ drain cycle to slow down the drain of the SRQ. Traditionally, a drain cycle may be shorter than an invalidation cycle (e.g., an SRQ drain may be faster than the propagation of a TLBI instruction). Furthermore, because store instructions may be variable (e.g., due to being dependent on other threads or results from other processor cores), the processing time of a store instruction may be variable, which can make the drain cycle unpredictable. By applying a delay to the SRQ drain cycle, the processor can have more opportunity and time to identify potential problems or corruptions in the SRQ logic. For example, without a delay, a processor's SRQ may drain relatively quickly, increasing the likelihood that the SRQ is empty when the processor receives a TLBI instruction from the interconnect. Because the SRQ logic indicates that the SRQ is empty, the processor may send an acknowledgement without checking whether the SRQ is truly empty, making it impossible to test the SRQ logic. Adding time by delaying the drain cycle increases the likelihood that the SRQ is not empty when the processor receives the TLBI instruction. This allows a test to determine whether the SRQ logic is functioning correctly to verify cache coherence. If the SRQ is not empty, the processor is triggered by the SRQ logic to check the SRQ before sending the acknowledgement and drain the SRQ. If the SRQ logic successfully triggers the processor and the processor drains the SRQ before sending the acknowledgement, the processor's cache coherence can be considered successful.If the processor is not properly triggered by the SRQ logic and the processor does not drain the SRQ before sending the acknowledgment, the processor's cache coherence may be considered to have failed.
[0019] FIG. 1 illustrates an information handling system 101. The information handling system 101 may be a simple example of a computer system capable of performing the computing operations described herein. The computer system 101 may include one or more processors 100 coupled to a host bus 102. The processor 100 may include, for example, a commercially available microprocessor, a custom processor, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), discrete logic, or the like, or generally any device for executing instructions. In one example, the processor 101 may be a multi-core processor including two or more processor cores. A level 2 (L2) cache memory 104 may be coupled to the host bus 102. An I / O bridge (e.g., a host-PCI bridge) 106 may be coupled to a main memory 108. The I / O bridge may include cache memory and main memory control functions and may provide bus control to handle transfers between the PCI bus 110, the processor 100, the L2 cache 104, the main memory 108, and the host bus 102. A main memory 108 may be coupled to the I / O bridge 106, as well as the host bus 102. Other types of memory, such as random access memory (RAM), or various volatile and / or non-volatile memory devices, or combinations thereof, may be coupled to the host bus 102 or the I / O bridge 106, or both, as well. For example, memory devices coupled to the host bus 102 may include an Electrically Erasable Programmable ROM (EEPROM), a Flash Programmable ROM (PROM), a battery-backed RAM, a hard disk drive, and the like. A non-volatile memory device coupled to the host bus 102 may be used to hold any non-volatile data, including executable firmware and programming instructions executable to cause the processor 100 to perform certain functions, such as the methods described herein. Devices used only by the processor 100, such as the I / O components 130, may be coupled to the PCI bus 110.Service processor interface and ISA access pass-through 112 may provide an interface between PCI bus 110 and PCI bus 114. In this manner, PCI bus 114 may be isolated from PCI bus 110. Devices such as flash memory 118 are coupled to PCI bus 114. In one implementation, flash memory 118 may contain BIOS code that incorporates processor-executable code necessary for various low-level system functions and system boot functions.
[0020] The PCI bus 114 may provide an interface for various devices shared by the host processor 100 and the service processor 116, such as, for example, a flash memory 118. The PCI-to-ISA bridge 135 provides bus control, universal serial bus (USB) functionality 145, and power management functionality 155 for handling transfers between the PCI bus 114 and the ISA bus 140, and may include other functional elements not shown, such as a real-time clock (RTC), DMA control, interrupt support, and system management bus support. A non-volatile RAM 120 may be connected to the ISA bus 140. The service processor 116 may include a bus 122 (e.g., a JTAG and / or I2C bus) for communicating with the processor 100 during initialization steps. The bus 122 may also be coupled to the L2 cache 104, the I / O bridge 106, and the main memory 108, which provide communication paths between the processor, the service processor, the L2 cache, the Host-to-PCI bridge, and the main memory 108. The service processor 116 also has access to system power resources for powering down the information handling device 101 .
[0021] Peripheral and input / output (I / O) devices may be connected to various interfaces coupled to ISA bus 140, such as parallel interface 162, serial interface 164, keyboard interface 168, and mouse interface 170. Alternatively, many I / O devices may be accommodated by a super I / O controller (not shown) connected to ISA bus 140. Other interfaces that allow processor 100 to communicate with external devices include, but are not limited to, serial interfaces such as RS-232, Universal Serial Bus (USB), Small Computer System Interface (SCSI), RS-309, or wireless communication interfaces such as Wi-Fi, Bluetooth, Near Field Communication (NFC), and the like.
[0022] In one example, I / O components 130 may include a LAN card coupled to PCI bus 110 to connect computer system 101 to another computer system to copy files over a network. Similarly, a modem 175 is connected to serial port 164 and PCI-to-ISA bridge 135 to connect computer system 101 to an ISP using a telephone line connection to connect to the Internet. 1 illustrates an information handling system that uses processor 100, information handling systems may take many forms. For example, information handling system 101 may be in the form of a desktop, server, portable, laptop, notebook, or other form factor computer or data processing system. Information handling system 101 may also have other form factors, such as a personal digital assistant (PDA), gaming device, ATM machine, mobile phone device, communications device, or other device that includes a processor and memory.
[0023] FIG. 2 is a block diagram of a processor 200 according to one embodiment. The processor 200 may include at least a memory 202, an instruction cache 204, an instruction fetch unit 206, a branch predictor 208, and a processor or processing pipeline 210. The processor 200 may be included in a computer processor or may be otherwise distributed in a computer system. Instructions and data may be stored in the memory 202, and the instruction cache 204 may access instructions in the memory 202 as well as store instructions that are fetched. The memory 202 may include any type of volatile or non-volatile memory, such as a cache memory. The memory 202 and the instruction cache 204 may include multiple cache levels. A data cache (not shown) may be included in the processor 200. In one embodiment, the instruction cache 204 may be configured to provide instructions in an 8-way set associative structure. Alternatively, any other desired configuration and size may be employed. For example, instruction cache 204 may be implemented as a fully associative, set associative, or direct-mapped configuration.
[0024] In FIG. 2, a simplified example of an instruction fetch unit 206 and a processing pipeline 210 is shown. In various embodiments, the processor 200 may include multiple processing pipelines 210 and an instruction fetch unit 206. In one embodiment, the processing pipeline 210 includes a decode unit 20, an issue unit 22, an execution unit 24, and a writeback logic 26. In some examples, the instruction fetch unit 206 and / or a branch predictor 208 may also be part of the processing pipeline 210. The processing pipeline 210 may also include other features, such as error checking and processing logic, a reorder buffer, one or more parallel paths through the processing pipeline 210, and other features now or hereafter known in the art. Although FIG. 2 depicts a forward path through the processor 200, other feedback and signal paths may be included between elements of the processor 200.
[0025] Branch instructions (or "branches") may be unconditional, meaning that the branch is taken whenever the instruction is encountered in a program, or conditional, meaning that the branch is taken or not taken depending on a condition. The processor 200 may provide conditional branch instructions that allow a computer program to branch from one instruction to a target instruction (thereby skipping intermediate instructions, if any) if the condition is met. If the condition is not met, the next instruction after the branch instruction may be executed without branching to the target instruction. In many cases, the instruction that will be executed following a conditional branch is not known with certainty until the condition on which the branch depends is resolved. The branch predictor 208 may attempt to predict the outcome of a conditional branch instruction in a program before the branch instruction is executed. If the branch is mispredicted, all speculative work from the point in time when the branch was encountered in the program must be discarded. For example, when a conditional branch instruction is encountered, the processor 200 may predict which instruction will be executed after the outcome of the branch condition is known. Then, instead of stalling the processing pipeline 210 when a conditional branch instruction is issued, the processor can continue issuing instructions starting from the predicted next instruction.
[0026] A conditional branch allows control to be transferred to a target address depending on the outcome of a previous instruction. A conditional branch can be either resolved or unresolved, depending on whether the outcome of the previous instruction is known at the time the branch is executed. If the branch is resolved, it is known whether the branch will be taken or not. If the conditional branch is not taken, the sequential instruction stream immediately following the branch instruction is executed. If the conditional branch is executed, the instruction stream starting at the target address is executed.
[0027] The instruction fetch unit 206 fetches an instruction from the instruction cache 204 according to the instruction address for further processing by the decode unit 20. The decode unit 20 decodes the instruction and passes the decoded instruction, part of the instruction, or other decoded data to the issue unit 22. The decode unit 20 may also detect a branch instruction that was not predicted by the branch predictor 208. The issue unit 22 analyzes the instruction or other data and sends the decoded instruction, part of the instruction, or other data based on the analysis to one or more execution units in the execution unit 24. The execution unit 24 executes the instruction and determines whether the predicted branch direction is incorrect. The branch direction may be "taken". In this case, the subsequent instruction is fetched from the target address of the branch instruction. Conversely, the branch direction may be "not taken". In this case, the subsequent instruction is fetched from a memory location consecutive to the branch instruction. If a mispredicted branch instruction is detected, the instructions following the mispredicted branch may be discarded from various units of the processor 200.
[0028] Execution unit 24 may include multiple execution units, such as a fixed-point execution unit, a floating-point execution unit, a load / store execution unit (or a load store unit, denoted as LSU), and a vector multimedia execution unit. Execution unit 24 may also include a dedicated branch predictor for predicting targets of multi-target branches. Writeback logic 26 writes the results of instruction execution back to destination resource 220. Destination resource 220 may be any type of resource, including registers, cache memory, other memory, I / O circuitry for communicating with other devices, other processing circuitry, or any other type of destination for executed instructions or data. One or more of the processor pipeline units may also provide information regarding the execution of conditional branch instructions to branch predictor 208.
[0029] In one example, an execution slice may refer to a set of serially connected data processing circuits or hardware units within a processor core. An execution slice may be a pipeline or a pipeline-like structure. Multiple execution slices may be used as part of simultaneous multi-threading within one of multiple processor cores in a multiprocessor system. In modern computer architectures, multiple execution units may be present within an execution slice, such as an LSU, a vector scalar unit (VSU), an arithmetic logic unit (ALU), etc. An LSU typically includes one or more store queues, each of which tracks store instructions and has entries for holding store data, and one or more load queues, each of which tracks load instructions and has entries for holding load data.
[0030] In one embodiment, processor 200 may perform branch prediction to speculatively fetch instructions following a conditional branch instruction. Branch predictor 208 is included to perform such branch prediction operations. In one embodiment, instruction cache 204 may provide branch predictor 208 with an indication of an instruction address to be fetched. Branch predictor 208 may then determine which branch target address to select to form a branch prediction. Branch predictor 208 may be coupled to various portions of processing pipeline 210, such as execution unit 24, decode unit 20, and reorder buffer, to determine whether the predicted branch direction is correct or incorrect.
[0031] To facilitate multithreading, instructions from different threads may be interleaved in some manner at some point in the overall processor pipeline. One example of a technique for interleaving instructions from different threads is to interleave the instructions cycle by cycle based on an interleaving rule. For example, instructions from different threads may be interleaved such that the processor executes an instruction from the first thread in a first clock cycle, then executes an instruction from the second thread in a second clock cycle, followed by another instruction from the first thread in a third clock cycle, and so on. Some interleaving techniques assign a priority to each thread and interleave instructions from different threads based on the assigned priority. For example, if a first thread is assigned a higher priority than a second thread, the interleaving rule may require that the interleaved stream include twice as many instructions from the first thread, which is assigned a higher priority, as instructions from the second thread, which is assigned a lower priority. A variety of different interleaving rules can be configured, including rules designed to resolve threads of the same priority, and rules that periodically interleave instructions from less important threads (e.g., execute instructions from a low priority thread every X cycles).
[0032] Priority-based thread interleaving allows processor resources to be allocated based on assigned priorities. However, thread priorities may not take into account processor events (e.g., branch mispredictions) that may affect the ability of a thread to progress through the processor pipeline. Such events may affect the efficiency of processor resources allocated among different instruction threads in a multithreaded processor. For example, priority-based techniques that give higher priority to threads with fewer instructions in the decode, rename, and instruction queue stages of the pipeline may be ineffective in reducing the number of false path instructions that result from branch mispredictions (e.g., misspeculated instructions) in the pipeline. These false path instructions may occupy the processor's fetch bandwidth and other valuable resources, such as the instruction queue and other functional units.
[0033] The efficiency and / or performance of processor 200 may be improved by reducing the number of erroneous path instructions in processing pipeline 210. For example, threads with higher misprediction rates may be delayed in processing pipeline 210 (e.g., fetched later by an instruction fetch unit), thereby reducing the number of erroneous path instructions in processing pipeline 210. Additionally, processing pipeline 210 may be tracked for multiple instructions following an initial uncompleted or unresolved branch instruction to prevent excessive execution of potentially erroneous path instructions.
[0034] In one embodiment, the processor 200 may be an SMT processor configured to perform multithreading. The processor 200 may use one or more instruction queues 212 to collect instructions from one or more different threads. The instruction fetch unit 206 may fetch instructions stored in the instruction cache 204 and fill the instruction queue 212 with the fetched instructions. The performance of the processor 200 may depend on how the instruction fetch unit 206 fills the instruction queue 212. The instruction fetch unit 206 may be configured to assign and manage priorities of the different threads, determine which instructions and / or threads to fetch based on the priorities, and send the fetched instructions to the instruction queue 212. The processor 200 may further include a thread scheduler 214 configured to schedule and distribute the instructions in the instruction queue 212 to the processing pipeline 210. In one example, the processor 200 may be a multi-core processor including two or more processor cores, and each core may be configured to process a respective thread.
[0035] In one example, when execution unit 24 is load store unit (LSU) 228, circuit 230 may be embedded or integrated into LSU 228 to implement a delay in SRQ drain. The delay in SRQ drain may be, for example, delaying or slowing a drain cycle of store reorder queue (SRQ) 229 (or store queue) to a memory (e.g., an L2 cache that may be part of destination resource 220). In one example, circuit 230 may be activated (e.g., switched on) or deactivated (e.g., switched off) by processor 200. Activation and deactivation of circuit 230 may be based on an operating state of processor 200 or other processors or processor cores or combinations thereof in a multiprocessor system. For example, processor 200 may activate circuit 230 to apply a delay to a drain cycle of SRQ 229 in LSU 228. In another example, processor 200 may deactivate circuit 230 to prevent application of a delay to a drain cycle of SRQ 229 in LSU 228. By applying a delay to the drain cycle of SRQ 229, processor 200 can use additional time to verify whether cache coherence (including, for example, load coherence and store coherence) of processor 102 is successful or unsuccessful. For example, this additional time increases the likelihood that a committed store instruction remains in SRQ 229. This allows processor 102 to test the SRQ logic that is being used to detect an empty SRQ and trigger the sending of an acknowledge signal. If the SRQ is always empty when a TLBI instruction arrives, the SRQ logic cannot be tested. If a TLBI instruction is received and the SRQ logic triggers a processing element to drain the SRQ before sending an acknowledge signal, cache coherence of processor 102 can be considered successful. If a TLBI instruction is received but the SRQ logic does not trigger the drain of the SRQ and the processing element sends an acknowledge signal without draining the SRQ, cache coherence of processor 102 can be considered unsuccessful.
[0036] FIG. 3 illustrates an example implementation of store coherence verification associated with invalidating page translations in one embodiment. In one example, processor 200 (see FIGS. 1 and 2) may include N processing elements, such as processing elements 310, 320, 340 (labeled core 0, core 1, core N). Note that while three processor cores are shown in FIG. 3, processor 200 may have additional processor cores. Interconnect 301 (e.g., a bus, mesh network, crossbar, etc.) may connect core 0, core 1, and core N, as well as other cores of processor 200. Core 0 may include a load store unit (LSU) 312, a level 2 (L2) cache 316, and a TLB 318. LSU 312 may include an SRQ 314. TLB 318 may include a number of entries indicating mappings between virtual memory addresses and physical memory addresses assigned to core 0. For example, TLB 318 may include entries labeled M1, M2, M3, and M4. Core 0 may include load store unit (LSU) 312, level 2 (L2) cache 316, and TLB 318. LSU 312 may include SRQ 314. Core 1 may include LSU 322, L2 cache 326, and TLB 328. LSU 322 may include SRQ 324. TLB 328 may include multiple entries indicating mappings between virtual memory addresses and physical memory addresses assigned to Core 1. Core N may include LSU 342, L2 cache 346, and TLB 348. LSU 342 may include SRQ 344. TLB 348 may include multiple entries indicating mappings between virtual memory addresses and physical memory addresses assigned to Core N. In one or more example embodiments, L2 caches 316, 326, 346 may be individual memory banks of a global L2 cache accessible by core 0, core 1, and core N.
[0037] In one example, in response to an event such as a context switch, Core 0 may invalidate entries in TLB 318 and broadcast a translation lookaside buffer invalidate (TLBI) instruction 302 on interconnect 301. TLBI instruction 302 may be an instruction to other processing elements to invalidate one or more TLB entries in their respective TLBs that correspond to a particular virtual address (e.g., P3) and / or a particular physical address (e.g., F4). For example, TLBI instruction 302 may be an instruction to processing elements other than Core 0 to invalidate TLB entries that map a virtual address to physical address F4.
[0038] The TLBI instruction 302 may propagate from core 0 to the interconnect 301, then within the interconnect 301, and then from the interconnect 301 to processing elements such as core 1 and core N. Thus, the propagation time of the TLBI instruction 302 may be the sum of the time it takes for the TLBI instruction 302 to propagate from core 0 through the interconnect 301 to the receiving core (e.g., core 1, core N). Note that the propagation time of the TLBI instruction 302 may vary between different processing elements based on the distance between the receiving core and the core that issued the TLBI instruction 302, as well as other factors such as various process variations, hardware capabilities of the cores, traffic on the interconnect, etc. Note that while core 0 is shown in FIG. 3 as the processing element that issues the TLBI instruction, other processing elements such as core 1 and core N may also be configured to issue TLBI instructions related to TLB entry invalidation in their respective TLBs.
[0039] Core 1 may receive TLBI instruction 302 from interconnect 301 and, in response, drain SRQ 324 or any entries remaining in SRQ 324 in LSU 322. Here, the SRQ entries to be drained may be committed store instructions. In response to fully draining SRQ 324, core 1 may send an acknowledgement signal (ACK) 304 to core 0 to inform core 0 that SRQ 324 has been drained. In response to sending ACK 304, core 1 may invalidate TLB entries in TLB 328 associated with virtual address P3 and / or virtual address F4 indicated in TLBI instruction 302. For example, core 1 may invalidate entry M2 in TLB 328 that maps virtual address P3 to virtual address F4. In response to receiving ACK 304 from core 1 and all other cores (e.g., ACK 306 from core N), core 0 may invalidate TLB entries in TLB 318 associated with virtual address P3 and / or virtual address F4. In one example, Core 0 may wait for an ACK signal from all cores before resuming normal operation. For example, in response to receiving an ACK signal from all cores, Core 0 may map page P3 to a different physical address and update TLB 318 with the new mapping.
[0040] In one example, core 1 may execute logic 327 to detect whether SRQ 324 is empty. In response to SRQ 324 being empty, core 1 may trigger an action to send ACK 304 to core 0. However, if logic 327 is corrupted, core 1 may erroneously detect that SRQ 324 is empty when SRQ 324 is not empty. If core 1 sends ACK 304 to core 0 when SRQ is not empty, a problem may occur if committed store instructions are not properly drained from SRQ 324. For example, if a committed store instruction to store to F4 remains in SRQ 324 but corruption in logic 327 prevents core 1 from detecting that this committed store instruction exists in SRQ 324, core 1 may send ACK 304 to core 0 and invalidate entry M2. As a result of this error, core 0 and cores other than core 1 may not see the value to be updated in F4 because the committed store instruction remaining in SRQ 324 was not drained.
[0041] To reduce the likelihood of failing to properly drain an SRQ, Core 0, Core 1, and Core N may implement a delay circuit (e.g., circuit 230 shown in FIG. 2) that is configurable to apply a delay 330 to the drain cycle of the SRQ 314, 324, 344, respectively. In one example, the delay circuit may be integrated into the LSU 312, 322, 342. The delay 330 may be a certain number of cycles added to the default drain cycle of the SRQ (e.g., SRQ 314, 324, 344), such that the SRQ 314, 324, 344 may be drained at a slower rate in response to the application of the delay 330. Slowing down the SRQ drain cycle may increase the likelihood that an SRQ entry remains in the SRQ upon receipt of a TLBI instruction. In other words, the delay 330 may provide additional time for the receiving processing element (e.g., Core 1 or Core N receiving the TLBI instruction 302) to identify the SRQ entry associated with the TLBI instruction 302 and take appropriate action to remedy the situation. For example, core 1 may identify an SRQ entry in SRQ 324 that is associated with F4 and drain the identified entry from SRQ 324 to L2 cache 326. In response to draining SRQ 324 (e.g., draining SRQ 324 until it is empty), core 1 may invalidate a TLB entry in TLB 328 that is associated with TLBI instruction 302.
[0042] FIG. 4 illustrates another example implementation of store coherence verification related to invalidating page translation in one embodiment. In the example illustrated in FIG. 4, scenario 401 shows core 1 processing TLBI instruction 302 without applying delay 330, and scenario 402 shows core 1 processing TLBI instruction 302 with applying delay 330. In scenario 401, when core 1 receives TLBI instruction 302 from the interconnect, SRQ 324 is empty and SRQ entries E1, E2, E3 have already been drained, for example, to L2 cache 326. If SRQ entry E3 is associated with TLBI instruction 302 (e.g., write to physical address F4) and SRQ entry E3 was drained before core 1 received TLBI instruction 302, E3 would have been properly drained. However, if logic 327 (see FIG. 3) is corrupted in scenario 401, it may be incorrect that SRQ 324 is empty. If Core 1 erroneously determines that SRQ 324 is empty, even though SRQ entry E3 is present in SRQ 324, then entry E3 may not be drained before Core 1 sends ACK 304 to Interconnect 301.
[0043] In scenario 402, when core 1 receives TLBI instruction 302 from the interconnect, delay 330 is applied to the drain cycle of SRQ 324, resulting in SRQ 324 not being empty and SRQ entry E3 remaining in SRQ 324. Core 1 may determine that SRQ entry E3 is associated with TLBI instruction 302 and drain SRQ entry E3 from SRQ 324 before sending ACK 304 to interconnect 301. Applying delay 330 may slow down the drain of SRQ 324 and provide additional time for core 1 to identify an SRQ entry in SRQ 324. As an example, in scenario 401, core 1 may rely on logic 327 indicating SRQ 325 is empty and send ACK 304 to interconnect 301 without checking whether any entries remain in SRQ 324. Delaying the SRQ drain cycle reduces the likelihood that SRQ 324 is empty. This can trigger Core 1 to drain SRQ 324 before sending ACK 304.
[0044] In one example, the delay 330 may be a specific number of cycles added to the default drain cycles of the SRQ 324. And the number of cycles of the delay 330 may be proportional to the time required to propagate the TLBI instruction 302 among all the cores in the multiprocessor system. In one example, the number of cycles of the delay 330 may be a product of the number of cycles required to drain each entry of the SRQ 324 and the size of the SRQ 324 (e.g., the number of allowed entries or the maximum number of entries in the SRQ 324). For example, the default number of cycles required to drain each entry of the SRQ 324 may be 2 (e.g., one SRQ entry is drained every two cycles), and the number of allowed entries in the SRQ 324 may be 64. Thus, the number of cycles of the delay 330 may be any multiple of 64. In another example, the circuit 230 (see FIG. 2) may include a random number generator that generates a random number between 1 and a multiple of the number of allowed entries in the SRQ 324. The generated random number may be set as the number of cycles of the delay 330 or the number of delay cycles for each SRQ entry, or both. For example, the delay 330 applied to the first SRQ entry may be a first number of cycles, and the delay 330 applied to the second SRQ entry may be a second number of cycles. In one example, the circuit 230 may include a linear feedback shift register (LFSR) capable of implementing random number generation. The number of cycles defining the delay 330 may be arbitrary and may be configured or programmed based on the desired implementation of the processor 102 (see FIG. 2).
[0045] FIG. 5 illustrates another example implementation of store coherence verification associated with invalidating page translations in one embodiment. In the example illustrated in FIG. 5, a TLBI cycle 500 may extend from time T0 to time T3. The TLBI cycle 500 may include a propagation time of a TLBI instruction from a first processing element to a second processing element. An SRQ drain cycle 502 may extend from time T0 to time T1. The SRQ drain cycle may be smaller than a TLB cycle. This may cause the SRQ to be drained at a faster pace than the propagation of the TLBI instruction. Thus, if the SRQ is drained faster than the propagation of the TLBI instruction, it is more likely that the SRQ is empty when the TLBI instruction arrives at the processing element. If the SRQ is empty when the TLBI arrives, the SRQ logic implemented to detect whether the SRQ is empty cannot be tested because the SRQ is already empty (e.g., there is no non-empty SRQ to detect).
[0046] Applying the delay 330 to the SRQ drain cycle 502 allows the SRQ to be drained at a slower pace under the delayed SRQ drain cycle spanning time T0 to T2. Thus, the difference between the TLBI cycle 500 and the SRQ drain cycle 502 can be reduced. In other words, the amount of overlap between the SRQ drain cycle 502 and the TLBI cycle 500 can be increased as the delay 330 is applied. The additional time T1-T2 resulting from the delay 300 can increase the likelihood that the SRQ holds more SRQ entries. This can test the chance that the SRQ is not empty when the TLBI instruction arrives, testing the SRQ logic (e.g., implemented to detect an empty SRQ to send an acknowledgment). Note that the delay 330 can be variable. Thus, the SRQ drain cycle 502 can be delayed by different amounts depending on the desired implementation.
[0047] 6 illustrates an example flowchart of store coherence verification in connection with invalidating page translations, according to one embodiment. Process 600 may include one or more operations, acts, or functions, as illustrated by one or more of blocks 602, 604, or 606, or combinations thereof. It is noted that, although shown as separate blocks, various blocks may be divided into additional blocks, combined into fewer blocks, eliminated, performed in parallel, or performed in a different order, depending on the desired implementation.
[0048] Process 600 may begin at block 602. At block 602, a processing element may apply a delay to a drain cycle of a store order queue (SRQ) of the processing element. The processing element may be one of a plurality of processing elements in a data processing system. Process 600 may proceed from block 602 to block 604. At block 604, the processing element may drain the SRQ under a delayed drain cycle. In one example, the delay may be proportional to the time required to propagate a TLBI instruction from another processing element to the processing element through an interconnect. In another example, the delay may be based on the product of the number of cycles required to drain each entry of the SRQ and the size of the SRQ. In another example, the number of cycles of the delay may be based on a random number between 1 and a multiple of the size of the SRQ.
[0049] Process 600 may proceed from block 604 to block 606. At block 606, the processing element may receive a translation lookaside buffer invalidate (TLBI) instruction from an interconnect connecting the multiple processing elements. The TLBI instruction may be an instruction to invalidate a translation lookaside buffer (TLB) entry corresponding to at least one of a virtual memory page and a physical memory frame. The TLBI instruction may be broadcast by another processing element connected to the interconnect. A delay may be applied to the drain cycle of the SRQ to reduce the difference between the drain cycle of the SRQ and the invalidation cycle associated with the TLBI.
[0050] In one example, in response to receiving the TLBI instruction, the processing element may determine whether to send an acknowledgement signal or drain the SRQ. For example, the processing element may identify an SRQ entry in the SRQ associated with the TLB entry to be invalidated and drain the identified SRQ entry from the SRQ. In one example, in response to draining the SRQ completely, the processing element may send an acknowledgement signal over the interconnect to the processing element that broadcast the TLBI instruction. In one example, in response to receiving the TLBI instruction, the processing element may determine that the SRQ is empty and send an acknowledgement signal over the interconnect to the processing element that broadcast the TLBI instruction.
[0051] The present invention may be a system, method or computer program product, or combination thereof, integrated at any possible level of technical detail. The computer program product may include a computer readable storage medium having stored thereon computer readable program instructions for causing a processor to carry out aspects of the present invention.
[0052] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. The computer-readable storage medium may be, for example, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or a suitable combination thereof. More specific examples of computer-readable storage media include portable computer diskettes, hard disks, RAM, ROM, erasable programmable ROM (EPROM or flash memory), static random access memory (SRAM), CD-ROM, DVD, memory stick, floppy disk, punch cards or mechanically encoded devices with instructions recorded on ridges in grooves, and the like, and suitable combinations thereof. As used herein, a computer-readable storage medium should not be construed as a transitory signal per se, such as an electric wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a wave guide or other transmission medium (e.g., a light pulse passing through a fiber optic cable), or an electric signal transmitted through a wire.
[0053] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing device / processing device. Alternatively, they can be downloaded to an external computer or external storage device via a network (e.g., the Internet, a LAN, a WAN, or a wireless network, or a combination thereof). The network can include copper transmission cables, optical transmission fiber, wireless transmission, routers, firewalls, switches, gateway computers, or edge servers, or a combination thereof. A network adapter card or network interface in each computing device / processing device receives the computer-readable program instructions from the network and transfers the computer-readable program instructions to a computer-readable storage medium in the respective computing device / processing device for storage.
[0054] The computer readable program instructions for carrying out the operations of the present invention may be either assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state setting data, configuration data for an integrated circuit, or source or object code written in any combination of one or more programming languages, including object oriented programming languages such as Smalltalk and C++, and procedural programming languages such as the "C" programming language and similar programming languages. The computer readable program instructions may be executed entirely on the user's computer as a stand-alone software package, or partially on the user's computer, or partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a LAN or WAN, or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider). In some embodiments, electronic circuitry, including, for example, programmable logic circuitry, field programmable gate arrays (FPGAs), programmable logic arrays (PLAs), can execute computer readable program instructions by utilizing state information of the computer readable program instructions to customize the electronic circuitry for carrying out aspects of the present invention.
[0055] Aspects of the present invention are described herein with reference to flowchart and / or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. Each block of the flowchart and / or block diagrams, and combinations of blocks in the flowchart and / or block diagrams, can be implemented by computer readable program instructions.
[0056] These computer-readable program instructions can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, whereby these instructions, executed via the processor of such computer or other programmable data processing apparatus, create means for performing the functions / operations specified in one or more blocks in the flowcharts and / or block diagrams. These computer-readable program instructions can further be stored on a computer-readable storage medium capable of instructing a computer, programmable data processing apparatus, or other device, or combination thereof, to function in a particular manner. The computer-readable storage medium having instructions stored thereon thereby constitutes an article of manufacture including instructions for performing the functions / operations specified in one or more blocks in the flowcharts and / or block diagrams.
[0057] Also, computer-readable program instructions may be loaded into a computer, other programmable apparatus, or other device and a sequence of operational steps executed on the computer, other programmable apparatus, or other device to generate a computer-implemented process, whereby the instructions executing on the computer, other programmable apparatus, or other device perform the functions / operations identified in one or more blocks in the flowcharts and / or block diagrams.
[0058] The flowcharts and block diagrams in the drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowcharts or block diagrams may represent a module, segment, or portion of instructions, including one or more executable instructions for performing a specific logical function. In some other implementations, the functions shown in the blocks may be executed in a different order than the order shown in the figures. For example, two blocks shown in succession may actually be executed substantially simultaneously, or the blocks may be executed in reverse order depending on the functionality involved. It should be noted that each block in the block diagrams and / or flowcharts, and combinations of multiple blocks in the block diagrams and / or flowcharts, may be executed by a dedicated hardware-based system that performs a specific function or operation or executes a combination of dedicated hardware and computer instructions.
[0059] The terms used herein are for the purpose of describing particular embodiments only and are not intended to limit the present invention. In addition, in this specification and the appended claims, the singular forms "a", "an" and "the" include the plural forms unless otherwise specified. Furthermore, when the terms "comprises" and / or "comprising" are used in this specification, they specify the presence of the stated features, integers, steps, operations, elements, or components or combinations thereof, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or groups or combinations thereof.
[0060] Whenever a means-plus-function or step-plus-function element appears in the following claims, all corresponding structures, materials, acts, and equivalents thereof are intended to include any structure, material, or act for performing a function in combination with other claim elements specifically claimed. The description of the present invention has been presented for purposes of illustration and description, and is not intended to be exhaustive or to limit the invention to the disclosed form. Many modifications and variations will be apparent to those skilled in the art without departing from the scope of the invention. The present embodiment has been chosen and described in order to best explain the principles and practical applications of the invention, and to enable others skilled in the art to understand the invention in various embodiments with various modifications suitable for the particular use contemplated.
Claims
1. 1. A method for invalidating page translation entries in a data processing system having a plurality of processing elements, comprising: applying a delay to a drain cycle of a store order queue (SRQ) of the processing element; draining the SRQ under the delayed drain cycle; receiving a translation lookaside buffer invalidate (TLBI) command from an interconnect connecting the plurality of processing elements, the TLBI command being an instruction to invalidate a translation lookaside buffer (TLB) entry corresponding to at least one of a virtual memory page and a physical memory frame, the TLBI command being broadcast by another processing element; The method of claim 1, wherein applying the delay to the drain cycle of the SRQ increases an amount of overlap between the drain cycle of the SRQ and an invalidation cycle associated with the TLBI.
2. identifying an SRQ entry in the SRQ that is associated with the TLB entry to be invalidated; draining the identified SRQ entry from the SRQ; The method of claim 1 further comprising:
3. 2. The method of claim 1, further comprising: in response to fully draining the SRQ, sending an acknowledgement signal via the interconnect to the other processing element.
4. 2. The method of claim 1, wherein the delay is proportional to the time it takes for the TLBI instruction to propagate across the interconnect from the other processing element to the processing element.
5. 2. The method of claim 1, wherein the delay is based on the product of the number of cycles it takes to drain each entry in the SRQ and the size of the SRQ.
6. The method of claim 1 , wherein the number of cycles of the delay is based on a random number between 1 and a multiple of a size of the SRQ.
7. A first processing element; A second processing element; and an interconnect coupled to the first processing element and the second processing element; A computer system comprising: the first processing element is configured to broadcast a translation lookaside buffer invalidate (TLBI) instruction on the interconnect, the TLBI instruction being an instruction to invalidate a translation lookaside buffer (TLB) entry corresponding to at least one of a virtual memory page and a physical memory frame; The second processing element: applying a delay to a drain cycle of a store order queue (SRQ) of the second processing element; draining the SRQ under the delayed drain cycle; receiving the TLBI command from the interconnect; and configured to execute the TLBI command; A computing system, wherein applying the delay to the drain cycle of the SRQ increases an amount of overlap between the drain cycle of the SRQ and an invalidation cycle associated with the TLBI.
8. The second processing unit is identifying an SRQ entry in the SRQ that is associated with the TLB entry to be invalidated; draining the identified SRQ entry from the SRQ; The computing system of claim 7 configured to execute:
9. 8. The computing system of claim 7, wherein the second processing element is configured to transmit an acknowledgement signal to the first processing element via the interconnect in response to fully draining the SRQ.
10. 8. The computing system of claim 7, wherein the delay is proportional to the time it takes for the TLBI instruction to propagate from the first processing element to the second processing element through the interconnect.
11. 8. The computing system of claim 7, wherein the delay is based on the product of the number of cycles it takes to drain each entry in the SRQ and the size of the SRQ.
12. The computing system of claim 7 , wherein the number of cycles of the delay is based on a random number between 1 and a multiple of a size of the SRQ.
13. The computing system of claim 12 , wherein the one or more execution units include a random number generator configured to generate the random numbers.
14. 14. The computing system of claim 13, wherein the random number generator is implemented by one or more linear feedback shift registers.
15. A computer program comprising program code adapted to perform the method steps of any of the methods claimed in claims 1 to 6, when the program is run on a computer.
16. 1. A processing element comprising a processor pipeline including one or more load store units (LSUs) configured to execute load and store instructions, the one or more LSUs comprising: applying a delay to a drain cycle of a store order queue (SRQ) of said processing element; draining the SRQ under the delayed drain cycle; receiving a translation lookaside buffer invalidate (TLBI) instruction from an interconnect connecting a plurality of processing elements, the TLBI instruction being an instruction to invalidate a translation lookaside buffer (TLB) entry corresponding to at least one of a virtual memory page and a physical memory frame, the TLBI instruction being broadcast by another processing element; A processing element, wherein applying the delay to the drain cycle of the SRQ increases an amount of overlap between the drain cycle of the SRQ and an invalidation cycle associated with the TLBI.
17. The one or more LSUs include: identifying an SRQ entry in the SRQ that is associated with the TLB entry to be invalidated; draining the identified SRQ entry from the SRQ; 20. The processing element of claim 16 configured to execute:
18. 17. The processing element of claim 16, wherein the one or more LSUs are configured to transmit an acknowledgement signal via the interconnect to the other processing element in response to fully draining the SRQ.
19. 17. The processing element of claim 16, wherein the delay is proportional to the time it takes for the TLBI instruction to propagate from the other processing element to the processing element over the interconnect.
20. 17. The processing element of claim 16, wherein the delay is based on the product of the number of cycles it takes to drain each entry in the SRQ and the size of the SRQ.
21. The processing element of claim 16 , wherein the number of cycles of the delay is based on a random number between 1 and a multiple of a size of the SRQ.
Citation Information
Patent Citations
Method and system for maintenance of coherence of conversionindex buffer
JP1994187241A
Invalidating Address Translation Data
JP2020525905A
Hazard detection of out-of-order execution of load and store instructions in processors without using real addresses
US20190310858A1
