From patchwork Thu Feb 17 07:57:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?WXVuZmVpIERvbmcgKOiRo+S6kemjnik=?= X-Patchwork-Id: 543562 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E62CEC43219 for ; Thu, 17 Feb 2022 07:58:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236961AbiBQH6c (ORCPT ); Thu, 17 Feb 2022 02:58:32 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:47562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236913AbiBQH6b (ORCPT ); Thu, 17 Feb 2022 02:58:31 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A773522F76F; Wed, 16 Feb 2022 23:58:11 -0800 (PST) X-UUID: 44cc14644aa44e369589316b65bcf842-20220217 X-UUID: 44cc14644aa44e369589316b65bcf842-20220217 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 885734443; Thu, 17 Feb 2022 15:58:06 +0800 Received: from mtkcas11.mediatek.inc (172.21.101.40) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 17 Feb 2022 15:58:05 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas11.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 17 Feb 2022 15:58:03 +0800 From: Yunfei Dong To: Yunfei Dong , Alexandre Courbot , Hans Verkuil , Tzung-Bi Shih , AngeloGioacchino Del Regno , Tiffany Lin , Andrew-CT Chen , Mauro Carvalho Chehab , Rob Herring , Matthias Brugger , Tomasz Figa CC: George Sun , Xiaoyong Lu , Hsin-Yi Wang , Fritz Koenig , Dafna Hirschfeld , Benjamin Gaignard , Daniel Vetter , dri-devel , Irui Wang , Steve Cho , , , , , , , Subject: [PATCH v3, 0/7] support mt8195 decoder Date: Thu, 17 Feb 2022 15:57:51 +0800 Message-ID: <20220217075758.11369-1-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Firstly, add mt8195 soc lat hardware and compatible, then add documents. For vp8 only support MM21 mode, H264/vp9 support MT21C, need to separate them. Lastly, enable H264 inner racing mode to reduce hardware latency. Patch 1~4 add mt8195 soc lat hardware and compatible, then add documents. Patch 5 using different format for different codecs. Patch 6 prevent kernel crash when scp reboot. Patch 7 enable H264 inner racing mode to reduce hardware latency. Acked-by: Rob Herring --- This patch depends on "support mt8186 decoder"[1] [1] https://patchwork.kernel.org/project/linux-mediatek/cover/20220122075606.19373-1-yunfei.dong@mediatek.com --- changed with v2: - add detail explanation for lat soc hardware for patch 1. changed with v1: - separate "Init VP9 stateless decode params" patch and remove it to another one. - add reviewed-by in patch v3/v4/v6 --- Tinghan Shen (1): media: mtk-vcodec: prevent kernel crash when scp ipi timeout Yunfei Dong (6): dt-bindings: media: mtk-vcodec: Adds decoder dt-bindings for lat soc media: mtk-vcodec: Add to support lat soc hardware dt-bindings: media: mtk-vcodec: Adds decoder dt-bindings for mt8195 media: mtk-vcodec: Adds compatible for mt8195 media: mtk-vcodec: Different codec using different capture format media: mtk-vcodec: Add to support H264 inner racing mode .../media/mediatek,vcodec-subdev-decoder.yaml | 52 +++++++++++++------ .../platform/mtk-vcodec/mtk_vcodec_dec.c | 41 +++++++++++++++ .../platform/mtk-vcodec/mtk_vcodec_dec_drv.c | 8 +++ .../platform/mtk-vcodec/mtk_vcodec_dec_hw.c | 12 +++-- .../platform/mtk-vcodec/mtk_vcodec_dec_hw.h | 2 + .../platform/mtk-vcodec/mtk_vcodec_dec_pm.c | 50 ++++++++++++++++++ .../platform/mtk-vcodec/mtk_vcodec_drv.h | 11 ++++ .../mtk-vcodec/vdec/vdec_h264_req_multi_if.c | 23 ++++++-- .../media/platform/mtk-vcodec/vdec_vpu_if.c | 5 ++ 9 files changed, 180 insertions(+), 24 deletions(-)