mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 10:34:43 +03:00
g->ops.channel.set_syncpt() updates the inst block's allowed syncpt field for the syncpoint that's allocated for kernelmode submits (if any). This is different from the userspace-owned syncpoint that is used with usermode submits, so don't call set_syncpt when creating the user syncpt. If the kernel sync object wouldn't exist, the call would even fail. The allowed syncpt is written during nvgpu_channel_setup_bind() (if usermode submit isn't requested), after the kernel syncpt is allocated. Originally, just one syncpoint used to be shared for the kernel and userspace; now that they're separate, this different path to update the allowed syncpt would need other modifications to work with the user sync if one would be used on platforms that care about the allowed syncpt. Jira NVGPU-4548 Change-Id: If800e704ef8a3289e04c8d75a623affd6779e309 Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2320357 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>