diff options
author | Aparna Das <aparnad@nvidia.com> | 2018-02-16 21:36:46 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-03-06 17:52:39 -0500 |
commit | f6cac2e0c4c57295886ea97833cebcd368de3788 (patch) | |
tree | 5c549a8abfcb69407b9ee9de78cc543e3594655b /drivers/gpu/nvgpu/gp106/hal_gp106.c | |
parent | d6b5d74c5ede5fb620b056286f9f615566f84b29 (diff) |
gpu: nvgpu: add debugger.post_events HAL op
RM Server will need to set specific HAL op and notify vgpu client.
Jira VQRM-2982
Change-Id: I679565831635ff3fadf0bdc1af5fd7a8679b6fdd
Signed-off-by: Aparna Das <aparnad@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1660226
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp106/hal_gp106.c')
-rw-r--r-- | drivers/gpu/nvgpu/gp106/hal_gp106.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gp106/hal_gp106.c b/drivers/gpu/nvgpu/gp106/hal_gp106.c index 82ef0461..35e4a7dd 100644 --- a/drivers/gpu/nvgpu/gp106/hal_gp106.c +++ b/drivers/gpu/nvgpu/gp106/hal_gp106.c | |||
@@ -668,6 +668,9 @@ static const struct gpu_ops gp106_ops = { | |||
668 | .debug = { | 668 | .debug = { |
669 | .show_dump = gk20a_debug_show_dump, | 669 | .show_dump = gk20a_debug_show_dump, |
670 | }, | 670 | }, |
671 | .debugger = { | ||
672 | .post_events = gk20a_dbg_gpu_post_events, | ||
673 | }, | ||
671 | .dbg_session_ops = { | 674 | .dbg_session_ops = { |
672 | .exec_reg_ops = exec_regops_gk20a, | 675 | .exec_reg_ops = exec_regops_gk20a, |
673 | .dbg_set_powergate = dbg_set_powergate, | 676 | .dbg_set_powergate = dbg_set_powergate, |
@@ -762,6 +765,7 @@ int gp106_init_hal(struct gk20a *g) | |||
762 | gops->regops = gp106_ops.regops; | 765 | gops->regops = gp106_ops.regops; |
763 | gops->mc = gp106_ops.mc; | 766 | gops->mc = gp106_ops.mc; |
764 | gops->debug = gp106_ops.debug; | 767 | gops->debug = gp106_ops.debug; |
768 | gops->debugger = gp106_ops.debugger; | ||
765 | gops->dbg_session_ops = gp106_ops.dbg_session_ops; | 769 | gops->dbg_session_ops = gp106_ops.dbg_session_ops; |
766 | gops->bus = gp106_ops.bus; | 770 | gops->bus = gp106_ops.bus; |
767 | #if defined(CONFIG_GK20A_CYCLE_STATS) | 771 | #if defined(CONFIG_GK20A_CYCLE_STATS) |