Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp761496iob; Fri, 13 May 2022 11:58:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLmnIjopMEFWdUarK8ijWvg0ErBFTjx8Q8uxogwI+HQDe72roL1UJv47LYSeHFnFYYUdWb X-Received: by 2002:a05:600c:3ca7:b0:38e:50d2:27fe with SMTP id bg39-20020a05600c3ca700b0038e50d227femr16199479wmb.159.1652468310782; Fri, 13 May 2022 11:58:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652468310; cv=none; d=google.com; s=arc-20160816; b=ablcnaM+k41t3Gd2MA7BNkCrpUTOZF5Cewk3NOmmX06xNZ+9hxx6alXYeH7wMlIuyH yQIyFspGZakcsB3O8HyvXRhf8++uZw8Dzs3mr4wQ6wqthzFQXTrCi+tMOrW/J9TRJEIj rVwHIxIva8jK5/lQzDUZVX89TXRoZbgz/ih7TRQPV7V8weR3+us93co/7S4aTYD8n9pO TlWIz3tvVGYLhu5IcTMd6y1gBcJyeTyvuDHOYvED5myt4jF8j+LkqEFyU9A+9MYiXtRo uQV55plefirRwr6IQrc9qee2LnqsL9XzFt2yqszbFtPXw5mcakkXyLmfLfiAqz6kMhhg EojA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=MuQ2+MfTb3w2rGW/O0F8AFCVDv5o/K35VVoaeJd+/C4=; b=vgIBNMmc7Hy3igeWb+pQy9tI70SYztvaikhBPDezH40jl7alp4+1ssENWqFSngV9Mz xat/2NT+WE5pDjKCcbnLwf6C5kDi4QluC0S0Zi+7QC6/N3P+z7hhdiqu4segsVXAeW5x N7ALh4HuPLvcHfoWX9NchFc4z9cOaajvOxM2uIavOZHNrY27CtZTSNULv3uYCNctQpti UrVIuRNfoltcvyCKww3mr5RUq0VBvDFKkkDcG7KH9FBndoho5Ppd8/CzQ1QB5JL7SHAD 9ZhibyvHZV/RZ3puXn3ybKutg1uZ2ORsJy9Ns53WY2h9vGLI0zXQWbGT3Yf+h9XW6NzM YpMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e15-20020a5d65cf000000b0020ad38391fbsi2803434wrw.236.2022.05.13.11.58.00; Fri, 13 May 2022 11:58:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=xs4all.nl Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352981AbiELLPq (ORCPT + 99 others); Thu, 12 May 2022 07:15:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353146AbiELLPJ (ORCPT ); Thu, 12 May 2022 07:15:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38DE213C35E; Thu, 12 May 2022 04:14:40 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id C9D3E61E4B; Thu, 12 May 2022 11:14:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 27528C385B8; Thu, 12 May 2022 11:14:36 +0000 (UTC) Message-ID: Date: Thu, 12 May 2022 13:14:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0 Subject: Re: [PATCH 0/4] Add Toshiba Visconti DNN image processing accelerator driver Content-Language: en-US To: Yuji Ishikawa , Rob Herring , Nobuhiro Iwamatsu , Sumit Semwal , =?UTF-8?Q?Christian_K=c3=b6nig?= Cc: 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 References: <20220428131128.5053-1-yuji2.ishikawa@toshiba.co.jp> From: Hans Verkuil In-Reply-To: <20220428131128.5053-1-yuji2.ishikawa@toshiba.co.jp> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yuji, On 4/28/22 15:11, Yuji Ishikawa wrote: > This series is the DNN image processing accelerator driver for Toshiba's ARM SoC, Visconti[0]. > This provides DT binding documentation, device driver, MAINTAINER files. > > The second patch "soc: visconti: Add Toshiba Visconti image processing accelerator common source" > and the fourth patch "MAINTAINERS: ..." are the same as the ones in the preceding post for affine driver. There appears to be no documentation whatsoever, unless I am missing something. How is the uAPI supposed to be used? What does it do? What formats does it accept or produce? If this processes images, then (as Laurent mentioned) this is more suitable as a V4L2 mem2mem driver. See https://linuxtv.org/downloads/v4l-dvb-apis-new/userspace-api/v4l/dev-mem2mem.html and the many drivers in drivers/media that use it (git grep v4l2-mem2mem.h). But without any explanation whatsoever I have no idea what does or does not make sense. Regards, Hans > > Best regards, > Yuji > > [0]: https://toshiba.semicon-storage.com/ap-en/semiconductor/product/image-recognition-processors-visconti.html > > Yuji Ishikawa (4): > dt-bindings: soc: visconti: Add Toshiba Visconti DNN image processing > accelerator bindings > soc: visconti: Add Toshiba Visconti image processing accelerator > common source > soc: visconti: Add Toshiba Visconti DNN image processing accelerator > MAINTAINERS: Add entries for Toshiba Visconti DNN image processing > accelerator > > .../soc/visconti/toshiba,visconti-dnn.yaml | 54 ++ > MAINTAINERS | 2 + > drivers/soc/Kconfig | 1 + > drivers/soc/Makefile | 1 + > drivers/soc/visconti/Kconfig | 7 + > drivers/soc/visconti/Makefile | 8 + > drivers/soc/visconti/dnn/Makefile | 6 + > drivers/soc/visconti/dnn/dnn.c | 533 ++++++++++++++++++ > drivers/soc/visconti/dnn/hwd_dnn.c | 183 ++++++ > drivers/soc/visconti/dnn/hwd_dnn.h | 68 +++ > drivers/soc/visconti/dnn/hwd_dnn_reg.h | 228 ++++++++ > drivers/soc/visconti/ipa_common.c | 55 ++ > drivers/soc/visconti/ipa_common.h | 18 + > drivers/soc/visconti/uapi/dnn.h | 77 +++ > drivers/soc/visconti/uapi/ipa.h | 88 +++ > 15 files changed, 1329 insertions(+) > create mode 100644 Documentation/devicetree/bindings/soc/visconti/toshiba,visconti-dnn.yaml > create mode 100644 drivers/soc/visconti/Kconfig > create mode 100644 drivers/soc/visconti/Makefile > create mode 100644 drivers/soc/visconti/dnn/Makefile > create mode 100644 drivers/soc/visconti/dnn/dnn.c > create mode 100644 drivers/soc/visconti/dnn/hwd_dnn.c > create mode 100644 drivers/soc/visconti/dnn/hwd_dnn.h > create mode 100644 drivers/soc/visconti/dnn/hwd_dnn_reg.h > create mode 100644 drivers/soc/visconti/ipa_common.c > create mode 100644 drivers/soc/visconti/ipa_common.h > create mode 100644 drivers/soc/visconti/uapi/dnn.h > create mode 100644 drivers/soc/visconti/uapi/ipa.h >