Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11813557rwl; Tue, 3 Jan 2023 05:14:07 -0800 (PST) X-Google-Smtp-Source: AMrXdXsfuD9Q3sZWHoX+Ot1GJhK/lTQlw9m68ieqrjrhGBANRNPfJcgZIh5xhxwkJ1rUg0KI6cFF X-Received: by 2002:a17:902:e5c6:b0:189:fb78:a7d4 with SMTP id u6-20020a170902e5c600b00189fb78a7d4mr64839842plf.21.1672751647077; Tue, 03 Jan 2023 05:14:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672751647; cv=none; d=google.com; s=arc-20160816; b=kDqn0/oVI/Wi6H0eL2Ae5Ug5oGYjqpiFzSgM22zxRiHS+k8NiNmLuLHTVNEAz6Q5Rj FTELkv8pldj8sFtWGRuu0y9ZvCNJHmb4okp7OzaG8OxBmPnrE/8hxpvY81MPyh8eAtqH Zn6xJEInkugizhWcFaATWMRP/4CBdZtYyAcYzKaXBtgLcQHyWQuJe4u2JEm1FmXx1zsk C7pIbOoEt0475s1pWnteqt+rRe84vfNomIDNuAIUJmFrzt8F2MCry89vPMjRhnJt2rwz k7YJTiusA4k4ks8hP7RgLkHdmGBMAmMJfW8YpiSgOjbZsjPCYNHNIgmIH1rUhw98hBRb Ov5A== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id; bh=r6JOz2yXORHiwNsyBaXGq/h9AJOIxn2JM22kbX5sNcA=; b=0NgU4yxfz7iis5OP5uQhaH0sM26uvQpWIPvdFvWdmtavu1TeXWDB5M+FaBO7G2ZJF9 LUyNa4N+vCbR+94LPFwCmbl4Riv0hGwCRsbpBp32mAhNqAupHu0K0nWGQemhman5ppDH Oim6Bskv5besnoyPVBqctf8PwpmJeoiKSzLgpMhadEctHoirym9t01vSSQcJgS0pGy7R 5Ra+b5EXoPxZC7hwguWZ+8pkPI3JM1nCbKXu7L4zYf0J+vPS787LldCCoCQS6wgZaXef bx6uZ4XpJKNP4oPRxjIDFGVElLWRd8CYfqFLFzjk5KzGdZ1YyM1OJZFRoYlR4BCXhuDf UNiA== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r139-20020a632b91000000b0049206a74135si31214258pgr.275.2023.01.03.05.13.57; Tue, 03 Jan 2023 05:14:07 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237626AbjACMs3 (ORCPT + 60 others); Tue, 3 Jan 2023 07:48:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237548AbjACMs2 (ORCPT ); Tue, 3 Jan 2023 07:48:28 -0500 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 23EF1F45; Tue, 3 Jan 2023 04:48:25 -0800 (PST) Received: from [141.14.220.45] (g45.guest.molgen.mpg.de [141.14.220.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 5030960293A85; Tue, 3 Jan 2023 13:48:23 +0100 (CET) Message-ID: <4d64e3f9-57a3-c6be-2709-36e9a1617bf9@molgen.mpg.de> Date: Tue, 3 Jan 2023 13:48:23 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v10 7/7] media: nuvoton: Add driver for NPCM video capture and encode engine To: Kun-Fa Lin Cc: mchehab@kernel.org, hverkuil-cisco@xs4all.nl, avifishman70@gmail.com, tmaimon77@gmail.com, tali.perry1@gmail.com, venture@google.com, yuenn@google.com, benjaminfair@google.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, andrzej.p@collabora.com, kwliu@nuvoton.com, devicetree@vger.kernel.org, openbmc@lists.ozlabs.org, linux-kernel@vger.kernel.org, kflin@nuvoton.com, linux-media@vger.kernel.org References: <20221227095123.2447948-1-milkfafa@gmail.com> <20221227095123.2447948-8-milkfafa@gmail.com> Content-Language: en-US From: Paul Menzel In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 Dear Kun-Fa, Am 29.12.22 um 09:55 schrieb Kun-Fa Lin: >>> Add driver for Video Capture/Differentiation Engine (VCD) and Encoding >>> Compression Engine (ECE) present on Nuvoton NPCM SoCs. The VCD can >>> capture and differentiate video data from digital or analog sources, >> >> “differentiate video data” sounds uncommon to me. Am I just ignorant or >> is there a better term? > > How about "The VCD can capture a frame from digital video input and > compare two frames in memory, then the ECE will compress the frame > data into HEXTITLE format", is it better? Yes, I prefer your suggestion. >> Wich VNC viewer and version? > > I used RealVNC version 6.21.1109 to test. > Do I have to add this information in the commit message? I do not think there are rules, but I prefer to have the test environment and procedure information in the commit message in case there are problems, and you want to reproduce things. >> Maybe also paste the new dev_ log messages you get from one boot. > > Do you mean dev_info/dev_debug messages of the driver? > If yes, I get these messages from one boot (only dev_info will be > printed in default): > > npcm-video f0810000.video: assigned reserved memory node framebuffer@0x33000000 > npcm-video f0810000.video: NPCM video driver probed Yes, that is what I meant. Maybe even the debug messages. >> It’d be great if you noted the datasheet name and revision. > > I can note the datasheet name and revision in the commit message but > can't provide the file link because it is not public. > Is it ok with you? Yes, that would be ok with me. >>> +static unsigned int npcm_video_ece_get_ed_size(struct npcm_video *video, >>> + u32 offset, u8 *addr) >>> +{ >>> + struct regmap *ece = video->ece.regmap; >>> + u32 size, gap, val; >> >> Using a fixed size type for variables not needing is, is actually not an >> optimization [1]. It’d be great, if you went over the whole change-set >> to use the non-fixed types, where possible. (You can also check the >> difference with `scripts/bloat-o-meter`. > > So what I have to do is replace "u8/u16/u32" with "unsigned int" for > generic local variables as much as possible. > Is my understanding correct? Yes, I would say so. >>> +MODULE_AUTHOR("Joseph Liu"); >>> +MODULE_AUTHOR("Marvin Lin"); >> >> Please add a space before the <. >> >>> +MODULE_DESCRIPTION("Driver for Nuvoton NPCM Video Capture/Encode Engine"); >>> +MODULE_LICENSE("GPL"); >> >> Not GPL v2? > > I'll correct them in the next patch. Awesome. Kind regards, Paul