Lossless Mode Switching for AP Crypto Adapters

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing systems face challenges in dynamically switching between polling mode and interruption mode for AP crypto adapters without losing I/O replies, particularly due to asynchronous activation of interruption mode and potential delays in processing pending replies.

Innovation Solution

A method is implemented to support lossless transitions between interruption and polling modes by launching a task to process replies for a resource, using a state variable or timed trigger to manage the switching process, and ensuring timely processing of ready replies.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If the system switches from polling mode to interruption mode, then system performance and responsiveness are improved, but there is a risk of losing I/O replies due to asynchronous activation

Engineering Contradiction:
Improvesystem performanceVSAvoidI/O reply completeness
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent applies preliminary action by checking whether any I/O reply is already pending before switching from polling mode to interruption mode. The system determines if a reply is ready in advance of the mode switch, ensuring that no replies are lost during the transition. This preemptive check resolves the contradiction by maintaining reliability while enabling the performance benefits of interruption mode.

Inventive Principle:
Principle #10Preliminary action

2Reliability

If the system uses polling mode to check for replies, then all replies are reliably detected, but processing delays occur due to continuous polling overhead

Engineering Contradiction:
Improvereply detection accuracyVSAvoidprocessing delay
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies dynamics by dynamically switching between polling mode and interruption mode based on system state. Instead of continuously polling, the system transitions to interruption mode when appropriate, allowing the I/O subsystem to主动 notify the system when replies are ready. This dynamic adaptation eliminates continuous polling overhead while maintaining reliable reply detection, thus reducing processing delays without sacrificing reliability.

Inventive Principle:
Principle #15Dynamics

3Speed

If the system activates interruption mode asynchronously, then response time to I/O events is reduced, but the switching timing becomes unpredictable causing potential reply loss

Engineering Contradiction:
Improveresponse timeVSAvoidmode switching control
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

The patent applies feedback by using the state of I/O reply queues to control the timing of mode switches. Before switching from polling to interruption mode, the system checks feedback information about pending replies and ensures the switch occurs at an appropriate time when no replies are at risk of being lost. This feedback-controlled approach maintains simple switching logic while achieving fast response times and preventing reply loss.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS12321776B2Switching between polling-mode and interruption-driven modes without loss of I/O replies
Publication Date: 2025.06.03 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US12321776B2 patent drawing
  • US12321776B2 patent drawing
  • US12321776B2 patent drawing

AI summary

A method, computer program product, and computer system are provided for supporting lossless transitions between interruption and polling mode of a resource. In response to a state variable setting or a timed trigger, launching a task to process replies for a resource. The task processes each ready reply for each resource. A timed trigger is established to relaunch the task based on the task executing in polling mode. The task is exited.