mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: remove user sync related apis
Set safe state and get syncpt address in the kernel submission tracking syncs was implemented for userspace syncs. Now that it's clear that the user sync object provides them, there are no users left for these APIs. Remove them. Jira NVGPU-4548 Change-Id: I58e04162dee55bb8d8547c9252033f40ed908144 Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2321950 (cherry picked from commit a95c8f7ace562a11ca235d71496d3a7ce150bc7d) Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2324251 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
60e1cf334a
commit
2d9b839f21
@@ -306,23 +306,11 @@ static void channel_sync_syncpt_set_min_eq_max(struct nvgpu_channel_sync *s)
|
||||
nvgpu_nvhost_syncpt_set_min_eq_max_ext(sp->nvhost, sp->id);
|
||||
}
|
||||
|
||||
static void channel_sync_syncpt_set_safe_state(struct nvgpu_channel_sync *s)
|
||||
{
|
||||
struct nvgpu_channel_sync_syncpt *sp =
|
||||
nvgpu_channel_sync_syncpt_from_base(s);
|
||||
nvgpu_nvhost_syncpt_set_safe_state(sp->nvhost, sp->id);
|
||||
}
|
||||
|
||||
static u32 channel_sync_syncpt_get_id(struct nvgpu_channel_sync_syncpt *sp)
|
||||
{
|
||||
return sp->id;
|
||||
}
|
||||
|
||||
static u64 channel_sync_syncpt_get_address(struct nvgpu_channel_sync_syncpt *sp)
|
||||
{
|
||||
return sp->syncpt_buf.gpu_va;
|
||||
}
|
||||
|
||||
static void channel_sync_syncpt_destroy(struct nvgpu_channel_sync *s)
|
||||
{
|
||||
struct nvgpu_channel_sync_syncpt *sp =
|
||||
@@ -341,17 +329,11 @@ u32 nvgpu_channel_sync_get_syncpt_id(struct nvgpu_channel_sync_syncpt *s)
|
||||
return channel_sync_syncpt_get_id(s);
|
||||
}
|
||||
|
||||
u64 nvgpu_channel_sync_get_syncpt_address(struct nvgpu_channel_sync_syncpt *s)
|
||||
{
|
||||
return channel_sync_syncpt_get_address(s);
|
||||
}
|
||||
|
||||
static const struct nvgpu_channel_sync_ops channel_sync_syncpt_ops = {
|
||||
.wait_fence_fd = channel_sync_syncpt_wait_fd,
|
||||
.incr = channel_sync_syncpt_incr,
|
||||
.incr_user = channel_sync_syncpt_incr_user,
|
||||
.set_min_eq_max = channel_sync_syncpt_set_min_eq_max,
|
||||
.set_safe_state = channel_sync_syncpt_set_safe_state,
|
||||
.destroy = channel_sync_syncpt_destroy,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user