In a phone or a camera, edge AI only has to be fast. In a car or on a factory floor it has to run next to a deterministic, safety-critical control loop without disturbing it. That single requirement, not model accuracy or throughput, is what makes edge AI in automotive and industrial systems hard. The engineering answer is separation and determinism: a real-time control path with bounded latency (PREEMPT_RT, CPU isolation), deterministic networking (Time-Sensitive Networking), and a mixed-criticality architecture that keeps the non-deterministic AI away from the certified safety path. New standards such as ISO/PAS 8800 now describe what it takes for an AI function to be considered safe at all.
Most writing about on-device AI is about making a model run faster on a small processor. In vehicles and industrial equipment that is the easy part; the hard part is that the AI shares its hardware and its network with functions that must never miss a deadline—braking, motion control, a safety interlock. This article looks at what edge AI in automotive and industrial systems has to solve, and the Linux and networking mechanisms that solve it.
Two clocks: edge AI in automotive meets a real-time control loop
Every one of these systems runs two kinds of work at once. The first is a control loop: it samples sensors, computes a response, and drives an actuator on a fixed cycle—often every millisecond or faster—and it must complete every cycle on time. A late result is not slow, it is wrong, and in a safety context it can be dangerous. The second is inference: perception, anomaly detection, predictive maintenance. Its latency varies from one input to the next, and that variability is normal for a neural network.
Putting a workload with variable timing next to one that must be perfectly regular is the core tension. The AI cannot be allowed to steal CPU time, cache, memory bandwidth, or network capacity from the control loop at the wrong moment. Everything below is a way of enforcing that boundary.
Keeping the control loop deterministic
On Linux, the foundation is the real-time preemption work known as PREEMPT_RT. After roughly twenty years as an out-of-tree patch set, its final pieces were merged into the mainline kernel in Linux 6.12, released in November 2024 and later selected as the 2024 LTS kernel, enabled on x86, x86-64, arm64 and RISC-V. PREEMPT_RT makes almost all kernel code preemptible, converts most locks to priority-inheriting mutexes, and moves interrupt handling into threads, so a high-priority task can take the processor within a bounded time instead of waiting on the kernel.
A real-time kernel is necessary but not sufficient. In practice the control task is pinned to a CPU that is isolated from the general scheduler and from most interrupts, so the AI workload physically cannot run there:
raghu@techveda.org:~$ uname -a
Linux ecu 6.12.0-rt ... PREEMPT_RT ... aarch64 GNU/Linux
raghu@techveda.org:~$ cat /sys/devices/system/cpu/isolated
2-3Here CPUs 2 and 3 are reserved. The control loop runs on them at a real-time priority, with interrupt affinity steered elsewhere, while the inference process is confined to the remaining cores. The AI can be as busy as it likes; it never touches the CPUs that hold the deadline. Isolation, not raw speed, is what makes the timing predictable.
Deterministic networking with TSN
The same problem appears on the wire. A factory cell or a vehicle network carries hard real-time control traffic and best-effort data—including AI results—on the same Ethernet. Time-Sensitive Networking (TSN) is the set of IEEE 802.1 standards that make standard Ethernet deterministic, and Linux implements the key pieces as queueing disciplines you configure with tc.
- Time synchronization (IEEE 802.1AS, a profile of PTP): every node shares a common clock, maintained on Linux by
linuxptp(ptp4l,phc2sys). - Scheduled traffic (IEEE 802.1Qbv), the time-aware shaper: the
taprioqdisc opens and closes per-class transmission gates on a repeating cycle so control frames leave at exactly their reserved instant. - Credit-based shaping (IEEE 802.1Qav): the
cbsqdisc smooths bandwidth for audio/video-style streams. - LaunchTime transmission: the
etf(earliest txtime first) qdisc sends each packet at a precise hardware timestamp, when the NIC supports it.
A time-aware schedule looks like this, with the gate mask and a duration in nanoseconds per entry:
raghu@techveda.org:~$ tc qdisc replace dev eth0 parent root handle 100 taprio \
num_tc 3 \
map 2 2 1 0 2 2 2 2 2 2 2 2 2 2 2 2 \
queues 1@0 1@1 1@2 \
base-time 1528743495910289987 \
sched-entry S 01 300000 \
sched-entry S 02 300000 \
sched-entry S 04 400000 \
flags 0x1Each sched-entry names which traffic classes may transmit (the gate mask) and for how long, and the cycle repeats from base-time. Control traffic gets a guaranteed window every cycle; the AI’s bulk data waits for its own window and cannot delay a control frame. The result is deterministic delivery—bounded latency, very low jitter—over ordinary switched Ethernet.
Mixed criticality: separating the AI from the safety path
Isolating cores and traffic classes handles interference. The harder architectural question is trust: a perception or anomaly model is complex, statistical, and hard to prove correct, yet it may influence a function that has to be certified. The usual answer is to not certify the AI at all, but to bound what it can do.
Two patterns recur. A safety island is a small, lockstep processor that runs only the deterministic, high-integrity functions, physically separate from the SoC that runs the AI. On a single SoC, a hypervisor or kernel partitioning places the AI in one domain and the safety functions in another, so a fault or overload in the AI domain cannot reach the safety domain. Layered on top is the advisor-and-monitor pattern: the AI proposes, and a much simpler, deterministic, verifiable safety monitor can limit or veto the action before it reaches an actuator. The certified path stays small and predictable; the unpredictable part stays advisory.
When the AI itself has to be safe
Standards have caught up with this. In industry the base functional-safety standard is IEC 61508 (safety integrity levels SIL 1–4); its automotive adaptation is ISO 26262, which classifies risk as ASIL A to D. Both assume a fault is a malfunction you can analyse. Machine learning breaks that assumption: a perception model can perform exactly as trained and still be wrong because the training data did not cover the situation. ISO 21448 (Safety of the Intended Functionality, SOTIF) was written for precisely that class of insufficient performance and unexpected behaviour in systems that behave as designed but encounter scenarios outside what the design or the data anticipated.
The newest piece is ISO/PAS 8800:2024, “Road vehicles — Safety and artificial intelligence”, a publicly available specification published in December 2024 that extends ISO 26262 and ISO 21448 to address the insufficient performance and malfunctioning behaviour of AI in road vehicles. On the platform side, vendors are certifying Linux itself for these contexts: for example, Red Hat’s in-vehicle operating system, based on its enterprise Linux, is being certified to ISO 26262 at ASIL-B for functions such as ADAS support, the digital cockpit and body control. The direction is clear: AI in a vehicle or a machine is no longer outside the safety case; it is part of it, with its own required evidence.
What this means for embedded and kernel engineers
The scarce skill in this field is not training the model. It is the systems integration around it: giving the control loop a bounded worst-case latency, isolating cores and interrupts, configuring TSN so the network is deterministic, partitioning a mixed-criticality SoC, and producing the evidence a safety standard demands. These are kernel and embedded Linux skills, not data-science skills, and they are what decide whether an automotive or industrial edge AI product can ship. Our training programs cover the real-time, scheduling and isolation foundations this depends on.
Key takeaways
- In automotive and industrial systems the difficulty of edge AI is not model speed; it is running a variable-latency AI workload beside a deterministic, safety-critical control loop without disturbing it.
- On Linux the control path is made deterministic with PREEMPT_RT (mainline since Linux 6.12, November 2024) plus CPU isolation and interrupt affinity, so the AI cannot steal time from the deadline.
- On the network, Time-Sensitive Networking makes standard Ethernet deterministic; Linux exposes it through the
taprio,cbsandetfqdiscs and PTP time synchronization. - Mixed-criticality architecture separates the AI domain from the safety domain, often with a safety island and an advisor-and-monitor pattern where a simple deterministic monitor can veto the AI.
- Safety standards now cover AI directly: IEC 61508 and ISO 26262 for functional safety, ISO 21448 for performance insufficiency, and ISO/PAS 8800:2024 for AI in road vehicles.
- The decisive skills are real-time, networking and systems integration—kernel and embedded Linux work, not model training.
Frequently asked questions
Why is edge AI harder in cars and factories than in consumer devices?
Because the AI runs beside a deterministic, safety-critical control loop that must meet a deadline on every cycle. The AI must not take CPU time, memory bandwidth or network capacity from that loop at the wrong moment—a guarantee consumer edge AI never has to provide.
How does Linux give these systems real-time guarantees?
The PREEMPT_RT preemption model, merged into the mainline kernel in Linux 6.12 (released in November 2024 and later selected as the 2024 LTS), makes almost all kernel code preemptible so a high-priority task runs within a bounded time. Combined with CPU isolation and interrupt affinity for the control task, and TSN qdiscs plus PTP time synchronization on the network, the system can bound worst-case latency in both compute and communication.
What is TSN and why does industrial edge AI need it?
Time-Sensitive Networking is a set of IEEE 802.1 standards that add determinism to ordinary Ethernet through scheduled traffic, time synchronization and traffic shaping. It lets hard real-time control traffic and best-effort AI data share one network while control frames still arrive on time. Linux implements it with the taprio, cbs and etf queueing disciplines.
Can an AI model be part of a safety-certified function?
Standards now address this. ISO 26262 covers functional safety, ISO 21448 (SOTIF) covers performance insufficiencies, and ISO/PAS 8800:2024 covers AI in road vehicles specifically. A common architecture treats the AI as an advisor whose output a simpler, deterministic, verifiable safety monitor can limit or override, so the certified path stays small and predictable.
Further reading
- Linux networking documentation — kernel.org, including the TSN queueing disciplines
- Configuring TSN Qdiscs (taprio, cbs, etf) — TSN Documentation Project for Linux
- Real-time PREEMPT_RT support merged for Linux 6.12 — Phoronix
- ISO/PAS 8800:2024 — Road vehicles: Safety and artificial intelligence — ISO
- Red Hat pushes safety-certified Linux into automotive — EE Times



