Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2769171imu; Sun, 6 Jan 2019 09:31:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN6yEb5KWfReu5RQ0hnd1xMq0Chye1a9hHUlPKIjTgnzLYqdhqynG2h0Wa03T6tnKguOYaoQ X-Received: by 2002:a17:902:2867:: with SMTP id e94mr58948293plb.264.1546795890735; Sun, 06 Jan 2019 09:31:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546795890; cv=none; d=google.com; s=arc-20160816; b=0frGAcFhTzm+UJHxGv66n2cjH6jKYbUKWyz2m1t5YDcbDmTb3p5xa0xWdEQNrT9gr1 ugnedFEWn2J3tas/6sRPtMEu0zDsOhSUPt1rqkRpnWPS0WNYzel15WsghIPd9rMKUiiu sFN7hf02ngcgX7HgEJIXBzY3laetff2mBI3bCf/jzXh80OOTqzQKzAXE8N4yXD8qcWy7 ZcMd3UJ1DhCDZF/HALHEI4fv8F44Ocj3DA7zRCayG+nIMDcvAscqo674bQQ6+qiaiAuq 1Zop2WahtLhOCWYQ5wAnmnUEWbiegXMlfaDS5gvFO821pgeHkDsXgHvwpljnyurNGuKI Is7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=UPWdILhO76UmLJ8Jm63n6knbp+WA0mDlXmbMBUpYY7k=; b=YdsNlAk+/F8Pb9m/v5gIsWCrCs8332z9dOPMDXMG5HxQFVmOWw+q4nu33d3YiqnR76 YhMsNHn4SYrBhQd4prFgJxoTpZ5ATAHpt05MawXVTkxdZJSq0wTim649zagTk6CS5Vj1 PFPRM+AlpMGqS5OCvr2wocQ1V3BGOfSNNW13n3jRjuaFerCXaOuIPtYGABHakgGNTX6v crAeqj/t0hu+PSD64iFgMN6JiOmM0C32NXr7+M7CIBUZqEcrxMHSwFpSKua/WJGTCaY/ yMR8hRvvQHPvAtADrh06hmKa+Knv7vm6a+i7CG1yP+UAOXHs80RT/go5gvqgfgxjpQXc bfVw== 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 204si7145832pfu.273.2019.01.06.09.31.15; Sun, 06 Jan 2019 09:31:30 -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 S1726087AbfAFRaG convert rfc822-to-8bit (ORCPT + 99 others); Sun, 6 Jan 2019 12:30:06 -0500 Received: from kozue.soulik.info ([108.61.200.231]:41034 "EHLO kozue.soulik.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725931AbfAFRaG (ORCPT ); Sun, 6 Jan 2019 12:30:06 -0500 Received: from [192.168.0.49] (unknown [192.168.0.49]) by kozue.soulik.info (Postfix) with ESMTPSA id A637B100F5C; Mon, 7 Jan 2019 02:30:42 +0900 (JST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: [PATCH 4/4] arm64: dts: rockchip: add video codec for rk3399 From: Ayaka X-Mailer: iPad Mail (16A404) In-Reply-To: Date: Mon, 7 Jan 2019 01:29:54 +0800 Cc: Ezequiel Garcia , "open list:ARM/Rockchip SoC..." , Tomasz Figa , Nicolas Dufresne , myy@miouyouyou.fr, Paul Kocialkowski , Mauro Carvalho Chehab , linux-media , Hans Verkuil , Heiko Stuebner , linux-arm-kernel , Linux Kernel Mailing List Content-Transfer-Encoding: 8BIT Message-Id: <85C6CA4D-CC54-422B-BC2B-25EA10701696@soulik.info> References: <20190105183150.20266-1-ayaka@soulik.info> <20190105183150.20266-5-ayaka@soulik.info> <50db3bc3faea97182b7fe18b4d9677f7e1563eaa.camel@collabora.com> To: Ezequiel Garcia Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Ezequiel Sent from my iPad > On Jan 7, 2019, at 1:21 AM, Ezequiel Garcia wrote: > >> On Sun, 6 Jan 2019 at 13:16, Ayaka wrote: >> >> >> >> Sent from my iPad >> >>> On Jan 7, 2019, at 12:04 AM, Ezequiel Garcia wrote: >>> >>> On Sun, 2019-01-06 at 23:05 +0800, Ayaka wrote: >>>>> On Jan 6, 2019, at 10:22 PM, Ezequiel Garcia wrote: >>>>> >>>>> Hi Randy, >>>>> >>>>> Thanks a lot for this patches. They are really useful >>>>> to provide more insight into the VPU hardware. >>>>> >>>>> This change will make the vpu encoder and vpu decoder >>>>> completely independent, can they really work in parallel? >>>> As I said it depends on the platform, but with this patch, the user space would think they can work at the same time. >>> >>> >>> I think there is some confusion. >>> >>> The devicetree is one thing: it is a hardware representation, >>> a way to describe the hardware, for the kernel/bootloader to >>> parse. >>> >>> The userspace view will depend on the driver implementation. >>> >>> The current devicetree and driver (without your patches), >>> model the VPU as a single piece of hardware, exposing a decoder >>> and an encoder. >>> >>> The V4L driver will then create two video devices, i.e. /dev/videoX >>> and /dev/videoY. So userspace sees an independent view of the >>> devices. >>> >> I knew that, the problem is that the driver should not always create a decoder and encoder pair, they may not exist at some platforms, even some platforms doesn’t have a encoder. You may have a look on the rk3328 I post on the first email as example. > > That is correct. But that still doesn't tackle my question: is the > hardware able to run a decoding and an encoding job in parallel? > For rk3328, yes, you see I didn’t draw them in the same box. > If not, then it's wrong to describe them as independent entities. > >>> However, they are internally connected, and thus we can >>> easily avoid two jobs running in parallel. >>> >> That is what the mpp service did in my patches, handing the relationship between each devices. And it is not a easy work, maybe a 4k decoder would be blocked by another high frame rate encoding work or another decoder session. The vendor kernel have more worry about this, but not in this version. > > Right. That is one way to design it. Another way is having a single > devicetree node for the VPU encoder/decoder "complex". No, you can’t assume which one is in the combo group, it can be various. you see, in the rk3328, the vdpu is paired with an avs+ decoder. That is why I use a virtual device standing for scheduler. > > Thanks for the input! > -- > Ezequiel García, VanguardiaSur > www.vanguardiasur.com.ar