From: Greg KH <gregkh@linuxfoundation.org>
To: Yuji Ishikawa <yuji2.ishikawa@toshiba.co.jp>
Cc: "Rob Herring" <robh+dt@kernel.org>,
"Hans Verkuil" <hverkuil@xs4all.nl>,
"Nobuhiro Iwamatsu" <nobuhiro1.iwamatsu@toshiba.co.jp>,
"Jonathan Corbet" <corbet@lwn.net>,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Christian König" <christian.koenig@amd.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org
Subject: Re: [PATCH v2 3/5] soc: visconti: Add Toshiba Visconti DNN image processing accelerator
Date: Mon, 25 Jul 2022 14:50:55 +0200 [thread overview]
Message-ID: <Yt6Rryi4SHVc4DR4@kroah.com> (raw)
In-Reply-To: <20220722082858.17880-4-yuji2.ishikawa@toshiba.co.jp>
On Fri, Jul 22, 2022 at 05:28:56PM +0900, Yuji Ishikawa wrote:
> --- /dev/null
> +++ b/drivers/soc/visconti/uapi/dnn.h
> @@ -0,0 +1,77 @@
> +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
> +/* Toshiba Visconti DNN Accelerator Support
> + *
> + * (C) Copyright 2022 TOSHIBA CORPORATION
> + * (C) Copyright 2022 Toshiba Electronic Devices & Storage Corporation
> + */
> +
> +#ifndef _UAPI_LINUX_DNN_H
> +#define _UAPI_LINUX_DNN_H
> +
> +#include <linux/ioctl.h>
> +#include <linux/types.h>
> +#include "ipa.h"
> +
> +#define DRV_DNN_BIT_CONFIG_DESC_FINAL (0x8000U)
> +#define DRV_DNN_BUFFER_INDEX_MAX (15)
> +
> +#define DRV_DNN_BASE_ADDR_NUM (8U) /* DNN number of base address */
> +
> +#define DRV_DNN_BASE_ADDR_PURPOSE_INPUT (1U)
> +#define DRV_DNN_BASE_ADDR_PURPOSE_OUTPUT (2U)
> +#define DRV_DNN_BASE_ADDR_PURPOSE_AWB (3U)
> +#define DRV_DNN_BASE_ADDR_PURPOSE_TEMPORARY (4U)
> +
> +/**
> + * struct drv_dnn_status - DNN IPA status for IOC_IPA_GET_STATUS
> + *
> + * @state: State of driver
> + * @eer_cmd: Execution error command
> + * @eer: Execution error
> + * @reserved: Padding
> + * @eer_flags: Execution error flags
> + */
> +struct drv_dnn_status {
> + enum drv_ipa_state state;
> + __u32 eer_cmd;
> + __u32 eer : 1;
> + __u32 reserved : 31;
bitfields will not work like this for uapi files, sorry.
> + __u32 eer_flags[32];
What endian is all of these? Big? Little? Unknown?
> +};
> +
> +struct drv_dnn_base_addr {
> + __u32 purpose;
> + union {
> + struct drv_ipa_addr ipa_addr;
> + uintptr_t list_addr;
You really do not ever want a uintptr_t in a uapi file, that's not going
to be portable at all. It's also not a valid kernel type :(
No documentation on what "purpose" is for?
> + } addr;
> +};
> +
> +/**
> + * struct drv_dnn_descriptor - DNN IPA Descriptor for IOC_IPA_START
> + *
> + * @configuration: Address of configuration data
> + * @configuration_offset: Configuration offset
> + * @configuration_size: Configuration data size
> + * @list_num: Number of input/output list
> + * @base_addr: Base addresses
> + * @base_addr_flag: Bit-fields of base_addr list config;
> + * 0 for fixed address,
> + * 1 for address list.
Where are the bitfield definitions?
What about unused bits, what happens with them? You are checking them,
right?
> + * @config_done: Flags of called configuration
> + * @buffer_info: Table of buffer information
> + * @buffer_info_num: Number of buffer_info
> + */
> +struct drv_dnn_descriptor {
> + struct drv_ipa_addr configuration;
> + __u32 configuration_offset;
What endian are any of these?
thanks,
greg k-h
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Yuji Ishikawa <yuji2.ishikawa@toshiba.co.jp>
Cc: linaro-mm-sig@lists.linaro.org,
"Jonathan Corbet" <corbet@lwn.net>,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Hans Verkuil" <hverkuil@xs4all.nl>,
"Rob Herring" <robh+dt@kernel.org>,
"Nobuhiro Iwamatsu" <nobuhiro1.iwamatsu@toshiba.co.jp>,
"Christian König" <christian.koenig@amd.com>,
linux-arm-kernel@lists.infradead.org,
linux-media@vger.kernel.org
Subject: Re: [PATCH v2 3/5] soc: visconti: Add Toshiba Visconti DNN image processing accelerator
Date: Mon, 25 Jul 2022 14:50:55 +0200 [thread overview]
Message-ID: <Yt6Rryi4SHVc4DR4@kroah.com> (raw)
In-Reply-To: <20220722082858.17880-4-yuji2.ishikawa@toshiba.co.jp>
On Fri, Jul 22, 2022 at 05:28:56PM +0900, Yuji Ishikawa wrote:
> --- /dev/null
> +++ b/drivers/soc/visconti/uapi/dnn.h
> @@ -0,0 +1,77 @@
> +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
> +/* Toshiba Visconti DNN Accelerator Support
> + *
> + * (C) Copyright 2022 TOSHIBA CORPORATION
> + * (C) Copyright 2022 Toshiba Electronic Devices & Storage Corporation
> + */
> +
> +#ifndef _UAPI_LINUX_DNN_H
> +#define _UAPI_LINUX_DNN_H
> +
> +#include <linux/ioctl.h>
> +#include <linux/types.h>
> +#include "ipa.h"
> +
> +#define DRV_DNN_BIT_CONFIG_DESC_FINAL (0x8000U)
> +#define DRV_DNN_BUFFER_INDEX_MAX (15)
> +
> +#define DRV_DNN_BASE_ADDR_NUM (8U) /* DNN number of base address */
> +
> +#define DRV_DNN_BASE_ADDR_PURPOSE_INPUT (1U)
> +#define DRV_DNN_BASE_ADDR_PURPOSE_OUTPUT (2U)
> +#define DRV_DNN_BASE_ADDR_PURPOSE_AWB (3U)
> +#define DRV_DNN_BASE_ADDR_PURPOSE_TEMPORARY (4U)
> +
> +/**
> + * struct drv_dnn_status - DNN IPA status for IOC_IPA_GET_STATUS
> + *
> + * @state: State of driver
> + * @eer_cmd: Execution error command
> + * @eer: Execution error
> + * @reserved: Padding
> + * @eer_flags: Execution error flags
> + */
> +struct drv_dnn_status {
> + enum drv_ipa_state state;
> + __u32 eer_cmd;
> + __u32 eer : 1;
> + __u32 reserved : 31;
bitfields will not work like this for uapi files, sorry.
> + __u32 eer_flags[32];
What endian is all of these? Big? Little? Unknown?
> +};
> +
> +struct drv_dnn_base_addr {
> + __u32 purpose;
> + union {
> + struct drv_ipa_addr ipa_addr;
> + uintptr_t list_addr;
You really do not ever want a uintptr_t in a uapi file, that's not going
to be portable at all. It's also not a valid kernel type :(
No documentation on what "purpose" is for?
> + } addr;
> +};
> +
> +/**
> + * struct drv_dnn_descriptor - DNN IPA Descriptor for IOC_IPA_START
> + *
> + * @configuration: Address of configuration data
> + * @configuration_offset: Configuration offset
> + * @configuration_size: Configuration data size
> + * @list_num: Number of input/output list
> + * @base_addr: Base addresses
> + * @base_addr_flag: Bit-fields of base_addr list config;
> + * 0 for fixed address,
> + * 1 for address list.
Where are the bitfield definitions?
What about unused bits, what happens with them? You are checking them,
right?
> + * @config_done: Flags of called configuration
> + * @buffer_info: Table of buffer information
> + * @buffer_info_num: Number of buffer_info
> + */
> +struct drv_dnn_descriptor {
> + struct drv_ipa_addr configuration;
> + __u32 configuration_offset;
What endian are any of these?
thanks,
greg k-h
WARNING: multiple messages have this Message-ID (diff)
From: Greg KH <gregkh@linuxfoundation.org>
To: Yuji Ishikawa <yuji2.ishikawa@toshiba.co.jp>
Cc: "Rob Herring" <robh+dt@kernel.org>,
"Hans Verkuil" <hverkuil@xs4all.nl>,
"Nobuhiro Iwamatsu" <nobuhiro1.iwamatsu@toshiba.co.jp>,
"Jonathan Corbet" <corbet@lwn.net>,
"Sumit Semwal" <sumit.semwal@linaro.org>,
"Christian König" <christian.koenig@amd.com>,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org,
dri-devel@lists.freedesktop.org, linaro-mm-sig@lists.linaro.org
Subject: Re: [PATCH v2 3/5] soc: visconti: Add Toshiba Visconti DNN image processing accelerator
Date: Mon, 25 Jul 2022 14:50:55 +0200 [thread overview]
Message-ID: <Yt6Rryi4SHVc4DR4@kroah.com> (raw)
In-Reply-To: <20220722082858.17880-4-yuji2.ishikawa@toshiba.co.jp>
On Fri, Jul 22, 2022 at 05:28:56PM +0900, Yuji Ishikawa wrote:
> --- /dev/null
> +++ b/drivers/soc/visconti/uapi/dnn.h
> @@ -0,0 +1,77 @@
> +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
> +/* Toshiba Visconti DNN Accelerator Support
> + *
> + * (C) Copyright 2022 TOSHIBA CORPORATION
> + * (C) Copyright 2022 Toshiba Electronic Devices & Storage Corporation
> + */
> +
> +#ifndef _UAPI_LINUX_DNN_H
> +#define _UAPI_LINUX_DNN_H
> +
> +#include <linux/ioctl.h>
> +#include <linux/types.h>
> +#include "ipa.h"
> +
> +#define DRV_DNN_BIT_CONFIG_DESC_FINAL (0x8000U)
> +#define DRV_DNN_BUFFER_INDEX_MAX (15)
> +
> +#define DRV_DNN_BASE_ADDR_NUM (8U) /* DNN number of base address */
> +
> +#define DRV_DNN_BASE_ADDR_PURPOSE_INPUT (1U)
> +#define DRV_DNN_BASE_ADDR_PURPOSE_OUTPUT (2U)
> +#define DRV_DNN_BASE_ADDR_PURPOSE_AWB (3U)
> +#define DRV_DNN_BASE_ADDR_PURPOSE_TEMPORARY (4U)
> +
> +/**
> + * struct drv_dnn_status - DNN IPA status for IOC_IPA_GET_STATUS
> + *
> + * @state: State of driver
> + * @eer_cmd: Execution error command
> + * @eer: Execution error
> + * @reserved: Padding
> + * @eer_flags: Execution error flags
> + */
> +struct drv_dnn_status {
> + enum drv_ipa_state state;
> + __u32 eer_cmd;
> + __u32 eer : 1;
> + __u32 reserved : 31;
bitfields will not work like this for uapi files, sorry.
> + __u32 eer_flags[32];
What endian is all of these? Big? Little? Unknown?
> +};
> +
> +struct drv_dnn_base_addr {
> + __u32 purpose;
> + union {
> + struct drv_ipa_addr ipa_addr;
> + uintptr_t list_addr;
You really do not ever want a uintptr_t in a uapi file, that's not going
to be portable at all. It's also not a valid kernel type :(
No documentation on what "purpose" is for?
> + } addr;
> +};
> +
> +/**
> + * struct drv_dnn_descriptor - DNN IPA Descriptor for IOC_IPA_START
> + *
> + * @configuration: Address of configuration data
> + * @configuration_offset: Configuration offset
> + * @configuration_size: Configuration data size
> + * @list_num: Number of input/output list
> + * @base_addr: Base addresses
> + * @base_addr_flag: Bit-fields of base_addr list config;
> + * 0 for fixed address,
> + * 1 for address list.
Where are the bitfield definitions?
What about unused bits, what happens with them? You are checking them,
right?
> + * @config_done: Flags of called configuration
> + * @buffer_info: Table of buffer information
> + * @buffer_info_num: Number of buffer_info
> + */
> +struct drv_dnn_descriptor {
> + struct drv_ipa_addr configuration;
> + __u32 configuration_offset;
What endian are any of these?
thanks,
greg k-h
next prev parent reply other threads:[~2022-07-25 12:52 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-22 8:28 [PATCH v2 0/5] Add Toshiba Visconti DNN image processing accelerator driver Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-22 8:28 ` [PATCH v2 1/5] dt-bindings: soc: visconti: Add Toshiba Visconti DNN image processing accelerator bindings Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-22 8:28 ` [PATCH v2 2/5] soc: visconti: Add Toshiba Visconti image processing accelerator common source Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-25 12:46 ` Greg KH
2022-07-25 12:46 ` Greg KH
2022-07-25 12:46 ` Greg KH
2022-07-26 7:02 ` yuji2.ishikawa
2022-07-26 7:02 ` yuji2.ishikawa
2022-07-26 7:02 ` yuji2.ishikawa
2022-07-22 8:28 ` [PATCH v2 3/5] soc: visconti: Add Toshiba Visconti DNN image processing accelerator Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-25 12:48 ` Greg KH
2022-07-25 12:48 ` Greg KH
2022-07-25 12:48 ` Greg KH
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-25 12:50 ` Greg KH [this message]
2022-07-25 12:50 ` Greg KH
2022-07-25 12:50 ` Greg KH
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-26 15:15 ` Greg KH
2022-07-26 15:15 ` Greg KH
2022-07-26 15:15 ` Greg KH
2022-07-22 8:28 ` [PATCH v2 4/5] MAINTAINERS: Add entries for " Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-25 12:47 ` Greg KH
2022-07-25 12:47 ` Greg KH
2022-07-25 12:47 ` Greg KH
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-28 8:46 ` Greg KH
2022-07-28 8:46 ` Greg KH
2022-07-28 8:46 ` Greg KH
2022-07-22 8:28 ` [PATCH v2 5/5] Documentation: driver-api: visconti: add a description of DNN driver Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-22 8:28 ` Yuji Ishikawa
2022-07-22 13:32 ` Jonathan Corbet
2022-07-22 13:32 ` Jonathan Corbet
2022-07-22 13:32 ` Jonathan Corbet
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-26 6:10 ` yuji2.ishikawa
2022-07-25 12:46 ` [PATCH v2 0/5] Add Toshiba Visconti DNN image processing accelerator driver Greg KH
2022-07-25 12:46 ` Greg KH
2022-07-25 12:46 ` Greg KH
2022-07-26 6:09 ` yuji2.ishikawa
2022-07-26 6:09 ` yuji2.ishikawa
2022-07-26 6:09 ` yuji2.ishikawa
2022-07-28 8:47 ` Greg KH
2022-07-28 8:47 ` Greg KH
2022-07-28 8:47 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Yt6Rryi4SHVc4DR4@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=christian.koenig@amd.com \
--cc=corbet@lwn.net \
--cc=dri-devel@lists.freedesktop.org \
--cc=hverkuil@xs4all.nl \
--cc=linaro-mm-sig@lists.linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=nobuhiro1.iwamatsu@toshiba.co.jp \
--cc=robh+dt@kernel.org \
--cc=sumit.semwal@linaro.org \
--cc=yuji2.ishikawa@toshiba.co.jp \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.