From patchwork Fri Nov 8 03:40:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yunfei Dong X-Patchwork-Id: 13867464 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 26E39D5E124 for ; Fri, 8 Nov 2024 03:45:01 +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=JWM/VuPToagKQqIrsc4gjKEm7ZO4IRmjdG17CoQzVcc=; b=S8JjJ+nLvmfk7ZMzbdxt4ldrYi hgd7/9U/6LNSnnFyfn/vrRezXKeB+8bGuQ7zVDz0VXgHVllXx8jWxeK+i1Pj/XUp2J1Jn457+AdQj mor3ksePtyHMsaroGjthXYpvFfO7Eyw89Z6VKfhdXjAG+UxHeCEB6rfhXPdY18lCbgbo7rLkILxeZ 6ZuCthtUL0XKJjyShjfNB20pjpAsyviOMfs1px0d+DZz5dhci/c4+S7ddmWwco85tkjhiFeA7bKbQ eS3VVj4vcIYyjX9JXdkTPxKsBlvrkCp10FUnPZID5XbWIJnkxhr/wef80VFJpe9xc0hy4TMrH5dti NKZO+wBQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t9Fve-00000009Aby-1pNK; Fri, 08 Nov 2024 03:44:58 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t9FrK-000000099o4-1uSN; Fri, 08 Nov 2024 03:40:32 +0000 X-UUID: 300b6c3c9d8311ef82ff63e91e7eb18c-20241107 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=JWM/VuPToagKQqIrsc4gjKEm7ZO4IRmjdG17CoQzVcc=; b=PiLGer9JN+hO3Tj7jS/ZHOXzquxN+mkR/+4qityKeZ4XOXDqeCrtzny7H0549s9uL0iKpKu2yDQ43Rn84W3UmwiTLeNp3aavUxAv5EjMN52ne8s9v9iMN6G/WOH9Pz1it8GY2b44PGbVlFQSwyrzixebkhE1fn1NTc1U85s0ses=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.42,REQID:1d49ea9b-a334-432f-9c94-23931fb812bf,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:b0fcdc3,CLOUDID:bde0d01b-4f51-4e1d-bb6a-1fd98b6b19d2,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_ULS,TF_CID_SPAM_SNR X-UUID: 300b6c3c9d8311ef82ff63e91e7eb18c-20241107 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 946718577; Thu, 07 Nov 2024 20:40:24 -0700 Received: from mtkmbs11n1.mediatek.inc (172.21.101.185) 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; Fri, 8 Nov 2024 11:40:21 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Fri, 8 Nov 2024 11:40:20 +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 CC: Hsin-Yi Wang , Chen-Yu Tsai , Fritz Koenig , Daniel Vetter , "Steve Cho" , Yunfei Dong , , , , , , Subject: [PATCH v4 0/3] media: mediatek: vcodec: support h264 extend vsi Date: Fri, 8 Nov 2024 11:40:09 +0800 Message-ID: <20241108034019.20064-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.143600-8.000000 X-TMASE-MatchedRID: xDToTJ4Kd/kEQqIqKFLtTpqrexa4CbEQ6Jlwb2gbuk7b6Y+fnTZUL/FN etD9U62Q3f0e/BgwI9DivP2ec7HEZY+eiI05y0fpe8FaKRfM2oOy4iyjvVWTohjQD3m2MCf7xsr 6m7RljBGdwzfIRAoivBG7cCJtaI6lUQBcvRRvU70D2WXLXdz+AUo8jH4wkX2jmyiLZetSf8mfop 0ytGwvXiq2rl3dzGQ1l3+bAt/YFVR4rnT/tRlwHGh2SN6BF642d5tCcBP/SFSTjsioQY2Q2RyFd Nnda6Rv X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--5.143600-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 8EE77812E6CE2747C7DAEFC7C09440856B97035CB0053C935682390589EB11722000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241107_194030_541052_4DB6AA28 X-CRM114-Status: GOOD ( 11.13 ) X-BeenThere: linux-mediatek@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-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org The working buffer address start and end are calculated in kernel side currently, the address end can't be calculated if the driver only getting the address file handle, not the real physical address. Need to send the extended vsi to firmware to calculate the address end. Re-construct some interface and add configuration to support extend and non extend driver at the same time. Needn't to parse nal info for extended architecture. --- This patch series depends on: [1] https://patchwork.kernel.org/project/linux-mediatek/cover/20240018033219.19804-1-yunfei.dong@mediatek.com --- compared with v3: - change code logic with callback to decode for patch 2 compared with v2: - squash patch 2/3/4 together - re-write commit message for patch 1 compared with v1: - combine some pathes together for patch 2 - re-write patch 4 --- Yunfei Dong (3): media: mediatek: vcodec: remove vsi operation in common interface media: mediatek: vcodec: support extended h264 decode media: mediatek: vcodec: add description for vsi struct .../vcodec/decoder/mtk_vcodec_dec_drv.h | 2 + .../decoder/vdec/vdec_h264_req_multi_if.c | 589 ++++++++++++++++-- 2 files changed, 524 insertions(+), 67 deletions(-)