From patchwork Wed Jul 24 17:16:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 11057333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D730E14DB for ; Wed, 24 Jul 2019 17:18:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BA0EF204FB for ; Wed, 24 Jul 2019 17:18:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AE51D286D6; Wed, 24 Jul 2019 17:18:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 64E50204FB for ; Wed, 24 Jul 2019 17:18:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jebw4unkh8mmbj1tVaxQ9NbiU4a7Yu9MvJZY/Gi/g14=; b=XaplTE2jgqeg0g xFStojttFkfJggNKkQ0p7Xr+re1o45gkJAiF3LhB/7qELQdFEUIJTl4hvV3Y6+Fhzj6Qj5aZZ07/B YAVIfbLJu/EQlfl/9IVaoqm5+JxngEY5gvE7yBZmXtagOA1wUoso70xQQZg/2k18M2I+2X+RIYn9I C/37wDDP06MKiGKFzgRDrdvn+BJGDdA7xzQDsLeQLv3z1b0VGd5ujFzMcP91l4735gnZSC0GtJLI4 xKKWFsb+l7fqZmMT9Al7B78JVbuUE29D1UqCTOinaVavhjvCz8UVc3eo61icgDP9VA9hTp1JT4DiT aUGB0+1RBKKTA79Jhr7g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hqKub-0006Zq-4P; Wed, 24 Jul 2019 17:18:45 +0000 Received: from bhuna.collabora.co.uk ([46.235.227.227]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hqKtA-0003KU-VY for linux-rockchip@lists.infradead.org; Wed, 24 Jul 2019 17:17:18 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id 2CDFB28B603 From: Ezequiel Garcia To: linux-media@vger.kernel.org, Hans Verkuil Subject: [PATCH 0/7] hantro: Add RK3399 VP8 decoding support Date: Wed, 24 Jul 2019 14:16:55 -0300 Message-Id: <20190724171702.9449-1-ezequiel@collabora.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190724_101717_164426_03BF2850 X-CRM114-Status: UNSURE ( 7.33 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fbuergisser@chromium.org, Nicolas Dufresne , Heiko Stuebner , Alexandre Courbot , Jonas Karlman , linux-kernel@vger.kernel.org, Tomasz Figa , Paul Kocialkowski , linux-rockchip@lists.infradead.org, Boris Brezillon , Philipp Zabel , kernel@collabora.com, Ezequiel Garcia Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series adds VP8 decoding support on RK3399 SoC. I'm including a set of commits from Boris' recent H264 series [1]. These commits add some helpers that are also useful for RK3399 VP8, and at the same time cleanup the driver nicely. Finally, there's a fix by Francois Buergisser from Chromium team. VP8 and MPEG-2 tested on RK3399 RockPi and RK3288 Rock2 boards. [1] https://patchwork.kernel.org/cover/11003971/ Boris Brezillon (4): media: hantro: Simplify the controls creation logic media: hantro: Constify the control array media: hantro: Add hantro_get_{src,dst}_buf() helpers media: hantro: Add helpers to prepare/finish a run Ezequiel Garcia (1): media: hantro: Move VP8 common code Francois Buergisser (1): media: hantro: Set DMA max segment size Jeffy Chen (1): media: hantro: Support RK3399 VP8 decoding drivers/staging/media/hantro/Makefile | 1 + drivers/staging/media/hantro/hantro.h | 15 +- drivers/staging/media/hantro/hantro_drv.c | 53 +- .../media/hantro/hantro_g1_mpeg2_dec.c | 14 +- .../staging/media/hantro/hantro_g1_vp8_dec.c | 34 +- .../staging/media/hantro/hantro_h1_jpeg_enc.c | 11 +- drivers/staging/media/hantro/hantro_hw.h | 7 + drivers/staging/media/hantro/hantro_vp8.c | 15 + drivers/staging/media/hantro/rk3399_vpu_hw.c | 22 +- .../media/hantro/rk3399_vpu_hw_jpeg_enc.c | 12 +- .../media/hantro/rk3399_vpu_hw_mpeg2_dec.c | 14 +- .../media/hantro/rk3399_vpu_hw_vp8_dec.c | 597 ++++++++++++++++++ 12 files changed, 711 insertions(+), 84 deletions(-) create mode 100644 drivers/staging/media/hantro/rk3399_vpu_hw_vp8_dec.c