Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5F091E9270D for ; Thu, 5 Oct 2023 15:52:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233917AbjJEPwD (ORCPT ); Thu, 5 Oct 2023 11:52:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234240AbjJEPvD (ORCPT ); Thu, 5 Oct 2023 11:51:03 -0400 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BACAB1178C for ; Thu, 5 Oct 2023 07:13:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1696515225; x=1728051225; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=3zlmOD0sw/Q3fs75VOAF2Sj40kAxq/n97BhzVY9DKfA=; b=bc8d1P8cZPxq9GCGU0DIhBLfR/Q5+AJhihFhlNLQeIjg7/NaOj9zY2VL sm71mx0mrdnXgQUJhBYCoEp8lWRXfiEaKfY7CmG8IvCZrG6nFFFSIve3R GI/F3mLPlJ1U8lU/4Whmag3VX6aXvWGzOF/ge0FMWo5Xj+7DXMiCVv5uS wCi8l+uYWVfh+yZuLjZpshIb4IMLEr0XAyfLjjC0e1Ib+iWj7VVn4UauF Mc7e0RihC86ri4XfPhCUsA3b9/CPTsKVZJ9V10/MBV5M/V4ZJX9USkLFC 5tAb3elQwlaXOE0UCEMopdwR+PF38RQEICjBurLE8gc+bYjwGJwdOWNLy w==; X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="387386937" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="387386937" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 07:13:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10854"; a="751785026" X-IronPort-AV: E=Sophos;i="6.03,203,1694761200"; d="scan'208";a="751785026" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Oct 2023 07:13:41 -0700 Received: from kekkonen.localdomain (localhost [127.0.0.1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 75107120AD7; Thu, 5 Oct 2023 17:13:38 +0300 (EEST) Date: Thu, 5 Oct 2023 14:13:38 +0000 From: Sakari Ailus To: Tomi Valkeinen Cc: Hans Verkuil , linux-media@vger.kernel.org, Laurent Pinchart , bingbu.cao@intel.com, hongju.wang@intel.com, Andrey Konovalov , Jacopo Mondi , Dmitry Perchanov , "Ng, Khai Wen" Subject: Re: [PATCH v6 09/28] media: Documentation: Document embedded data guidelines for camera sensors Message-ID: References: <20231003115237.76828-1-sakari.ailus@linux.intel.com> <20231003115237.76828-10-sakari.ailus@linux.intel.com> <9e73537d-b32d-4abe-8dc2-390dbd9e566a@xs4all.nl> <6c0ba156-535d-b618-0b02-685423cd3589@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6c0ba156-535d-b618-0b02-685423cd3589@ideasonboard.com> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Moi, On Thu, Oct 05, 2023 at 02:53:25PM +0300, Tomi Valkeinen wrote: > On 05/10/2023 13:10, Hans Verkuil wrote: > > On 03/10/2023 13:52, Sakari Ailus wrote: > > > Document how embedded data support should be implemented for camera > > > sensors, and when and how CCS embedded data format should be referenced. > > > > > > Signed-off-by: Sakari Ailus > > > --- > > > .../media/drivers/camera-sensor.rst | 28 +++++++++++++++++++ > > > 1 file changed, 28 insertions(+) > > > > > > diff --git a/Documentation/userspace-api/media/drivers/camera-sensor.rst b/Documentation/userspace-api/media/drivers/camera-sensor.rst > > > index 919a50e8b9d9..308f391c5ca1 100644 > > > --- a/Documentation/userspace-api/media/drivers/camera-sensor.rst > > > +++ b/Documentation/userspace-api/media/drivers/camera-sensor.rst > > > @@ -102,3 +102,31 @@ register programming sequences shall initialize the :ref:`V4L2_CID_HFLIP > > > values programmed by the register sequences. The default values of these > > > controls shall be 0 (disabled). Especially these controls shall not be inverted, > > > independently of the sensor's mounting rotation. > > > + > > > +Embedded data > > > +------------- > > > + > > > +Many sensors, mostly raw sensors, support embedded data which is used to convey > > > +the sensor configuration for the captured frame back to the host. While CSI-2 is > > > +the most common bus used by such sensors, embedded data is not entirely limited > > > +to CSI-2 bus due to e.g. bridge devices. > > > > I'm not quite sure what you mean with "embedded data is not entirely limited > > to CSI-2 bus due to e.g. bridge devices": do you just want to say: "embedded data > > can be available on other bus types as well."? > > Right, nothing CSI-2 specific here. I have a parallel sensor that sends > embedded data as the last (or was it first?) few lines of the frame. > > Also, is this about sensors only, and more specifically, about generating > the embedded data? If yes, why mention bridge devices (and should the title > be "Embedded data generation" or such)? If not, is it about metadata in > general, in which case bridges come into play? > > > > + > > > +Embedded data support should use an internal source pad and route to the > > > > should or shall/must? > > Is the above necessary? I don't see anything wrong with, say, having a > sensor represented with multiple subdevs, and one subdev is used for the > embedded data generation. > > Basically, anything that can be represented with internal pads can also be > done with multiple subdevs, although I think you don't want to go the > multiple subdev route unless absolutely necessary. True. This is trying to convey to the user space developers what's possible vs. suggesting driver developers what to do. I'd expect embedded data to use internal source pads, anything else will need to be separately agreed upon. -- Terveisin, Sakari Ailus