From bb01f4bcf724cefe1b30e5414239f1d5fbd9b6d7 Mon Sep 17 00:00:00 2001 From: Joshua Cha Date: Wed, 19 Mar 2025 08:58:51 +0900 Subject: [PATCH] nvsciipc: removed unused CMDs and structure removed NVIPC_IVC_IOCTL_NOTIFY_REMOTE and NVIPC_IVC_IOCTL_GET_VMID. removed nvsciipc_get_db_by_id structure because they're not used by stakeholders any more. They're dead code. JIRA NVIPC-3488 Change-Id: I4fae43456cf96d37e4502042aef9c67aa167db9d Signed-off-by: Joshua Cha Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3322035 Reviewed-by: Bharat Nihalani GVS: buildbot_gerritrpt --- include/uapi/linux/nvsciipc_ioctl.h | 5 ----- include/uapi/linux/tegra-ivc-dev.h | 16 +++------------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/include/uapi/linux/nvsciipc_ioctl.h b/include/uapi/linux/nvsciipc_ioctl.h index cfebdf08..942485d4 100644 --- a/include/uapi/linux/nvsciipc_ioctl.h +++ b/include/uapi/linux/nvsciipc_ioctl.h @@ -46,11 +46,6 @@ struct nvsciipc_get_vuid { uint64_t vuid; }; -struct nvsciipc_get_db_by_id { - uint32_t id; // IVC qid - struct nvsciipc_config_entry entry; -}; - struct nvsciipc_get_db_by_name { char ep_name[NVSCIIPC_MAX_EP_NAME]; struct nvsciipc_config_entry entry; diff --git a/include/uapi/linux/tegra-ivc-dev.h b/include/uapi/linux/tegra-ivc-dev.h index 29967707..c8d99cf5 100644 --- a/include/uapi/linux/tegra-ivc-dev.h +++ b/include/uapi/linux/tegra-ivc-dev.h @@ -1,7 +1,5 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ -/* - * SPDX-FileCopyrightText: Copyright (c) 2022-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved. - */ +// SPDX-License-Identifier: GPL-2.0-only +// SPDX-FileCopyrightText: Copyright (c) 2022-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved. #ifndef __UAPI_TEGRA_IVC_DEV_H #define __UAPI_TEGRA_IVC_DEV_H @@ -31,15 +29,7 @@ struct nvipc_ivc_info { #define NVIPC_IVC_IOCTL_GET_INFO \ _IOWR(NVIPC_IVC_IOCTL_MAGIC, 1, struct nvipc_ivc_info) -/* notify remote */ -#define NVIPC_IVC_IOCTL_NOTIFY_REMOTE \ - _IO(NVIPC_IVC_IOCTL_MAGIC, 2) - -/* query vmid */ -#define NVIPC_IVC_IOCTL_GET_VMID \ - _IOR(NVIPC_IVC_IOCTL_MAGIC, 3, uint32_t) - -#define NVIPC_IVC_IOCTL_NUMBER_MAX 3 +#define NVIPC_IVC_IOCTL_NUMBER_MAX 1 int ivc_cdev_get_peer_vmid(uint32_t qid, uint32_t *peer_vmid); int ivc_cdev_get_noti_type(uint32_t qid, uint32_t *noti_type);