Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp782887rwl; Wed, 5 Apr 2023 07:40:40 -0700 (PDT) X-Google-Smtp-Source: AKy350bI4ca1HxrfERk7zG2qstixLAADkqlUKZsvWOzSqeb3vpjCVXmM2pbNQP9Oi5eB4zQvcE2U X-Received: by 2002:a17:906:6993:b0:932:615c:33d4 with SMTP id i19-20020a170906699300b00932615c33d4mr2481024ejr.34.1680705640113; Wed, 05 Apr 2023 07:40:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680705640; cv=none; d=google.com; s=arc-20160816; b=qAvEOjXzofswMIrBjsXhMfXxy48fwFGSxTLqTIDPSjIO0Jgia67gxVvThDHLXhsO6s kUzn4v0U6YwXN5JCOVADuqTnOW8XXeNUrAeAl2lj+a+pjP7aUr4ZCoJ9NPQhYLV7EH04 b9dk/7YCGqCLlJZEd6xap25/CVYcFCxJm/4Bf5RW/TE3Gs1Bzj1qni6nrLwHBTxTesg1 G4uskJB3eg78tgqyubmJUJFrMIzQa02o3c4hOaRpmVfXnJRGUcfTPGDrEEY4jabIPRNb 9Q//RRQTH96TNXK0LvLpuhMbTGoml81ziciDz5+wfYmdE7EYVWhM8RVbM23K32YD1m/W sJwA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gZHEuo75VXla3lpdiIexGp8wjZi/dIjKyVfbpuQaMdY=; b=EaPMzvlVldqWjJw5lsXPmXf3yAz7OyBC811IbWNqPNe+gZngz4jyEWj7JGlbTOjMzo VB3hP8Djf8uAlDEBldfwvXc4QNUlQtNNiFTXZpW1ccQJLHEid9rM44+Rz01MHnA3L88P exua4snX/S2PQaCnZ8f0W1hlu64C6DUBYLggXWG9tkV1plhlDjwaevWKsPoSJ7OpDyd2 6I6po4zW3bEjFXeadDVIUc35SpmOony/m2DpQ3C6B5VRTUhBxvx69NjiL5hHk90YvwsY e++JBW2gudgY4xIrsnvlc/g10bWaL0KABPgOJzl5tAOpMP2W88nO9c1gBdateDhfe+a2 /elg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=MURgjpwO; 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 gj8-20020a170906e10800b0093338c0f70dsi2773275ejb.117.2023.04.05.07.40.09; Wed, 05 Apr 2023 07:40:40 -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; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=MURgjpwO; 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 S238591AbjDEOaq (ORCPT + 99 others); Wed, 5 Apr 2023 10:30:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238586AbjDEOai (ORCPT ); Wed, 5 Apr 2023 10:30:38 -0400 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 83F515FCA; Wed, 5 Apr 2023 07:30:13 -0700 (PDT) Received: from pendragon.ideasonboard.com (softbank219059148246.bbtec.net [219.59.148.246]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 80F391718; Wed, 5 Apr 2023 16:30:09 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1680705010; bh=Qs3POKuzAMl2FAwrRUyvpLBK6qJSzNKEzukle8jld14=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MURgjpwOIUrJIP2D7Rtkc9A8Kxbv1mzNmPQvR40pLpJ2dTdxJTFhUDRn1ILC3QF/X DTL/lO/prlXUnU/52QubBohKPtzvTssDjp0yYnhPQHFsnYpBlxGwPzSsynDUY/aaiM RtPdJEXy7tJq0vMbsOjDR/FYTYpotdw9i5EwU06c= Date: Wed, 5 Apr 2023 17:30:18 +0300 From: Laurent Pinchart To: Hans Verkuil Cc: Luca Ceresoli , 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 Subject: Re: [RESEND PATCH v4 03/21] staging: media: tegra-video: fix .vidioc_enum_fmt_vid_cap to return all formats Message-ID: <20230405143018.GC9915@pendragon.ideasonboard.com> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 Hi Hans, On Wed, Apr 05, 2023 at 10:50:37AM +0200, Hans Verkuil wrote: > On 05/04/2023 10:31, Luca Ceresoli wrote: > > On Wed, 5 Apr 2023 05:30:48 +0300 Laurent Pinchart wrote: > >> 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. Never say never :-) > 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. Can't the hardware support capturing different virtual channels or data types from the same CSI-2 source ? That would require MC support, the stream API requires subdev device nodes. > 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, > > > Ok, thanks for the feedback. I will send a v5 with this change. -- Regards, Laurent Pinchart