From patchwork Wed Sep 25 10:19:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Jason-JH.Lin" X-Patchwork-Id: 13811855 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 6C45EC369C8 for ; Wed, 25 Sep 2024 10:22:10 +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:MIME-Version: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=TugJHXCaFkeeyesFwwQUZjkVyiQ4jMA5hShejsDmsrA=; b=BPtLcXla+mylbc/h3vmBgJAINQ LD4L70WdKTxr+ucaoVWug1GQJhYNFUVaaadWU0awp+mPW3dHi0UhJsP5+7Bplk19ZutygMoR36xlY dTH4cw+808LfKCa2u4rpXWfmlc2tazC4g9qgHRLxBudboLIniL/dRdJqC1ma3Q7rdXL5kXKRVtQaU sYiIy1y1FXO0fGvMGFUiO9oeSxz1c7snG8jVx27OJYp9fJaToX9yHblE9kFa55cOOGfTAfq8Tdkj0 DkuRJ29Ns2CXXqH76EX+vhjSnZhYnyWAePeoeID+jq5r+2+pjrdCC0lKGyxQgnM+dXypuaECzb+nG 9TYoL7jA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1stP9k-00000004jqI-1KGr; Wed, 25 Sep 2024 10:22:00 +0000 Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1stP7T-00000004jU7-1SMD; Wed, 25 Sep 2024 10:19:41 +0000 X-UUID: a83b30e47b2711efb3adad29d29602c1-20240925 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=TugJHXCaFkeeyesFwwQUZjkVyiQ4jMA5hShejsDmsrA=; b=EGf40Cak4lWXquov7qXmLodBmK5ijblXtOq+bzctm7a37WpqcV54ToY3pPF80gzzOj0LdUVZUj4Zn2aH7ojicdDnxHGNoePgUlvPeC633FfaW33pBnSYdhVIfhqrJsTA75/stbN7kMf0ewxH3MV2HNLe/3kXtu1vxreVEOzD0mw=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.41,REQID:6ebdb6f6-e740-4d4a-b3e0-57eabd4f9b21,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:14f7bed0-7921-4900-88a1-3aef019a55ce,B ulkID:nil,BulkQuantity:0,Recheck:0,SF:102,TC:nil,Content:0,EDM:-3,IP:nil,U RL:0,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 X-UUID: a83b30e47b2711efb3adad29d29602c1-20240925 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 753935497; Wed, 25 Sep 2024 03:19:32 -0700 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) 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, 25 Sep 2024 18:19:28 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Wed, 25 Sep 2024 18:19:28 +0800 From: Jason-JH.Lin To: Alper Nebi Yasak , Chun-Kuang Hu , AngeloGioacchino Del Regno CC: Shawn Sung , , , , , "Jason-JH . Lin" , Singo Chang , "Nancy Lin" , , Jason-jh Lin Subject: [PATCH v5 0/2] Fix degradation problem of alpha blending series Date: Wed, 25 Sep 2024 18:19:25 +0800 Message-ID: <20240925101927.17042-1-jason-jh.lin@mediatek.com> X-Mailer: git-send-email 2.18.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--9.489600-8.000000 X-TMASE-MatchedRID: 7VDZqSP3y+1zDgxKJu7ruvSZ/2axrnPB1KoSW5Ji1XuPaLJ/Ca3ST/T9 YCTkB8JLpEJ5RjVa0d0+zJdigxeeCDW+K/PcvqBrydRN/Yyg4pi4vBuE2X0HlQdFz8y7LneV8oL zUWewXkiVMlcqqHWd7aBVvEjzNBpCHxPMjOKY7A8LbigRnpKlKSPzRlrdFGDw5s9yGugQduwwcm 99lxyatwQsom3hlNW0uy4ZmLibKBgwPvERclccVw== X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--9.489600-8.000000 X-TMASE-Version: SMEX-14.0.0.3152-9.1.1006-23728.005 X-TM-SNTS-SMTP: 646BF43563C005C7C2E41D5D2A092AFB2EF8869251E77B8858EABB8248E8A2462000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240925_031939_483812_B1A56872 X-CRM114-Status: GOOD ( 10.43 ) 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 From: Jason-jh Lin Some SoCs not support pre-multiplied pixel formats and extending configuration of OVL pre-multiplied color formats, such as MT8173. Fix the SoC degradation problem by this sreies. --- Change in v5: Add fix patch for mtk_plane Change in v4: Add lost cases of mtk_ovl_fmt_convert_with_blend Change in v3: Change MACRO approach to function pointer in driver data Change in v2: Fix build error and typo Change in v1: Add fix patch for OVL unsupport color format settings by driver data --- Jason-JH.Lin (2): drm/mediatek: ovl: Add fmt_convert function pointer to driver data drm/mediatek: Add blend_modes to mtk_plane_init() for different SoCs drivers/gpu/drm/mediatek/mtk_crtc.c | 1 + drivers/gpu/drm/mediatek/mtk_ddp_comp.c | 2 + drivers/gpu/drm/mediatek/mtk_ddp_comp.h | 10 ++ drivers/gpu/drm/mediatek/mtk_disp_drv.h | 3 + drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 93 +++++++++++++++++-- .../gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 7 ++ drivers/gpu/drm/mediatek/mtk_mdp_rdma.c | 8 ++ drivers/gpu/drm/mediatek/mtk_plane.c | 9 +- drivers/gpu/drm/mediatek/mtk_plane.h | 4 +- 9 files changed, 122 insertions(+), 15 deletions(-)