diff options
Diffstat (limited to 'drivers/gpu/nvgpu/include')
-rw-r--r-- | drivers/gpu/nvgpu/include/nvgpu/clk_arb.h | 30 |
1 files changed, 29 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h b/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h index a2f8135e..45561e31 100644 --- a/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h +++ b/drivers/gpu/nvgpu/include/nvgpu/clk_arb.h | |||
@@ -57,8 +57,36 @@ struct nvgpu_clk_session; | |||
57 | __fls((a)->pstates & (b)->pstates) :\ | 57 | __fls((a)->pstates & (b)->pstates) :\ |
58 | VF_POINT_INVALID_PSTATE) | 58 | VF_POINT_INVALID_PSTATE) |
59 | 59 | ||
60 | /* | ||
61 | * These events, defined in common code are the counterparts of the uapi | ||
62 | * events. There should be a conversion function to take care to convert | ||
63 | * these to the uapi events. | ||
64 | */ | ||
65 | /* Event associated to a VF update */ | ||
66 | #define NVGPU_EVENT_VF_UPDATE 0 | ||
67 | |||
68 | /* Recoverable alarms (POLLPRI) */ | ||
69 | /* Alarm when target frequency on any session is not possible */ | ||
70 | #define NVGPU_EVENT_ALARM_TARGET_VF_NOT_POSSIBLE 1 | ||
71 | /* Alarm when target frequency on current session is not possible */ | ||
72 | #define NVGPU_EVENT_ALARM_LOCAL_TARGET_VF_NOT_POSSIBLE 2 | ||
73 | /* Alarm when Clock Arbiter failed */ | ||
74 | #define NVGPU_EVENT_ALARM_CLOCK_ARBITER_FAILED 3 | ||
75 | /* Alarm when VF table update failed */ | ||
76 | #define NVGPU_EVENT_ALARM_VF_TABLE_UPDATE_FAILED 4 | ||
77 | /* Alarm on thermal condition */ | ||
78 | #define NVGPU_EVENT_ALARM_THERMAL_ABOVE_THRESHOLD 5 | ||
79 | /* Alarm on power condition */ | ||
80 | #define NVGPU_EVENT_ALARM_POWER_ABOVE_THRESHOLD 6 | ||
81 | |||
82 | /* Non recoverable alarm (POLLHUP) */ | ||
83 | /* Alarm on GPU shutdown/fall from bus */ | ||
84 | #define NVGPU_EVENT_ALARM_GPU_LOST 7 | ||
85 | |||
86 | #define NVGPU_EVENT_LAST NVGPU_EVENT_ALARM_GPU_LOST | ||
87 | |||
60 | /* Local Alarms */ | 88 | /* Local Alarms */ |
61 | #define EVENT(alarm) (0x1UL << NVGPU_GPU_EVENT_##alarm) | 89 | #define EVENT(alarm) (0x1UL << NVGPU_EVENT_##alarm) |
62 | 90 | ||
63 | #define LOCAL_ALARM_MASK (EVENT(ALARM_LOCAL_TARGET_VF_NOT_POSSIBLE) | \ | 91 | #define LOCAL_ALARM_MASK (EVENT(ALARM_LOCAL_TARGET_VF_NOT_POSSIBLE) | \ |
64 | EVENT(VF_UPDATE)) | 92 | EVENT(VF_UPDATE)) |