Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp318059rwb; Thu, 18 Aug 2022 04:34:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR6S4wwLVEUTwc+mAcSLR1JXieSl7PlI4R6N+5/4QfhJr6aWN3sJF0e3bHddaGprEfT0mzje X-Received: by 2002:a63:81c8:0:b0:429:ea8c:3afa with SMTP id t191-20020a6381c8000000b00429ea8c3afamr2139589pgd.22.1660822483579; Thu, 18 Aug 2022 04:34:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660822483; cv=none; d=google.com; s=arc-20160816; b=r2CaWCg31x2u+8za3SsQhDmu5Yto8ehr4RW8esYwIWo3ppjp/XJ/z6qv9F38eyIwoX oW1Wdl49aoB7ek7b4RjEiEHZQZASkCcyd8NLFNttJ5FA2aEeCnvapOmvLSajBPyG5Wgw +Dy0i/3OE+kgTK2GaFcVzdFI4LGUzbb0HBMj9OeXowPlMUrYxb62khVzsRMqXO0/vq7R AkhtT5/dHXlfFUAtllfUvZT7iaI2Coqg5JjphpRKfx391lYaRjNQKamksZaKCa8AYt0Y 1CTgq6xFoICcDDwNo+Bb2nI9pf8ssKeZfivebbjIJVSjpN0wsbuMArcYraFK/QzzYpuz mcng== 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=ZX9A3gZvFNdk2JAqR4Ial8X9goWPWpAqjBmh4FNbkC4=; b=fGDk2Fj/Knf4xC4IdNER1FxcLzCL8+6+SnbMw0MmVUf/6sHMLHed6bY9Ymx5QCX8F9 lPj3p+UQJIMuLR0m3Tnc3z+pcBWmSqyO+bhHbXvOd1jfYlW7s8msyv/SsX4MRwDnr+o/ qtxIyJEnugBlBGPSlnXeWhqAHryLMDDKIyvFuhP3Pd3g0byVud0yNoq1pyiZswRv/Xbd INAO+2/ZVzZ+1J8XTGgWIVKGh8nGGqC8O7hn8tWNb3GDWP+L1zz42yCSEnkYie2b3sl0 7+syoq53zVW0jNYNxs01CncCmI9sY5LLKmB23DtLuOpELw/r/afgeyxkunenNQULSW+O 7Vgw== 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 z18-20020aa78892000000b0052dc6d9042csi1438382pfe.356.2022.08.18.04.34.32; Thu, 18 Aug 2022 04:34:43 -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 S244228AbiHRLCi (ORCPT + 99 others); Thu, 18 Aug 2022 07:02:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239816AbiHRLCg (ORCPT ); Thu, 18 Aug 2022 07:02:36 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [IPv6:2604:1380:40e1:4800::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6368E98C9E; Thu, 18 Aug 2022 04:02:34 -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 sin.source.kernel.org (Postfix) with ESMTPS id 7F34CCE2034; Thu, 18 Aug 2022 11:02:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 66FFFC433D6; Thu, 18 Aug 2022 11:02:24 +0000 (UTC) Message-ID: Date: Thu, 18 Aug 2022 13:02:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v25 4/4] media: platform: mtk-mdp3: add MediaTek MDP3 driver Content-Language: en-US To: Moudy Ho , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Krzysztof Kozlowski Cc: Chun-Kuang Hu , Rob Landley , Laurent Pinchart , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Alexandre Courbot , tfiga@chromium.org, drinkcat@chromium.org, pihsun@chromium.org, hsinyi@google.com, Benjamin Gaignard , AngeloGioacchino Del Regno , Project_Global_Chrome_Upstream_Group@mediatek.com, cellopoint.kai@gmail.com, Ping-Hsun Wu , daoyuan huang References: <20220817095629.29911-1-moudy.ho@mediatek.com> <20220817095629.29911-5-moudy.ho@mediatek.com> From: Hans Verkuil In-Reply-To: <20220817095629.29911-5-moudy.ho@mediatek.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 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,URIBL_BLOCKED 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 Moudy, I noticed one more thing (and it is probably better to post a v26 after all): On 17/08/2022 11:56, Moudy Ho wrote: > This patch adds driver for MediaTek's Media Data Path ver.3 (MDP3). > It provides the following functions: > color transform, format conversion, resize, crop, rotate, flip > and additional image quality enhancement. > > The MDP3 driver is mainly used for Google Chromebook products to > import the new architecture to set the HW settings as shown below: > User -> V4L2 framework > -> MDP3 driver -> SCP (setting calculations) > -> MDP3 driver -> CMDQ (GCE driver) -> HW > > Each modules' related operation control is sited in mtk-mdp3-comp.c > Each modules' register table is defined in file with "mdp_reg_" prefix > GCE related API, operation control sited in mtk-mdp3-cmdq.c > V4L2 m2m device functions are implemented in mtk-mdp3-m2m.c > Probe, power, suspend/resume, system level functions are defined in > mtk-mdp3-core.c > > v4l2-compliance 1.22.1, 32 bits, 32-bit time_t First of all, the v4l2-compliance output belongs to the cover letter, not to a commit log for a patch. More importantly, I can tell that v4l2-compliance was a prepackaged version, but you need to compile it from the git repo yourself: git clone git://linuxtv.org/v4l-utils.git cd v4l-utils ./bootstrap.sh ./configure make sudo make install Running v4l2-compliance should start with this (or something close): v4l2-compliance 1.23.0-4941, 64 bits, 64-bit time_t v4l2-compliance SHA: 71112d214762 2022-07-28 15:31:13 I need to see the SHA to confirm that you tested with a sufficiently new v4l2-compliance version. Prepackaged v4l2-compliance binaries tend to be too old, at least for the purpose of compliance checking a new driver. Regards, Hans > Compliance test for mtk-mdp3 device /dev/video0: > Driver Info: > Driver name : mtk-mdp3 > Card type : MediaTek MDP3 > Bus info : platform:14001000.mdp3-rdma0 > Driver version : 6.0.0 > Capabilities : 0x84204000 > Video Memory-to-Memory Multiplanar > Streaming > Extended Pix Format > Device Capabilities > Device Caps : 0x04204000 > Video Memory-to-Memory Multiplanar > Streaming > Extended Pix Format