From b3766f352ccf266c12040a19643d2db45f4bd488 Mon Sep 17 00:00:00 2001 From: Richard Zhao Date: Wed, 13 May 2020 11:31:36 -0700 Subject: [PATCH] gpu: nvgpu: call hal callback when set fecs_trace default filter vgpu depends on the hal callback to notify server the filter changes. Bug 200469911 Signed-off-by: Richard Zhao Change-Id: Ibc9221de853ebe813609f897b46584f5cf88cbce Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2343613 Reviewed-by: automaticguardword Reviewed-by: Alex Waterman Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/os/linux/fecs_trace_linux.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/nvgpu/os/linux/fecs_trace_linux.c b/drivers/gpu/nvgpu/os/linux/fecs_trace_linux.c index 58628f004..9de09b7ba 100644 --- a/drivers/gpu/nvgpu/os/linux/fecs_trace_linux.c +++ b/drivers/gpu/nvgpu/os/linux/fecs_trace_linux.c @@ -355,6 +355,8 @@ int gk20a_ctxsw_dev_open(struct inode *inode, struct file *filp) /* enable all traces by default */ NVGPU_CTXSW_FILTER_SET_ALL(&dev->filter); + if (g->ops.gr.fecs_trace.set_filter) + g->ops.gr.fecs_trace.set_filter(g, &dev->filter); /* compute max number of entries generated with this filter */ n = g->ops.gr.fecs_trace.max_entries(g, &dev->filter);