Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp400661imm; Tue, 3 Jul 2018 22:19:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpcuP1JfvHEwRxZyM6om56L1XcWCCBUd6kK7WvRpxnS81eMJhrmTOvMnr+rx7Jb1vnOL1sKr X-Received: by 2002:a62:858c:: with SMTP id m12-v6mr627865pfk.173.1530681571802; Tue, 03 Jul 2018 22:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530681571; cv=none; d=google.com; s=arc-20160816; b=LQ1aHlt9YGIfXXgk5Bg0PBUp176Cy6krKUIFPSvs5o5MkVSzHmlPH5R3b9+o0t/XXX Hw+d1bhpp2BEyWFTdLOH0Xu75IL5FtIzwg5mUN+s0/EBwGwnZKcXuAgdAGgbUHujFB57 qtNPikGKHR8LVUa+IkDNAUFEBbFD5W8IxDQV0nv7crlnCd1zk//bYdr1uXixcYiwAU35 db0XRpxfg6fI5/yMh+kws2Y5IzoQmmEBc48JxOLddD//JllbOYW0uaN2zFEy4/Dd+6TT oX1KVGuDUCFWDMy/fcgSLvDBQD5wg7hFKHb+JJ4RG4R68Cz7j5ltWDXgeZW6rs7DRJp2 4ohA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=6KQxFv5m+SixAm3/A+Rw4gGWASDThOn9w82kKZfPCxc=; b=ibdMQKTh2tV40TLGxNFKV2tbq/eZs9KoES0TgxOYQhy2kvtkyxawT9l+BbYkIHRRut Vsk/s3cuHzorM/AVa/P8scZ6FK+macRlOxZ9T/vPgnoJ1kyVBy7Hm0ELm5QHfSYSfBcB RaehY87mYSIES55RTUqw53Hw6DyytenKHabKoflSZJX6JtLYFrnIKrvzO17ATHXt/rKn yisZp73T2fjx7sPsg/a35+AsP92UYfq+I9xUy3keZpJd9UWIcoxOjKXg/rzsOSZ4wGDP HPNo5pa8IL+v9ovS/lS/nzSY1BI43zGwVbewIpkJZbkPhtt4U1LmtZt6U8YQ/vGEFiQ/ Ytcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SakZvt9C; 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 v41-v6si2762691plg.451.2018.07.03.22.19.15; Tue, 03 Jul 2018 22:19:31 -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; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=SakZvt9C; 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 S932655AbeGDFSf (ORCPT + 99 others); Wed, 4 Jul 2018 01:18:35 -0400 Received: from mail-it0-f49.google.com ([209.85.214.49]:37359 "EHLO mail-it0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751768AbeGDFSd (ORCPT ); Wed, 4 Jul 2018 01:18:33 -0400 Received: by mail-it0-f49.google.com with SMTP id p17-v6so6325634itc.2 for ; Tue, 03 Jul 2018 22:18:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=6KQxFv5m+SixAm3/A+Rw4gGWASDThOn9w82kKZfPCxc=; b=SakZvt9C7i1eUCPKTbaSRMRMCCh5tWNwrgq7AExXFnCtSBQk39rrY21XrsNFUom276 BHyFfkuXW6Y6TZguHGL1Morm9SeUTVKGkOQ6oBq2J2DFojCD6rv/WuVsQzCklZ3jRouz 6FZ0J8Ts0sT+6tNDQMaJv+YRXcynRk8iPgrbI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=6KQxFv5m+SixAm3/A+Rw4gGWASDThOn9w82kKZfPCxc=; b=fgb+nm6Dssqh9UNzs9GYDWvtOxoabpLRW7SiGZDt7G6ap2/qrLHtXpUfUEzKK15GKl VHjIx8lhsemegmWBecJU/J4M3yI3DRwKKQmKYWV8VYYimeHubyC14XFVL2j1j3tJsyKQ zzXADDwLAFN4Bzrm5+YFkJogHzIjpbxWbZZJNuQhQFnzcylrwTyC46sh3OR0QqZLLOa4 LmegfjR+miSZaGMMhyMW2TBfFkyq/6dayX3Awj9NF0KkaVbixXlOBlPXFaaI2EoB8XrM Vu1VLu4L7EfzZOYC1zKryklkZ8Ld3Hj9/PP0FpFm+xvW6JPlu7GO9tXbVafEX8Q3G8kd 0PsA== X-Gm-Message-State: APt69E06z1FMG5G9AR/TMgytP96fbgxu8cg+y69TYi9S2SMYF8Je64uB E6VSabxXE7TPm5GueK7FWLM9Y36+K10h8EGhRbn14A== X-Received: by 2002:a02:943:: with SMTP id f64-v6mr405833jad.31.1530681512788; Tue, 03 Jul 2018 22:18:32 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a02:a785:0:0:0:0:0 with HTTP; Tue, 3 Jul 2018 22:18:32 -0700 (PDT) In-Reply-To: <20180703184117.GC5611@w540> References: <20180531190659.xdp4q2cjro33aihq@pengutronix.de> <20180703184117.GC5611@w540> From: Jagan Teki Date: Wed, 4 Jul 2018 10:48:32 +0530 Message-ID: Subject: Re: i.MX6 MIPI-CSI2 OV5640 Camera testing on Mainline Linux To: jacopo mondi Cc: Fabio Estevam , Philipp Zabel , Steve Longerbeam , Fabio Estevam , Discussion of the development of and with GStreamer , linux-media , linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 4, 2018 at 12:11 AM, jacopo mondi wrote: > 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 Will verify this on my board and let you know the result. >> >> 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... Yes, I've validated through engicam Linux, [1] before verifying to Mainline. I have similar board which posted on the website on J5 point 20-Polig connector attached to bus to sensor[2] [1] https://github.com/engicam-stable/engicam-kernel-4.1.15/blob/som_release/arch/arm/boot/dts/icoremx6q-icore-mipi.dts [2] https://www.engicam.com/vis-prod/101145 Jagan. -- Jagan Teki Senior Linux Kernel Engineer | Amarula Solutions U-Boot, Linux | Upstream Maintainer Hyderabad, India.