Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp977973rda; Sun, 22 Oct 2023 20:07:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEeQvfSCnO/RuWU4pxO+Tv1D4Cf65eWXP0ZGTS8/Av+Wa8nB7xLy3cPq0ODEZdPbyNOYHFx X-Received: by 2002:a17:90b:4c0d:b0:27d:3c7c:be84 with SMTP id na13-20020a17090b4c0d00b0027d3c7cbe84mr4964635pjb.30.1698030427171; Sun, 22 Oct 2023 20:07:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698030427; cv=none; d=google.com; s=arc-20160816; b=Bylu6KNA2gIY2jnQX5NEnOrMozufb45lEE2Wna0bBaH7vBKe165UpySTg6rtvq/9+f TwiUxZC5HvlUMNWi43lsooJXZyb3O44OypIbIB1tpJ4czIkxT29PqOT7cnU6gQdVK6qJ 84lJNKHGmoma7fGd4MP6Xg+xgpAPAmY1VqM9NzrnCAc21zU+PAxsF5WGpQhxyMyPXrqx 9tKg43X83OzS/LGZzUUEKNVdAYIEQlpPq/0MX7tA8zUXy4zuCLDZcKcF5XmZKNxjv/Nd YkU0Z/5vxhCFYaka1dtb8maxnTwyy+RzIMoBrGO8Pm499q69L6fZPzmzCaIHQWNcCeJ6 ez2Q== 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=Xp1z/ij/6MEXRS02xVyH+bWbshJokuMQpgZ/n9ooiu0=; fh=oCgJB/6tNp9Dz/wee7aP7sfCfoY3k5AmVYabluBOivE=; b=gbM1QpO1x5fPseYu9Z/esNvYkPva8Zi1SFvHrFRJ19QJLpM+JAiCA9dOJ6/hrgDavB QI0vXd9k97RivqVp7QoxWBsobERlZszXYDsZWOaWX3Z3vkzC6M2OhWu9rScCuLL+A3Cj Ed+XYpXUhSRzvp8TOygf8VM0zb5Hi9TLg2VPbrXeEkYyPy4OmgtcqnnjkkYE4UKs2uIO DqNi+/1JPIpmy4qrFC91EI5VQqEWGn35wIty0poY2b42jKCEgZGl4CU7tPeHQgDTkInW aZQcjcknWOV3AQB9MoZzqwryjJgqA9eOEcKGXS0fXSbqC1dPZEz/nBZew1QuQRhR48Id DTrQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jandzS9H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id c1-20020a170902c1c100b001c7342b46e4si5393520plc.23.2023.10.22.20.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 Oct 2023 20:07:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=jandzS9H; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 30F5A8087270; Sun, 22 Oct 2023 20:07:04 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229492AbjJWDG6 (ORCPT + 99 others); Sun, 22 Oct 2023 23:06:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjJWDG4 (ORCPT ); Sun, 22 Oct 2023 23:06:56 -0400 Received: from mailgw02.mediatek.com (unknown [210.61.82.184]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A4CF119; Sun, 22 Oct 2023 20:06:49 -0700 (PDT) X-UUID: 31ed50b0715111ee8051498923ad61e6-20231023 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=Xp1z/ij/6MEXRS02xVyH+bWbshJokuMQpgZ/n9ooiu0=; b=jandzS9H9xMBJ0liixBGr1LMN+qNjRp39HFwYlG8xqUNffW4KDhRBntcwul5Mzr0xk+9LumjeO18+IGeMbbWH5app9dJ8dOrQhG5z3GlX7d9AXSGVKQNtBc6wAM1iY+eA9isiBfrcj5L2fsNpIDHVOqKyOUre5fAIfbCwQfdb/0=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.32,REQID:24a925c6-64ad-4594-aac4-ec59daba7907,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:5f78ec9,CLOUDID:1e6230d7-04a0-4e50-8742-3543eab8cb8e,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,LES:1,SPR:NO, DKR:0,DKP:0,BRR:0,BRE:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-CID-FACTOR: TF_CID_SPAM_SNR X-UUID: 31ed50b0715111ee8051498923ad61e6-20231023 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 834352821; Mon, 23 Oct 2023 11:06:43 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs11n1.mediatek.inc (172.21.101.185) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 23 Oct 2023 11:06:42 +0800 Received: from mhfsdcap04.gcn.mediatek.inc (10.17.3.154) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 23 Oct 2023 11:06:41 +0800 From: Yunfei Dong To: Sebastian Fricke , =?UTF-8?q?N=C3=ADcolas=20F=20=2E=20R=20=2E=20A=20=2E=20Prado?= , Nicolas Dufresne , Hans Verkuil , AngeloGioacchino Del Regno , Benjamin Gaignard , Nathan Hebert CC: Chen-Yu Tsai , Hsin-Yi Wang , Fritz Koenig , Daniel Vetter , Steve Cho , Yunfei Dong , , , , , , Subject: [PATCH v2,0/7] media: mediatek: vcodec: Set the correct profile and level for each platform Date: Mon, 23 Oct 2023 11:06:33 +0800 Message-ID: <20231023030640.16393-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=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sun, 22 Oct 2023 20:07:04 -0700 (PDT) The supported maximum resolution, bit and frame rate of different platform for each spec are not always the same, need to set the correct level and and profile values according to the chip name. patch 1 get the chip name for each platform patch 2~3 set h264 and h265 level patch 4~5 set h264 and h265 profile patch 6~7 set vp9 level and profile changed with v1: - Change the commit message for each patch. - Change the supported level for mt8195 and mt8192 --- Yunfei Dong (7): media: mediatek: vcodec: Get the chip name for each platform media: mediatek: vcodec: Set the supported h264 level for each platform media: mediatek: vcodec: Set the supported h265 level for each platform media: mediatek: vcodec: Set the supported h264 profile for each platform media: mediatek: vcodec: Set the supported h265 profile for each platform media: mediatek: vcodec: Set the supported vp9 level for each platform media: mediatek: vcodec: Set the supported vp9 profile for each platform .../mediatek/vcodec/decoder/mtk_vcodec_dec.c | 24 +-- .../vcodec/decoder/mtk_vcodec_dec_drv.c | 26 +++ .../vcodec/decoder/mtk_vcodec_dec_drv.h | 14 ++ .../vcodec/decoder/mtk_vcodec_dec_stateless.c | 168 +++++++++++++++++- 4 files changed, 208 insertions(+), 24 deletions(-) -- 2.18.0