Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5395056imu; Tue, 13 Nov 2018 06:02:33 -0800 (PST) X-Google-Smtp-Source: AJdET5f5cMrxjP1Y8f9tI8XdT1uhSdjI9fKRcVkQqrzPyFePu9qTXL6CC1tYgaakKbbO8KK45avQ X-Received: by 2002:a62:8d51:: with SMTP id z78-v6mr5242526pfd.234.1542117752974; Tue, 13 Nov 2018 06:02:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542117752; cv=none; d=google.com; s=arc-20160816; b=MPktbFlDas6jVUayq67WAo599nKANA5h+9A2FRvujhLypobpy4pf5Xm21Dbdz38fPG ooG8WsLtOZGN5cIsOWl4ydwRQ1qotwf6ZnDJbiOa4fhO+zJlnh3tplPmSu1MlHVcg2P4 P5RC4lUT11Up2uGEzTi0G6LD4mmKb7ck9z3F1a38GCJxT5353znRqMinQoMl/6zvvsbG cRSRmK/88bOvQfI0+tQG6C/roR9TIM/AOaRGLH6QidQsnhKiy8T//D7zaHl0JNbWHhON SCcEhnfD8Yrc0ZfpO5PhWfB9+InyD/oOkDFKbmWMZPP0na3+/xpWvDhUjJr+7M6l3tzK v13g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Unz4TEq5anv0v5u1OVODe+UmEZ05m9uhcPX1WK7Erk4=; b=xJqCBX3XBeWjQ74V5BcKhzG6EqIR5N49mKtii7JJCZYII6ApgkwO3XKOLc2F1mmlnI TdE1Xn0fzylYxiOWtGqj0PQWKqub49c4fokG3qt2EBmA5NoKCbAiks6oP80IdbeisD7c Kmf6o0Iml+WBYi80ZSkLqL2odiGm4/Ni7nXSC0u7Uk7Z3lJBV/3b9iukJrZlJmq1PCuC QPJ4rm0xXYUgrw3JN+E8CXQb6HKHFR+4RR07W/7B6t2DHdBN28ayD5Gh6jdEUP440CW3 3To9EouJQyyfx/1Ue4cEKa3krE7H3TkPhUxHxPFmOHUgLglEjcRafCAGTRKcbhZ0Ift3 8gMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b="SA/+T3xF"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j24si19593377pgh.362.2018.11.13.06.02.10; Tue, 13 Nov 2018 06:02:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b="SA/+T3xF"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387499AbeKNAAF (ORCPT + 99 others); Tue, 13 Nov 2018 19:00:05 -0500 Received: from aer-iport-1.cisco.com ([173.38.203.51]:21234 "EHLO aer-iport-1.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733079AbeKNAAE (ORCPT ); Tue, 13 Nov 2018 19:00:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3216; q=dns/txt; s=iport; t=1542117707; x=1543327307; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=7bkDrXky24Hj/wLUu+w7i/g4mGKibprYQ1Gup8t4DAY=; b=SA/+T3xF1L/490vu1cS1OxX3txY3ty8qEFuraj262EWM/DnU9Se3/Hrp l4CTFKAfepulG9l44uUG2uhkmh9D3E3USxrEfseja0UQDqKs6fOItWBpf fCmSOQyPHDuJJ15sVK1bFkTh8SWu9Kp6eKKZ60ZU5S4+6/B2LzE1tgGWV Y=; X-IronPort-AV: E=Sophos;i="5.54,499,1534809600"; d="scan'208";a="8018397" Received: from aer-iport-nat.cisco.com (HELO aer-core-4.cisco.com) ([173.38.203.22]) by aer-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2018 14:01:46 +0000 Received: from [10.47.79.81] ([10.47.79.81]) (authenticated bits=0) by aer-core-4.cisco.com (8.15.2/8.15.2) with ESMTPSA id wADE1jEf007942 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 13 Nov 2018 14:01:45 GMT Subject: Re: [PATCH 0/5] media: Allwinner A10 CSI support To: Maxime Ripard , Thomas Petazzoni , Hans Verkuil Cc: Hans Verkuil , Sakari Ailus , Mauro Carvalho Chehab , Laurent Pinchart , linux-media@vger.kernel.org, Andrzej Hajda , Chen-Yu Tsai , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Mark Rutland , Rob Herring , Frank Rowand References: <20181113135259.onutfjtoi25afnfe@flea> From: Hans Verkuil Message-ID: Date: Tue, 13 Nov 2018 15:01:45 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20181113135259.onutfjtoi25afnfe@flea> Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Authenticated-User: hansverk X-Outbound-SMTP-Client: 10.47.79.81, [10.47.79.81] X-Outbound-Node: aer-core-4.cisco.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/13/18 14:52, Maxime Ripard wrote: > Hi Hans, > > On Tue, Nov 13, 2018 at 01:30:49PM +0100, Hans Verkuil wrote: >> On 11/13/18 09:24, Maxime Ripard wrote: >>> Hi, >>> >>> Here is a series introducing the support for the A10 (and SoCs of the same >>> generation) CMOS Sensor Interface (called CSI, not to be confused with >>> MIPI-CSI, which isn't support by that IP). >>> >>> That interface is pretty straightforward, but the driver has a few issues >>> that I wanted to bring up: >>> >>> * The only board I've been testing this with has an ov5640 sensor >>> attached, which doesn't work with the upstream driver. Copying the >>> Allwinner init sequence works though, and this is how it has been >>> tested. Testing with a second sensor would allow to see if it's an >>> issue on the CSI side or the sensor side. >>> * When starting a capture, the last buffer to capture will fail due to >>> double buffering being used, and we don't have a next buffer for the >>> last frame. I'm not sure how to deal with that though. It seems like >>> some drivers use a scratch buffer in such a case, some don't care, so >>> I'm not sure which solution should be preferred. >>> * We don't have support for the ISP at the moment, but this can be added >>> eventually. >>> >>> * How to model the CSI module clock isn't really clear to me. It looks >>> like it goes through the CSI controller and then is muxed to one of the >>> CSI pin so that it can clock the sensor. I'm not quite sure how to >>> model it, if it should be a clock, the CSI driver being a clock >>> provider, or if the sensor should just use the module clock directly. >>> >>> Here is the v4l2-compliance output: >> >> Test v4l2-compliance with the -s option so you test streaming as well. >> Even better is -f where it tests streaming with all available formats. > > I will, thanks for the tip! > >>> v4l2-compliance SHA : 339d550e92ac15de8668f32d66d16f198137006c >> >> Hmm, I can't find this SHA. Was this built from the main v4l-utils repo? > > It was, but using Buildroot. The version packaged in the latest stable > version I was using (2018.08) is 1.14.2. That's seriously out of date. That's why I show the SHA, to see if someone is testing with a recent version of the utility, so it served its purpose here :-) Latest release is 1.16.2. But when submitting new drivers you really need to build it yourself from the master branch, that's the only way to be sure you have all the latest compliance checks. > > Looking at the Makefile from v4l2-compliance, it looks like it just > invokes git to retrieve the git commit and uses that as the hash. In > Buildroot's case, since buildroot will download the tarball, this will > end up returning the SHA commit of the buildroot repo building the > sources, not the version of the sources themselves. > > I'm not sure how to address that properly though. Thomas, how do you > usually deal with this? Note that cec-compliance and cec-follower do the same, for the same reason. Where does the tarball come from? Regards, Hans > > Thanks! > Maxime >