Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2352851iob; Fri, 20 May 2022 07:34:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0kbKrYTQNiipEJkZBMtejHO9/ZDVS9QWQNMjJep9Zf3EbXHSp8NrvIgwYC7C1/lEjbMO8 X-Received: by 2002:a17:907:3d89:b0:6f4:7e66:b500 with SMTP id he9-20020a1709073d8900b006f47e66b500mr8884388ejc.134.1653057269520; Fri, 20 May 2022 07:34:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653057269; cv=none; d=google.com; s=arc-20160816; b=Y55yYOplO0GkP3sBIa9/iM0Httaa4vM6TarLtErqC9U6uvQsqNfpeSoWxymydwHXQe auqe7Uc1Hz4l5JPC0T1YYIHmFuxPk/WVbzdXQEacFp9GJmB56M6fZg4cq/DWDuIt9WKr bkiHJCoNrV0h5utoRAhtPz7hZJERI0Eb6HePa3Cp/mZ9Zw9Ibbu3qMb/qXnt6GCa9110 fA6alSilA6Dd0Z7QcH0F9VhKAYB+D+CscUL/OOneRLecoY4fI+EHf/QO/YhgQaY5+dck OYxri3eXW/TIpEle0yDbhZvwR07gBCg3u/weVptyTYx9a+tcqBu5gGt0WiwLMpMPhvA7 0PMA== 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=p9m0/kkVTDFmL2V0DdxpN3+eiBaFq081Cww3mxeAiBo=; b=nAEUz0QT5wjV1PyTEgCQhmw8Rk9m/8lLNGSgBOJls6hI9OE3FrguiL9stR8wVrvKxh aOd9v7plFNEZMkJ7yAm8rlL0k0J5B8HE1Y36nJpKk/tUWTIAuZERtvnB8f64r01SIg7a 3v0cIqRHMwhUVtlu0QuTaDPuLWhI3oCwkWAGTY461gMZJMsMT3wjhkYVtAiQF8aRVPmJ 8WOKNw8MFmo5GebyjwKQs3jafeM6kqn4m0QdvSAlAN2ZgFIsA1Xzgt3ETlV7O23+LoHT tWWtaNu2892Tl/C4U7kl/qYFRxwIy3Jrwz2hS82pP8QWSBwhKq+E2K8wiGwQBwNZfsgE IYnQ== 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 hr32-20020a1709073fa000b006fea596636esi3004179ejc.889.2022.05.20.07.34.03; Fri, 20 May 2022 07:34:29 -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 S1347998AbiETKCw (ORCPT + 99 others); Fri, 20 May 2022 06:02:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229809AbiETKCt (ORCPT ); Fri, 20 May 2022 06:02:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6D1BA30BC; Fri, 20 May 2022 03:02:47 -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 6792F61CCC; Fri, 20 May 2022 10:02:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB789C385A9; Fri, 20 May 2022 10:02:44 +0000 (UTC) Message-ID: Date: Fri, 20 May 2022 12:02:42 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 Subject: Re: [PATCH 0/4] Add Toshiba Visconti DNN image processing accelerator driver Content-Language: en-US To: yuji2.ishikawa@toshiba.co.jp, robh+dt@kernel.org, nobuhiro1.iwamatsu@toshiba.co.jp, sumit.semwal@linaro.org, christian.koenig@amd.com 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: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.4 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 5/20/22 11:48, yuji2.ishikawa@toshiba.co.jp wrote: > Hi Hans, > > Thank you for your comment. > I agree that this submission lacks documents sharing basic idea of the accelerators; what do they accept and what do they yield. > Where can I put a new document? Can I put it as a comment in a source? Can I add a file under Documentation/misc-devices directory? Start with explaining it by replying to this mail. Without knowing anything about the hardware, it is difficult to say what the best place is. Usually it is either the public API header, or somewhere in Documentation. The first step is to have a better understanding of the Visconti image hardware and to see what the best subsystem would be to support that hardware. Regards, Hans > > Thanks, > Yuji Ishikawa > >> -----Original Message----- >> From: Hans Verkuil >> Sent: Thursday, May 12, 2022 8:15 PM >> To: ishikawa yuji(石川 悠司 ○RDC□AITC○EA開) >> ; Rob Herring ; >> iwamatsu nobuhiro(岩松 信洋 □SWC◯ACT) >> ; Sumit Semwal >> ; Christian König >> 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 >> Subject: Re: [PATCH 0/4] Add Toshiba Visconti DNN image processing >> accelerator driver >> >> 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-me >> m2mem.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.ya >>> ml 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 >>>