From patchwork Mon Oct 14 07:33:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yunfei Dong X-Patchwork-Id: 13834238 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB2D3CFC501 for ; Mon, 14 Oct 2024 07:35:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type: Content-Transfer-Encoding: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=+ccPUlxoWYb2N/Xj1O6fXBzFxm62ZRQMc5csPYeqYmk=; b=oORtNxnNfzJEByYeWHSkAd+GS6 W+s2X8jNdc7c3l6WPZVJnOiGbea+srNoFRx/W70UKCDzeizfFUAjGDIrE4GRSScksM4yNIAOGquX0 nee5MUgAN6tTWgy/mOp0FxmEsaeMY7o0pRre1t2SH5tYV2DrCbf6LynFfIemmbJA3ldw8sOZDlPAB iuYv3oiMHMjTa/x80EXErdAeaAjvUPetFhYIXUU4rlsxfJLVdBCIO4aK5ISaBawYT134jq7gOgiUL 1sUGe/u3G0EHYGWhcw5xpqmQTTzUtvgNcfd3mPnSFetyFMh5cMjLx+ZFQWNObjb+L/muPoY0//TqL TsmrpHBw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t0Fbb-000000044sl-2SA0; Mon, 14 Oct 2024 07:35:03 +0000 Received: from mailgw02.mediatek.com ([216.200.240.185]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t0FZx-000000044R6-1ksN; Mon, 14 Oct 2024 07:33:22 +0000 X-UUID: 92b5f00289fe11efba0aef63c0775dbf-20241014 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=+ccPUlxoWYb2N/Xj1O6fXBzFxm62ZRQMc5csPYeqYmk=; b=H22dOdLm0WQci99chqRDyPI8Mi/HPfHD3n2kcLzuCrg4wIjFyGcgAqzIY9n7uf+m7ChJE1bix94vBiJ3qacA+UUYRV90Wpq8EjtFT0HwRKe2pJT2msAcU3qdUDlKfrVghiY5/r629I05iqjlg1x1X/LSbCUMI+0fZjhTHOfqZaw=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.41,REQID:5cdabb37-893c-4a1c-abc5-6ab9ff081f51,IP:0,U RL:0,TC:0,Content:0,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION: release,TS:0 X-CID-META: VersionHash:6dc6a47,CLOUDID:d1913641-8751-41b2-98dd-475503d45150,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:1,File:nil,RT:nil,Bulk:nil,QS:nil,BEC:nil,COL:0,OSI:0,OSA:0,AV:0,LES:1, SPR:NO,DKR:0,DKP:0,BRR:0,BRE:0,ARC:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR,TF_CID_SPAM_ULS X-UUID: 92b5f00289fe11efba0aef63c0775dbf-20241014 Received: from mtkmbs14n1.mediatek.inc [(172.21.101.75)] by mailgw02.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 835974239; Mon, 14 Oct 2024 00:33:14 -0700 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 14 Oct 2024 15:33:11 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 14 Oct 2024 15:33:10 +0800 From: Yunfei Dong To: =?utf-8?q?N=C3=ADcolas_F_=2E_R_=2E_A_=2E_Prado?= , Sebastian Fricke , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Nathan Hebert , Daniel Almeida CC: Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , "Yunfei Dong" , , , , , , Subject: [PATCH 0/6] media: mediatek: vcodec: support h264 extend vsi Date: Mon, 14 Oct 2024 15:33:04 +0800 Message-ID: <20241014073314.18409-1-yunfei.dong@mediatek.com> X-Mailer: git-send-email 2.46.0 MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-AS-Result: No-10--5.660900-8.000000 X-TMASE-MatchedRID: AIneCDrHljUEQqIqKFLtTmf5YFI3LLMhmX+W7bzPOQFcKZwALwMGs0cW Drfntjxwc6aye5Pnub+uVX99ICt6ji6NsFOtZ8f6EhGH3CRdKUVWOQQSa4vbHQfxTM57BPHD12F 2GovFrSOVMlcqqHWd7aBVvEjzNBpCHxPMjOKY7A8LbigRnpKlKTpcQTtiHDgW4g49Ra2QKgvDfU E7T1eqLdVCaGNhZgZBCDiARPE8nvNojKASPn5iew== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.660900-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 86686F6C60E70B8125DCE2D6446E57279E7D83F3E49091D6548527FC217E89402000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241014_003321_485352_D7CEC384 X-CRM114-Status: UNSURE ( 8.99 ) X-CRM114-Notice: Please train this message. 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 The working buffer address start and end are calculated in kernel side currently, can't calculate the address end if the driver only getting the address file handle, not the real physical address. Need to extend the vsi to calculate the address end in scp. Re-construct some interface and add config to support extend and non extend at the same time. --- This patch series depends on: [1] https://patchwork.kernel.org/project/linux-mediatek/cover/20241012064333.27269-1-yunfei.dong@mediatek.com --- Yunfei Dong (6): media: mediatek: vcodec: extend h264 video share information media: mediatek: vcodec: remove parse nal info in kernel media: mediatek: vcodec: remove vsi operation in common interface media: mediatek: vcodec: rename vsi to extend vsi media: mediatek: vcodec: adding non extend struct media: mediatek: vcodec: support extend h264 driver .../vcodec/decoder/mtk_vcodec_dec_drv.h | 2 + .../decoder/vdec/vdec_h264_req_multi_if.c | 516 +++++++++++++++++- 2 files changed, 493 insertions(+), 25 deletions(-)