Conversation
This implements notification system inspired by seL4, with asynchronous
event delivery, notification masks, and IRQ fast-path optimization.
- Three-layer architecture: Basic/Async/Mask notifications
- IRQ fast-path delivery (5-10× faster than full IPC)
- Async queue with bounded RT processing
- Extended notification API with event_data payload
- Notification masks for multi-source event coordination
- TCB fields: notify_bits, notify_{data,pending,depth,generation}
- Softirq: ASYNC_SOFTIRQ for deferred notification delivery
- KDB: 'N' command for notification statistics
- IRQ subsystem: Dual delivery mode (IPC vs notification)
IRQ fast-path:
- IRQ_DELIVER_NOTIFY flag for notification-based delivery
- irq_handler_notify(): Fast-path handler (100-200 cycles target)
- IRQ encoding: 0-30 direct bit, 31+ uses bit 31 + event_data
- Safe thread lookup prevents use-after-free
Real-time properties:
- Bounded execution: NOTIFICATION_BATCH_SIZE = 4 events per softirq
- O(1) queue operations with atomic counter
- Memory barriers (DMB) for ordering guarantees
- WCET: 200 cycles for async delivery batch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This implements notification system inspired by seL4, with asynchronous event delivery, notification masks, and IRQ fast-path optimization.
IRQ fast-path:
Real-time properties: