Received: by 10.223.164.202 with SMTP id h10csp5872311wrb; Tue, 21 Nov 2017 17:35:00 -0800 (PST) X-Google-Smtp-Source: AGs4zMZmRYkRfcgiuWZuvA5jkIlS54evf7oe/wdlo+c0t9ZF9fPaivKT722hqB8jRlAW9msecloF X-Received: by 10.99.50.69 with SMTP id y66mr7122961pgy.217.1511314500837; Tue, 21 Nov 2017 17:35:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511314500; cv=none; d=google.com; s=arc-20160816; b=pwRUhktrlfmz64nYttLYz6oP+hjdTQMDByEDhvF8ok0fyTDaVpKaOUmLGENLNeqydY KPq38QhAy2ioPD6z2Tq5woB/p0pIhFF2SIMYlO2eia2TYMqaWu7FTyfZdPC4rZf0xMu3 AyyoaKfw1KgYtWSqMYlQTf+5eG91t89uCyEqY205S6FZaEFoWGjjcjeImRvY9xWnyPRr 8Svm7OSNhgQnNyubOqwBbLFthJlyLHhQtRbTfjx3BpVJn6Ay1g4pV3h1KI2PZjdJp9ax hKo3qLxB4lNfsDOlSB/xnERqyJbj2F+AhCs8ZhNerfUr3BYpZya8S1CQ7/u7fnF68iEI 2VUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :arc-authentication-results; bh=9+yplChnWPHfHmh1m5AgayNmAQCzaj35giIrADIBInY=; b=nxPVaxf4IKQsLHfs5iGAciDaJ+VrrtjZFr8vWer7+9w08TfoMOmFY/UJKVNnG5yPsv 1eRHN/y9SBT73N2/DKN3NE5D/oMpHn826U7aw3DyP6vjhQqxXVQT498D8hhnxMc3Z9uU bjmHRTPrXBOeYpGDanXEKjwKUgRAsbwwFgefEA8jnHzy8UUHkTSQbsJMtqBahBo930xQ 9I4GhNJevbMc1FUHy05PeZB1QWBS3iO1EtbreyODFF0vsaguR7gi/BWQ9bHIpOAIJMLG 0tDFrtymGwtgn42XOGiBE9Xyq14Ek6MbuKnudXtfyXEHTeIY0LKHm0cS6qD0umvxWOPY atQA== 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 a13si11954574pgq.440.2017.11.21.17.34.49; Tue, 21 Nov 2017 17:35:00 -0800 (PST) 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 S1751586AbdKVBdj (ORCPT + 75 others); Tue, 21 Nov 2017 20:33:39 -0500 Received: from out20-14.mail.aliyun.com ([115.124.20.14]:57222 "EHLO out20-14.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751401AbdKVBdh (ORCPT ); Tue, 21 Nov 2017 20:33:37 -0500 X-Alimail-AntiSpam: AC=CONTINUE;BC=0.0291585|-1;CH=green;FP=0|0|0|0|0|-1|-1|-1;HT=e02c03297;MF=yong.deng@magewell.com;NM=1;PH=DS;RN=24;RT=24;SR=0;TI=SMTPD_---.9TQI-zi_1511314386; Received: from John(mailfrom:yong.deng@magewell.com ip:58.213.29.2) by smtp.aliyun-inc.com(10.147.40.200); Wed, 22 Nov 2017 09:33:07 +0800 Date: Wed, 22 Nov 2017 09:33:06 +0800 From: Yong To: Maxime Ripard Cc: Mauro Carvalho Chehab , Rob Herring , Mark Rutland , Chen-Yu Tsai , Greg Kroah-Hartman , "David S. Miller" , Hans Verkuil , Arnd Bergmann , Hugues Fruchet , Yannick Fertre , Philipp Zabel , Benoit Parrot , Benjamin Gaignard , Jean-Christophe Trotin , Ramesh Shanmugasundaram , Minghsiu Tsai , Krzysztof Kozlowski , Robert Jarzmik , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: Re: [PATCH v2 1/3] media: V3s: Add support for Allwinner CSI. Message-Id: <20171122093306.d30fe641f269d62daa1f66b4@magewell.com> In-Reply-To: <20171121154827.5a35xa6zlqrrvkxx@flea.lan> References: <1501131697-1359-1-git-send-email-yong.deng@magewell.com> <1501131697-1359-2-git-send-email-yong.deng@magewell.com> <20171121154827.5a35xa6zlqrrvkxx@flea.lan> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.30; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 21 Nov 2017 16:48:27 +0100 Maxime Ripard wrote: > Hi, > > On Thu, Jul 27, 2017 at 01:01:35PM +0800, Yong Deng wrote: > > Allwinner V3s SoC have two CSI module. CSI0 is used for MIPI interface > > and CSI1 is used for parallel interface. This is not documented in > > datasheet but by testing and guess. > > > > This patch implement a v4l2 framework driver for it. > > > > Currently, the driver only support the parallel interface. MIPI-CSI2, > > ISP's support are not included in this patch. > > > > Signed-off-by: Yong Deng > > Thanks again for this driver. > > It seems like at least this iteration is behaving in a weird way with > DMA transfers for at least YU12 and NV12 (and I would assume YV12). > > Starting a transfer of multiple frames in either of these formats, > using either ffmpeg (ffmpeg -f v4l2 -video_size 640x480 -framerate 30 > -i /dev/video0 output.mkv) or yavta (yavta -c80 -p -F --skip 0 -f NV12 > -s 640x480 $(media-c tl -e 'sun6i-csi')) will end up in a panic. > > The panic seems to be generated with random data going into parts of > the kernel memory, the pattern being in my case something like > 0x8287868a which is very odd (always around 0x88) > > It turns out that when you cover the sensor, the values change to > around 0x28, so it really seems like it's pixels that have been copied > there. > > I've looked quickly at the DMA setup, and it seems reasonable to > me. Do you have the same issue on your side? Have you been able to > test those formats using your hardware? I had tested the following formats with BT1120 input: V4L2_PIX_FMT_NV12 -> NV12 V4L2_PIX_FMT_NV21 -> NV21 V4L2_PIX_FMT_NV16 -> NV16 V4L2_PIX_FMT_NV61 -> NV61 V4L2_PIX_FMT_YUV420 -> YU12 V4L2_PIX_FMT_YVU420 -> YV12 V4L2_PIX_FMT_YUV422P -> 422P And they all work fine. > > Given that they all are planar formats and YUYV and the likes work > just fine, maybe we can leave them aside for now? V4L2_PIX_FMT_YUV422P and V4L2_PIX_FMT_YUYV is OK, and V4L2_PIX_FMT_NV12 is bad? It's really weird. What's your input bus code format, type and width? > > Thanks! > Maxime > > -- > Maxime Ripard, Free Electrons > Embedded Linux and Kernel engineering > http://free-electrons.com Thanks, Yong From 1584691268713756176@xxx Tue Nov 21 15:49:22 +0000 2017 X-GM-THRID: 1574046305313556524 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread