summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
diff options
context:
space:
mode:
authorAparna Das <aparnad@nvidia.com>2018-02-16 21:36:46 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-03-06 17:52:39 -0500
commitf6cac2e0c4c57295886ea97833cebcd368de3788 (patch)
tree5c549a8abfcb69407b9ee9de78cc543e3594655b /drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
parentd6b5d74c5ede5fb620b056286f9f615566f84b29 (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/vgpu/gv11b/vgpu_hal_gv11b.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
index b4e03ecd..01b31976 100644
--- a/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
+++ b/drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c
@@ -39,6 +39,7 @@
39#include <gk20a/flcn_gk20a.h> 39#include <gk20a/flcn_gk20a.h>
40#include <gk20a/bus_gk20a.h> 40#include <gk20a/bus_gk20a.h>
41#include <gk20a/mc_gk20a.h> 41#include <gk20a/mc_gk20a.h>
42#include "gk20a/dbg_gpu_gk20a.h"
42 43
43#include <gm20b/gr_gm20b.h> 44#include <gm20b/gr_gm20b.h>
44#include <gm20b/fb_gm20b.h> 45#include <gm20b/fb_gm20b.h>
@@ -525,6 +526,9 @@ static const struct gpu_ops vgpu_gv11b_ops = {
525 .debug = { 526 .debug = {
526 .show_dump = NULL, 527 .show_dump = NULL,
527 }, 528 },
529 .debugger = {
530 .post_events = gk20a_dbg_gpu_post_events,
531 },
528 .dbg_session_ops = { 532 .dbg_session_ops = {
529 .exec_reg_ops = vgpu_exec_regops, 533 .exec_reg_ops = vgpu_exec_regops,
530 .dbg_set_powergate = vgpu_dbg_set_powergate, 534 .dbg_set_powergate = vgpu_dbg_set_powergate,
@@ -585,6 +589,7 @@ int vgpu_gv11b_init_hal(struct gk20a *g)
585 gops->regops = vgpu_gv11b_ops.regops; 589 gops->regops = vgpu_gv11b_ops.regops;
586 gops->mc = vgpu_gv11b_ops.mc; 590 gops->mc = vgpu_gv11b_ops.mc;
587 gops->debug = vgpu_gv11b_ops.debug; 591 gops->debug = vgpu_gv11b_ops.debug;
592 gops->debugger = vgpu_gv11b_ops.debugger;
588 gops->dbg_session_ops = vgpu_gv11b_ops.dbg_session_ops; 593 gops->dbg_session_ops = vgpu_gv11b_ops.dbg_session_ops;
589 gops->bus = vgpu_gv11b_ops.bus; 594 gops->bus = vgpu_gv11b_ops.bus;
590#if defined(CONFIG_GK20A_CYCLE_STATS) 595#if defined(CONFIG_GK20A_CYCLE_STATS)