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/gp10b/vgpu_hal_gp10b.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c') diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c index bfdd0788..861f6c00 100644 --- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c +++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_hal_gp10b.c @@ -39,6 +39,7 @@ #include "gk20a/flcn_gk20a.h" #include "gk20a/mc_gk20a.h" #include "gk20a/fb_gk20a.h" +#include "gk20a/dbg_gpu_gk20a.h" #include "gp10b/mc_gp10b.h" #include "gp10b/ltc_gp10b.h" @@ -478,6 +479,9 @@ static const struct gpu_ops vgpu_gp10b_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, @@ -542,6 +546,7 @@ int vgpu_gp10b_init_hal(struct gk20a *g) gops->regops = vgpu_gp10b_ops.regops; gops->mc = vgpu_gp10b_ops.mc; gops->debug = vgpu_gp10b_ops.debug; + gops->debugger = vgpu_gp10b_ops.debugger; gops->dbg_session_ops = vgpu_gp10b_ops.dbg_session_ops; gops->bus = vgpu_gp10b_ops.bus; #if defined(CONFIG_GK20A_CYCLE_STATS) -- cgit v1.2.2