Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5698881ybl; Tue, 27 Aug 2019 08:27:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqybIrkxeE9DPnY2T50nc00ZLLyrVq9VhFSJMfnSDJCvk4guE5NvQ5wlowRfPLO62Kt2UPBA X-Received: by 2002:a63:de4c:: with SMTP id y12mr11792118pgi.264.1566919644310; Tue, 27 Aug 2019 08:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566919644; cv=none; d=google.com; s=arc-20160816; b=TtwDQsY0iBTYGLmTe3T7/579nVer6kUQ1gxpc6SfBAX2Jrq9kvAHDCNz7aKIsqNa6d Qooz9y3Ei5+znEw2R7aP5zOpFVOa3NtBHVE/SEEVHIr8WnxYSitaocLAoiINDLceX7/n 8VGeIe4qZuMyCkugTczjIUg8qkmtNutIhvIxuDMhE0jMeC5kkKpzc8JYljVY+OnLSVcD wjSBEuVoDQjJyulIjHcSntLiINo7yU7F7YrFK187fX2fkrgc7wT7neWxGvAVXv7cvo4U pBNyHuNsBYabud9wXjAWb+n2vSH/wSW3XMu2jDEdHKFdx9LbkmhuVKQuI3VsKqtGxv5A 4dWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id:dkim-signature; bh=UYsPsgGfUckufMeEUec2JwS26x9RnxC68LqfuMsCJb4=; b=kxRXUbuITd6R7CEprcWnsF3p/X5eaMFExBdVuQy4qDTPSq8BVjDLKimCFiWrlY73qS W6i/elej8HrrAkH3uX3Lqn7MqEiMUODjyZPdhn+vQJFpUXA2ep6Km8sczGrU2y56ovCX pn+hIxTog7oejNb5ZWSISC9oKReOZkIrTRBvt2mxDlze3zoGpXIOyajW0SDB80cOirAb JBqcg38q7jyk4Hme6JeP3t/s3HynblT6W7GF8AUKtFQac19/1XFzYET3aCIqOwg7wB9A 20G3eWVzWNztqvLlChz1YUzOLUVLRNJ6uyKfCH60CniLOeiJbH4qlhtlLBJVix2bx8DK APeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=Q1NhQkKV; 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 o185si13971866pfb.206.2019.08.27.08.27.07; Tue, 27 Aug 2019 08:27:24 -0700 (PDT) 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=@ndufresne-ca.20150623.gappssmtp.com header.s=20150623 header.b=Q1NhQkKV; 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 S1730065AbfH0PZ7 (ORCPT + 99 others); Tue, 27 Aug 2019 11:25:59 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:42780 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728702AbfH0PZ6 (ORCPT ); Tue, 27 Aug 2019 11:25:58 -0400 Received: by mail-qt1-f196.google.com with SMTP id t12so21680897qtp.9 for ; Tue, 27 Aug 2019 08:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ndufresne-ca.20150623.gappssmtp.com; s=20150623; h=message-id:subject:from:to:cc:date:in-reply-to:references :user-agent:mime-version; bh=UYsPsgGfUckufMeEUec2JwS26x9RnxC68LqfuMsCJb4=; b=Q1NhQkKVxAJlcKICo7k5uO5wNqrqJBvNZeECLILQCFrPYYBxQy90++0mMzPVwDn4S8 TpWXTq7/bbzvvgU9XibqgTuSn9KYLWVYUi1wr9wQPm0n9tinq18kYuBsi9mSXbnjVrPJ LI569nCbjvqAHQkLM+ORs/6pREwitnixakqmoxua+Bv9X29ughQwtfmxM2n/Ma4L3FlZ 2gjAgAiF2FJcNrKH4g6grpJB8XVrqdboghb2Lp7XhhnM/FOMqhACKeZyzu+PJMkQwCOg dU4mOurRaiSuhta9WPdCrG3SSlUO0bBwb96IjQIJajtvjgjxfd4voZ23uY9kZi8KwooA lKXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:user-agent:mime-version; bh=UYsPsgGfUckufMeEUec2JwS26x9RnxC68LqfuMsCJb4=; b=hjjRH/OYEWVgf08qLu3c0TAsQMCYevroWotuZxQnybfDkM0Lp0DtXYYZAo/Ku+8bIW M4jcz3HuHdkHw1gZhrzabsYHxW173K3ff9yxQHcht72xOJMtcoLl8Fy4R3M7WnldRHMn +3xBYtBs4eQ2/E2hvsy+bS2u+ngj/NBurNWpESTs4Hrmdr3DPXrkpCNrRT8qa7310rp3 waGUW+io/Jo9oLu331U3VvN6d9KfIYptR77xlboD3D2ZOHk8bNfisrISMXrNXyfJg2AJ gaEdWYpu3kGZETnPWEYPmot2Z0LJh26PJbEly4hZKz5rjakKVrcUMI7sdS7sjXEKdC8v n8hQ== X-Gm-Message-State: APjAAAWj+PEzHkmwCoJ6wb57k+C3lcdyl/LQIZDKSEgmiVJ0n2A20Nas bKVR5JWK67xzIsLDI+uDJGQQbQ== X-Received: by 2002:ac8:7b2a:: with SMTP id l10mr624196qtu.115.1566919557007; Tue, 27 Aug 2019 08:25:57 -0700 (PDT) Received: from tpx230-nicolas (modemcable154.55-37-24.static.videotron.ca. [24.37.55.154]) by smtp.gmail.com with ESMTPSA id p201sm7988339qke.6.2019.08.27.08.25.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Aug 2019 08:25:55 -0700 (PDT) Message-ID: Subject: Re: [PATCH 6/7] misc: bcm-vk: add Broadcom Valkyrie driver From: Nicolas Dufresne To: Arnd Bergmann , Scott Branden Cc: Luis Chamberlain , Greg Kroah-Hartman , David Brown , Alexander Viro , Shuah Khan , Bjorn Andersson , Shuah Khan , "Rafael J . Wysocki" , Linux Kernel Mailing List , linux-arm-msm@vger.kernel.org, Linux FS-devel Mailing List , BCM Kernel Feedback , Olof Johansson , Andrew Morton , Dan Carpenter , Colin Ian King , Kees Cook , Takashi Iwai , "open list:KERNEL SELFTEST FRAMEWORK" , Desmond Yan , James Hu , Linux Media Mailing List , dri-devel Date: Tue, 27 Aug 2019 11:25:53 -0400 In-Reply-To: References: <20190822192451.5983-1-scott.branden@broadcom.com> <20190822192451.5983-7-scott.branden@broadcom.com> Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="=-Q6lkT7+PAzBRKQ8Zlvb3" User-Agent: Evolution 3.32.4 (3.32.4-1.fc30) MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-Q6lkT7+PAzBRKQ8Zlvb3 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le mardi 27 ao=C3=BBt 2019 =C3=A0 16:14 +0200, Arnd Bergmann a =C3=A9crit : > On Thu, Aug 22, 2019 at 9:25 PM Scott Branden > wrote: > > Add Broadcom Valkyrie driver offload engine. > > This driver interfaces to the Valkyrie PCIe offload engine to perform > > should offload functions as video transcoding on multiple streams > > in parallel. Valkyrie device is booted from files loaded using > > request_firmware_into_buf mechanism. After booted card status is updat= ed > > and messages can then be sent to the card. > > Such messages contain scatter gather list of addresses > > to pull data from the host to perform operations on. > >=20 > > Signed-off-by: Scott Branden > > Signed-off-by: Desmond Yan > > Signed-off-by: James Hu >=20 > Can you explain the decision to make this is a standalone misc driver > rather than hooking into the existing framework in drivers/media? >=20 > There is an existing interface that looks like it could fit the hardware > in include/media/v4l2-mem2mem.h. Have you considered using that? >=20 > There is also support for video transcoding using GPUs in > driver/gpu/drm/, that could also be used in theory, though it sounds > like a less optimal fit. I believe that a major obstacle with this driver is usability. Even though I have read through, I believe it's just impossible for anyone to actually write Open Source userspace for it. The commit message does not even try to help in this regard. Note that depending on the feature your transcoder has, there is also the option to model it around the media controller. That is notably useful for certain transcoders that will also do scaling and produce multiple streams (for adaptive streaming usecases were you want to share a single decoder). An 1 to 1 transcoder modeled around m2m would eventually required documentation so that other transcoder can be implemented in a way that they would share the same userspace. This is currently being worked on for m2m encoder and decoders (including state-less variants). regards, Nicolas --=-Q6lkT7+PAzBRKQ8Zlvb3 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQSScpfJiL+hb5vvd45xUwItrAaoHAUCXWVLgQAKCRBxUwItrAao HOWtAJ9PEGIeS4lUvTlk5tzICIY0ocFUrgCfZ7hh+138dIIu9Aq/IBhBjjcgRwg= =7DWJ -----END PGP SIGNATURE----- --=-Q6lkT7+PAzBRKQ8Zlvb3--