From fab31ebedaa0d2a3026ccb2de453d33780aed7c6 Mon Sep 17 00:00:00 2001 From: Mikael Olsson Date: Thu, 3 Aug 2023 12:41:01 +0200 Subject: Remove protocol version request IOCTL from UAPI The current implementation of the protocol version request IOCTL call doesn't return any version information and the protocol version is not needed by any userspace program as it's for the communication between the Linux kernel NPU driver and firmware. The IOCTL call has therefore been removed from the UAPI and the inference runner has been updated accordingly. Change-Id: I9ed09e55d9522996a182f237c8a6db2f45bc40a9 Signed-off-by: Mikael Olsson --- kernel/ethosu_device.c | 4 ---- kernel/uapi/ethosu.h | 1 - 2 files changed, 5 deletions(-) (limited to 'kernel') diff --git a/kernel/ethosu_device.c b/kernel/ethosu_device.c index ae257c3..32d04ae 100644 --- a/kernel/ethosu_device.c +++ b/kernel/ethosu_device.c @@ -259,10 +259,6 @@ static long ethosu_ioctl(struct file *file, file, cmd, arg); switch (cmd) { - case ETHOSU_IOCTL_VERSION_REQ: - dev_info(dev, "Device ioctl: Send version request"); - ret = ethosu_mailbox_version_request(&edev->mailbox); - break; case ETHOSU_IOCTL_CAPABILITIES_REQ: { dev_info(dev, "Device ioctl: Capabilities request"); diff --git a/kernel/uapi/ethosu.h b/kernel/uapi/ethosu.h index d95bf05..2451623 100644 --- a/kernel/uapi/ethosu.h +++ b/kernel/uapi/ethosu.h @@ -43,7 +43,6 @@ namespace EthosU { #define ETHOSU_IOWR(nr, type) _IOWR(ETHOSU_IOCTL_BASE, nr, type) #define ETHOSU_IOCTL_PING ETHOSU_IO(0x00) -#define ETHOSU_IOCTL_VERSION_REQ ETHOSU_IO(0x01) #define ETHOSU_IOCTL_CAPABILITIES_REQ ETHOSU_IOR(0x02, \ struct ethosu_uapi_device_capabilities) #define ETHOSU_IOCTL_BUFFER_CREATE ETHOSU_IOR(0x10, \ -- cgit v1.2.1