Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1158876pxu; Fri, 27 Nov 2020 00:47:14 -0800 (PST) X-Google-Smtp-Source: ABdhPJxrDqubxuWWRTAmAJDrnqgbradsYUnGiTKLtJMoD4WzoejyQPQJtA19nZxCUq7z9w5dDXow X-Received: by 2002:a17:907:a96:: with SMTP id by22mr5980047ejc.171.1606466834353; Fri, 27 Nov 2020 00:47:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606466834; cv=none; d=google.com; s=arc-20160816; b=1ET7K/1/SvoHW3T9KLbpKXS98HifhocKzFaZM7dH91iJeWCH1G7eCVQSQG5ZBHGLUs wxbC/RMvDhd7XpKxy+lWgJd9xDA29ckZjtD/pzPSHFJ/Yjb64F2hW6cU9H5pcHzzcvDt Fs1Vb0EwbxDNsc3uuUorrITSck7PvVw7sQWhVmFm8YB+xcA/k7ycz5UoUEdVHA2Druav MEB3TFvOFAPf+LArbOXePl7cI/b48BaINax2+zGhfEXWD4t+uh6yYlU4EVv9NgJE9pwp q1nHo6BIkPccmgdJr/OL242oLN9WoSeQgqoq4QpxpWIqDwxHQCXdEbS5oaSNWP3MoVbp bNbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:organization:references:in-reply-to:date:cc:to:from :subject:message-id; bh=3lMXuvTndlIggAOdAaJTgY2NpF7BA3V09vCPiGoMgas=; b=0TGklAOXGPK6JceHaUrBuNR76u74hh9sbK0e0wXlXYimB4NCFh9iJTFr1X6hmR3WLS w0bo/1FokyUZIXfVLG6ON+YVwDaAgETtwJQRpaK5GNsw+t6h0nfMEH/5mw33VM0ZYU4E tJ4S/pbjR4v5ed4btSOJQ3kiq9g83rqkfxjzVGlodwG4fJBPgixx/J5+XRKW4eMdgRVU p0KcvPU1eiI9f9Mjwopu4jfC/hbzkoX0q+b8RE4ZsvmXDl4cDOuU5qDHEJCN4TW5kQ3Y CTkev1ruyH5NQKyO6N/gRBgD9vd4xa4lleYkQJcVUf6YhHicQSAYNLphk7RZd53iWbww 5wfw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j2si708742ejf.50.2020.11.27.00.46.51; Fri, 27 Nov 2020 00:47:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730149AbgKZXjw (ORCPT + 99 others); Thu, 26 Nov 2020 18:39:52 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:47024 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726287AbgKZXjw (ORCPT ); Thu, 26 Nov 2020 18:39:52 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 04CD01F460AC Message-ID: <726ab182da7776bdb4f7205483442ce262293b57.camel@collabora.com> Subject: Re: Re: [PATCH v3] media: cedrus: Add support for VP8 decoding From: Ezequiel Garcia To: Jernej =?UTF-8?Q?=C5=A0krabec?= , mripard@kernel.org, paul.kocialkowski@bootlin.com Cc: mchehab@kernel.org, wens@csie.org, hverkuil@xs4all.nl, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, Emmanuel Gil Peyrot Date: Thu, 26 Nov 2020 20:39:40 -0300 In-Reply-To: <2282897.HYN9I3zZbb@kista> References: <20201110223540.4105284-1-jernej.skrabec@siol.net> <1496f292eadc62a3ab585a89cf9b997ce4a1d799.camel@collabora.com> <2282897.HYN9I3zZbb@kista> Organization: Collabora Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2020-11-27 at 00:40 +0100, Jernej Škrabec wrote: > Hi! > > Dne petek, 27. november 2020 ob 00:21:11 CET je Ezequiel Garcia napisal(a): > > Hi Jernej, Emmanuel, > > > > Thanks for the patch. > > > > On Tue, 2020-11-10 at 23:35 +0100, Jernej Skrabec wrote: > > > VP8 in Cedrus shares same engine as H264. > > > > > > Note that it seems necessary to call bitstream parsing functions, > > > to parse frame header, otherwise decoded image is garbage. This is > > > contrary to what is driver supposed to do. However, values are not > > > really used, so this might be acceptable. It's possible that bitstream > > > parsing functions set some internal VPU state, which is later necessary > > > for proper decoding. Biggest suspect is "VP8 probs update" trigger. > > > > > > Signed-off-by: Jernej Skrabec > > > [addressed issues from reviewer] > > > Signed-off-by: Emmanuel Gil Peyrot > > > --- > > > Changes in v3: > > > - addressed comments from Ezequiel Garcia - new comments, > > > using new macros from VP8 UAPI, new function for waiting > > > on bit to be set > > > Changes in v2: > > > - rebased on top of current linux-media master branch > > > > > > NOTE: This now depends on following patch: > > > https://patchwork.linuxtv.org/project/linux-media/patch/ > 20201108202021.4187-1-linkmauve@linkmauve.fr/ > > > > The patch looks fairly good, so let's wait and see > > what Hans, Paul and Maxime think about it. > > > > FWIW, my humble Reviewed-by: Ezequiel Garcia > > Thanks! > > > It would be good to make sure this doesn't regress > > v4l2-compliance, or cause some regression in decoding. > > I didn't include v4l2-compliance here, but it was in previous revisions. This > revision has just cosmetics. Not sure how it could cause any regression since > it's pretty standalone. > Yes, indeed. > > Not really a blocker to merge this, but I'm thinking > > that now that we have Fluster for conformance testing, > > we could add the VP8 vectors and use them against > > Cedrus and Hantro: > > > > https://chromium.googlesource.com/webm/vp8-test-vectors/+/refs/heads/master > > I tested VP8 test vectors with initial version of this decoder by hand and all > videos were properly decoded as far as I can tell. But automated testing is > always welcome. > More the reason to consider this safe to merge! Thanks, Ezequiel > Best regards, > Jernej > > > Thanks, > > Ezequiel > > > > > drivers/staging/media/sunxi/cedrus/Makefile | 3 +- > > > drivers/staging/media/sunxi/cedrus/cedrus.c | 8 + > > > drivers/staging/media/sunxi/cedrus/cedrus.h | 24 + > > > .../staging/media/sunxi/cedrus/cedrus_dec.c | 5 + > > > .../staging/media/sunxi/cedrus/cedrus_hw.c | 2 + > > > .../staging/media/sunxi/cedrus/cedrus_regs.h | 80 ++ > > > .../staging/media/sunxi/cedrus/cedrus_video.c | 9 + > > > .../staging/media/sunxi/cedrus/cedrus_vp8.c | 907 ++++++++++++++++++ > > > 8 files changed, 1037 insertions(+), 1 deletion(-) > > > create mode 100644 drivers/staging/media/sunxi/cedrus/cedrus_vp8.c > > > > >