sdei_explicit_dispatch.puml 1.09 KB
Newer Older
1
/'
2
 ' Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
3
4
5
6
7
8
9
10
11
 '
 ' SPDX-License-Identifier: BSD-3-Clause
 '/

@startuml

autonumber "<b>[#]</b>"
participant "SDEI client" as EL2
participant EL3
12
13
participant SDEI
participant "RAS Driver" as RAS
14
15
16
17
18
19
20
21
22
23
24
25
26
27

activate EL2
EL2->EL3: **SDEI_EVENT_REGISTER**(ev, handler, ...)
EL3->EL2: success
EL2->EL3: **SDEI_EVENT_ENABLE**(ev)
EL3->EL2: success
EL2->EL3: **SDEI_PE_UNMASK**()
EL3->EL2: 1

... <<Business as usual>> ...

EL3<--]: **CRITICAL EVENT**
activate EL3 #red
note over EL3: Critical event triage
28
29
30
31
32
33
34
35
36
EL3->RAS: dispatch to handle
deactivate EL3
activate RAS #salmon
note over RAS: Critical event handling
RAS-->SDEI: sdei_dispatch_event(ev)
deactivate RAS
activate SDEI #salmon
note over SDEI: Prepare SDEI dispatch
SDEI->EL2: dispatch
37
38
activate EL2 #salmon
note over EL2: SDEI handler
39
EL2->SDEI: **SDEI_EVENT_COMPLETE()**
40
deactivate EL2
41
42
43
44
45
46
note over SDEI: Complete SDEI dispatch
SDEI-->RAS: return
deactivate SDEI
activate RAS #salmon
RAS->EL3: error handling done
deactivate RAS
47
48
49
50
51
EL3->EL2: resumes preempted execution

... <<Normal execution resumes>> ...

@enduml