Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp3408360pxt; Tue, 10 Aug 2021 02:59:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJziOdBCROohGkPJ7NtTQ24PY0mvk6vxDUs98bI1QID5HvsnKuahSaVw41YuuUUTdAomLy5R X-Received: by 2002:aa7:de05:: with SMTP id h5mr4028177edv.174.1628589552105; Tue, 10 Aug 2021 02:59:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628589552; cv=none; d=google.com; s=arc-20160816; b=W4ffLumRUUznIlOyv20VTnnmVvcZngHIJI21yxMig5066kI/riNm1q/LkclucKeysG psEJMPQredAlL6lqhBgWMwPOYeX6K3PukWFRwuA0/JRtDbLifjvSb5c7RYMEUsKrZnc/ 9biseBcjGuD06JCBDS/y+6SLQ/cThnS66zqM9Ddiujl3+KOUMVXGjSz/lItpCYBaqj0c fonctw+uGz0wTDFypBzBYbwVJBf+GsE5mWTIBY3ozTK67V/Q3d4MGXpzSoRLzKbI+Oyv M1r4PN2wqL9Hrh+zS6xoeGvy2DPRLP7Hd5qkBlude3mi3yNW1wAyHhI9yKYLR+HV5wkJ oe5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=lWXJ4+PjF5glFDtXwt/vNE0iEHr+A6wHia7xM2/xz1w=; b=XGWIzhTDiRQMJU71/8bq92Zd7gBsS1vWxdgOmRxfR9FgffJ0rNvjJAW7QfiK3Narnb JMiV/YGFExYaFFoOnWZA6R1PA69wlo/lXLk7VVkj6ArlHl2u5M/YC5m1Vuo0CSITTyHy LK1nSdqpl7sLRNcBtBRN/JWbhB/7A4/wU2Zrs+ryiC85JTMLGugYYO6fEMRb8Pu2bhkA GSD64Wnck0p2mpJnphMJTGtlIopTcKfoheU/kfruj8sVV+9pNCPKRw3cySKE2LQWi4S5 Z6bG3hMbqU6wIPTW/wxpS67FnFy5cb/JGH02nhDF4/LZPt3LEPkX0DQ+SYkEhUKBiCjz eF3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="RSyf2G/T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m7si20316214edq.539.2021.08.10.02.58.47; Tue, 10 Aug 2021 02:59:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="RSyf2G/T"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238395AbhHJIxP (ORCPT + 99 others); Tue, 10 Aug 2021 04:53:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41082 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238291AbhHJIxB (ORCPT ); Tue, 10 Aug 2021 04:53:01 -0400 Received: from mail-il1-x134.google.com (mail-il1-x134.google.com [IPv6:2607:f8b0:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 834B4C061798; Tue, 10 Aug 2021 01:52:39 -0700 (PDT) Received: by mail-il1-x134.google.com with SMTP id k3so14537248ilu.2; Tue, 10 Aug 2021 01:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=lWXJ4+PjF5glFDtXwt/vNE0iEHr+A6wHia7xM2/xz1w=; b=RSyf2G/TrYO742mmP79dNqVaAkt/Z+/FFY9knRlUQFKTfXEdKiP8qGt3UtV5nsPHRE CSLS8yC66Zp3D4ytzq51fAvkfkpTZdP2S4g2LCMq3JdiTk4J7o1FhADvTVKWP6PyplsF c74q+eJlFX8tMRziWa378uLAp9LZ1TnbAdsmCdnqAwEVjHEOjBQoZ2DIpfLwvUkZiaCj JpmtGDqEQiAPf3moCXNAza1rYWlHOI5IMHC9EGFmYzeTVjpRtZWPS7C4yK86yulJwxZS 16/rnaR45WFBzrwyapORQ18rvwhqgHCTLZheMYf1jL4FokxZhjtOeWzs4m0cIRi0xfFi 3k2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lWXJ4+PjF5glFDtXwt/vNE0iEHr+A6wHia7xM2/xz1w=; b=f0J5MJHuCy5ojycOeNDKMPnN9m+4QFMtVfLZ0bHgrxhqfer012RjqUCcNXN5yJO7lO grOVajHBCO28eGDgmnotcbQG7lWiD7k2JWfdSX1bfUbAVbSXnmeVUpZMqKO/Q+/TBy5h wQCxWdS8uZAQbcv5AEP1FibPqTawNSjpol2XY8HcWzr9VYAygQoTQKKZT560ry1ICpkU tl4Byedu7Qg//hatx2qPqORqvxrI8HwiR1S0br3HklhukleYActppqWZBhJyx4GUz9KQ 9aGUdTc2BlbYm4V6NB8Zip31xMeyw3OIAaPAWhyuqzRC/XE4fb6EOKHR9HGsWbQvAYta BuUA== X-Gm-Message-State: AOAM531fqV+9CVU3weMBKckk4Ii/nGLFI26l6pyVH8e3HPXoNcYmxQm3 VrZFP610f1fo/EUcVMlBP+shP9Mhv80/Tol9XuE= X-Received: by 2002:a05:6e02:13b3:: with SMTP id h19mr49185ilo.218.1628585558984; Tue, 10 Aug 2021 01:52:38 -0700 (PDT) MIME-Version: 1.0 References: <1626341068-20253-1-git-send-email-dillon.minfei@gmail.com> <1626341068-20253-18-git-send-email-dillon.minfei@gmail.com> <7131ee03-fc81-cb9b-665f-80e4ce8435ab@xs4all.nl> In-Reply-To: <7131ee03-fc81-cb9b-665f-80e4ce8435ab@xs4all.nl> From: Dillon Min Date: Tue, 10 Aug 2021 16:52:04 +0800 Message-ID: Subject: Re: [PATCH v2 7/9] media: docs: add doc for the stm32 dma2d driver To: Hans Verkuil Cc: Mauro Carvalho Chehab , mchehab+huawei@kernel.org, ezequiel@collabora.com, gnurou@gmail.com, Pi-Hsun Shih , Maxime Coquelin , Alexandre TORGUE , Michael Turquette , Stephen Boyd , Rob Herring , Patrice CHOTARD , hugues.fruchet@foss.st.com, linux-media , Linux Kernel Mailing List , linux-stm32@st-md-mailman.stormreply.com, Linux ARM , linux-clk , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Hans Thanks for the detailed review. On Mon, 9 Aug 2021 at 17:16, Hans Verkuil wrote: > > On 15/07/2021 11:24, dillon.minfei@gmail.com wrote: > > From: Dillon Min > > > > add stm32-uapi.rst for stm32's dma2d driver, explain the details of ioctl > > V4L2_CID_DMA2D_R2M_MODE, V4L2_CID_DMA2D_R2M_COLOR. > > > > Signed-off-by: Dillon Min > > --- > > v2: introduce the stm32-uapi.rst to explain the detail of dma2d's ioctl. > > > > .../userspace-api/media/drivers/index.rst | 1 + > > .../userspace-api/media/drivers/stm32-uapi.rst | 22 ++++++++++++++++++++++ > > 2 files changed, 23 insertions(+) > > create mode 100644 Documentation/userspace-api/media/drivers/stm32-uapi.rst > > > > diff --git a/Documentation/userspace-api/media/drivers/index.rst b/Documentation/userspace-api/media/drivers/index.rst > > index 12e3c512d718..ce42915d48f4 100644 > > --- a/Documentation/userspace-api/media/drivers/index.rst > > +++ b/Documentation/userspace-api/media/drivers/index.rst > > @@ -38,4 +38,5 @@ For more details see the file COPYING in the source distribution of Linux. > > max2175 > > meye-uapi > > omap3isp-uapi > > + stm32-uapi > > uvcvideo > > diff --git a/Documentation/userspace-api/media/drivers/stm32-uapi.rst b/Documentation/userspace-api/media/drivers/stm32-uapi.rst > > new file mode 100644 > > index 000000000000..d7a4f717387d > > --- /dev/null > > +++ b/Documentation/userspace-api/media/drivers/stm32-uapi.rst > > @@ -0,0 +1,22 @@ > > +.. SPDX-License-Identifier: GPL-2.0 > > + > > +STM32 Chrom-Art 2D Graphics Accelerator unit (DMA2D) driver > > +================================================ > > + > > +The DMA2D driver implements the following driver-specific controls: > > + > > +``V4L2_CID_DMA2D_R2M_MODE`` > > Please mention the control type as well. OK, how about change to ``V4L2_CID_DMA2D_R2M_MODE (boolean)`` > > > +------------------------- > > + Enable/Disable the Register-To-Memory mode, filling a part or the > > + whole of a destination image with a specific color. > > + > > + 1 for enable, 0 for disable. > > + > > +``V4L2_CID_DMA2D_R2M_COLOR`` > > Ditto. I will remove this item in v3, turn to use your suggestion (add V4L2_COLORFX_SET_COLOR_ARGB to V4L2_CID_COLORFX) > > > +------------------------------- > > + Set the color to fill a part or the whole of a destination image. > > + only used under Register-To-Memory mode, to set the DMA2D_OCOLR register > > + (RED, GREEN, BLUE) which is: > > Here you mention RGB only, > > > + > > + 31 .. 24 23 .. 16 15 .. 8 7 .. 0 > > + ALPHA[7:0] RED[7:0] GREEN[7:0] BLUE[7:0] > > but here you also mention Alpha. So which is it? Anyway this will be removed in v3, give a short explanation about it, The DMA2D_OCOLR register contains alpha value for m2m-pfc-blend mode, which defines the alpha channel of the output color. it's not used for R2M. sorry for confusion. > > See also my review of patch 9/9. > > > > > I'm getting some warnings building this doc: > > Documentation/media/userspace-api/drivers/stm32-uapi.rst:4: WARNING: Title underline too short. > > STM32 Chrom-Art 2D Graphics Accelerator unit (DMA2D) driver > ================================================ > Documentation/media/userspace-api/drivers/stm32-uapi.rst:9: WARNING: Title underline too short. > > ``V4L2_CID_DMA2D_R2M_MODE`` > ------------------------- OK, will be fixed in v3. > > Regards, > > Hans Thanks and Best Regards Dillon