gpu: host1x: Add syncpoint name and process name in syncpt_load

Update syncpt name and process info
in debug log.

Bug 5170956

Change-Id: Ie7db05a60b95febcdc645fe406297e09ad97976f
Signed-off-by: Mainak Sen <msen@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3330491
Reviewed-by: Mikko Perttunen <mperttunen@nvidia.com>
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Mainak Sen
2025-04-01 05:12:27 +00:00
committed by Jon Hunter
parent 26b29860fd
commit 585f64d7df

View File

@@ -64,9 +64,11 @@ static u32 syncpt_load(struct host1x_syncpt *sp)
} while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old);
if (!host1x_syncpt_check_max(sp, live))
dev_err(host->dev, "%s failed: id=%u, min=%d, max=%d\n",
__func__, sp->id, host1x_syncpt_read_min(sp),
host1x_syncpt_read_max(sp));
dev_err(host->dev,
"%s failed: id=%u, name=%s, min=%d, max=%d, current process=%s\n",
__func__, sp->id, sp->name,
host1x_syncpt_read_min(sp), host1x_syncpt_read_max(sp),
current->comm);
return live;
}