Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2486251pxb; Tue, 12 Oct 2021 07:37:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhlK5W3FSf0iI5T2wYZTRrvY/gxapjNQjQvlZBruTqE2K23sIIlwIM6aopsF2ItW+W4Qtr X-Received: by 2002:aa7:9f46:0:b0:44c:7912:9b2e with SMTP id h6-20020aa79f46000000b0044c79129b2emr31097235pfr.11.1634049451238; Tue, 12 Oct 2021 07:37:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634049451; cv=none; d=google.com; s=arc-20160816; b=zy8ec0MEm58fdO6829kpQBZXnnwlK2yjuj4Tm5a1+sUsm6L79wf4KR7cCGyb5se+n8 YccMEJWGzKv2FpQYEyZG5bljqi2QuzKfGuHDRcQxkjWE7sdbPYi7vHWAsJ1N3A+23KWJ Z7GiLH9OQuqUhISnkJFqFJBjsNy8F9AxegVjHkPw9nQDZOova1lo6S0vHHqG+i0UM6zi vrKkefA5GzHak9AisdqGU6Ukw/YQjoYJ5oFvQ5sbSag+abRfrJzz3W1UPocYTRuSWBfn xeZyYBAFlimkhlAxhiBpg6pxYVU3vDaYseJyzYDDPcsHBUsQhWZ++Sv8JfRQjY1lRhcq 0oMw== 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 :message-id:date:subject:cc:to:from; bh=rJ1dYq7fJHCrm9bCmDxoaAOpeb3eJrzBABTQQC0dAUw=; b=mgQ9hPMyF6IkqxEXmkes+g3UBSfCUeQPyZsi0Awt/M0S5p5/0J5C0ef3hf88A21fjF FIX0nBR0dXUrzTPnwjCaQ846tlXRIXojmGTEETwGk23A2CWfe2UvlDd2F/ti6IgXMhdJ cQS7geyD/DpdElMY5KdnmZCifIKLHNIPiQtVvtY/ZADWcI7HSO3/r4fc1UvzAncAwihS BWI4KTUtFZmEZ7fLudk+uhy7gj8lJjUjQoUbMr4oKU/shxhu4O03bNQi2Pbadjgjs6sv 7B/0pwCouHHs/VqVB9EuWifwxS7IlhkhTMvFOaiHgL5DoY1TR5SLgneVRHbrXpjaqwXl nStQ== 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 h14si16429557plf.172.2021.10.12.07.37.15; Tue, 12 Oct 2021 07:37:31 -0700 (PDT) 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 S237303AbhJLOiH (ORCPT + 99 others); Tue, 12 Oct 2021 10:38:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33130 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236637AbhJLOiE (ORCPT ); Tue, 12 Oct 2021 10:38:04 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 439A1C061570; Tue, 12 Oct 2021 07:36:03 -0700 (PDT) Received: from benjamin-XPS-13-9310.. (unknown [IPv6:2a01:e0a:4cb:a870:dcd8:9f87:c3be:dc06]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: benjamin.gaignard) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 5B5891F43BC6; Tue, 12 Oct 2021 15:36:00 +0100 (BST) From: Benjamin Gaignard To: mchehab@kernel.org, p.zabel@pengutronix.de, gregkh@linuxfoundation.org, mripard@kernel.org, paul.kocialkowski@bootlin.com, wens@csie.org, jernej.skrabec@gmail.com, hverkuil-cisco@xs4all.nl, jc@kynesim.co.uk, ezequiel@vanguardiasur.com.ar Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, Benjamin Gaignard Subject: [PATCH v2 0/4] media: HEVC: RPS clean up Date: Tue, 12 Oct 2021 16:35:48 +0200 Message-Id: <20211012143552.661751-1-benjamin.gaignard@collabora.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series aims to clean up Reference Picture Set usage and flags. Long term flag was named with RPS prefix while it is not used for RPS but for mark long term references in DBP. Remane it and remove the two other useless RPS flags. Clarify documentation about RPS lists content and make sure that Hantro driver use them correctly (i.e without look up in DBP). These patches are the last in my backlog impacting HEVC uAPI. From my point of view, once they get merged, you could start talking about how move HEVC uAPI to stable. version 2: - change DPB field name from rps to flags Please note that the only purpose of commits 3 and 4 is to allow to test G2 hardware block for IMX8MQ until a proper solution isuing power domain can be found. Do not merge them. GStreamer HEVC plugin merge request can be found here: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1079 With those piece of code fluster score is 77/147. Benjamin Benjamin Gaignard (4): media: hevc: Remove RPS named flags media: hevc: Embedded indexes in RPS media: hantro: Use syscon instead of 'ctrl' register arm64: dts: imx8mq: Add node to G2 hardware .../media/v4l/ext-ctrls-codec.rst | 14 +++--- arch/arm64/boot/dts/freescale/imx8mq.dtsi | 43 +++++++++++++---- drivers/staging/media/hantro/hantro.h | 5 +- .../staging/media/hantro/hantro_g2_hevc_dec.c | 27 +++-------- drivers/staging/media/hantro/imx8m_vpu_hw.c | 48 ++++++++++++------- .../staging/media/sunxi/cedrus/cedrus_h265.c | 2 +- include/media/hevc-ctrls.h | 6 +-- 7 files changed, 84 insertions(+), 61 deletions(-) -- 2.30.2