Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2202047ybl; Thu, 15 Aug 2019 08:06:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgRB0nwO4L8Q+/q0gnfTs0Gws8oBW5w5SrJGoI6qorJCfLuvdGlNh4j0GaLYJ1w38EIfLE X-Received: by 2002:a63:1908:: with SMTP id z8mr3705058pgl.433.1565881608092; Thu, 15 Aug 2019 08:06:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565881608; cv=none; d=google.com; s=arc-20160816; b=vB0SuIjwhNdQSy+OS4u+ojPHkOqnoUROJA+nB46WBi67Cxoi9ZZdMTCrCsdwQXzqL4 GREU9vcbP01U23iosSWNrLRGeRiRSqt78529aKgP7CxkMxOcWhoM+xSdhB/KpUziqpLg 2xt6Zc1mkyIZXbdR4o9BxnrQ8tx+pj6bUMyFJ5512U2QB44Nrx0Vlnl9ImLEVthRl5mS 3xQJ86wHB6lCYp39zDhaSlWkllvAu0/2zqbl/7mQamcb+V5vpI/WqE1lITkZhOhNgdKG l0PRPzcgG7dgjq72prFW8JoSKt0u9QCqHF+5repSZIQ7y+X7IW4ClvF55NZGqXqH9bE0 6HDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jMebTGuZ45M6xwksRQZwbY/+3UrSQ4INziMex8MRtv0=; b=gkUnSYomiJzRb/Y3iCnCjp0mdDrWtoLK4Wk/6remLB6zxD5Y1j9jmRGj5PE7n9mjFy foU/irQNjKzRtGJBroL9p3JKcrkbw1ellcP23hr0emQmvTxEy4HJcGB1Qm8LfvL992cx 0nb//pb0e6a1XhRsdRBqJdq+5v06NN3Z8U/m77j0+I7v4jVmhA7EOcDol24jw/5RqlbC ruQ2QzbHc78AgaKxXiNvmOtWjKxv36yRDKtIlmvRDW7ud0AKmQvbn/KYyz/hRdrzLok8 T7p9jsDmrk+FxFkI/rbMiZkRZX8vrxKlpa/atzVeEuBdikjVlQfi0aOzR4dJ1KAY04/q JwkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=fvrGFVka; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o21si2014685pgd.223.2019.08.15.08.06.31; Thu, 15 Aug 2019 08:06:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=fvrGFVka; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732580AbfHONvs (ORCPT + 99 others); Thu, 15 Aug 2019 09:51:48 -0400 Received: from perceval.ideasonboard.com ([213.167.242.64]:46138 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732426AbfHONvs (ORCPT ); Thu, 15 Aug 2019 09:51:48 -0400 Received: from pendragon.ideasonboard.com (dfj612yhrgyx302h3jwwy-3.rev.dnainternet.fi [IPv6:2001:14ba:21f5:5b00:ce28:277f:58d7:3ca4]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 5E6122AF; Thu, 15 Aug 2019 15:51:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1565877106; bh=eQaxJ9fWzARXPrOco46drXtMqHl8iBVISexpgwltDec=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=fvrGFVkaMHxE7ZCJ6VmVuUBnwX+lY5NX8E3uYdQdN5um35yc0ZREjQtNfQOEUAl69 LsG3gXVAYtPbsxxTiaxIejTqesO+6fNhlsdlUvwaDnGNfUmP3zfFIsggKWEkrWEuwD hJp9t7xVupEFs5CVqLfePFRxogg15dsszGdhbves= Date: Thu, 15 Aug 2019 16:51:43 +0300 From: Laurent Pinchart To: Helen Koike Cc: linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, eddie.cai.linux@gmail.com, mchehab@kernel.org, heiko@sntech.de, jacob2.chen@rock-chips.com, jeffy.chen@rock-chips.com, zyc@rock-chips.com, linux-kernel@vger.kernel.org, tfiga@chromium.org, hans.verkuil@cisco.com, sakari.ailus@linux.intel.com, kernel@collabora.com, ezequiel@collabora.com, linux-media@vger.kernel.org, linux-arm-kernel@lists.infradead.org, zhengsq@rock-chips.com, Jacob Chen Subject: Re: [PATCH v8 02/14] media: doc: add document for rkisp1 meta buffer format Message-ID: <20190815135143.GU5011@pendragon.ideasonboard.com> References: <20190730184256.30338-1-helen.koike@collabora.com> <20190730184256.30338-3-helen.koike@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190730184256.30338-3-helen.koike@collabora.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Helen, Thank you for the patch. On Tue, Jul 30, 2019 at 03:42:44PM -0300, Helen Koike wrote: > From: Jacob Chen > > This commit add document for rkisp1 meta buffer format > > Signed-off-by: Jacob Chen > Acked-by: Hans Verkuil > [update for upstream] > Signed-off-by: Helen Koike > > --- > > Changes in v8: > - Add SPDX in the header > - Remove emacs configs > - Fix doc style > > Changes in v7: > - s/correspond/corresponding > - s/use/uses > - s/docuemnt/document > > Documentation/media/uapi/v4l/meta-formats.rst | 2 ++ > .../uapi/v4l/pixfmt-meta-rkisp1-params.rst | 23 +++++++++++++++++++ > .../uapi/v4l/pixfmt-meta-rkisp1-stat.rst | 22 ++++++++++++++++++ > 3 files changed, 47 insertions(+) > create mode 100644 Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-params.rst > create mode 100644 Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-stat.rst > > diff --git a/Documentation/media/uapi/v4l/meta-formats.rst b/Documentation/media/uapi/v4l/meta-formats.rst > index b10ca9ee3968..5de621fea3cc 100644 > --- a/Documentation/media/uapi/v4l/meta-formats.rst > +++ b/Documentation/media/uapi/v4l/meta-formats.rst > @@ -24,3 +24,5 @@ These formats are used for the :ref:`metadata` interface only. > pixfmt-meta-uvc > pixfmt-meta-vsp1-hgo > pixfmt-meta-vsp1-hgt > + pixfmt-meta-rkisp1-params > + pixfmt-meta-rkisp1-stat > diff --git a/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-params.rst b/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-params.rst > new file mode 100644 > index 000000000000..103b5cb79b7c > --- /dev/null > +++ b/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-params.rst > @@ -0,0 +1,23 @@ > +.. SPDX-License-Identifier: (GPL-2.0+ OR MIT) > + > +.. _v4l2-meta-fmt-rkisp1-params: > + > +============================ > +V4L2_META_FMT_RK_ISP1_PARAMS > +============================ > + > +Rockchip ISP1 Parameters Data > + > +Description > +=========== > + > +This format describes input parameters for the Rockchip ISP1. > + > +It uses c-struct :c:type:`rkisp1_isp_params_cfg`, which is defined in > +the ``linux/rkisp1-config.h`` header file. I would say that "The buffer contains a single instance of the C structure :c:type:`rkisp1_isp_params_cfg`, defined in the ``linux/rkisp1-config.h`` header file." And add a sentence to explain what the alignment requirements are. > + > +The parameters consist of multiple modules. > +The module won't be updated if the corresponding bit was not set in module_*_update. Doesn't this belong to rkisp1-config.h ? I would group all the information related to fields of the structure in the header file, and only have here the information related to the buffer layout (this mainly referencing the structure and talking about alignment/padding). > + > +.. kernel-doc:: include/uapi/linux/rkisp1-config.h > + :functions: rkisp1_isp_params_cfg > diff --git a/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-stat.rst b/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-stat.rst > new file mode 100644 > index 000000000000..4ad303f96421 > --- /dev/null > +++ b/Documentation/media/uapi/v4l/pixfmt-meta-rkisp1-stat.rst > @@ -0,0 +1,22 @@ > +.. SPDX-License-Identifier: (GPL-2.0+ OR MIT) > + > +.. _v4l2-meta-fmt-rkisp1-stat: > + > +============================= > +V4L2_META_FMT_RK_ISP1_STAT_3A > +============================= > + > + > +Rockchip ISP1 Statistics Data > + > +Description > +=========== > + > +This format describes image color statistics information generated by the Rockchip > +ISP1. > + > +It uses c-struct :c:type:`rkisp1_stat_buffer`, which is defined in > +the ``linux/rkisp1-config.h`` header file. Same comment here, I think we need to document alignment/padding constraints. > + > +.. kernel-doc:: include/uapi/linux/rkisp1-config.h > + :functions: rkisp1_stat_buffer -- Regards, Laurent Pinchart