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 <rizhao@nvidia.com>
Change-Id: Ibc9221de853ebe813609f897b46584f5cf88cbce
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2343613
Reviewed-by: automaticguardword <automaticguardword@nvidia.com>
Reviewed-by: Alex Waterman <alexw@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
This commit is contained in:
Richard Zhao
2020-05-13 11:31:36 -07:00
committed by Alex Waterman
parent bc4cef7a43
commit b3766f352c

View File

@@ -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);