From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752530AbcBHKYC (ORCPT ); Mon, 8 Feb 2016 05:24:02 -0500 Received: from mail-io0-f179.google.com ([209.85.223.179]:33619 "EHLO mail-io0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751575AbcBHKX6 (ORCPT ); Mon, 8 Feb 2016 05:23:58 -0500 MIME-Version: 1.0 In-Reply-To: <56B866D9.5070606@xs4all.nl> References: <1451785302-3173-1-git-send-email-andrey.utkin@corp.bluecherry.net> <56938969.30104@xs4all.nl> <56B866D9.5070606@xs4all.nl> Date: Mon, 8 Feb 2016 12:23:57 +0200 Message-ID: Subject: Re: [RFC PATCH v0] Add tw5864 driver From: Andrey Utkin To: Hans Verkuil Cc: Linux Media , "linux-kernel@vger.kernel.org" , "kernel-mentors@selenic.com" , devel@driverdev.osuosl.org, kernel-janitors , Mauro Carvalho Chehab , Ezequiel Garcia , Greg Kroah-Hartman , Andrey Utkin Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 8, 2016 at 11:58 AM, Hans Verkuil wrote: > Hi Andrey, > > Hmm, it looks like I forgot to reply. Sorry about that. Thank you very much anyway. > I wouldn't change the memcpy: in my experience it is very useful to get a > well-formed compressed stream out of the hardware. And the overhead of > having to do a memcpy is a small price to pay and on modern CPUs should > be barely noticeable for SDTV inputs. So there's no usecase for scatter-gather approach, right? > I don't believe that the lockups you see are related to the memcpy as > such. The trace says that a cpu is stuck for 22s, no way that is related > to something like that. It looks more like a deadlock somewhere. There was a locking issue (lack of _irqsave) and was fixed since then. > Regarding the compliance tests: don't pass VB2_USERPTR (doesn't work well > with videobuf2-dma-contig). Also add vidioc_expbuf = vb2_ioctl_expbuf for > the DMABUF support. That should clear up some of the errors you see. Thank you! -- Bluecherry developer.