mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-22 17:36:20 +03:00
gpu: nvgpu: remove old ALLOC_GPFIFO
NVGPU_IOCTL_CHANNEL_ALLOC_GPFIFO has not been used in years. Delete it. The SUBMIT_BIND (and ALLOC_GPFIFO_EX before it) ioctl shall be used instead. Jira NVGPU-4548 Change-Id: If707c1b131386d3662815518cd3689b596db5330 Signed-off-by: Konsta Hölttä <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2325788 Reviewed-by: automaticguardword <automaticguardword@nvidia.com> Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Deepak Nibade <dnibade@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Alex Waterman
parent
9f8d5acfbb
commit
3378fbbb49
@@ -614,22 +614,6 @@ static void nvgpu_get_gpfifo_ex_args(
|
||||
alloc_gpfifo_ex_args->flags);
|
||||
}
|
||||
|
||||
static void nvgpu_get_gpfifo_args(
|
||||
struct nvgpu_alloc_gpfifo_args *alloc_gpfifo_args,
|
||||
struct nvgpu_setup_bind_args *setup_bind_args)
|
||||
{
|
||||
/*
|
||||
* Kernel can insert one extra gpfifo entry before user
|
||||
* submitted gpfifos and another one after, for internal usage.
|
||||
* Triple the requested size.
|
||||
*/
|
||||
setup_bind_args->num_gpfifo_entries =
|
||||
alloc_gpfifo_args->num_entries * 3;
|
||||
setup_bind_args->num_inflight_jobs = 0;
|
||||
setup_bind_args->flags = nvgpu_setup_bind_user_flags_to_common_flags(
|
||||
alloc_gpfifo_args->flags);
|
||||
}
|
||||
|
||||
static void nvgpu_get_fence_args(
|
||||
struct nvgpu_fence *fence_args_in,
|
||||
struct nvgpu_channel_fence *fence_args_out)
|
||||
@@ -1235,26 +1219,6 @@ long gk20a_channel_ioctl(struct file *filp,
|
||||
gk20a_idle(ch->g);
|
||||
break;
|
||||
}
|
||||
case NVGPU_IOCTL_CHANNEL_ALLOC_GPFIFO:
|
||||
{
|
||||
struct nvgpu_alloc_gpfifo_args *alloc_gpfifo_args =
|
||||
(struct nvgpu_alloc_gpfifo_args *)buf;
|
||||
struct nvgpu_setup_bind_args setup_bind_args;
|
||||
|
||||
nvgpu_get_gpfifo_args(alloc_gpfifo_args, &setup_bind_args);
|
||||
|
||||
err = gk20a_busy(ch->g);
|
||||
if (err) {
|
||||
dev_err(dev,
|
||||
"%s: failed to host gk20a for ioctl cmd: 0x%x",
|
||||
__func__, cmd);
|
||||
break;
|
||||
}
|
||||
|
||||
err = nvgpu_channel_setup_bind(ch, &setup_bind_args);
|
||||
gk20a_idle(ch->g);
|
||||
break;
|
||||
}
|
||||
case NVGPU_IOCTL_CHANNEL_SUBMIT_GPFIFO:
|
||||
err = gk20a_ioctl_channel_submit_gpfifo(ch,
|
||||
(struct nvgpu_submit_gpfifo_args *)buf);
|
||||
|
||||
@@ -1521,14 +1521,6 @@ struct nvgpu_alloc_obj_ctx_args {
|
||||
__u64 obj_id; /* output, used to free later */
|
||||
};
|
||||
|
||||
/* Deprecated. Use the SETUP_BIND IOCTL instead. */
|
||||
struct nvgpu_alloc_gpfifo_args {
|
||||
__u32 num_entries;
|
||||
#define NVGPU_ALLOC_GPFIFO_FLAGS_VPR_ENABLED (1 << 0)
|
||||
#define NVGPU_ALLOC_GPFIFO_FLAGS_REPLAYABLE_FAULTS_ENABLE (1 << 2)
|
||||
__u32 flags;
|
||||
};
|
||||
|
||||
/* Deprecated. Use the SETUP_BIND IOCTL instead. */
|
||||
struct nvgpu_alloc_gpfifo_ex_args {
|
||||
__u32 num_entries;
|
||||
@@ -1779,8 +1771,6 @@ struct nvgpu_reschedule_runlist_args {
|
||||
_IOR(NVGPU_IOCTL_MAGIC, 12, struct nvgpu_get_param_args)
|
||||
#define NVGPU_IOCTL_CHANNEL_SET_TIMEOUT_EX \
|
||||
_IOWR(NVGPU_IOCTL_MAGIC, 18, struct nvgpu_set_timeout_ex_args)
|
||||
#define NVGPU_IOCTL_CHANNEL_ALLOC_GPFIFO \
|
||||
_IOW(NVGPU_IOCTL_MAGIC, 100, struct nvgpu_alloc_gpfifo_args)
|
||||
#define NVGPU_IOCTL_CHANNEL_WAIT \
|
||||
_IOWR(NVGPU_IOCTL_MAGIC, 102, struct nvgpu_wait_args)
|
||||
#define NVGPU_IOCTL_CHANNEL_SUBMIT_GPFIFO \
|
||||
|
||||
Reference in New Issue
Block a user