diff options
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_dbg.c | 5 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | 5 | ||||
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | 3 |
3 files changed, 10 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c b/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c index a15ac344..d288280e 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_dbg.c | |||
@@ -468,6 +468,11 @@ free_ref: | |||
468 | return err; | 468 | return err; |
469 | } | 469 | } |
470 | 470 | ||
471 | void nvgpu_dbg_session_post_event(struct dbg_session_gk20a *dbg_s) | ||
472 | { | ||
473 | nvgpu_cond_broadcast_interruptible(&dbg_s->dbg_events.wait_queue); | ||
474 | } | ||
475 | |||
471 | static int dbg_unbind_single_channel_gk20a(struct dbg_session_gk20a *dbg_s, | 476 | static int dbg_unbind_single_channel_gk20a(struct dbg_session_gk20a *dbg_s, |
472 | struct dbg_session_channel_data *ch_data) | 477 | struct dbg_session_channel_data *ch_data) |
473 | { | 478 | { |
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c index 5d428afa..ce06e78b 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.c | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Tegra GK20A GPU Debugger/Profiler Driver | 2 | * Tegra GK20A GPU Debugger/Profiler Driver |
3 | * | 3 | * |
4 | * Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2013-2018, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
@@ -27,6 +27,7 @@ | |||
27 | #include <nvgpu/vm.h> | 27 | #include <nvgpu/vm.h> |
28 | #include <nvgpu/atomic.h> | 28 | #include <nvgpu/atomic.h> |
29 | #include <nvgpu/mm.h> | 29 | #include <nvgpu/mm.h> |
30 | #include <nvgpu/bug.h> | ||
30 | 31 | ||
31 | #include "gk20a.h" | 32 | #include "gk20a.h" |
32 | #include "gr_gk20a.h" | 33 | #include "gr_gk20a.h" |
@@ -106,7 +107,7 @@ void gk20a_dbg_gpu_post_events(struct channel_gk20a *ch) | |||
106 | 107 | ||
107 | dbg_s->dbg_events.num_pending_events++; | 108 | dbg_s->dbg_events.num_pending_events++; |
108 | 109 | ||
109 | nvgpu_cond_broadcast_interruptible(&dbg_s->dbg_events.wait_queue); | 110 | nvgpu_dbg_session_post_event(dbg_s); |
110 | } | 111 | } |
111 | } | 112 | } |
112 | 113 | ||
diff --git a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h index 28db053c..b714a648 100644 --- a/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/dbg_gpu_gk20a.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /* | 1 | /* |
2 | * Tegra GK20A GPU Debugger Driver | 2 | * Tegra GK20A GPU Debugger Driver |
3 | * | 3 | * |
4 | * Copyright (c) 2013-2017, NVIDIA CORPORATION. All rights reserved. | 4 | * Copyright (c) 2013-2018, NVIDIA CORPORATION. All rights reserved. |
5 | * | 5 | * |
6 | * Permission is hereby granted, free of charge, to any person obtaining a | 6 | * Permission is hereby granted, free of charge, to any person obtaining a |
7 | * copy of this software and associated documentation files (the "Software"), | 7 | * copy of this software and associated documentation files (the "Software"), |
@@ -132,4 +132,5 @@ void nvgpu_release_profiler_reservation(struct dbg_session_gk20a *dbg_s, | |||
132 | int gk20a_perfbuf_enable_locked(struct gk20a *g, u64 offset, u32 size); | 132 | int gk20a_perfbuf_enable_locked(struct gk20a *g, u64 offset, u32 size); |
133 | int gk20a_perfbuf_disable_locked(struct gk20a *g); | 133 | int gk20a_perfbuf_disable_locked(struct gk20a *g); |
134 | 134 | ||
135 | void nvgpu_dbg_session_post_event(struct dbg_session_gk20a *dbg_s); | ||
135 | #endif /* DBG_GPU_GK20A_H */ | 136 | #endif /* DBG_GPU_GK20A_H */ |