Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3970766ybi; Mon, 27 May 2019 08:45:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqxmZZN0Up6GpGcQ2JX1C/Y2DjIDCyJahxj3NIAT4PvypqM2Iq3epudl2dmi9gqu7Dpz2aqu X-Received: by 2002:a17:90a:80c3:: with SMTP id k3mr31548539pjw.65.1558971923827; Mon, 27 May 2019 08:45:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558971923; cv=none; d=google.com; s=arc-20160816; b=kXW9x+0wdi6wVrIQN5mUvf2j2jz4ZIzd+jofNSE5EuhwlFhDmq4ed40Gbo5mntFrKW e4pHr0fs71D35SyLZuwQGhL+MRtPldhgwjjZ+ahAPetAKmkwBaVWoCILC46oMqedH+AG Phc33smY8+vWb235VVgrkIiS9WUyrBQx/AVgLV6AfhbRfiht8NMrTDct6Imk2ZKd+mR8 6S5O2aJXcQlBqIYCZE9eQYxAYY19rgvcUo8901Xc6XqDaBfQlh8dQMJxwAJvKY4JGiPb grSlcFkgy8wYpySlYwiIfcjJnkuzPmqSIr1obwcQ7Y5sZSQIhSN0nQwy6zOon+vrTH7l 14Rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Tdsw2aGiBLowdBKompMuLQW0FpeZcju49WmFG8bHyOw=; b=GGqo39ISaR7j+19C3C2dA78mJV4CybmCfmsa47cXxM1E0GhsTD38wZaaQhltNZdv5s bMWI+kiJS/TWOMPuAfgd7pes2p8Hzhii9WnzNHKMv8/UxqY4eFxVW2x/2rz3NY/N8+aK zgUq8v+tzB3Z6D2bhnw/MHVzUXg2JcAHcDG41VgYFtfM3UF82o/h8dFOSWztHv8zBVZY 4l5L0t7tjVG7K0zk5nNqmZXTyRhMzXglwM6W3W7WZB4cyD4gI4D6raGooQxnIYIj9cIO Ufu95Kuj36gmYYyHmfMZ50CvZKrglZTTebpEjdzwmD/Ira1otrvCVkn0EWdX69So1TEl +/vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ybdiq5GD; 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 b17si19562312pfi.32.2019.05.27.08.45.08; Mon, 27 May 2019 08:45:23 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ybdiq5GD; 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 S1726545AbfE0Pl2 (ORCPT + 99 others); Mon, 27 May 2019 11:41:28 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36079 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726262AbfE0Pl2 (ORCPT ); Mon, 27 May 2019 11:41:28 -0400 Received: by mail-wm1-f68.google.com with SMTP id v22so8920326wml.1 for ; Mon, 27 May 2019 08:41:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Tdsw2aGiBLowdBKompMuLQW0FpeZcju49WmFG8bHyOw=; b=ybdiq5GDzdAVwWuupgM0Vyj2TRBmG9n1bTEgd7DCD5KhZsLgMyduZvYjiBX98fmitU bjqoEaotnbM2XtAXoWExidPPwYhpO+3qfQF0pgQ1E2bMOeUheDJayDWzbf6I8bm8z2dW 74NeFGQkTxKdwyV1QbqvLb5z4ykIgEmVs1qc/fNn+PKZUmrenAu+zBO7ZHsRBmPprdFr Fk9aXYknb8WelAnOFM9JRIrQOtNVHqjdZitx6wkYHLlMny5I/OULokvXyJzg25c2TTLF xJ5HeJcWPT37ChPr5pr2Tr3JBPb46yU0f4aojrereBVSGoH1x+ezLFvTY2aYnkZzwecr hoWw== 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; bh=Tdsw2aGiBLowdBKompMuLQW0FpeZcju49WmFG8bHyOw=; b=hhVzg1rT/CLP9XQX+7EfI3ifA0tNWTYKcM6yIvWld3DTSKghQD7YtjKI7GAV9Uc5sO Ob+eQm+kjrD0LTn1cKP60gtrUyFD+3s9gfo9nig/VWNL5dtkSKg1e93Kun5IPMyGaq3R NOmxplN013V+WcaN9sCAPeICQnqapkN02xJkzj2z+eVV5TcMjUjiqtNTF9ImEVjo1QC5 KI+vFJn0Ig2IFM6FoKs1cNOT85o1aqoxTZ1hqEtyP3YckkutzMZZ3mG1oTCXXq/9Tu+j bbgluk0p28uV2c8e3ypLqCYplx+bHB90emoIaClWEoZZETJRhHI713ts9XYp+aVmowPf jPug== X-Gm-Message-State: APjAAAVMQv1AJKDqP/6tSA2bU9GxNuDNdrqnOH/gBrxdL13kf1L3uJTN e5svslOYSbWQZd5Xbsbgt5dXi7+dul3TnFedxztvMw== X-Received: by 2002:a05:600c:2306:: with SMTP id 6mr10042110wmo.162.1558971685659; Mon, 27 May 2019 08:41:25 -0700 (PDT) MIME-Version: 1.0 References: <20190514135612.30822-1-mjourdan@baylibre.com> <20190514135612.30822-4-mjourdan@baylibre.com> <07af1a22-d57c-aff6-b476-98fbf72135c1@xs4all.nl> <0821bfd9-58e4-5df3-4528-189476d35d89@xs4all.nl> In-Reply-To: <0821bfd9-58e4-5df3-4528-189476d35d89@xs4all.nl> From: Maxime Jourdan Date: Mon, 27 May 2019 17:41:14 +0200 Message-ID: Subject: Re: [PATCH v6 3/4] media: meson: add v4l2 m2m video decoder driver To: Hans Verkuil Cc: Mauro Carvalho Chehab , Hans Verkuil , Kevin Hilman , Jerome Brunet , Neil Armstrong , Martin Blumenstingl , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 27, 2019 at 4:54 PM Hans Verkuil wrote: > > On 5/27/19 4:44 PM, Maxime Jourdan wrote: > > Hi Hans, > > On Mon, May 27, 2019 at 12:04 PM Hans Verkuil wrote: > >> > >> Hi Maxime, > >> > >> First a high-level comment: I think this driver should go to staging. > >> Once we finalize the stateful decoder spec, and we've updated the > >> v4l2-compliance test, then this needs to be tested against that and > >> only if it passes can it be moved out of staging. > >> > > > > I chose to send the driver supporting only MPEG2 for now as it keeps > > it "to the point", but as it turns out it's one of the few formats on > > Amlogic that can't fully respect the spec at the moment because of the > > lack of support for V4L2_EVENT_SOURCE_CHANGE, thus the patch in the > > series that adds a new flag V4L2_FMT_FLAG_FIXED_RESOLUTION. It > > basically requires userspace to set the format (i.e coded resolution) > > since the driver/fw can't probe it. > > At the moment, this is described in the v3 spec like this: > > > >> > >> 1. Set the coded format on ``OUTPUT`` via :c:func:`VIDIOC_S_FMT` > >> > >> * **Required fields:** > >> > >> ``type`` > >> a ``V4L2_BUF_TYPE_*`` enum appropriate for ``OUTPUT`` > >> > >> ``pixelformat`` > >> a coded pixel format > >> > >> ``width``, ``height`` > >> required only if cannot be parsed from the stream for the given > >> coded format; optional otherwise - set to zero to ignore > >> > > > > But MPEG2 being a format where the coded resolution is inside the > > bitstream, this is purely an Amlogic issue where the firmware doesn't > > extend the capability to do this. > > > > Here's a proposal: if I were to resend the driver supporting only H264 > > and conforming to the spec, would you be considering it for inclusion > > in the main tree ? Does your current iteration of v4l2-compliance > > support testing stateful decoders with H264 bitstreams ? > > The core problem is that the spec isn't finalized yet. The v3 spec you > refer to above is old already since there are various changes planned. > > If you want to test your driver with a v4l2-compliance that is likely > to be close to the final version of the spec, then you can use this > branch: > > https://git.linuxtv.org/hverkuil/v4l-utils.git/log/?h=vicodec > > You can test with: > > v4l2-compliance -s --stream-from > > I wouldn't be too worried about keeping it in staging. Having it there > will already be very nice indeed. Just add a TODO file that states that > you are waiting for the final version of the stateful decoder spec and > the corresponding compliance tests. > > The V4L2_FMT_FLAG_FIXED_RESOLUTION isn't a blocker. That flag makes sense, > and so it has nothing to do with keeping this driver in staging. > Okay, I understand. I will send a v7 with the driver in staging+TODO+MAINTAINERS update. Regards, Maxime > Regards, > > Hans >