Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5920347pxb; Thu, 27 Jan 2022 02:27:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJwWVDpkb2dDVqhwdHI5JybNHEbqVUCjU83x9agvDjN9P+2k1Dv5170JFLXsYIGJvRq2bDmm X-Received: by 2002:a17:906:3c56:: with SMTP id i22mr2270117ejg.415.1643279270562; Thu, 27 Jan 2022 02:27:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643279270; cv=none; d=google.com; s=arc-20160816; b=j4WgfY59DibDsfxwmHB/yvuhKS8aQTzfK/W+PLk4fegaVjtTTJwoSECOhActOdFfjH N+ylkIZqan6IUxo3UI5vbbQMHD+4AxgltJOVPQN5qUfrDMIFSzGIzOm0o4ekM70jy6pf vTUKp2oCmMJbFVfQtIBzxRNwDey7spJJNtYN5Yn0kjZk+vlxUldxUpYNLVhtdKF9iBTl RkZETb+LgAerBq0VdnPkbNujRp6d/z5M1rZI0Hg39UmymQ6P1xlB3fr+S0fbeFx+tFZF Xx1IoS3tPcqqa6vr4T58Szn7RLM48tylx4Gh3CXFxh5O6Tvhdd1FCgWJg+zCNzBqGOMx G6Hw== 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=l7fRABgLl4d4Do9RZkKAG1vpWIeuzfkOtqth7eRMOE4=; b=0amEcu+Y5KaNXXxtR5CafGdyC9/PP80askZRpD7Vd6ucapqrt17aDMPB/5++70vNdr ZZyM9JkD905LsYODeCTzhT29/5A/KKMHGeP6aFaXkG/NfUc/fnIfhZTU9Gr7q7zhezzV iJ+dV6WBSCBierSMD2ZrZP++cRAPIsTkUbLlANFLr3MLpvgAO1Htk/GdsnDYvK861CwI VfHWYlDWaeO9aanwmzrK59HMwRqU6VQnx3vEgg7Qv0ZXEoRoKRdLTFmsYmQzBaolkWxG lOFu8YM4OpT2MfLRPskSkl0DLN1uVEKq1BeJXaGuluBGYQEiT9aQ8sD+82i5jCExJODl HG1g== 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=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si1103879eda.99.2022.01.27.02.27.24; Thu, 27 Jan 2022 02:27:50 -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=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235392AbiA0Czy (ORCPT + 99 others); Wed, 26 Jan 2022 21:55:54 -0500 Received: from mailgw01.mediatek.com ([60.244.123.138]:49158 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229484AbiA0Czx (ORCPT ); Wed, 26 Jan 2022 21:55:53 -0500 X-UUID: 2cf5e01efea04e7cbe281ef5d3d22368-20220127 X-UUID: 2cf5e01efea04e7cbe281ef5d3d22368-20220127 Received: from mtkmbs10n2.mediatek.inc [(172.21.101.183)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1380015724; Thu, 27 Jan 2022 10:55:50 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs07n2.mediatek.inc (172.21.101.141) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 27 Jan 2022 10:55:49 +0800 Received: from localhost.localdomain (10.17.3.154) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 27 Jan 2022 10:55:46 +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 v1, 0/8] support mt8195 decoder Date: Thu, 27 Jan 2022 10:55:36 +0800 Message-ID: <20220127025544.10854-1-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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. Next, initialize vp9 stateless decoder parameters. 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 init vp9 stateless decoder parameters. Patch 8 enable H264 inner racing mode to reduce hardware latency. --- This patch depends on "support mt8186 decoder"[1] [1] https://patchwork.kernel.org/project/linux-mediatek/cover/20220122075606.19373-1-yunfei.dong@mediatek.com --- Tinghan Shen (1): media: mtk-vcodec: prevent kernel crash when scp ipi timeout Yunfei Dong (7): 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: uapi: Init VP9 stateless decode params media: mtk-vcodec: Add to support H264 inner racing mode .../media/mediatek,vcodec-subdev-decoder.yaml | 50 +++++++++++++++++++ .../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 ++ drivers/media/v4l2-core/v4l2-ctrls-core.c | 8 +++ 10 files changed, 202 insertions(+), 8 deletions(-) -- 2.25.1