Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5155506rwd; Tue, 23 May 2023 19:37:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4axTP+ks/Kutt93+yR532iDo2fKeIdWJ2gQOEh5y3WHGSfgISQNQOH4cE/C7yTEr8WTjj0 X-Received: by 2002:a17:903:188:b0:1ae:4fbd:f626 with SMTP id z8-20020a170903018800b001ae4fbdf626mr19660210plg.52.1684895861269; Tue, 23 May 2023 19:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684895861; cv=none; d=google.com; s=arc-20160816; b=ZbApbIHkxFBFXgVRNttABURn14TqCKzmIpJMk0cd9xWX3XCOW0ExqU80PjNzqtahLb LbVZFZDxf6iTdhf//5eLu4Iskm8/VW6cEmWZ6UL6ltrYmtLp9Gg+3I71XvEEGAD3rIKj pzR1gxJeLEN/h1XXQxkv2CDGsGcibJ7zbMcujryWlOpDBacJfO/NC0TBUYPl93QQjEos mWOa1F9nrBlpTDnNNArW6bs8s0oG3qUTl0bbPTLt8Qo08V63BL+TLpSJzwgKI/mN9a8Q XqUrHIByVM9xhIWt3nSdHT7uYq6Edvq1L5ZU/Gfh/QNTegR7i7bhUIC98ugkN7ycD4zk f0EA== 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=TxHXJeQhGfWPaTTMah/zdWefYPEjXGUXXBbpnr0lnFg=; b=pJEP2n9FJiEHM1d5cpfkW2JePk1RJLSRRaMTIvWfP6cwRG2ShzMBqUj9NaKIJgPwRI XSjSnJzTP/dt1+lm1B5g/IVayMJ84rXL3r7lviRxVVjZmbhqb4Hr/H6aXBYQ6ue2Ql6c LwxbWndsAbqj4dg3mE+hlbOcsScaYNnvYLtm3HERSCt5IqA+3QwONac0U5GK7tqJampb u8FUk5g+mIjxRBEoGR/kIWFxpBOTmkhe1lApRVPdllMuzyGMspAOloa9lwHIAFnNv9CY 5aJvxyGdVrTCNqulAIbn3hRmRIeTeiAaKPxygAwIFO4ZhNkv+9pqIXR7n+6XaRyD4H77 BQFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jVqnWR3N; 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 j10-20020a170902da8a00b001afdc400219si802130plx.588.2023.05.23.19.37.28; Tue, 23 May 2023 19:37:41 -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=jVqnWR3N; 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 S239072AbjEXCRI (ORCPT + 99 others); Tue, 23 May 2023 22:17:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230165AbjEXCRG (ORCPT ); Tue, 23 May 2023 22:17:06 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 38B54C1; Tue, 23 May 2023 19:17:03 -0700 (PDT) X-UUID: 0f8d51aef9d911edb20a276fd37b9834-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=TxHXJeQhGfWPaTTMah/zdWefYPEjXGUXXBbpnr0lnFg=; b=jVqnWR3NPIvFShRYmc3uBxyKI67YkZIzyTfPGtZsu0HFGSQQZ36evP3iqKiIoyexwPLnUl4v9bNw1UfMeAO9iqbrIAqL96dHZrhQhZ3H8w7yCCZDEM+tGaTXtefz6m3NJdVzpM/jZHhSLf0SbzfSBTnSKH67zLQF3czCcfYCBXo=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.25,REQID:a5430856-6ee0-4006-97c5-615c522573fb,IP:0,U RL:0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:70 X-CID-INFO: VERSION:1.1.25,REQID:a5430856-6ee0-4006-97c5-615c522573fb,IP:0,URL :0,TC:0,Content:-25,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTI ON:quarantine,TS:70 X-CID-META: VersionHash:d5b0ae3,CLOUDID:7af0cb6c-2f20-4998-991c-3b78627e4938,B ulkID:2305241016599MWX18U4,BulkQuantity:0,Recheck:0,SF:17|19|48|38|29|28,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: 0f8d51aef9d911edb20a276fd37b9834-20230524 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1762974113; Wed, 24 May 2023 10:16:58 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.194) by mtkmbs10n2.mediatek.inc (172.21.101.183) 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 10:16:56 +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 10:16:56 +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 v5,0/2] media: mediatek: vcodec: add hevc stateless decoder driver in MT8195 Date: Wed, 24 May 2023 10:16:23 +0800 Message-ID: <20230524021625.13708-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, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED 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 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 | 1101 +++++++++++++++++ .../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, 1178 insertions(+), 2 deletions(-) create mode 100644 drivers/media/platform/mediatek/vcodec/vdec/vdec_hevc_req_multi_if.c -- 2.18.0