Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp380843rwl; Wed, 5 Apr 2023 01:57:27 -0700 (PDT) X-Google-Smtp-Source: AKy350bdz8BREA3qBBbESYJkpfHra4CyCZ7ABf2I0TsJ5s7RMaPODlcX2yZOPrRCDocXqA3C2uw4 X-Received: by 2002:aa7:da0d:0:b0:4fd:236f:7d4d with SMTP id r13-20020aa7da0d000000b004fd236f7d4dmr1069559eds.18.1680685047615; Wed, 05 Apr 2023 01:57:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680685047; cv=none; d=google.com; s=arc-20160816; b=QPpgZzMdmpj0AyfYXqstsin1xOhgwocmE9uxOa45PXDo/cjAMzDi1cyBbp9saTktEt f4fvgeJ3T9tjeumtaRlGThdN84KP34vuZUBxCASHFqBPtvxqjbM96GJwwGpct4HN/Xh1 XpdCLZH/GSt2yKxbrCdPPFcnRLLToPOCX5+izC4IIptNZ5l+C2BzVQ1gT7kVUGJpiAVD UbYSGRJWeJxU43wq5V80hVuaVRGZ8E28MX7mA4fllwAyrbSL7HuWoScq/s7WyUWR41KG 9S4e9yeKemJmImEH6VAvTw3r0m8rkOyd3/3tlCS7rVCWstpS6eJPAA9mr9WNQ8bGY2EU fq4Q== 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=O2BXUij8oXZBdwBWiycjJ9ScMBJ9tEM5MbzRAUqZWlQ=; b=EhCyKTZITFnZHc9UjPoZ/Dz8r0kBrgXnCP/1TEbd74oHNZLL8STKTM4NdABles6Qrt oNwKxWYOwLXC4Gn1/jWItVRP+qD0uUetuh0HFn2lN4o4QvcmWfYfGanASP+1QA18mb9y nABpQBdBrXPRjhZ8sqEFOKNvF3onhovGP0UODtAGtsZIwvyIvvjLjF9SCpvaAv2ab1FY oxZO3E6wdASIkE4vi2L8KbLj9JI+aJGjsXHKUT3AqLCN/OSwncSLY4yAHHoUtqfi4oYa GyQYQhYuzasR79Qqgc4PPCAGI92MWrgRqysUcOvHkt7rNVq611Ef2+VSMa6rlr9KXK39 K6FA== 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 d6-20020aa7d686000000b004bff6dee492si2882431edr.149.2023.04.05.01.57.03; Wed, 05 Apr 2023 01:57:27 -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 S237170AbjDEIut (ORCPT + 99 others); Wed, 5 Apr 2023 04:50:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237643AbjDEIuq (ORCPT ); Wed, 5 Apr 2023 04:50:46 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0DA912736; Wed, 5 Apr 2023 01:50:45 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 8B58D6238A; Wed, 5 Apr 2023 08:50:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 26631C4339B; Wed, 5 Apr 2023 08:50:39 +0000 (UTC) Message-ID: Date: Wed, 5 Apr 2023 10:50:37 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0 Subject: Re: [RESEND PATCH v4 03/21] staging: media: tegra-video: fix .vidioc_enum_fmt_vid_cap to return all formats Content-Language: en-US To: Luca Ceresoli , Laurent Pinchart Cc: Thierry Reding , Jonathan Hunter , Sowjanya Komatineni , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Mauro Carvalho Chehab , Greg Kroah-Hartman , Dmitry Osipenko , linux-media@vger.kernel.org, linux-tegra@vger.kernel.org, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, Thomas Petazzoni , Paul Kocialkowski , Richard Leitner References: <20230309144320.2937553-1-luca.ceresoli@bootlin.com> <20230309144320.2937553-4-luca.ceresoli@bootlin.com> <85268d69-3d3b-2c0f-ba26-073f09052362@xs4all.nl> <20230404161251.272cc78b@booty> <20230405023048.GD9915@pendragon.ideasonboard.com> <20230405103134.2ae10766@booty> From: Hans Verkuil In-Reply-To: <20230405103134.2ae10766@booty> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.4 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 On 05/04/2023 10:31, Luca Ceresoli wrote: > Hi Laurent, > > On Wed, 5 Apr 2023 05:30:48 +0300 > Laurent Pinchart wrote: > >> Hi Luca, >> >> On Tue, Apr 04, 2023 at 04:12:51PM +0200, Luca Ceresoli wrote: >>> On Wed, 29 Mar 2023 13:16:22 +0200 Hans Verkuil wrote: >>> >>>> Hi Luca, >>>> >>>> I finally found the time to test this series. It looks OK, except for this patch. >>> >>> Thank you very much for taking the time! >>> >>>> The list of supported formats really has to be the intersection of what the tegra >>>> supports and what the sensor supports. >>>> >>>> Otherwise you would advertise pixelformats that cannot be used, and the application >>>> would have no way of knowing that. >>> >>> As far as I understand, I think we should rather make this driver fully >>> behave as an MC-centric device. It is already using MC quite >>> successfully after all. >>> >>> Do you think this is correct? >> >> Given the use cases for this driver, I agree. I disagree. This driver doesn't use the media controller for anything at the moment. The /dev/mediaX device just shows the internal topology (i.e. connected sensors), but otherwise it does nothing. While it would be great if we could unlock the ISP on the Tegra, the reality is that it is entirely closed source and can't be used in a linux driver, and that's not going to change, sadly. That leaves us with just a basic CSI capture driver. Rather than trying to change this driver to a full MC device with no benefits, just drop this change and get your code in. Note that this driver will stay in staging since it still fails when I try to capture from two sensors at the same time: syncpoint errors start appearing in that case. I think there are locking issues. I think I have someone to take a look at that, but first I want your series to get merged. In the very unlikely event that the ISP can be implemented in a linux driver, it will probably become a new driver. Regards, Hans > > Ok, thanks for the feedback. I will send a v5 with this change. > > Best regards, > Luca >