Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2180851rwb; Wed, 30 Nov 2022 03:32:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf4jLUPIpWNjbT3VfTR6LoRvzk/zIbar8WH6ll0KWn0XwZsoDMlmvILefv9ERW9K1+51v8Hh X-Received: by 2002:aa7:8685:0:b0:574:b4a2:bc5d with SMTP id d5-20020aa78685000000b00574b4a2bc5dmr27262833pfo.2.1669807958622; Wed, 30 Nov 2022 03:32:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669807958; cv=none; d=google.com; s=arc-20160816; b=aprp7BtID8lKPy+ubMz7AI0QMQTykFGIV/tFhIKMrG94ckMNnzaypUAJ4bFY38RG2J stIMEwGrN90wtSs+YUqP02L97DQrbAhwjuXV0+Uu3yfd85nKShT40PzclZuMX7uElwKH puZLtS0xHMKyhkCSGdWLYj2amQllHib6bcBHBSl3YiH9f/GfxaOTIzzFSwBGGb/y1evW p9mIRz8ItUqpasF2HOekdBOQD9gGSWCWGP8w7RKfHMLhFDn7UuKwbpp5WqFdb9BguLTo WyH4EWpua183sq1GTUYv82QxA7Z0U1wgnEkmBQ3Phz3WFtd8ufMxEvWXefBB1vpDnpuL J1yg== 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:dkim-signature; bh=16Y0ngIS2892GpMHLLi2AYJNj+Ojor5ZRQ9djQ0qfxg=; b=I3V+Ih/grlpHZwuUPsD2xqunJNlArSGKeqhGrY3Qpr45MI5XIIdCHkVAxrBUlZ9VrW i5ysF8cX/N9V8s397IyXcpkrrDBsRxL/8jOi6XVpTJNXNcUhb3MAW93wUT4KQvrnTxK7 iNijyQTfUy73KOhCJHSsIBR01L3jwM92mxVbXNPqZN1xpTED1qw/6R8oq7Bg7MRN7gXZ liHkgr/BqF0+aub1/ATdXl4pivtShEGnpeHMJIBW0hZ9yJ5eEXcYG64nqLAggn0jkMIL nVCGUgjIaxzAxb3ZfCZKdHr1fLZsdK18hF5zUjuLVWzveNThHyBgqggYArZU7m4SB0ho wTrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=EHA+9iIU; 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 w71-20020a63824a000000b00477abba2714si1074921pgd.29.2022.11.30.03.32.13; Wed, 30 Nov 2022 03:32:38 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=EHA+9iIU; 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 S232281AbiK3K7S (ORCPT + 85 others); Wed, 30 Nov 2022 05:59:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229816AbiK3K7N (ORCPT ); Wed, 30 Nov 2022 05:59:13 -0500 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E0E024957; Wed, 30 Nov 2022 02:59:10 -0800 (PST) Received: from [192.168.10.186] (unknown [210.186.188.117]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 430F155A; Wed, 30 Nov 2022 11:59:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1669805948; bh=Dgm4ewWRSsnIN8XeNxqS3/1Ea1G/cX9KqXuI4pFpdSM=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=EHA+9iIU3JHmzpW/9b/+nKMje+783N+j75VQemGfk0MJfH5+pyCFmqFxEZoOtZIwO UvVP1LfH/N3rzzXQaeuHe0fA9dsaOQdYj7wOaZyQe6p+kncgjOA4Dbl4jiCE3ylTZp 4VHHj2c7eDwm5MuGtmNjXIHe+KKI+aZjljVmrOP8= Message-ID: Date: Wed, 30 Nov 2022 18:58:05 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.5.0 Subject: Re: [PATCH 00/14] staging: vc04_services: bcm2835-isp support Content-Language: en-US To: Stefan Wahren , 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> From: Umang Jain In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,SPF_HELO_PASS, 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 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 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? >> >> 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. You have mentioned it above now, so I'll follow up on those. The many vchiq changes you referred to above comment (that you don't remember) are from [1] as well or some other series ? > > [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