mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-23 01:31:30 +03:00
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:
@@ -64,9 +64,11 @@ static u32 syncpt_load(struct host1x_syncpt *sp)
|
|||||||
} while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old);
|
} while ((u32)atomic_cmpxchg(&sp->min_val, old, live) != old);
|
||||||
|
|
||||||
if (!host1x_syncpt_check_max(sp, live))
|
if (!host1x_syncpt_check_max(sp, live))
|
||||||
dev_err(host->dev, "%s failed: id=%u, min=%d, max=%d\n",
|
dev_err(host->dev,
|
||||||
__func__, sp->id, host1x_syncpt_read_min(sp),
|
"%s failed: id=%u, name=%s, min=%d, max=%d, current process=%s\n",
|
||||||
host1x_syncpt_read_max(sp));
|
__func__, sp->id, sp->name,
|
||||||
|
host1x_syncpt_read_min(sp), host1x_syncpt_read_max(sp),
|
||||||
|
current->comm);
|
||||||
|
|
||||||
return live;
|
return live;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user