From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9133BC433DF for ; Tue, 30 Jun 2020 17:19:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6808D2077D for ; Tue, 30 Jun 2020 17:19:17 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="bJkUoNua" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732976AbgF3RTQ (ORCPT ); Tue, 30 Jun 2020 13:19:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51642 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732535AbgF3RTQ (ORCPT ); Tue, 30 Jun 2020 13:19:16 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EADB0C061755 for ; Tue, 30 Jun 2020 10:19:15 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id z13so20984211wrw.5 for ; Tue, 30 Jun 2020 10:19:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=J/fm1XsvHQHkOySPHkGUug98e3SYGWgCY9AAaLKVZAQ=; b=bJkUoNua09zlOC1u0e1zfwrzzR3BlFgsZzvLyrPx7iKB9UMjYxOAgi5D+PgXGbaoSV PPVkdjX69MpUQkdVBG2LrLCCGbzhbUOGtAQelEgmqgui7MXJijIFXrTsMvj0MsuJxaW4 oDoLCqNj+tDh5hG6KksbS8zBU6u56iyfdC3jk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=J/fm1XsvHQHkOySPHkGUug98e3SYGWgCY9AAaLKVZAQ=; b=OV1CY/YV9fnQrjmco1qGx27v9/GtCD6DT64BuO8/qRSjlbVo4kunF265pJlzdlgkAh NklE3NdfmPBbtezidA5ONYBGpald2PPX9QD9VfXv4f/O00LhGYJffNR+ZMG3aqKXS/Wv Vwro65I9k7X2+AQyB8UI+b9b1OMx3d1CH0RKUMyI7ZeNxBPZpEGguFiIykGYCYgHPAiZ tLlsoGAG3hGud5XcCPgOk7u7Y5hfbjsME4h66tvvUxrfetu5rlmxVWD0pXparnEX1QQk IUpIikaWwIZBamnItpcMJZFsYxaloeLwUHYpmGYAu4/cLtc2EFUq3BERfxKA43b0fxWR Ul3g== X-Gm-Message-State: AOAM533iI7wjcPssCT5sgKVCpDcpigxrYCpTn2p8JaBKVV9oeR7YhcrP OIA0iHiZ5XzrlFlUyonOOWelUw== X-Google-Smtp-Source: ABdhPJxZGumxEKs37+tBL3WHbXUBqjCD//HM9vnehmqQikLZO8H3zt5/qVFES+cnZvDCkAwI7sObXA== X-Received: by 2002:a5d:51ce:: with SMTP id n14mr22826755wrv.155.1593537554628; Tue, 30 Jun 2020 10:19:14 -0700 (PDT) Received: from chromium.org (205.215.190.35.bc.googleusercontent.com. [35.190.215.205]) by smtp.gmail.com with ESMTPSA id g14sm4158291wrm.93.2020.06.30.10.19.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jun 2020 10:19:13 -0700 (PDT) Date: Tue, 30 Jun 2020 17:19:12 +0000 From: Tomasz Figa To: Jerry-ch Chen Cc: "hans.verkuil@cisco.com" , HansVerkuil , "laurent.pinchart+renesas@ideasonboard.com" , "matthias.bgg@gmail.com" , "mchehab@kernel.org" , "pihsun@chromium.org" , "yuzhao@chromium.org" , "zwisler@chromium.org" , "linux-mediatek@lists.infradead.org" , "linux-arm-kernel@lists.infradead.org" , Sean Cheng =?utf-8?B?KOmEreaYh+W8mCk=?= , Sj Huang =?utf-8?B?KOm7g+S/oeeSiyk=?= , Christie Yu =?utf-8?B?KOa4uOmbheaDoCk=?= , Frederic Chen =?utf-8?B?KOmZs+S/iuWFgyk=?= , Jungo Lin =?utf-8?B?KOael+aYjuS/iik=?= , "linux-media@vger.kernel.org" , srv_heupstream , "devicetree@vger.kernel.org" Subject: Re: [RFC PATCH V4 0/4] media: platform: Add support for Face Detection (FD) on mt8183 SoC Message-ID: <20200630171912.GE1212092@chromium.org> References: <20191204124732.10932-1-Jerry-Ch.chen@mediatek.com> <1588903371.16825.14.camel@mtksdccf07> <20200521183825.GB249683@chromium.org> <1593526253.29676.28.camel@mtksdccf07> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1593526253.29676.28.camel@mtksdccf07> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Hi Jerry, On Tue, Jun 30, 2020 at 10:10:53PM +0800, Jerry-ch Chen wrote: > Hi Tomasz, > > On Thu, 2020-05-21 at 18:38 +0000, Tomasz Figa wrote: > > Hi Jerry, > > > > On Wed, May 13, 2020 at 11:45:37PM +0200, Tomasz Figa wrote: > > > Hi Jerry, > > > > > > On Fri, May 8, 2020 at 4:03 AM Jerry-ch Chen wrote: > > > > > > > > Hi Laurent, Tomasz, Matthias, > > > > > > > > gentle ping for this patch set, > > > > If no new comments, I would like to send a newer version. > > > > > > > > > > Sorry, I still haven't had a chance to look at the series, so feel > > > free to send a new version and I will take a look at the new one. > > > > > > > Finally found some time to review the series. Again sorry for the delay > > and thanks for your patience. > > > > Some general comments: > > 1) The metadata format FourCC should be added in a separate patch, > > together with documentation for it. > > 2) Control IDs, structs used by the userspace, etc. should be defined in > > a header under include/uapi/linux. > > > > Please also check my replies to particular patches for further comments. > > > > Best regards, > > Tomasz > > Appreciate for your reply, > > So far, I've locally created an uapi header: > include/uapi/linux/mtk_fd_40.h > which provides some values, control ids, and the definitions of > structures that would be needed by user of mtk_fd_40 driver. > In addition, I also provide a MACRO as example in comments that can > extract the struct member with bit length and offset > definitions(eliminate the bit-fields). > > Also, I would like to rename struct fd_user_output with struct > mtk_fd_hw_result. I worry fd_user_output would be a confusing name. The change sounds good to me. > I will add them in a separate patch in next version. > Okay. > I am still working on the documentation, which might be > Documentation/media/uapi/v4l/pixfmt-meta-mtk-fd-40.rst. > Refering the other pixfmt-*.rst files, I will try to provide the > flat-table of the metadata with the structure of the mtk_fd_hw_result. > Sounds good to me. > I am confusing that should I remain the name with -40 in the tail of rst > file? The header and documentation file names should match the driver name. I just noticed there is some inconsistency in the naming, though. The driver seems to be located under drivers/media/platform/mtk-isp/fd, but the driver name in the platform driver struct and as reported by VIDIOC_QUERYCAP seems to be "mtk-fd-4.0". Since we have many mtk-* drivers in the tree currently, I think it might make sense to consolidate them under drivers/media/platform/mediatek, similarly to drivers/media/platform/qcom or /rockchip. But it could be done later, as a follow-up. My suggestion would be to place the driver under drivers/media/platform/mtk-fd-40 and also rename the related Kconfig symbol to include the _40 suffix. What do you think? > Since I think the layout of metadata might be different in the future > mtk fd drivers. Maybe they create a new one or should they update the > rst file when they are upstreaming? > I think we'll decide what to do when that happens. Depending on whether there is more face detection hardware available, we might be able to migrate to standard controls and metadata buffer formats at that time. > Other comments are almost fixed, I will inform you by this mail thread > as soon as I finish the documentation of fd metadata format. Okay, thanks. Best regards, Tomasz