Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1086318pxp; Thu, 17 Mar 2022 02:28:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcQGre+K8HZsPDA1P1/CIl1j44frowZwWEOeqgK0AF3DImFA/oJro1Yi+iFhLsF7ZnFo53 X-Received: by 2002:a17:907:3f9b:b0:6da:6f2b:4b1c with SMTP id hr27-20020a1709073f9b00b006da6f2b4b1cmr3297159ejc.765.1647509306505; Thu, 17 Mar 2022 02:28:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647509306; cv=none; d=google.com; s=arc-20160816; b=BG16bDW4j8IBWPQPmc23X/9uJbff0TZgN3hzYkOnJj+Ji/WUrjfmRVTGBo9xqwp4tR PGBNSccpEbNmJ6pIGOsEekR6Ga2rtw0f6XK+DMFwoP+h4bb3+BWK8db4TtZHkcaRSH6D MEHlLJyuvJd62svJGlnO2EXwLlnpS1tcMCO3uDZ/byw5nG1DSihU8yMa18FfFpFT+et5 fP4e287BjeLthKZ8+iroF7ejaa+E5OWzHrE+3RRLglIuw/nlsQs+4HkdcBXMKbcuJPEV ZOIF8GoSuZnbnpo9LuPzzhBqLjxDS4EJUkm33Xusb/clO/8Dizm8g/T2wTb9l4kOrEtR pqOQ== 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=mv9TAtlnDT+5iohdnp7IidKVQNCn2/4LM/mfuuJ2Frs=; b=hhJciXrUcjmBnKkAmee0hrVmIvVh1m6EG8WDZ41d5/zBl8fCoMdtPTCZVXO8TWcdFn ixGs+S66353WYXkHHex/HEwcU43HgOiitL9V5L90fMqAIxeM7W1zq0WeTQbJa15vrs93 0mf8ckZ9zYa9a9Rxc25M+GJsKuLKFL36qzH1AdgXArmIHqwHcIRottode41TvQbmEv0m s7FRX9FntVSAoXQZtQbbXBANtmgqKcKRc1Lsr8pe6C/t3RtLE7JMFn/IzMnkxFYfaDlv TvcxAvwcgeK2hy0UwyoY5+NYkdJ+5mta3fYgm7+HoR71X0PrZNcV586tY6vJKSPB415o Mf+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=na+Uh66G; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l19-20020a50d6d3000000b00418f6f7cccbsi1093797edj.401.2022.03.17.02.28.01; Thu, 17 Mar 2022 02:28:26 -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 header.i=@intel.com header.s=Intel header.b=na+Uh66G; 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=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231758AbiCQJLp (ORCPT + 99 others); Thu, 17 Mar 2022 05:11:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230307AbiCQJLo (ORCPT ); Thu, 17 Mar 2022 05:11:44 -0400 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1046E728B; Thu, 17 Mar 2022 02:10:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647508228; x=1679044228; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=mU8Qb91onFIWfxnHBD8lFTb9SqVTKEG/q66dCayIafc=; b=na+Uh66G66GSI3kssiPDNMjYVNXlOooqTAxZgoVJ2xtly7E/zHgO+609 t2ridFdooFONni9YLd17LWQTzgDDuH6ji6/LS/79dSGwlWttOLgxkfcIx ZDqtAno3K8z6niPHSWaJc+NCHYaNMyskucU6LJzkjGNih2YFTb3n/vrFi E/CBagY57qo3BxWDh6ABa+mp9v7oLGaEyztNHVfy01AyWswGDS90y2XKQ X9T4Bjn7aQ2wM0g26Whc5Uld+CriOpvDa6zTgC6EOCdijhoVINvozBSVZ 6FTa5ANCN0GeRq2JZWWHcvUndjh6i3ruVP6FGRnGuOyu3TyD6qcxLuplm Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10288"; a="256549509" X-IronPort-AV: E=Sophos;i="5.90,188,1643702400"; d="scan'208";a="256549509" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2022 02:10:28 -0700 X-IronPort-AV: E=Sophos;i="5.90,188,1643702400"; d="scan'208";a="645024733" Received: from punajuuri.fi.intel.com (HELO paasikivi.fi.intel.com) ([10.237.72.43]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Mar 2022 02:10:25 -0700 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id 6D8CE20399; Thu, 17 Mar 2022 11:10:23 +0200 (EET) Date: Thu, 17 Mar 2022 11:10:23 +0200 From: Sakari Ailus To: Kate Hsuan Cc: Bingbu Cao , Tianshu Qiu , Mauro Carvalho Chehab , Greg Kroah-Hartman , Jean-Michel Hautbois , linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Hans De Goede Subject: Re: [PATCH v4] staging: media: ipu3: Fix AF x_start position when rightmost stripe is used Message-ID: References: <20220317075713.10633-1-hpa@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE 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 On Thu, Mar 17, 2022 at 04:53:07PM +0800, Kate Hsuan wrote: > Hi Sakari, > > On Thu, Mar 17, 2022 at 4:28 PM Sakari Ailus > wrote: > > > > On Thu, Mar 17, 2022 at 03:57:13PM +0800, Kate Hsuan wrote: > > > For the AF configuration, if the rightmost stripe is used, the AF scene > > > will be at the incorrect location of the sensor. > > > > > > The AF coordinate may be set to the right part of the sensor. This > > > configuration would lead to x_start being greater than the > > > down_scaled_stripes offset and the leftmost stripe would be disabled > > > and only the rightmost stripe is used to control the AF coordinate. If > > > the x_start doesn't perform any adjustments, the AF coordinate will be > > > at the wrong place of the sensor since down_scaled_stripes offset > > > would be the new zero of the coordinate system. > > > > > > In this patch, if only the rightmost stripe is used, x_start should > > > minus down_scaled_stripes offset to maintain its correctness of AF > > > scene coordinate. > > > > > > Changes in v2: > > > 1. Remove the setting of the first stripe. > > > > > > Changes in v4: > > > 1. x_start is estimated based on the method for both stripes are enabled. > > > 2. x_end is estimated based on the width. > > > > Please put the changelog before '---' line. I've removed it from the commit > > message this time. I meant to say after. Then it won't be part of the commit message. > > > > -- > > Sakari Ailus > > > > Okay, I got it. > > Thank you. > > -- > BR, > Kate > -- Sakari Ailus