diff options
author | Alex Waterman <alexw@nvidia.com> | 2018-01-22 19:30:53 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-07 07:41:26 -0400 |
commit | 6e739d924fe9b778fa82396e0e941143f498acb8 (patch) | |
tree | f112ede8573c2f8bf76e0bdaadf33c6c71343820 /include/trace/events/gk20a.h | |
parent | e6b3bb4e6b3d4013f83ba6d31c780947f16cf410 (diff) |
gpu: nvgpu: Userspace POSIX support
Add support for compiling nvgpu in a POSIX compliant userspace.
This code adds all of the necessary abstraction interfaces (mostly
stubbed) to enabled extremely limited and basic functionality in
nvgpu.
The goal of this code is to facilitate unit testing of the nvgpu
common core. By doing this in userspace it is much easier to write
tests that rely on very particular states within nvgpu since a user
can very precisely control the state of nvgpu.
JIRA NVGPU-525
Change-Id: I30e95016df14997d951075777e0585f912dc5960
Signed-off-by: Alex Waterman <alexw@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1683914
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/trace/events/gk20a.h')
-rw-r--r-- | include/trace/events/gk20a.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/trace/events/gk20a.h b/include/trace/events/gk20a.h index 9600b201..99726e4c 100644 --- a/include/trace/events/gk20a.h +++ b/include/trace/events/gk20a.h | |||
@@ -13,6 +13,8 @@ | |||
13 | * more details. | 13 | * more details. |
14 | */ | 14 | */ |
15 | 15 | ||
16 | #ifdef __KERNEL__ | ||
17 | |||
16 | #undef TRACE_SYSTEM | 18 | #undef TRACE_SYSTEM |
17 | #define TRACE_SYSTEM gk20a | 19 | #define TRACE_SYSTEM gk20a |
18 | 20 | ||
@@ -577,3 +579,26 @@ DEFINE_EVENT(gk20a_cde, gk20a_cde_finished_ctx_cb, | |||
577 | 579 | ||
578 | /* This part must be outside protection */ | 580 | /* This part must be outside protection */ |
579 | #include <trace/define_trace.h> | 581 | #include <trace/define_trace.h> |
582 | |||
583 | #else /* Not __KERNEL__ */ | ||
584 | |||
585 | #define trace_gk20a_mmu_fault(arg...) ((void)(NULL)) | ||
586 | #define trace_gk20a_release_used_channel(arg...) ((void)(NULL)) | ||
587 | #define trace_gk20a_free_channel(arg...) ((void)(NULL)) | ||
588 | #define trace_gk20a_channel_get(arg...) ((void)(NULL)) | ||
589 | #define trace_gk20a_channel_put(arg...) ((void)(NULL)) | ||
590 | #define trace_gk20a_open_new_channel(arg...) ((void)(NULL)) | ||
591 | #define trace_gk20a_channel_update(arg...) ((void)(NULL)) | ||
592 | |||
593 | #define trace_gk20a_mm_fb_flush(arg...) ((void)(NULL)) | ||
594 | #define trace_gk20a_mm_fb_flush_done(arg...) ((void)(NULL)) | ||
595 | #define trace_gk20a_mm_l2_invalidate(arg...) ((void)(NULL)) | ||
596 | #define trace_gk20a_mm_l2_invalidate_done(arg...) ((void)(NULL)) | ||
597 | #define trace_gk20a_mm_l2_flush(arg...) ((void)(NULL)) | ||
598 | #define trace_gk20a_mm_l2_flush_done(arg...) ((void)(NULL)) | ||
599 | #define trace_gk20a_mm_tlb_invalidate(arg...) ((void)(NULL)) | ||
600 | #define trace_gk20a_mm_tlb_invalidate_done(arg...) ((void)(NULL)) | ||
601 | #define trace_gk20a_ltc_cbc_ctrl_start(arg...) ((void)(NULL)) | ||
602 | #define trace_gk20a_ltc_cbc_ctrl_done(arg...) ((void)(NULL)) | ||
603 | |||
604 | #endif | ||