From f6cac2e0c4c57295886ea97833cebcd368de3788 Mon Sep 17 00:00:00 2001 From: Aparna Das Date: Fri, 16 Feb 2018 18:36:46 -0800 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1660226 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/gpu/nvgpu/vgpu/gv11b/vgpu_hal_gv11b.c') 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 @@ #include #include #include +#include "gk20a/dbg_gpu_gk20a.h" #include #include @@ -525,6 +526,9 @@ static const struct gpu_ops vgpu_gv11b_ops = { .debug = { .show_dump = NULL, }, + .debugger = { + .post_events = gk20a_dbg_gpu_post_events, + }, .dbg_session_ops = { .exec_reg_ops = vgpu_exec_regops, .dbg_set_powergate = vgpu_dbg_set_powergate, @@ -585,6 +589,7 @@ int vgpu_gv11b_init_hal(struct gk20a *g) gops->regops = vgpu_gv11b_ops.regops; gops->mc = vgpu_gv11b_ops.mc; gops->debug = vgpu_gv11b_ops.debug; + gops->debugger = vgpu_gv11b_ops.debugger; gops->dbg_session_ops = vgpu_gv11b_ops.dbg_session_ops; gops->bus = vgpu_gv11b_ops.bus; #if defined(CONFIG_GK20A_CYCLE_STATS) -- cgit v1.2.2