Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2763293imu; Sun, 6 Jan 2019 09:23:10 -0800 (PST) X-Google-Smtp-Source: ALg8bN46d0bWhFQ5zBmFl3CqId20ulhWpF7yjS3kzD2Zp4D7UsgB9/fcts1R5KPiqViKapHS5OEe X-Received: by 2002:a63:e950:: with SMTP id q16mr8232804pgj.138.1546795390758; Sun, 06 Jan 2019 09:23:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546795390; cv=none; d=google.com; s=arc-20160816; b=XZdl0H2kBULxjtQnvbYKCCZiD8mi9CJym3sLvpSLfskXOqAFwh+BHg6MvavrjCPyIh f7RynDvjm1+xsx4nLqsv3q55LK5yq2BNyelHiELalQTUyMoUVOK2IKXh+rzepuHNZHzp 0q/vSfh0irxJqqZfj+RtC7236V3SP/PryFY8967MskxHuFEczb1sELmcSXulg7qiCp/R H4QU7+fBT1is4uupe7JndLcj+TvC7cp09rmEMbOXDzBWDFffCXtrtcsj962ShC0fnW8H sNYzVnPuiBRRyhYn7O/3ujWjDerTjUTsmMp0ky0HFtaZx5b3CiNcMEoubjwZGjkk74I3 3m5A== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=HPSHnGDRj6mLQSUv4JPQnsIrTLEbeoPCS38cByUX/n4=; b=M8jHb6WFzszJhv73DXbBPIL1bkE3zy+nKKUdbI6yEL6YfqSGwoq70KiMtUUfkp9Fc/ SP4t8yFVTsHW4l0WvgQFe6C0eLOrppMR2wjzp/lBsdvdAd7harAmWqsv1jVcyQ3VZMFx Dw2hbyVvwTenI/KRqbkpwGHJFyFYwmfqQE3J1O/jQBgnzSQBpCYXiLm9bqrnfQI371Op U/+0a4qAe3Y9acDnuwUhtG0HA7oJ4j7KbGBa/1B5jLr+dACZ6Uh4wJaDr0ombC6ZgFx0 Avttd7jS1B59nx2I+NwAwBRoVAPmMuhM7XLjuYuenqAAh9NNXwzbLLdRUSR18N48JXys h5Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=epezfUhg; 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.22.55; Sun, 06 Jan 2019 09:23:10 -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; dkim=pass header.i=@vanguardiasur-com-ar.20150623.gappssmtp.com header.s=20150623 header.b=epezfUhg; 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 S1726087AbfAFRVv (ORCPT + 99 others); Sun, 6 Jan 2019 12:21:51 -0500 Received: from mail-vk1-f195.google.com ([209.85.221.195]:35355 "EHLO mail-vk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725986AbfAFRVu (ORCPT ); Sun, 6 Jan 2019 12:21:50 -0500 Received: by mail-vk1-f195.google.com with SMTP id b18so8924323vke.2 for ; Sun, 06 Jan 2019 09:21:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vanguardiasur-com-ar.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=HPSHnGDRj6mLQSUv4JPQnsIrTLEbeoPCS38cByUX/n4=; b=epezfUhgmBqwhIhvIHE/lvh7L00rnGEJ3dPd8xdNuz6MwP341NTrbB+DPsfGgmTsR/ VXiTWmHhYpN0/yYaCWb1xewj/cT2WWIr6oJtKBTNa1vgkPBasYlBN46PhIDqcUzFL64x CEKEShK9ndrbv2/AmjbV1LB5zEj9i8JsU3mjH8A6jq+cRkXcMN2p5hNEMoSJp6XMI8tl CU2IzYWumhFdtxM5grQBBJdjycUcxYTlb7AbQ8bdsFzBtO7FaAnYuQAkJ4sN1h1lbP8S 4WoJKWHufP2Trg6Wp0+ZjFMZJGK7KSSRQRsRDr7Ko2bwSf2zO2q9TEeFhatfTIEgM03J cSjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=HPSHnGDRj6mLQSUv4JPQnsIrTLEbeoPCS38cByUX/n4=; b=UCpPHQK9SYCvzU941qRlfGmKsqTFOJtA/skmZz7R16gvVTe7KsEk9l/sbXWixHIX79 GU415fFyHO7iCQQ11LWPKTAwdD4qfx+g3q13cuKLzxyeqm0SArBqo/J0Bp4+Il3H26Du HCD0tCW7BWarHcRd9v+xPOE6uUJtEXHL74YQCkHk5eycHSuIzQIF9hQVL7fTPuJfsF4A n1S+1unXQFyVdHHu3SfnumvYOvhmk8XmjYK8LG9R06g7d4AQ1rYKuIep/jlZ3cD55OV9 ZrZUQFrheo5gaNDTCjVsJlLY+gn4yV6/oXCR3nBU/08JW/kmNC3JuLYScGG7cl3HMeI+ m4OA== X-Gm-Message-State: AJcUukfcQQNP84nOjxUpehLHeS7e4DG33qp0ucqAHT2HXAdNQcvA+fRJ rOdoooh29sPu7z0vtpVOcObyPW1DrJYXNJCBPxYhxQ== X-Received: by 2002:a1f:85d3:: with SMTP id h202mr21550444vkd.69.1546795308953; Sun, 06 Jan 2019 09:21:48 -0800 (PST) MIME-Version: 1.0 References: <20190105183150.20266-1-ayaka@soulik.info> <20190105183150.20266-5-ayaka@soulik.info> <50db3bc3faea97182b7fe18b4d9677f7e1563eaa.camel@collabora.com> In-Reply-To: From: Ezequiel Garcia Date: Sun, 6 Jan 2019 14:21:37 -0300 Message-ID: Subject: Re: [PATCH 4/4] arm64: dts: rockchip: add video codec for rk3399 To: Ayaka 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-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 6 Jan 2019 at 13:16, Ayaka wrote: > > > > Sent from my iPad > > > On Jan 7, 2019, at 12:04 AM, Ezequiel Garcia w= rote: > > > > 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 sp= ace 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 de= coder and encoder pair, they may not exist at some platforms, even some pla= tforms doesn=E2=80=99t 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? 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 b= e blocked by another high frame rate encoding work or another decoder sessi= on. 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". Thanks for the input! --=20 Ezequiel Garc=C3=ADa, VanguardiaSur www.vanguardiasur.com.ar