Multithreaded Processor Lock Indicator for TLB Miss Handling

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Multithreaded processors face issues with unreliable software locks and processing delays due to shared resource management, particularly in handling exceptions and TLB miss events, which can lead to unpredictable behavior and increased power consumption.

Innovation Solution

A system and method that utilize a TLB lock indicator to automatically lock and unlock shared resources, using a control logic circuit to manage thread access and exception handling, allowing threads to sleep until resources are available, thereby reducing power consumption and improving processing efficiency.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If software locks are used to manage shared resources, then resource access control is provided, but processing delays occur due to repeated lock checking and unreliable operation

Engineering Contradiction:
Improveshared resource access controlVSAvoidprocessing delay
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent replaces the software-based lock mechanism with a hardware lock indicator bit stored in a control register. This hardware mechanism automatically sets the lock bit when a thread accesses a shared resource, eliminating the need for software to repeatedly check lock status. The hardware lock provides reliable access control while reducing processing delays caused by software lock checking loops.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Reliability

If threads repeatedly check lock status, then resource availability is monitored, but dynamic power consumption increases

Engineering Contradiction:
Improvelock status monitoringVSAvoiddynamic power consumption
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The patent replaces active software polling of lock status with a passive hardware-based lock indicator. Threads no longer need to repeatedly read memory locations to check lock status; instead, the hardware lock bit automatically indicates resource availability. This eliminates the continuous power consumption associated with repeated memory accesses and lock checking instructions.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Solution Approach 2:

The hardware lock indicator automatically updates itself based on thread access to shared resources. When a thread enters a critical section, the hardware mechanism automatically sets the lock bit, and when the thread exits, the lock bit is automatically cleared. This self-updating mechanism eliminates the need for threads to actively monitor lock status, reducing power consumption.

Inventive Principle:
Principle #25Self-service

3Productivity

If shared resources are accessed by multiple threads concurrently, then processing throughput is improved, but unpredictable results occur due to race conditions

Engineering Contradiction:
Improveprocessing throughputVSAvoidresult predictability
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent introduces a hardware lock indicator bit as an intermediary between multiple threads and shared resources. This lock bit acts as a mediator that coordinates access to shared resources, ensuring that only one thread can modify a shared resource at a time. The hardware mechanism automatically manages the lock state, providing predictable and reliable results while allowing multiple threads to efficiently access shared resources through controlled concurrency.

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentEP2232370B1Multithreaded processor with lock indicator
Publication Date: 2015.11.04 QUALCOMM INC
  • EP2232370B1 patent drawingFigure 1
  • EP2232370B1 patent drawingFigure 2
  • EP2232370B1 patent drawingFigure 3

AI summary

Systems and methods including a multithreaded processor with a lock indicator are disclosed. In an embodiment, a system includes means for indicating a lock status of a shared resource in a multithreaded processor. The system includes means for automatically locking the shared resource before processing exception handling instructions associated with the shared resource. The system further includes means for unlocking the shared resource.