Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1360330pxu; Fri, 27 Nov 2020 05:43:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJwubCf9I3u1Eu1zyLoU8/EZnh0oGpVF8k0T6zNGw575Ze766jf+k+eTi8NIR9DtWdTDasbY X-Received: by 2002:a05:6402:3098:: with SMTP id de24mr7765092edb.155.1606484593989; Fri, 27 Nov 2020 05:43:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606484593; cv=none; d=google.com; s=arc-20160816; b=Y2zFZ10fbXDgGKa++A4MV1ZW6CixeUFEET+Bh8MMKiz3uUqKYMv5gxamNZlin4h9dT Kx/Vauff43CGR30WoLK7VXbNOydUeoC2piekILCAMmSy6dJ7yKn6f41zm9fE5BjYDnVz ejKR4iYTTBm91ICvEwYIqPgN5SXuh8HNqHmWNReN6RBGMvsNoA7zizLCZVhS0wBTnSed 1WUhyb4OGMPvvbLuOnibzy+im1GJmki10gpVYv7O5eCypWiu1PgoVj8Pcn1FLU8AmQIs hB/IIKNEd3Fw+dklmZBEJQ3pkj8U91h1YJX6tgy43u6RUfDR7vlxfg0OvXIYQbswAVzm YGEA== 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=BHAQM3gbyGwhXE/CkIZq3MYKF3CjSmKc6NmkE6A/KD8=; b=M1OkzpiqSjvxmoaxiAf7P9TpsieZsWti/X1miywMEnFb8u0bpI5TabFCzw/edEGSpF 2zOc815qifBqjvUk9g8eZnrvJNMqbP7JPPX7PQm/dzY2gW24dtlcmMdhgmO5B3PO1rAV yunySM5UCobgFoaTLyIdOn6vuOnJeIZzxvRbZe0o9dV+nxqbno5LffxJV2ZNHhwS2aQn CVjYV9aDCXAb77Vpk3hJkftFVaFmHn8u1FfC3G/czIobziN7HAft64YWTM8ft+z5wjES xuSRAU0nXoD5f0tWtk+jPKGy+06DDQPc6+kWWIqsB4vOZAitge7ttbrYsQAtaT2JBj0c 23vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HQsyzCOW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si4742952ejb.131.2020.11.27.05.42.50; Fri, 27 Nov 2020 05:43:13 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HQsyzCOW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729967AbgK0Nii (ORCPT + 99 others); Fri, 27 Nov 2020 08:38:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53608 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729762AbgK0Nih (ORCPT ); Fri, 27 Nov 2020 08:38:37 -0500 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52088C0613D1 for ; Fri, 27 Nov 2020 05:38:36 -0800 (PST) Received: by mail-pg1-x544.google.com with SMTP id l17so4399444pgk.1 for ; Fri, 27 Nov 2020 05:38:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BHAQM3gbyGwhXE/CkIZq3MYKF3CjSmKc6NmkE6A/KD8=; b=HQsyzCOW6lrMVYUftuhnFNbIrnjBX4Qn7rk/0mUYyTP2ydEyAmevy6jObnBrjHsDCa p1jujtG+16rNbXB2l56ZkswRy6i8LxNUZ1xCf6HhU9rsxKf16l603x8pTRS21eFm2CNk R4jX08wA448hCp+VC7YaYh79x/nEF1BjT61WFn35SQzS95MWKoNIYoQ+oSauoL+HLbJW eAQ5m4xJFsJj6hlUG5s/UOJI3cpOkNMoUBPJ0/CbuoRvLaqI2gJiwz6sy0X45EL5731I Ew3PrXT1v73/JXGQ6aO3eIHqtSiZI8A600P/5KMDT0+n6Pejqf4nvqSqgk4RFLUk931i zwiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BHAQM3gbyGwhXE/CkIZq3MYKF3CjSmKc6NmkE6A/KD8=; b=ZGQrcqz8FXbVPKO0mSlMLC1tIjv58Hr+KWKu5sUn6cHKhISm85euos8sVs6oMoPFNx hhxbzpDiI6YIcIsn4EeZsn3A4HBZYjDWae1jotsGsUGqJCRIOmlax9vkGltGdvIAJHBR eccx0lTRJkiLIuoRrtywk3Yvy84MK9+uDv/ZGw7v3XSuBH/qfxSac0t/xxMuN0Ow+T4i fhNw/msJRSHyfElwmQxI70jLAJKrQBMzMvHatxeNWr0O5PD9X0EfWv5pXsgNw/Uwq9JM /bAPB3Orbxslm7o45je3ALMGOGxnNZXyPhcsNYBYyO2wTabFueV74BJqkoOJtE65jj+H gGjQ== X-Gm-Message-State: AOAM531JtS4ca9RZgh76Fmw6t8ggxsjo2TDKjpJ5RJs2gaZ5NxAPhHMZ o92SN0Fa4RI3AHuvDa2rZh8mh9jC87TSydNQsaja4w== X-Received: by 2002:a17:90a:fc92:: with SMTP id ci18mr10008326pjb.75.1606484315870; Fri, 27 Nov 2020 05:38:35 -0800 (PST) MIME-Version: 1.0 References: <20201116155008.118124-1-robert.foss@linaro.org> In-Reply-To: From: Robert Foss Date: Fri, 27 Nov 2020 14:38:24 +0100 Message-ID: Subject: Re: [PATCH] media: ov8856: Remove 3280x2464 mode To: Tomasz Figa Cc: Bingbu Cao , Dongchun Zhu , Mauro Carvalho Chehab , linux-media , linux-kernel , Sakari Ailus , Ben Kao Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks for digging into this everyone! Assuming Tomasz doesn't find any stretching, I think we can conclude that this mode works, and should be kept. Thanks Dongchun for parsing the datasheet and finding the Bayer mode issue for the two other recently added resolutions. On Fri, 27 Nov 2020 at 11:26, Tomasz Figa wrote: > > On Thu, Nov 26, 2020 at 7:00 PM Robert Foss wrote: > > > > On Wed, 25 Nov 2020 at 08:32, Tomasz Figa wrote: > > > > > > Hi Bingbu, > > > > > > On Wed, Nov 25, 2020 at 1:15 PM Bingbu Cao wrote: > > > > > > > > > > > > > > > > On 11/24/20 6:20 PM, Robert Foss wrote: > > > > > On Tue, 24 Nov 2020 at 10:42, Bingbu Cao wrote: > > > > >> > > > > >> Hi, Robert > > > > >> > > > > >> I remember that the full size of ov8856 image sensor is 3296x2480 and we can get the 3280x2464 > > > > >> frames based on current settings. > > > > >> > > > > >> Do you have any issues with this mode? > > > > > > > > > > As far as I can tell using the 3280x2464 mode actually yields an > > > > > output resolution that is 3264x2448. > > > > > > > > > > What does your hardware setup look like? And which revision of the > > > > > sensor are you using? > > > > > > > > > > > > > Robert, the sensor revision I am using is v1.1. I just checked the actual output pixels on our > > > > hardware, the output resolution with 2464 mode is 3280x2464, no black pixels. > > > > > > > > As Tomasz said, some ISP has the requirement of extra pixel padding, From the ov8856 datasheet, > > > > the central 3264x2448 pixels are *suggested* to be output from the pixel array and the boundary > > > > pixels can be used for additional processing. In my understanding, the 32 dummy lines are not > > > > black lines. > > > > > > The datasheet says that only 3264x2448 are active pixels. What pixel > > > values are you seeing outside of that central area? In the datasheet, > > > those look like "optically black" pixels, which are not 100% black, > > > but rather as if the sensor cells didn't receive any light - noise can > > > be still there. > > > > > > > I've been developing support for some Qcom ISP functionality, and > > during the course of this I ran into the issue I was describing, where > > the 3280x2464 mode actually outputs 3264x2448. > > > > I can think of two reasons for this, either ISP driver bugs on my end > > or the fact that the sensor is being run outside of the specification > > and which could be resulting in differences between how the ov8856 > > sensors behave. > > I just confirmed and we're indeed using this mode in a number of our > projects based on the Intel ISP and it seems to be producing a proper > image with all pixels of the 3280x2464 matrix having proper values. > I'm now double checking whether this isn't some processing done by the > ISP, but I suspect the quality would be bad if it stretched the > central 3264x2448 part into the 3280x2464 frame. > > Best regards, > Tomasz