Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp365823pxv; Thu, 8 Jul 2021 04:27:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw7EvTg/OcvL2/8pmLHS5g9DzwYwAk019EWaBnstbE8uthLdh4BbcMho4zZVnVbAKHaYle X-Received: by 2002:a17:906:744:: with SMTP id z4mr30454721ejb.347.1625743663288; Thu, 08 Jul 2021 04:27:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625743663; cv=none; d=google.com; s=arc-20160816; b=TzaX5BFrXx7GVs0BNlC3BA1ta1QpryIFjm++a0fk9z0MEjynZ0K1dzrrk2F8XfG3U6 TFckAeRmDqwfq/lefo9PqYzHFqeqBl3rUecDOvcB3M50kJUDPF4lWZ+VRPjQNJtBCjwe LhK5s3k7Im4/u6qZlYmgKhGOXtBOD2Va+TQj2G2TFh5RAZHuYmdHYZzkcDKljTWip7qi VZpT4zQl0TYJJP2LfyZO9j0qVbtRWMpfit0EUkfkIsGRZf8gG3uujNvL6nFJnxaKQHNZ qXV9oat7mHKJ1TYU2ARH9OxXFYFBiPuVgi+sF3qSrWg0Xh21xLu8q5ep2NmFF6XCV2zU ixkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Nm5PF+zi+CnvnEIK9X8Ur0GOfFhsnJVQA+rpwvJmIYY=; b=BvATgCWT8JZhuNGIHmtkOxBxvAW2XFHc+Cpt1WSs0puMA1zDyz5NDuHUq7v2z5A7VO MfTt5MxZFGA/nb6Z0o1KDG1kPOuldOJUYly2qURSM0TwPS9Zwrje6vMFQV3ETdj6vFlI SPACMhLyqLIva2JT9UOBxw/zaM1+2uoZFLraEk58Q6xlYT36Z3qy5P6znVy51osjl0jF 9/8pYIm7eXaCVYdc5et5pJ7iHave11NkkGRrMr3qi799e98z8iXwoGvnK/x+oNyn5JWq MRIdSz0ckvPG/7zrArqI9vddKA8awpoaIR/stNR5Lxdx0SI+ATqIqgiYnwgiDI+FQaK2 wrEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jIxJh+vc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn1si2797747ejc.182.2021.07.08.04.27.20; Thu, 08 Jul 2021 04:27:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jIxJh+vc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231740AbhGHL2r (ORCPT + 99 others); Thu, 8 Jul 2021 07:28:47 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:33562 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231716AbhGHL2q (ORCPT ); Thu, 8 Jul 2021 07:28:46 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 168BP8eU062944; Thu, 8 Jul 2021 06:25:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1625743508; bh=Nm5PF+zi+CnvnEIK9X8Ur0GOfFhsnJVQA+rpwvJmIYY=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=jIxJh+vcs42ss6Wd2ahnU6QWgOMNC0HE+rt7Al24ndBsIdWFopCegdE5hsVUMniVN cKGJkaykLzk440G7cEe0NmntGx3WJWxjoreP5xg9qPfGdIG9sqry4iMidVD6Dks6KJ 6u9SBEY91lAi8i14SOW7D1EDB7pY2w4bBz0CelJE= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 168BP8uC088808 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 8 Jul 2021 06:25:08 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 8 Jul 2021 06:25:08 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Thu, 8 Jul 2021 06:25:08 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 168BP7CJ040075; Thu, 8 Jul 2021 06:25:07 -0500 Date: Thu, 8 Jul 2021 16:55:06 +0530 From: Pratyush Yadav To: Tomi Valkeinen CC: Jacopo Mondi , Mauro Carvalho Chehab , Laurent Pinchart , Vignesh Raghavendra , Nikhil Devshatwar , Alexandre Courbot , Arnd Bergmann , Benoit Parrot , Bert Vermeulen , Dikshita Agarwal , Dongchun Zhu , Eugen Hristev , Ezequiel Garcia , Fabio Estevam , Georgi Djakov , Hans Verkuil , Helen Koike , Jacopo Mondi , Jiapeng Chong , Kieran Bingham , Kieran Bingham , Lad Prabhakar , Martina Krasteva , Maxime Ripard , Michael Tretter , Mirela Rabulea , Neil Armstrong , Niklas =?iso-8859-1?Q?S=F6derlund?= , Paul Kocialkowski , Qiushi Wu , Raag Jadav , Ricardo Ribalda , Rob Herring , Sakari Ailus , Stanimir Varbanov , Steve Longerbeam , Thomas Bogendoerfer , Tianshu Qiu , Yang Yingliang , Zou Wei , , , Subject: Re: [PATCH v3 00/11] CSI2RX support on J721E Message-ID: <20210708112504.optj6xzkljrpbwsg@ti.com> References: <20210624192200.22559-1-p.yadav@ti.com> <20210707185636.xxu6n6p4gihrs37d@ti.com> <20210708081919.rlp5xv5f4jbx6uav@uno.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/07/21 11:43AM, Tomi Valkeinen wrote: > On 08/07/2021 11:19, Jacopo Mondi wrote: > > Hi Tomi, Pratyush, > > > > On Thu, Jul 08, 2021 at 12:26:38AM +0530, Pratyush Yadav wrote: > > > Hi Tomi, > > > > > > Thanks for looking into the patches. > > > > > > On 01/07/21 10:56AM, Tomi Valkeinen wrote: > > > > Hi Pratyush, > > > > > > > > On 24/06/2021 22:21, Pratyush Yadav wrote: > > > > > Hi, > > > > > > > > > > This series adds support for CSI2 capture on J721E. It includes some > > > > > fixes to the Cadence CSI2RX driver, adds runtime PM support to OV5640 > > > > > driver, and finally adds the TI CSI2RX wrapper driver. > > > > > > > > > > This series used to include the DPHY and DMA engine patches as well, but > > > > > they have been split off to facilitate easier merging. Patch 3 is > > > > > build-dependent on the DPHY series [0]. > > > > > > > > > > The DMA engine patch [1] can go in any order since that is only a run > > > > > time dependency. Things probably won't work without it but it will still > > > > > build fine. > > > > > > > > > > Tested on TI's J721E with OV5640 sensor. > > > > > > > > I applied these (csi-2 rx, phy, dma-engine) to linux-media/master, and added dts changes to add the csi2-rx. When sending the series, can you also push the branch you use for testing, as the posted patches do not include everything needed? > > > > > > Please use https://github.com/prati0100/linux-next/ branch "capture" > > > > > > I will include the link in the cover letter from next version onwards. > > > > > > > > > > > Here are some notes from quick tests: > > > > > > > > Capture works, but the fps is ~28.98. I would expect it to be closer to 30. Are the clocks configured correctly? > > > > > > I see this as well. I figured this had something to do with the sensor. > > > > Tomi you might remember your patch to change the h/vtot values which I > > collected in a series which I never managed to bring to v1, as Hugues > > reported it was broken for JPEG capture. > > > > I'll leave it here just for reference, I admit I dropped the ball > > rather quickly there: > > https://patchwork.linuxtv.org/project/linux-media/cover/20201028225706.110078-1-jacopo+renesas@jmondi.org/ > > > > I wish I could re-test but seems I've lost the powering cable of the > > device I used to test ov5640 :( > > Yes, I'm still using my hack patch when working with OV5640. With that hack, > on TI platforms with CAL IP, I get ~30fps. With this series on J7, I get the > above mentioned 28.98. > > It's possible my hack patch is wrong, and CAL driver is buggy, but together > they make things right. I guess I should also try J7 without my hack patch. I think this is a OV5640 related issue. On IMX219 I am seeing exactly 30 fps. > > If I recall right, I tested your changes but I couldn't get them to work on > my HW. > > I haven't worked on that since then, as I decided that debugging blind is > pointless. We need someone to analyze the signals to see what OV5640 is > sending. Or some new understanding about the OV5640 HW. > > Tomi -- Regards, Pratyush Yadav Texas Instruments Inc.