Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5327890rwd; Tue, 23 May 2023 23:25:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5aBOmWvshA8VmTMQkxvNB0DBRSk2njutmhRmSCnmcqK0saTYGYCbNUFQYuW4mUSXClFZyX X-Received: by 2002:a17:902:e745:b0:1af:ccc9:ce65 with SMTP id p5-20020a170902e74500b001afccc9ce65mr4220216plf.28.1684909552749; Tue, 23 May 2023 23:25:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684909552; cv=none; d=google.com; s=arc-20160816; b=SSFxEOEG3D5h4UtwPSqa/idoe9UfWD4DFuwp7QEad8V9RqlqNOrLgwE//JI5TFFiXS 5jd0iY2RpXnGx3cf+Fk2P3MNhT0JRkfJsvDQP9yY3oYtUdzMETBqs71DGk/gfy+ZKi6F yC/+rxo6FVI1mWExmkd4k7O0K7HHlZEGolrnABbdrZeA1pecS1q+4ZCXXFZtf/DadXL7 iFH/M2gWDQRmLChSQYYreAhymTbds8Rn1DyraPe6+bS/z28vVRh3pZh3wY+q3nFgygyv 1rf1n+Vgy5MpYIHkaBc9BSXCRvixTn5JTC3oWgShG/GYozH2EQvaCYPaCt8r5oR0gmSY AZXg== 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:dkim-signature; bh=5hmtsiyFe7UHLwlmngkiWlg4vYxpBwlNL7bkNB3iNWc=; b=T1dplIItSXtkEPr2Fmj0HblgngOq+qAYWOPtFOdhWcLY7oxqzwV7FyrCVOS6JIDFd4 t8g85do+wvRdIHBl6pQ9aLI677cmRBi4CCE49LJmAGBnrfOfI2JEknwSMUopJ1QYJJBf bheFwQxBmxtZZnJDQQW0Jf2Kbot2/pjR32+y85ypmd7mYuS1R24kx75e0CqSsPH2cGyk R72+zJ1d5A20o2WCBb5aGyMQVBJAJG99qbZ+J9BHQlfAnXRRTI8g0t7yyJvHGFHZfHur btFVFKopl0ZLQpbR+/k8iQ8UNZzdPXhXU/xf9q3MLY/0SzJ5ViiRwW5qCMM2UYxBh0aL PNvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jGTV2eeX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b5-20020a63eb45000000b00530b70aac4csi6266878pgk.21.2023.05.23.23.25.38; Tue, 23 May 2023 23:25:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jGTV2eeX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239600AbjEXGEl (ORCPT + 99 others); Wed, 24 May 2023 02:04:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44524 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239428AbjEXGEi (ORCPT ); Wed, 24 May 2023 02:04:38 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07CC1189; Tue, 23 May 2023 23:04:30 -0700 (PDT) X-UUID: d67d4ea8f9f811ed9cb5633481061a41-20230524 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=5hmtsiyFe7UHLwlmngkiWlg4vYxpBwlNL7bkNB3iNWc=; b=jGTV2eeXUgq9TiU24reXfjsk3/D/YpeasWiMYNJ3DvDNOUmTLSVaL3axR2MgkyNBcWleKrKnbTvhVpVVrj3/khKBWNc/D41k6uoPU3WgXiAvb3obO/qdTNaAe5aKIphA8jFprBEK6EnlJ8j5OGQvRegIt/ja37DL2AyBpjh5Ykc=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.25,REQID:f8a45051-ccfd-40f9-aa43-bbc2b7f20145,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:-25 X-CID-META: VersionHash:d5b0ae3,CLOUDID:3a4e2e3c-de1e-4348-bc35-c96f92f1dcbb,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0 X-CID-BVR: 0,NGT X-CID-BAS: 0,NGT,0,_ X-UUID: d67d4ea8f9f811ed9cb5633481061a41-20230524 Received: from mtkmbs11n1.mediatek.inc [(172.21.101.185)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 582090028; Wed, 24 May 2023 14:04:26 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs13n2.mediatek.inc (172.21.101.108) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Wed, 24 May 2023 14:04:25 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 24 May 2023 14:04:24 +0800 From: Yunfei Dong To: Chen-Yu Tsai , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Nathan Hebert CC: Yunfei Dong , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , , , , , , Subject: [PATCH v6,0/2] media: mediatek: vcodec: add hevc stateless decoder driver in MT8195 Date: Wed, 24 May 2023 14:04:21 +0800 Message-ID: <20230524060423.15388-1-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_SCC_BODY_TEXT_LINE,T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add hevc stateless decoder driver to support hardware decode in MT8195, and the driver need num_delta_pocs_of_ref_rps_idx value to parse slice header short_term_ref_pic_set(). patch 1 add num_delta_pocs_of_ref_rps_idx field. patch 2 add hevc stateless decoder driver. --- Changed from v5: - checkpatch/kernel-doc pass/build pass - fix warning: struct vdec_av1_slice_fb -> struct vdec_hevc_slice_fb. - fix warning: remove unused comment for param "trans_start" and "trans_end" Changed from v4: - fix some comments according to Nathan's suggestion. Changed from v3: - add the dependency patch to this patch series for patch 1. Changed from v2: - fix one build warning. - add the dependency patch link. Changed from v1: - fix build error when build 32bit system. - hevc fluster test result: 132/147 (not support: 10bit => 11 and resolution => 4). --- Benjamin Gaignard (1): media: uapi: HEVC: Add num_delta_pocs_of_ref_rps_idx field Yunfei Dong (1): media: mediatek: vcodec: support stateless hevc decoder .../media/v4l/ext-ctrls-codec-stateless.rst | 7 + .../media/platform/mediatek/vcodec/Makefile | 1 + .../vcodec/mtk_vcodec_dec_stateless.c | 59 +- .../platform/mediatek/vcodec/mtk_vcodec_drv.h | 1 + .../vcodec/vdec/vdec_hevc_req_multi_if.c | 1098 +++++++++++++++++ .../platform/mediatek/vcodec/vdec_drv_if.c | 4 + .../platform/mediatek/vcodec/vdec_drv_if.h | 1 + include/uapi/linux/v4l2-controls.h | 6 +- 8 files changed, 1175 insertions(+), 2 deletions(-) create mode 100644 drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if.c -- 2.18.0