TLB Lock Indicator Mechanism for Critical Translation Reliability

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current processors lack the ability to directly lock entries in Level-0 (L0) and Level-1 (L1) Translation Lookaside Buffers (TLBs) against replacement, which is necessary for ensuring fast translation for critical tasks, especially in systems where TLB management is hardware-controlled and not accessible by the operating system.

Innovation Solution

Incorporating L0 Lock (L0L) and L1 Lock (L1L) indicators in TLB entries to allow the operating system to lock specific entries against replacement, ensuring that critical translations are always available and maintained in the TLB, even in hardware-managed systems.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If TLB management is hardware-controlled without lock indicators, then device complexity is reduced, but the ability to guarantee fast translation for critical tasks is lost

Engineering Contradiction:
Improveguarantee of fast translation for critical tasksVSAvoidTLB entry structure
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The TLB lock mechanism is segmented into two parts: lock indicators stored in page table entries (software-controlled) and lock state tracking in the TLB hardware (hardware-controlled). This segmentation allows the operating system to specify which entries should be locked while the hardware automatically manages the locking state, resolving the contradiction between reliability and complexity.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces lock indicator bits in page table entries as an intermediary between the operating system and the TLB hardware. These indicators serve as a communication mechanism that allows software to convey locking requirements to the hardware without direct access to TLB internal state, enabling reliable critical task translation while maintaining hardware autonomy.

Inventive Principle:
Principle #24Intermediary (Mediator)

2Reliability

If the operating system can directly access and lock TLB entries, then translation reliability for critical tasks is improved, but device complexity and control mechanisms increase

Engineering Contradiction:
ImproveTLB entry locking capabilityVSAvoidTLB management accessibility
Core Design Contradiction:
ReliabilityVSEase of operation

Solution Approach 1:

The lock indicator bits in page table entries serve as an intermediary that allows the operating system to control TLB locking without direct access to TLB hardware. The hardware automatically reads these indicators and applies locking accordingly, maintaining ease of operation while achieving reliability.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The TLB hardware automatically manages the locking of entries based on indicators in page table entries, without requiring direct OS intervention. The hardware self-services the locking function by monitoring page table walk results and automatically setting lock states, simplifying the interface between software and hardware.

Inventive Principle:
Principle #25Self-service

3Speed

If TLB entries are locked against replacement, then translation speed for critical tasks is maintained, but TLB replacement efficiency decreases

Engineering Contradiction:
Improvetranslation speed for critical tasksVSAvoidTLB replacement efficiency
Core Design Contradiction:
SpeedVSProductivity

Solution Approach 1:

The patent applies locking selectively to specific TLB entries based on their importance, rather than locking the entire TLB. Critical task entries are locked to maintain translation speed, while non-critical entries remain available for replacement. This local differentiation resolves the contradiction between maintaining speed for important tasks and preserving overall replacement efficiency.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The lock state of TLB entries is dynamic and task-dependent rather than static. Entries are locked only when needed for critical tasks and can be unlocked when no longer required, allowing the system to adapt to changing workload requirements. This dynamic approach maintains translation speed when needed while preserving replacement efficiency during normal operation.

Inventive Principle:
Principle #15Dynamics

Data Source

PatentEP1934753B1TLB lock indicator
Publication Date: 2018.08.08 QUALCOMM INC
  • EP1934753B1 patent drawingFigure 1
  • EP1934753B1 patent drawingFigure 2
  • EP1934753B1 patent drawingFigure 3

AI summary

A processor includes a hierarchical Translation Lookaside Buffer (TLB) comprising a Level-1 TLB and a small, high-speed Level-0 TLB. Entries in the L0 TLB replicate entries in the L1 TLB. The processor first accesses the L0 TLB in an address translation, and access the L1 TLB if a virtual address misses in the L0 TLB. When the virtual address hits in the L1 TLB, the virtual address, physical address, and page attributes are written to the L0 TLB, replacing an existing entry if the L0 TLB is full. The entry may be locked against replacement in the L0 TLB in response to an L0 Lock (L0L) indicator in the L1 TLB entry. Similarly, in a hardware-managed L1 TLB, entries may be locked against replacement in response to an L1 Lock (L1L) indicator in the corresponding page table entry.