From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751103AbeFAFUB (ORCPT ); Fri, 1 Jun 2018 01:20:01 -0400 Received: from mail-io0-f195.google.com ([209.85.223.195]:32967 "EHLO mail-io0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750795AbeFAFT5 (ORCPT ); Fri, 1 Jun 2018 01:19:57 -0400 X-Google-Smtp-Source: ADUXVKLvWmLF+r+szjc3VnpeD4rNv+nHOgCQYoEg5ZLukUXyugWEctpABWFaK8q3sAQVGCUR5BGU1hHVV5DcpDcd4Qc= MIME-Version: 1.0 In-Reply-To: <20180531190659.xdp4q2cjro33aihq@pengutronix.de> References: <20180531190659.xdp4q2cjro33aihq@pengutronix.de> From: Jagan Teki Date: Fri, 1 Jun 2018 10:49:56 +0530 Message-ID: Subject: Re: i.MX6 MIPI-CSI2 OV5640 Camera testing on Mainline Linux To: Philipp Zabel Cc: Steve Longerbeam , Fabio Estevam , Discussion of the development of and with GStreamer , linux-media@vger.kernel.org, linux-kernel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 [4] https://paste.ubuntu.com/p/rSdh9pfGXs/ Jagan. -- Jagan Teki Senior Linux Kernel Engineer | Amarula Solutions U-Boot, Linux | Upstream Maintainer Hyderabad, India.