From 585f64d7dfee89c952585e6d1421a2ac9093370a Mon Sep 17 00:00:00 2001 From: Mainak Sen Date: Tue, 1 Apr 2025 05:12:27 +0000 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3330491 Reviewed-by: Mikko Perttunen GVS: buildbot_gerritrpt --- drivers/gpu/host1x/hw/syncpt_hw.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/host1x/hw/syncpt_hw.c b/drivers/gpu/host1x/hw/syncpt_hw.c index c017b6a9..557339fa 100644 --- a/drivers/gpu/host1x/hw/syncpt_hw.c +++ b/drivers/gpu/host1x/hw/syncpt_hw.c @@ -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; }