mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-23 18:16:01 +03:00
gpu: nvgpu: skip nvgpu syncpoint in usermode submits
The nvgpu managed syncpoint is not needed for anything if a channel uses usermode submits; in that case the channel would allocate an user-managed syncpoint and use that. Create the channel sync in nvgpu_channel_setup_bind() only if usermode submit is not enabled. Bug 200466905 Change-Id: I976f4b4fd0c3131cb310c72b286329fb16f1f29a Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1990270 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
b75ee294d5
commit
d1d1f56c49
@@ -1245,7 +1245,6 @@ int nvgpu_channel_setup_bind(struct channel_gk20a *c,
|
||||
|
||||
if (!c->usermode_submit_enabled) {
|
||||
g->ops.fifo.setup_userd(c);
|
||||
}
|
||||
|
||||
if (g->aggressive_sync_destroy_thresh == 0U) {
|
||||
nvgpu_mutex_acquire(&c->sync_lock);
|
||||
@@ -1264,6 +1263,7 @@ int nvgpu_channel_setup_bind(struct channel_gk20a *c,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!nvgpu_is_timeouts_enabled(c->g) || !c->timeout.enabled) {
|
||||
acquire_timeout = 0;
|
||||
|
||||
Reference in New Issue
Block a user