Received: by 10.223.164.202 with SMTP id h10csp5308373wrb; Tue, 21 Nov 2017 07:49:22 -0800 (PST) X-Google-Smtp-Source: AGs4zMYSiWhKPylJvJIV4pJMyUP27AZqC3a+hHsrshvbKtt8D9tHoh4vz8lhls+w/G/0AGpDBX90 X-Received: by 10.101.93.136 with SMTP id f8mr8091870pgt.291.1511279362155; Tue, 21 Nov 2017 07:49:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511279362; cv=none; d=google.com; s=arc-20160816; b=zzvn8/85JJWAs5VLjaO4LNKEcaBkUzkT0V+RqeguuOZmN7WkuHWjnpBXWHD3faTv0e JFVZeh8YXP4mNtAEj1hPIZ3IKft3PbT8lraHjU7Bba5SdCKMZMMZMDdR38Vm72SDMOWs rx7AanN9CVPTKRiYm8S1qA7UkgsjACqDuCaf2AkK69DYnaMtef1EtWmdpU+lifuPvT2p I38kuhen/34+r2I+3kNS+xZy2gePPGeGyRZfpk2vUTfIyY48ccVUdXUuicbeSgK/NSg7 vJOLinKxYnFGu42V6QtovTKgjsmJDvGxXwgbbvAdOUNkD8sCzHKNH1GtZxc0duXh5sK8 Vjfg== 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=mEHHICBV934VTTQ0ouKjBibw7JG3re/C7naDaY+JHZY=; b=PUtHrohiZy8ZSaMugYYn9eVDGIhSB0VjBqvVQc8XiKc5/PDoNOByNh2iXyiYzupoMf gLkt3Okg9EBfOwQOjVl3C+BN3xnUcI7f9lxXlZEDHlI6Qt9kYa2q6BZWMoWHStPF6Jig zUnsNvAakQnlxbeBb45aFNfxn501nUG40mgcP1Jqth0QmIWNWwHaD6FzgseYkCYZ1gWC CHXiimkL18pRwfaHCLmervM52/zdJr1miZqpd1WcMPCasR06TM9W+X55PtFLIgOJG3kn Nk4S0vjIMbD8RJbBJiq0NWYHT8qelFxKfaipQwyfrvxwa7ifeT8PFjnl/AhsmgddW+9+ uVzA== 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 m15si11042850pga.189.2017.11.21.07.49.10; Tue, 21 Nov 2017 07:49:22 -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 S1751356AbdKUPsc (ORCPT + 76 others); Tue, 21 Nov 2017 10:48:32 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:58621 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750794AbdKUPs3 (ORCPT ); Tue, 21 Nov 2017 10:48:29 -0500 Received: by mail.free-electrons.com (Postfix, from userid 110) id F1DF020745; Tue, 21 Nov 2017 16:48:26 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.free-electrons.com (Postfix) with ESMTPSA id C5E3B20397; Tue, 21 Nov 2017 16:48:26 +0100 (CET) Date: Tue, 21 Nov 2017 16:48:27 +0100 From: Maxime Ripard To: Yong Deng 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: <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> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="curnxkdqsfdlcs6k" Content-Disposition: inline In-Reply-To: <1501131697-1359-2-git-send-email-yong.deng@magewell.com> User-Agent: NeoMutt/20171027 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --curnxkdqsfdlcs6k Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > This patch implement a v4l2 framework driver for it. >=20 > Currently, the driver only support the parallel interface. MIPI-CSI2, > ISP's support are not included in this patch. >=20 > 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? Given that they all are planar formats and YUYV and the likes work just fine, maybe we can leave them aside for now? Thanks! Maxime --=20 Maxime Ripard, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com --curnxkdqsfdlcs6k Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIcBAEBAgAGBQJaFErLAAoJEBx+YmzsjxAgYvYP/1REuU2S0Dqz3CEpFOdHBXhi jceyy0Q43KGFaC2oRJd1zfjGX0E1zl6u6QScxpPe3OD6Z+jU/nMRinYGnd8LFFuy USCXwLi3k+a08alg/SFZa9hLOWBxqG2bXvCg4LUM9UKMVPwwUfTQjwHC2C+knIFA JZeVWlstddXVYMh2DAuzAOCReUZ8Q3Gw8p6NFUWeVDDk6l6ZsPRGWp4zRDr6qe2X fH/npI3UuCfoD2eoCYTbLP7KHI9pWH/VaC9+/kj9eBte2GCdd7k2hMjSQxmPByf5 OkknmcATR01AirAeOvLVkx4TIjKeXUXGysmJAb3BbJa69/gVQ2WTH06M0U3+3u0L Ihh7cZVy7h02R2AnSVWvTptMAWY/4T7W4gbYjG7qYTcUWOGHFJ0RFPPmVr2j3ODj RU3zDwtkF6cjaRB3EHP8VaxfJPG4ZUY37dgR//cF6TEjyV6aWKV7l+0JYLSdiWR9 IOGlZb6VKRTc3sjqTLEzb+jMQ1UgCvtCD97MjyBHa1TmloasLl4cIymDQglHvTKR dJsM1YYddyqSn6S8AsJ4hJZgMpdyNEoZEKAYIs2vcavLlUHxeTiruxZUDlbRudtq C1wrKo/A4lMBqUob6Zm/Ao4e5OCO8I4fw9rXyn+1CTt34IZfe4HAgfS2KQdzqgHD M3yzWIwATcKhcvAbOanm =DpOg -----END PGP SIGNATURE----- --curnxkdqsfdlcs6k-- From 1579230317575768383@xxx Fri Sep 22 09:09:53 +0000 2017 X-GM-THRID: 1574046305313556524 X-Gmail-Labels: Inbox,Category Forums