From patchwork Fri May 21 07:01:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Irui Wang X-Patchwork-Id: 12272399 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 39715C433B4 for ; Fri, 21 May 2021 08:54:04 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0523F61363 for ; Fri, 21 May 2021 08:54:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0523F61363 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC: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=TU3aNLgsuYYsI1WxtErveqP6yUxwKL99ODGXBaEQJ1Y=; b=C9TyN/u109+HcbERgvWadJNGju dPKucSdjnCmKvLoWFTP4c7uh0m2pfMogu4EC03dGI38SSowvn/hUAzVm8OyJNfkK/1wbutEYMro8q 8Li2C3mnXalZRljfkfEYwpGFM5LDQvp70/bI56dVQohUJPRky9kkX0/OzV8d8knL0ZJgMJzuWuIgi f5Hcwv923zspjONH06OPhtPXGjnHrAxiO539WhNOIG8Tzjsb9fflSiKNFDLAbYKxgkYYwBJa0IwDI Yf3yokGUiJOVny1aWqmOjilDVVLjJT4/6RNCr+WB8nC09Az0Ak1Jk4PuKxh31PWOTqNdOI+OoldGN nQmcdqPA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk0t2-004XZF-OI; Fri, 21 May 2021 08:52:05 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1lk0sm-004XSw-Ui; Fri, 21 May 2021 08:51:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=dKatBfeVTfSyxthCKGydA7RpsPmWu1+vZkk+mQgx8MU=; b=yq2bua802UNCAibF9A5mcpXof5 st39yyBtfFCd/S9fAm/poGxzQ6RoDcU8OG26Q0ng9JLCVdOZccVz+Qv72h7q6j3fk8KvJApHCaHmR ZiPVthYtCAWoKjwlzmATrJLOGDC5a7PXf8R3DP+RAgRPUWDlNy6LfrR7ZONjOaUxiY2u0Hhyu2mlo yr8o7vSlXsBN2gk1i2RAEsmPJX0LWtkuaoYkBMZyIaiuXMo2t2IFYaYJSrrGAmWxsnqyISSRYBI3e qJ4CsL6q9Q1UMl5Xd9pG7XHEw7HILxFLkULuXmSdyhmqiHBISS+pgcelWW2T2mHXc2Fd46PIVVEDX 4g/pRMQQ==; Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lk0sk-00Gxfl-EZ; Fri, 21 May 2021 08:51:47 +0000 X-UUID: 5e4f2d97dbc04983ad5b8874a8d32095-20210521 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=dKatBfeVTfSyxthCKGydA7RpsPmWu1+vZkk+mQgx8MU=; b=XyAg6LRS0obQd9OLhesLp0OdfIdC26yn8QnS1yfP09IotQkDBvXmd6dmjQnXg88TxwRsY2PCa/akD2dCdZQMV7vijQNU2W/WvNiEcmeZyVEdVl0Z5/f9kouSs8jGNfgYU+ADVRVqT9S+oLAFeOORlHhnDqhfY8v1S2oDtjkvJvo=; X-UUID: 5e4f2d97dbc04983ad5b8874a8d32095-20210521 Received: from mtkcas68.mediatek.inc [(172.29.94.19)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 404650189; Fri, 21 May 2021 00:01:49 -0700 Received: from mtkmbs08n1.mediatek.inc (172.21.101.55) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 21 May 2021 00:01:47 -0700 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs08n1.mediatek.inc (172.21.101.55) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 21 May 2021 15:01:43 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Fri, 21 May 2021 15:01:42 +0800 From: Irui Wang To: Alexandre Courbot , Hans Verkuil , Tiffany Lin , "Andrew-CT Chen" , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa , Hsin-Yi Wang , Maoguang Meng , "Longfei Wang" , Yong Wu CC: Yunfei Dong , Fritz Koenig , Tzung-Bi Shih , Irui Wang , , , , , , , Subject: [PATCH v4,0/6] Support H264 4K on MT8192 Date: Fri, 21 May 2021 15:01:33 +0800 Message-ID: <20210521070139.20644-1-irui.wang@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210521_015146_511072_8A70F5DF X-CRM114-Status: GOOD ( 10.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add MT8192 H264 venc driver and support H264 4K encoding on MT8192. Change notes: v4: rebase on Linux 5.13-rc1 Alexandre Courbot (1): media: mtk-vcodec: venc: remove redundant code Irui Wang (5): dt-bindings: media: mtk-vcodec: Add dma-ranges property media: mtk-vcodec: Support 4GB~8GB range iova space for venc dt-bindings: media: mtk-vcodec: Add binding for MT8192 VENC media: mtk-vcodec: Add MT8192 H264 venc driver media: mtk-vcodec: Support MT8192 H264 4K encoding .../bindings/media/mediatek-vcodec.txt | 3 + .../platform/mtk-vcodec/mtk_vcodec_drv.h | 1 + .../platform/mtk-vcodec/mtk_vcodec_enc.c | 89 +++++++++++-------- .../platform/mtk-vcodec/mtk_vcodec_enc_drv.c | 17 ++++ .../platform/mtk-vcodec/venc/venc_h264_if.c | 4 + 5 files changed, 78 insertions(+), 36 deletions(-)