Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp395576imm; Fri, 1 Jun 2018 02:54:14 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLy5rqU+W2bzv9aeXx1Uq4KLKQFH/FayoyeXiTIe25WeGh1qJvRVfiznpEVYVTK5DeWVIR3 X-Received: by 2002:a17:902:8d81:: with SMTP id v1-v6mr10273912plo.136.1527846854893; Fri, 01 Jun 2018 02:54:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527846854; cv=none; d=google.com; s=arc-20160816; b=N1LJQ4idPp7DfAwQ2fyhjjtnQx3PlU7hZw67SDb8SZO09ovE5B/xSxJXlpQDejDzi3 iRNYHpb8pLx7NanRtsjfADKrkFl0MswOWLarw9k6V6U2bJNNxRQcJ2X/IYdIP6sPNR4/ Pd3Xhm8MJXCt1s42C4mXmOrS3q++t6vPr/QR/X5CYWbtPlbLzK5bQbT6WG1hrtOs4+sW XhNXJpdd6PJ4CjTnegRa1oPdIwCeoPmNWjxxgLon5c2ABDRkVfqw6eeLfoltDaArvi+3 /nSZzX7P7CppnRb583GKkwUtYVGhRnbqLsVZqK1MYZWts2RRS9PM92ulDVNxCPuD7n/6 bXFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=GTPt44QScVhfQ4ISiZxqWqjmdGsNfx7EcI9BNuahjpI=; b=Lf9fGujoUaZ0UZDQAGFbTe+D1ZuLNh0NdpfzyfwjXEYkPoVDI8HSjBYce6ez4R0Tpy IaGYjVJPUBzP6mT1bT0bTNasOOgOJAisKCpmclOT8EYrEADt3S/vB8i5tGDmxz3hUtdB Fp+jlJ1qeU5eIIFrg04nNXYl0KHFDNvokN2QVdzB4eGclZDmZzbau+sbIgcvykxI3Dfi EHDL91HHfQDvnk/FSV9oLkEV/7Eb7eXxK3jOoPs5hwPEBhROnNXxIFs0/tZJlKdwIs8m t8maaIdZx8Dh28852QvgEyFWAojCJ80KqEJKu/j6r9lgo2a7UjmTxTbVvXZ+qRuSBBnG IJCg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a187-v6si32229149pgc.238.2018.06.01.02.53.58; Fri, 01 Jun 2018 02:54:14 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750871AbeFAJx2 (ORCPT + 99 others); Fri, 1 Jun 2018 05:53:28 -0400 Received: from nblzone-211-213.nblnetworks.fi ([83.145.211.213]:40992 "EHLO hillosipuli.retiisi.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750740AbeFAJxY (ORCPT ); Fri, 1 Jun 2018 05:53:24 -0400 Received: from valkosipuli.localdomain (valkosipuli.retiisi.org.uk [IPv6:2001:1bc8:1a6:d3d5::80:2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hillosipuli.retiisi.org.uk (Postfix) with ESMTPS id B7CB5634C7F; Fri, 1 Jun 2018 12:53:22 +0300 (EEST) Received: from sakke by valkosipuli.localdomain with local (Exim 4.89) (envelope-from ) id 1fOgkM-0000Is-GD; Fri, 01 Jun 2018 12:53:22 +0300 Date: Fri, 1 Jun 2018 12:53:22 +0300 From: Sakari Ailus To: Jagan Teki Cc: Philipp Zabel , Steve Longerbeam , Fabio Estevam , Discussion of the development of and with GStreamer , linux-media@vger.kernel.org, linux-kernel Subject: Re: i.MX6 MIPI-CSI2 OV5640 Camera testing on Mainline Linux Message-ID: <20180601095322.hdxcpmj4tfonaq4g@valkosipuli.retiisi.org.uk> References: <20180531190659.xdp4q2cjro33aihq@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 01, 2018 at 10:49:56AM +0530, Jagan Teki wrote: > Hi Philipp, > > On Fri, Jun 1, 2018 at 12:36 AM, Philipp Zabel wrote: > > Hi Jagan, > > > > On Thu, May 31, 2018 at 08:39:20PM +0530, Jagan Teki wrote: > >> Hi All, > >> > >> I'm trying to verify MIPI-CSI2 OV5640 camera on i.MX6 platform with > >> Mainline Linux. > >> > >> I've followed these[1] instructions to configure MC links and pads > >> based on the probing details from dmesg and trying to capture > >> ipu1_ic_prpenc capture (/dev/video1) but it's not working. > >> > >> Can anyone help me to verify whether I configured all the details > >> properly if not please suggest. > >> > >> I'm pasting full log here, so-that anyone can comment in line and dt > >> changes are at [2] > >> > >> Log: > >> ----- > > [...] > >> # media-ctl -l "'ov5640 2-003c':0 -> 'imx6-mipi-csi2':0[1]" > >> # media-ctl -l "'imx6-mipi-csi2':2 -> 'ipu1_csi1':0[1]" > >> # media-ctl -l "'ipu1_csi1':1 -> 'ipu1_ic_prp':0[1]" > >> # media-ctl -l "'ipu1_ic_prp':1 -> 'ipu1_ic_prpenc':0[1]" > >> # media-ctl -l "'ipu1_ic_prpenc':1 -> 'ipu1_ic_prpenc capture':0[1]" > > > > Here you configure a pipeline that ends at ipu1 prpenc capture ... > > > >> # med# media-ctl -p > > [...] > >> - entity 18: ipu1_ic_prpenc capture (1 pad, 1 link) > >> type Node subtype V4L flags 0 > >> device node name /dev/video0 > > > > ... which is /dev/video0 ... > > > > [...] > >> - entity 27: ipu1_ic_prpvf capture (1 pad, 1 link) > >> type Node subtype V4L flags 0 > >> device node name /dev/video1 > > > > ... not /dev/video1 ... > > True, thanks for pointing it. > > I actually tried even on video0 which I forgot to post the log [4]. > Now I understand I'm trying for wrong device to capture look like > video0 which is ipu1 prepenc firing kernel oops. I'm trying to debug > this and let me know if have any suggestion to look into. > > [ 56.800074] imx6-mipi-csi2: LP-11 timeout, phy_state = 0x000002b0 > [ 57.369660] ipu1_ic_prpenc: EOF timeout > [ 57.849692] ipu1_ic_prpenc: wait last EOF timeout > [ 57.855703] ipu1_ic_prpenc: pipeline start failed with -110 I don't have the hardware but this looks like the host cannot detect the LP-11 state on the sensor (both wires high?). Some sensors cannot do this without starting streaming at the same time. I'd expect the same if there are problems in lane configuration etc. -- Sakari Ailus e-mail: sakari.ailus@iki.fi