Received: by 2002:a05:6512:2355:0:0:0:0 with SMTP id p21csp72135lfu; Thu, 7 Apr 2022 20:40:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVyv7iZJIQ5aclpP6+clzPnepkMkJWXBTt68eZcFNbBnYVxgIUjKVAFr5JHcLUB7XQbpuC X-Received: by 2002:a05:6a00:cc5:b0:4fb:4969:3eb with SMTP id b5-20020a056a000cc500b004fb496903ebmr17350512pfv.59.1649389250968; Thu, 07 Apr 2022 20:40:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649389250; cv=none; d=google.com; s=arc-20160816; b=HzRfcr3QVjbaAReD/nqno6U1BDftACz+ZJLu1c6SvkJIeEWS17r7iUpquws0M138Sz 9EeJWfw17E3MCqxKX6jc70aeocWECrgg2ZwdFfLGXwVxtAlRYsPXhqH5qMXnTtzpSYIh 9OuRcoRGMxd25R4XlrpAmH+nGF7KqX7RNdgANHuvwrSvdzILWrouBJuzmUdawPL4FJND 9zpwn3hrgr89oedrWIsItLq367TausCLP5howtm0VeY4NtxmmWhrU+GIzqFjzWAHVxh2 S6ebIFDdgqOUj5acuwP5UsyzMigBGx/0jCGQ8g5WMCfbY4KHdPKAEqjsEiGC3DYMDPov 0jow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=0mJcdW33+4gW1LiIaHWfczE7pJzHwlPUBk+4IAUF7M4=; b=bEylV9/P/fJPuQ5ese6UOtHFTTg3Rb/vPvChfFQEid5pdSTd4s2A7uX6S+zAb06KRh /saBF/54AimDpHa54ogrbLH8o1IYRoMPW6N/WjYf5vUkKv6Ux6ggnZin9fDLGFAi6U4H DwbhLtS3EbznhTH1EBPozeYIy7GZH1bc0jeouhidrkDMNdXxmA2gEH51MwFYl7UlQtle wgoKyd+QwHr+36vQaz4hcMp/WIA2vx7YNaikKi9FDac2JXYVOsu3WFNv4txksqm1muRD JtgGoQ3k6f3v18e4k2la0EBkufZf9iEIZefiAR+0XKhbfucN3Syq3qL3i9Bs1xUjJRmB AiuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gqHpKxRw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p20-20020a63e654000000b0039908cd81b8si177639pgj.133.2022.04.07.20.40.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 20:40:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gqHpKxRw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3685516F6CE; Thu, 7 Apr 2022 20:07:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233851AbiDHDJW (ORCPT + 99 others); Thu, 7 Apr 2022 23:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232790AbiDHDJU (ORCPT ); Thu, 7 Apr 2022 23:09:20 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 97E2716F6CE for ; Thu, 7 Apr 2022 20:07:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1649387237; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=0mJcdW33+4gW1LiIaHWfczE7pJzHwlPUBk+4IAUF7M4=; b=gqHpKxRwq6UtNddJ06/44SwEKfh0B+TVU6300XcPF6W4i9kkbzRN9OfHQWkJUEIXwX6Em+ 74gOqgpeBzYcqr72TX+5yqpRC2XinL9ckQ3h+7kgnKLDf49xT0TyhyweDA9jrtbno9gMnN jMrpi01htjSbTqHETgn+MHsOGDdw2c0= Received: from mail-lf1-f70.google.com (mail-lf1-f70.google.com [209.85.167.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-440-HKd9LzoOO8WTxtthrmgnrw-1; Thu, 07 Apr 2022 23:07:16 -0400 X-MC-Unique: HKd9LzoOO8WTxtthrmgnrw-1 Received: by mail-lf1-f70.google.com with SMTP id g6-20020a19ac06000000b00464f8022af9so1217327lfc.9 for ; Thu, 07 Apr 2022 20:07:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=0mJcdW33+4gW1LiIaHWfczE7pJzHwlPUBk+4IAUF7M4=; b=NALQ4XjfVCPoAvGLOgzGB2xMdPwXo4fkGezDl0difSr9m6PesrZb7BGPmDwBWkTc/t TiAjFvMZPHjFgicd05l8UPfoZE9GCW9S5VnLiDeXYWv7bdA9F9I062z/Ifa2laQ+hSRx uACMl6DxvcsY55KEHEBlC0HIobUOUv379VndHshoRpci1xox3uBrwhgFLqsZuc0aMTzL 02sUTEv96QfDryrq5YOacWWP242OpXisjXLxEIowRkgLilX8mSW/Wzj4AB2KXkHcusSq tOlDSTQpVvNuzmeh741X0DaS7G93YDqUxMi02ULuX5eGWa+K03sddN5UK3xxHiIeTlvY 0L3Q== X-Gm-Message-State: AOAM531+Pbr02OLphYBasAhlmEYzsqf3lquDhO2J3M72IYcKdS1s14EF /GLO/Nkvqmih/m9CHtNjldhCj8g8mnpkjYEHWDGUhJ4BP2V9Xii7dYBccyWtpbf4dQy5lHl39RL 7jNy6GcvU4cjVrmU9WzN3siuxPEoW7p4ZvjmvHGJU X-Received: by 2002:a05:6512:2586:b0:464:f75d:cfa with SMTP id bf6-20020a056512258600b00464f75d0cfamr3611241lfb.238.1649387234430; Thu, 07 Apr 2022 20:07:14 -0700 (PDT) X-Received: by 2002:a05:6512:2586:b0:464:f75d:cfa with SMTP id bf6-20020a056512258600b00464f75d0cfamr3611224lfb.238.1649387234117; Thu, 07 Apr 2022 20:07:14 -0700 (PDT) MIME-Version: 1.0 References: <20220407105724.308930-1-hpa@redhat.com> <20220407115133.GL3293@kadam> <20220407132609.GN3293@kadam> In-Reply-To: <20220407132609.GN3293@kadam> From: Kate Hsuan Date: Fri, 8 Apr 2022 11:07:03 +0800 Message-ID: Subject: Re: [PATCH v2] staging: media: ipu3: Fix AWB x_start position when rightmost stripe is used To: Dan Carpenter Cc: Sakari Ailus , 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 Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 Dan, On Thu, Apr 7, 2022 at 9:27 PM Dan Carpenter wrote: > > On Thu, Apr 07, 2022 at 09:17:38PM +0800, Kate Hsuan wrote: > > Hi Dan, > > > > On Thu, Apr 7, 2022 at 7:52 PM Dan Carpenter wrote: > > > > > > On Thu, Apr 07, 2022 at 06:57:24PM +0800, Kate Hsuan wrote: > > > > A not calibrated x_start setting would result in an incorrect AWB location > > > > configuration on a sensor when only the rightmost stripe is used. x_start > > > > should be calibrated by subtracting the stripe offset to set the coordinate > > > > to the correct position on the second stripe. > > > > > > > > > > > > I wish the commit description said more about what the bug looks like to > > > the user. This is the front facing camera, right? Is part of the video > > > blank or what's the deal? > > > > This is IPU3 image processor. I tried to fix the configuration issues > > on stripe 1 coordinate settings. > > > > So in terms of users, if you configure it in a certain way then it > crashes? What happens in terms of what the ordinary user sees? > It will not crash. Currently, application, such as libcamara only uses stripe 0 to estimate 3A (AE AWB AF). The grid coordinate can be used to determine the area on a sensor where we use this area to determine the 3A status. If we start to move the grid and it crosses the stripe 1 offset. The grid will be at the rightmost edge of the sensor. The user may only feel the location of AF, AWB, AE of the image is not the user's expectation. I'll update them in the v3 patch. > regards, > dan carpenter > -- BR, Kate