diff options
author | Thomas Fleury <tfleury@nvidia.com> | 2016-04-21 19:35:44 -0400 |
---|---|---|
committer | Terje Bergstrom <tbergstrom@nvidia.com> | 2016-05-21 14:33:23 -0400 |
commit | 47e3d2e90511b1cba68e46233896a918b32b5d33 (patch) | |
tree | 2840d2cc820690f27ad881a80774dd26cebc5302 /include/uapi/linux/nvgpu.h | |
parent | 4df6cd4a345d9a564f2235bc6a20ebb4614c2b04 (diff) |
gpu: nvgpu: fix engine reset in FECS trace
In virtualization case, VM server is the only one
allowed to write to ctxsw ring buffer. It will
also generate an event in case of engine reset.
Only generate a tracepoint on Guest OS side.
EVLR-314
Change-Id: I2cb09780a9b41237fe196ef1f3515923f36a24a4
Signed-off-by: Thomas Fleury <tfleury@nvidia.com>
Reviewed-on: http://git-master/r/1130743
(cherry picked from commit 4bbf9538e2a3375eb86b2feea6c605c3eec2ca40)
Reviewed-on: http://git-master/r/1133614
(cherry picked from commit 2076d944db41b37143c27795b3cffd88e99e0b00)
Reviewed-on: http://git-master/r/1150046
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'include/uapi/linux/nvgpu.h')
-rw-r--r-- | include/uapi/linux/nvgpu.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/uapi/linux/nvgpu.h b/include/uapi/linux/nvgpu.h index 76a6b1cc..3bc1ca3d 100644 --- a/include/uapi/linux/nvgpu.h +++ b/include/uapi/linux/nvgpu.h | |||
@@ -1367,7 +1367,7 @@ struct nvgpu_as_map_buffer_batch_args { | |||
1367 | #define NVGPU_CTXSW_TAG_SAVE_END 0x03 | 1367 | #define NVGPU_CTXSW_TAG_SAVE_END 0x03 |
1368 | #define NVGPU_CTXSW_TAG_RESTORE_START 0x04 | 1368 | #define NVGPU_CTXSW_TAG_RESTORE_START 0x04 |
1369 | #define NVGPU_CTXSW_TAG_CONTEXT_START 0x05 | 1369 | #define NVGPU_CTXSW_TAG_CONTEXT_START 0x05 |
1370 | #define NVGPU_CTXSW_TAG_RESET 0xfe | 1370 | #define NVGPU_CTXSW_TAG_ENGINE_RESET 0xfe |
1371 | #define NVGPU_CTXSW_TAG_INVALID_TIMESTAMP 0xff | 1371 | #define NVGPU_CTXSW_TAG_INVALID_TIMESTAMP 0xff |
1372 | #define NVGPU_CTXSW_TAG_LAST \ | 1372 | #define NVGPU_CTXSW_TAG_LAST \ |
1373 | NVGPU_CTXSW_TAG_INVALID_TIMESTAMP | 1373 | NVGPU_CTXSW_TAG_INVALID_TIMESTAMP |