Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1468915imm; Tue, 3 Jul 2018 11:43:19 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd4VNsqM2mHX3ww0hE+fgvPZzU/jx6J9paIPFRLT+rCE/dwLl717/mQf8dYHLKz1YfGyALz X-Received: by 2002:a62:d98f:: with SMTP id b15-v6mr27195687pfl.1.1530643399392; Tue, 03 Jul 2018 11:43:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530643399; cv=none; d=google.com; s=arc-20160816; b=bOYO2ky4XKwIvXSQlFKZCVUWvkUqECKTKsGJztuUdBBJgYuggw+hK9/dMaHVpQC9sZ Q3ZGBuZM5uUOFNHFE1kgSva853O8hM/99t7e+hY0+J4zYC8HxfB1rDgvLWUJKNs/6xSS qtOlGbPMRQpHf90wLTKVaR6LaSGPbwWiopTINLnuQ1BjgWONgr/Yzk6ovLD7a3jRALyZ IRqqwcqOaJ6eM7+OMzE2Z45IDDkkVdiYew28BEfV+S+wStoE4BleTBjVq1wPMJgtaRWF Z1YBdK13CCva4SrGXZuiD0s3QkmSNgGave9pVHzAVzHwnSIURuBT+1xcFDGSdWETfFQg SRMQ== 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=r3AZYlO15fWXyEbMwq2d/i5L/JkZHM1LCXgUJpm8IG4=; b=ZBHaxvi3FrXJ3c5rvwT+j/2Y/RD1DXjudYPAn8j7cdU1+QtqZiLJRC9CBZ+bL90FmC O3YvpiV+XeROyXnYT5mPhgeSk1eSZLSsqfu0N197fHqCslZyjAV9LpWT94at2L0GGLhK uwyEj1nDj3LqyQtoKs29J6tbNqemeETVQ7kt0We2h+tvVljjMKUKIRUr/+bolrcubwKk 4LmD1EKVOBJ/RA6TuZAzAO+URT/YwBdsJK+f9N5eLebeXx1hKUEjCuH1MfjbnL9pEWrk QX9e+vreeg6kPFQebDFYuVjw2fmTmv9oN+gvxO7rNBkW5V24QA8TtJZBI24cCQz7aP23 bLuA== 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 s14-v6si1357282pgc.617.2018.07.03.11.43.04; Tue, 03 Jul 2018 11:43:19 -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 S934579AbeGCSlZ (ORCPT + 99 others); Tue, 3 Jul 2018 14:41:25 -0400 Received: from relay7-d.mail.gandi.net ([217.70.183.200]:38253 "EHLO relay7-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934399AbeGCSlY (ORCPT ); Tue, 3 Jul 2018 14:41:24 -0400 X-Originating-IP: 54.36.30.212 Received: from w540 (unknown [54.36.30.212]) (Authenticated sender: jacopo@jmondi.org) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 17AE520007; Tue, 3 Jul 2018 18:41:27 +0000 (UTC) Date: Tue, 3 Jul 2018 20:41:17 +0200 From: jacopo mondi To: Fabio Estevam Cc: Jagan Teki , Philipp Zabel , Steve Longerbeam , Fabio Estevam , Discussion of the development of and with GStreamer , linux-media , linux-kernel Subject: Re: i.MX6 MIPI-CSI2 OV5640 Camera testing on Mainline Linux Message-ID: <20180703184117.GC5611@w540> References: <20180531190659.xdp4q2cjro33aihq@pengutronix.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="0lnxQi9hkpPO77W3" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Level: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0lnxQi9hkpPO77W3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Fabio, thanks for pointing Jagan to my series, but.. On Fri, Jun 29, 2018 at 06:46:39PM -0300, Fabio Estevam wrote: > Hi Jagan, > > On Fri, Jun 1, 2018 at 2:19 AM, Jagan Teki wrote: > > > 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 > > Could you please test this series from Jacopo? > https://www.mail-archive.com/linux-media@vger.kernel.org/msg133191.html > > It seems that it would fix this problem. ... unfortunately it does not :( I've been able to test on the same platform where Jagan has reported this issue, and the CSI-2 bus still fails to startup properly... I do not have CSI-2 receiver driver documentation for the other platform I am testing on and where my patches improved stability, but the i.MX6 error reported by Jagan could be useful to help debugging what's wrong with the serial bus initialization on that platform. The error comes from register MIPI_CSI_PHY_STATE of the i.MX6 MIPI_CSI-2 interface and reads as: 0x2b0 : BIT(9) -> clock in ULPS state BIT(7) -> lane3 in stop state BIT(5) -> lane1 in stop state BIT(4) -> lane0 in stop state The i.MX6 driver wants instead that register to be: 0x430 : BIT(10) -> clock in stop state BIT(5) -> lane1 in stop state BIT(4) -> lane0 in stop state So indeed it represents a useful debugging tool to have an idea of what's going on there. I'm a bit puzzled by the BIT(7) as lane3 is not connected, as ov5640 is a 2 lanes sensor, and I would have a question for Jagan here: has the sensor been validated with BSP/vendor kernels on that platform? There's a flat cable connecting the camera module to the main board, and for high speed differential signals that's maybe not the best possible solution... Also, anyone interested in my mumbling on the ov5640 MIPI bus initialization, I've collected some thoughts here: https://paste.debian.net/1031942/ Any comment is of course welcome, and if I have a confirmation that the Engicam platform works with that flat cable, I'll keep working on it.. Thanks j > Thanks --0lnxQi9hkpPO77W3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJbO8NNAAoJEHI0Bo8WoVY8x3oP/2taIopgpZrgje+iXYy4EMcY 5Qv3ITPlrEH0nVQs7xGNtkJ2t33IbfpQ3BZr0bKKzvUO4owGss9999mnjXufJtS9 A86jFb1Y4J9fls7918NUqxM4RFl1R9qEB6ogDDdF85B/9DH0PV6YKQp8BwQ57XZL EdwL8z8kBx1X92dN/7Q9Rxgc20z1OHiHOPocwMMUV6FCt875TF6bQXKk3u6gLclG 9lnBmTW5uQUBARuJDBaP+0IkwFNF+S00ycsENFsKZwAcxR7CTPcatDht4tlzBPug 8FmCIu4Zb105lwxD+6HizFnOx308vZ/F1hhQfteOulDfyHmA3gQzp9ppX4NkMJbi 9AjZNdWllexNynh4TT5xOQK1DFuW67kbbtTTCxffcoJzvXFVUUprVvf54QJx4qmr OFQJD5lR4FWPELw6wPCZnEJD2Qa6kC0/4lBDo1y80nMHdavX1GS3qHIA0xtbMavr QyZ63OaeMcyfiSHyXxEhA2x3x0NJBbgHGkWHPHG7U77uqXae+n/AYl1wpMAKUdDh /Oa7UaNtGmRRookLMiclNOYjSUl8GMJc3vZzXWuVTE06nsM4k25rn5AQu/8a8PnB jk4MY2s669+7rZMBApw4k+gpd3bODo2VAL1XgiCiN0XCXOtpwbmVZZahTZ4pL239 2BuAjyOS5HmmCM7xY5Zm =jUOJ -----END PGP SIGNATURE----- --0lnxQi9hkpPO77W3--