mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 01:50:07 +03:00
gpu: nvgpu: alarm/event interface cleanup
use CPU timestamp in nanoseconds define last event/alarm number Jira DNVGPU-186 Change-Id: I769c8a7a41ac1fb49234f0d5144a78fa657ec230 Signed-off-by: Thomas Fleury <tfleury@nvidia.com> Reviewed-on: http://git-master/r/1260799 (cherry picked from commit 379171b43cb20d7a31b3966cad3696525e8cf7d9) Reviewed-on: http://git-master/r/1267159 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f2f06852c3
commit
68eeda3ebd
@@ -695,7 +695,7 @@ struct nvgpu_gpu_get_event_fd_args {
|
||||
/* in: Flags (not currently used). */
|
||||
__u32 flags;
|
||||
|
||||
/* out: File descriptor for events, i.e. clock update.
|
||||
/* out: File descriptor for events, e.g. clock update.
|
||||
* On successful polling of this event_fd, application is
|
||||
* expected to read status (nvgpu_gpu_event_info),
|
||||
* which provides detailed event information
|
||||
@@ -873,14 +873,16 @@ struct nvgpu_gpu_get_temperature_args {
|
||||
/* Alarm on power condition */
|
||||
#define NVGPU_GPU_EVENT_ALARM_POWER_ABOVE_THRESHOLD 6
|
||||
|
||||
/* Non recoverable alarm (POLLUP) */
|
||||
/* Non recoverable alarm (POLLHUP) */
|
||||
/* Alarm on GPU shutdown/fall from bus */
|
||||
#define NVGPU_GPU_EVENT_ALARM_GPU_LOST 7
|
||||
|
||||
#define NVGPU_GPU_EVENT_LAST NVGPU_GPU_EVENT_ALARM_GPU_LOST
|
||||
|
||||
struct nvgpu_gpu_event_info {
|
||||
__u32 event_id; /* NVGPU_GPU_EVENT_* */
|
||||
__u32 reserved;
|
||||
__u64 timestamp; /* GPU timestamp */
|
||||
__u64 timestamp; /* CPU timestamp (in nanoseconds) */
|
||||
};
|
||||
|
||||
struct nvgpu_gpu_set_event_filter_args {
|
||||
|
||||
Reference in New Issue
Block a user