From 50440e5784722b2677eccfbfed391cd880819699 Mon Sep 17 00:00:00 2001 From: Arthur Hanson Rasmusson Date: Wed, 30 Sep 2026 05:13:03 -0400 Subject: sema-svc: sema_ops_log param (default 8) to audit executed CE operands; run_cycle OPS_LOG knob --- kernel/gsp_sema_service.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'kernel/gsp_sema_service.c') diff --git a/kernel/gsp_sema_service.c b/kernel/gsp_sema_service.c index 5f69f40..6703403 100644 --- a/kernel/gsp_sema_service.c +++ b/kernel/gsp_sema_service.c @@ -2079,7 +2079,7 @@ static void svc_run_ops(struct nv_vgpu_device *vgpu, struct svc_memset_op *ops, svc.memsets_nomap++; else svc.memsets_fail++; - if ((rc == 0 && svc.memsets_done <= 8) || + if ((rc == 0 && svc.memsets_done <= gsp_sema_ops_log) || (rc != 0 && svc.memsets_fail + svc.memsets_nomap <= 8)) pr_info("sema-svc: %s dst=0x%llx value=0x%llx elem=%u count=%u bytes=%llu phys=%u ap=%u src=0x%llx srcphys=%u srcap=%u rc=%d\n", m->type == 1 ? "memcopy" : "memset", @@ -3682,6 +3682,9 @@ bool gsp_sema_fake_rel; */ bool gsp_sema_skip_ops; +/* Executed-op log cap (see header). */ +unsigned gsp_sema_ops_log = 8; + static unsigned long svc_gr_ring_tried; /* ranks that got a diagnostic line */ static void svc_gr_ring_autopin(struct nv_vgpu_device *vgpu, -- cgit v1.2.3