Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1283214rwb; Thu, 1 Dec 2022 15:13:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf6dujCNjLd5G9OaLosuqphwc5DotbXId5S/83VXeC0ZM1Msd8H7NbQakbS+Ii5aKmcs40IS X-Received: by 2002:a17:906:3a5b:b0:78d:f3f4:b1a0 with SMTP id a27-20020a1709063a5b00b0078df3f4b1a0mr58357111ejf.489.1669936408222; Thu, 01 Dec 2022 15:13:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669936408; cv=none; d=google.com; s=arc-20160816; b=XgyYiVnS86CLf30UvNMwL4mCAEcpXxa1lQjmPkdrHPoSOw1by268UZD5vmbOWpmuq/ f/5Wh66pQXf9XKeSf9PjNCmPLYDtutKC7jAbiMs6r5R0Nxx3yznpdNgFSK+shSA5zASy mxeiMlOuEg9zFomdogY97k1l/GmWThwiWf/tX0XTPGS0vObKpW/5qEJ9E828lQAk6Uj9 IglIAyhb0hLvRGd1gw9Q8DsLBT6FDfilxLNV58sKgJHEKo0uup+HSFW3CG6QsqAEveN3 QYNEXr84NkTvKQ/8KhaauFRSidqlsuYly84zhHqX9siJp5ygf8pSQQ2A2ijlUI8nEZCA YCMg== 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=OY4wJVEeWaA/OuWiDvElSsV6I7vYq1m/3avPfqnkH7Q=; b=mkY4xdhbDG1FKzj39e4+CSL03jGfeaIZ+QCgqvtwkfytDGVGovo+EhabTytmhp2cUf SYtuEjguWk6T91LAXmoqBgqkkXF4UAc9swarDGIJk5BWrtEq1QugsydckPL3HId+SMk2 A5aUQ+5aPQAmB94U50b+Su/bkmiVcXaEMzzeL/7SKoBHwCGblqG4ENltoEFGwcbcEbgY B5yyDSfPec8+MODzE6MgszE5vH7g5nPBcOU/8EliIQtAwxTGp3OT/+g1YOR7zwlhDMd0 N65VGc9X0EhSp1Ua2OI0P1oC87W6KwBOd7/7s+cACJmJYWMvcAwXRxl69YAJSjTEwkoa oyZg== 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 gb40-20020a170907962800b0078315844537si4788603ejc.378.2022.12.01.15.13.06; Thu, 01 Dec 2022 15:13:28 -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 S231454AbiLAWpr (ORCPT + 81 others); Thu, 1 Dec 2022 17:45:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbiLAWpo (ORCPT ); Thu, 1 Dec 2022 17:45:44 -0500 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ACC66C38; Thu, 1 Dec 2022 14:45:42 -0800 (PST) Received: from [192.168.1.139] ([37.4.248.27]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MUY5o-1pRJ9q0q2K-00QV4K; Thu, 01 Dec 2022 23:45:26 +0100 Message-ID: <0f683076-43e6-3f65-e5e1-052059ce7c86@i2se.com> Date: Thu, 1 Dec 2022 23:45:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH 00/14] staging: vc04_services: bcm2835-isp support To: Umang Jain , linux-media@vger.kernel.org, kernel-list@raspberrypi.com, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-staging@lists.linux.dev, Broadcom internal kernel review list Cc: Dave Stevenson , Florian Fainelli , Naushir Patuck , David Plowman , Kieran Bingham , Laurent Pinchart References: <20221121214722.22563-1-umang.jain@ideasonboard.com> Content-Language: en-US From: Stefan Wahren In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:AVI9HLFirIbBTe9u1s/kpHdsYNAsYCtTE1hCN3UyP/yXGQzfy7d ZGRAGDezR0tYOI1WUZ/7tPXgAvgx/nATHY222skj3dt02+nUvBml3huiupYPhfK/BTHQdJf 8NwGQihNa0M2TvjqOMz12w7HWOIY2ZGuDIWgLEMMWsnalIpy9WIAF3FwDyxUeo7v4Vdfweo XxjzDRzxv6fZ9AchqFj1Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:D6o8F6DY/+s=:WU5L+AmhqeWuHvQOWdr+6Y ilrs3AX/B74is7TQGcT4OJRzPXa3BW7pdo2oTs/vAtSI/PxYB2Y++bXe1ybE4tF4250JpCLv1 SX0xo1uOnPwLNaak/Aijwp9NX6N/MmwufeE9b1Mvm0XqU6yTwxjzTHpk4srKDcdXDefCyDnqo v1QYoVqnmLdCmZzv1A6BM2VebmNVckU/uJzvjkcO6/0H8GqCCT3neIzAp+Mcy5jflrFPBz5GM q/z69jbcHih5v/Tuuvv8FFIzQNfd9vHTTCdxgoKPj75KSbeRqAQMckzydiewh7jWfUCFO6xEC mF8Ci0rJkxCCi16FfTUCG3wVzrch7dzXj2H4AD56dpN3pXosupxqa2sZ/gkTClPqarKCueVFr +1zKlOHJ2PYPSmPOqX08aJCZLULNIgubVXRD2uknegngu+CtCULVil+Wy4QAWeGTZpNkXD45k QDRdAtTqE65d1j04h8Y3GjJzxlA0Ush4uGJ9aLb4Q3T4/BfJG/K4A857wywBbptEUvsKjXFiK ivCqZSApkSc4GNKb/Qgt5iCrj7Fkcwqvh0df+BFdVLSXp7VeUTg2aOkcQGvXQFZhc8QHck7CB 3zQW1D6lErS0FCJQODwFPWYZb9ljZ1tnjutQnQDpsDBHKU0vnTzqZi/o4pNx8vVH6l1FqrAR7 dckDDF/0yvp40OAQ39vNsKYbVYUq3fyvp5kS5Lz4+TbWw6d2TXCI+2+VZE7fdYd1xWtOY9Yy0 RHHMiYZGQrKJXdtiByGrpzaQNzzghCu+vjuEHIz1GAItYeFOqClFGeY8HDDA7eQiTMhL2bJJm 0WsOgoc X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,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 Hi Umang, Am 30.11.22 um 11:58 schrieb Umang Jain: > Hi Stefan, > > On 11/27/22 6:56 AM, Stefan Wahren wrote: >> Hi Umang, >> >> Am 26.11.22 um 17:26 schrieb Umang Jain: >>> Hi Stefan >>> >>> On 11/26/22 8:12 PM, Stefan Wahren wrote: >>>> Hi Umang, >>>> >>>> Am 21.11.22 um 22:47 schrieb Umang Jain: >>>>> This series aims to upport bcm2835-isp from the RPi kernel [1] and >>>>> is a >>>>> independent subset of earlier series [2] posted to upport CSI-2/CCP2 >>>>> receiver IP core("Unicam) + the ISP driver found in BCM283x and >>>>> compatible >>>>> SoCs (namely BCM2711). Unicam is still under active development to >>>>> work >>>>> with multistream support to get into mainline. Hence only the ISP >>>>> driver >>>>> will remain the primary area of this series. >>>> >>>> thanks for working on this. But honestly i would prefer that vchiq >>>> comes out of staging before adding more features. As Greg said some >>>> time ago staging is not a place to "dump code and run away". These >>>> new files are in the same bad shape as the rest of vc04 before the >>>> clean-up here in staging started. >>> >>> Certainly, I am not here to do that - but I am still learning the >>> ropes. >> no problem. >>> >>> If the staging issue is becoming a blocker for bcm2835-isp going >>> upstream, I would be happy to help here! Though I must mention that >>> I still have limited visibility so my aim would be to chart out a >>> plan of things needed to be done to get vc04_services out of staging! >> >> The vchiq driver is in staging since 2016, so every step forwards is >> good. Unfortunately all of the low hanging fruits has been gathered. >> >> For me the most important, but not to tricky steps to get vchiq out >> of staging would be: >> >> * Cleanup logging mechanism >> >> * Get rid of custom function return values >> >> There was already an attempt for this [1] >> >> * Get rid of all non essential global structures and create a proper per >> device structure >> >>> >>>> >>>> I agree that VCSM is on the TODO list for vchiq, but this driver is >>>> not necessary for making bcm2835-audio & bcm2835-camera leave >>>> staging. It just binds more resources on a new feature. > > bcm2835-camera is the legacy camera stack which probably need to be > dropped from hereon... I don't not know if there any users left, so i would be careful here. Can bcm2835-isp completely replace bcm2835-camera? Sorry, for this dumb question but i'm not expert here. >>> >>> I see two TODO files in vc04_services: >>>     ./bcm2835-camera/TODO >>>     ./interface/TODO >>> >>> One of the bcm2835-camera TODO points to the vc-sm-cma driver >>> itself. So that's address in the series. The other remaining one - I >>> will need to take a deeper look before commenting on it. >>> >>> The main chunk of TODO are in vc04_services/interfaces/TODO. Doing a >>> cursory reading of them suggests that these apply to *all* >>> vc04_services components? Am I right? >> Actually these applies just for the interfaces directory. Some of >> them could apply to the services, but this is no priority. > > By no priority, you mean this doesn't affect the criteria required to > ful-fill to get these out of staging? Correct >>> >>> Are these are the specific bits of cleanup you are referring to in >>> your comment? >> >> You mean about bcm2835-isp? There were too many changes to vchiq that >> i don't remember them all. The first that come to my mind was those >> fancy comment sections which is not kernel coding style. It has been >> removed. > > No, I don't mean the bcm2835-isp changes (those are upcoming / > out-of-tree still so...). I mean what are the specific bits / points > that needs to be addressed to get vc04_services out of the staging. These were the points which i mentioned in my last email. They came from interface/TODO. > > You have mentioned it above now, so I'll follow up on those. That would be great :) > The many vchiq changes you referred to above comment (that you don't > remember) are from [1] as well or some other series ? Sorry, for the confusing. The many changes i refer were the dozens of clean up patches for vc04_interfaces in mainline staging since the last years. [1] was just a single patch which has been accepted yet. > >> >> [1] - >> https://lore.kernel.org/linux-staging/20220712181928.17547-1-jslebodn@redhat.com/ >> >>> >>> >>>> >>>> Unfortuntately i hadn't much time to work on vchiq by myself. >>>> >>>> Just my two cents >>>> Stefan >>>> >>> >>> >>> _______________________________________________ >>> linux-arm-kernel mailing list >>> linux-arm-kernel@lists.infradead.org >>> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel >