Message ID | 20230918084207.23604-5-shawn.sung@mediatek.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp2578956vqi; Mon, 18 Sep 2023 04:24:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHWP3kORQ/sy/YQE99Zd8zMiNHelzq7A5LL1b6xXOoqP0RsQIz5F8YB8CEw0e8KqLHeeWpw X-Received: by 2002:a17:902:d2cd:b0:1b2:676d:1143 with SMTP id n13-20020a170902d2cd00b001b2676d1143mr11843781plc.15.1695036253106; Mon, 18 Sep 2023 04:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695036253; cv=none; d=google.com; s=arc-20160816; b=ftq1prP8rFGjggOXGr7lxLJUxK9yonJ1fIt1aWc0bvEgmN+fMR/gIoGpU/gDJAJFYq TOr96RwP1BRD1EGdfC5G4rw4a3L+xyrnNmEwisPGl0KbrVueOm+IO2Q8/puOw+1DSOd3 sEup9imdtjKupRyq356MlQkgJkFbGODrTjKvGPhXWKPwoMAZngl0Gop0gOyaTH4r7ERn r9wzNTpDWYblPAOM/pA4YxDBg2NNCPiLU69f+KSHZYgg8KXUsy9m8FBxOqSPhi/PiDaD 8050xfsFqJ8h6aI+/riJEoIv1spnTtIHKryiSyTYq+wXsmXSZ0g+4I8A0funvO22mkXf Ou1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hiYgAJXuS1H/ON0IHRoYcIaq91Vuto1QXFXSITw8YEA=; fh=zj/1xCYHHy/mPJj+kFbga0zHrcDizctVV21xrPlQjYA=; b=cOUglF+VfTTQS1cSAYpxb3xfxF0+X2zcQCzola6zIF+P5dcnrX+nwRgGdtRXKvfinq JnFp1Z34Z7TSGcByewfE7tftMi/7h0V1CG6Trh8M3tHpeOF3x0NvPtB6kal5VJW3A1Qi Va3mHed2zuJme+OeCmLOcWrL/KWRYVSt8k38fzZ3NcVIaLWG2GtQJbDtpTdeyOasHGDK hRRCiM6CVZojfEtjbWYRr+7W1jT98Cx4UWgNdQFIuFuqt4bzpG73eD0Gu7APORf3wadN iaiex9kev75kroeCaZOGm6D+z59pfA4tPWn9ciDS+gKsDrqDBebUlZa+UrfdgZBXyujq ohUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=f+BkPPnv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id lg16-20020a170902fb9000b001c3d864d6b5si7748239plb.292.2023.09.18.04.24.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 04:24:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=f+BkPPnv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 84B8983F5302; Mon, 18 Sep 2023 01:43:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241054AbjIRInU (ORCPT <rfc822;kernel.ruili@gmail.com> + 27 others); Mon, 18 Sep 2023 04:43:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39848 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240756AbjIRImb (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 18 Sep 2023 04:42:31 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F2EECD for <linux-kernel@vger.kernel.org>; Mon, 18 Sep 2023 01:42:20 -0700 (PDT) X-UUID: 42f79d7e55ff11eea33bb35ae8d461a2-20230918 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=hiYgAJXuS1H/ON0IHRoYcIaq91Vuto1QXFXSITw8YEA=; b=f+BkPPnvZczEAd2Ve7m59yp8t1UBL6NbfxJlXEht5YXqJECSftSHRFiH3G04pZMUyzINr5e3dGJMaT/Xdh8/55TBY1d8XnbmqFBe8zS78PeMAZqL3a2RxPIyMAFBtFxWewsLE8RfG9O0XMbbIswSnTKRboCxat6g0AmZKd990Bs=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.31,REQID:bdf8a3c2-3252-4acb-bd05-ed888eb38602,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:0,FILE:0,BULK:0,RULE:Release_Ham,ACTION :release,TS:-5 X-CID-META: VersionHash:0ad78a4,CLOUDID:c95327c3-1e57-4345-9d31-31ad9818b39f,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: 42f79d7e55ff11eea33bb35ae8d461a2-20230918 Received: from mtkmbs13n2.mediatek.inc [(172.21.101.108)] by mailgw01.mediatek.com (envelope-from <shawn.sung@mediatek.com>) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 497019405; Mon, 18 Sep 2023 16:42:12 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs13n1.mediatek.inc (172.21.101.193) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Mon, 18 Sep 2023 16:42:11 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs11n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.26 via Frontend Transport; Mon, 18 Sep 2023 16:42:11 +0800 From: Hsiao Chien Sung <shawn.sung@mediatek.com> To: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>, Chun-Kuang Hu <chunkuang.hu@kernel.org>, Matthias Brugger <matthias.bgg@gmail.com> CC: Daniel Vetter <daniel@ffwll.ch>, David Airlie <airlied@gmail.com>, Philipp Zabel <p.zabel@pengutronix.de>, Chen-Yu Tsai <wenst@chromium.org>, CK Hu <ck.hu@mediatek.com>, <dri-devel@lists.freedesktop.org>, <linux-mediatek@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <linux-arm-kernel@lists.infradead.org>, Hsiao Chien Sung <shawn.sung@mediatek.com> Subject: [PATCH v2 04/11] drm/mediatek: Add OVL compatible name for MT8195 Date: Mon, 18 Sep 2023 16:42:00 +0800 Message-ID: <20230918084207.23604-5-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230918084207.23604-1-shawn.sung@mediatek.com> References: <20230918084207.23604-1-shawn.sung@mediatek.com> MIME-Version: 1.0 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_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 18 Sep 2023 01:43:34 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777374334195703923 X-GMAIL-MSGID: 1777374334195703923 |
Series |
Support IGT in display driver
|
|
Commit Message
Shawn Sung (宋孝謙)
Sept. 18, 2023, 8:42 a.m. UTC
Add OVL compatible name for MT8195.
Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com>
---
drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++
1 file changed, 2 insertions(+)
Comments
On Mon, 2023-09-18 at 16:42 +0800, Hsiao Chien Sung wrote: > Add OVL compatible name for MT8195. Reviewed-by: CK Hu <ck.hu@mediatek.com> but it's weird to put this patch into IGT series. Without this patch, mt8195 drm driver does not work not only IGT. Regards, CK > > Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com> > --- > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > index 93552d76b6e7..7759a06e5c0e 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > @@ -715,6 +715,8 @@ static const struct of_device_id > mtk_ddp_comp_dt_ids[] = { > .data = (void *)MTK_DISP_OVL }, > { .compatible = "mediatek,mt8192-disp-ovl", > .data = (void *)MTK_DISP_OVL }, > + { .compatible = "mediatek,mt8195-disp-ovl", > + .data = (void *)MTK_DISP_OVL }, > { .compatible = "mediatek,mt8183-disp-ovl-2l", > .data = (void *)MTK_DISP_OVL_2L }, > { .compatible = "mediatek,mt8192-disp-ovl-2l",
Il 18/09/23 11:09, CK Hu (胡俊光) ha scritto: > On Mon, 2023-09-18 at 16:42 +0800, Hsiao Chien Sung wrote: >> Add OVL compatible name for MT8195. > > Reviewed-by: CK Hu <ck.hu@mediatek.com> > > but it's weird to put this patch into IGT series. Without this patch, > mt8195 drm driver does not work not only IGT. > The driver does work because the devicetree node declares two compatibles, "mediatek,mt8195-disp-ovl", "mediatek,mt8183-disp-ovl" where the second compatible is matched in mtk_drm_drv, and the first is matched in mtk_disp_ovl as both are platform_driver. This commit is not necessary, even... :-) Regards, Angelo > Regards, > CK > >> >> Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com> >> --- >> drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c >> b/drivers/gpu/drm/mediatek/mtk_drm_drv.c >> index 93552d76b6e7..7759a06e5c0e 100644 >> --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c >> +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c >> @@ -715,6 +715,8 @@ static const struct of_device_id >> mtk_ddp_comp_dt_ids[] = { >> .data = (void *)MTK_DISP_OVL }, >> { .compatible = "mediatek,mt8192-disp-ovl", >> .data = (void *)MTK_DISP_OVL }, >> + { .compatible = "mediatek,mt8195-disp-ovl", >> + .data = (void *)MTK_DISP_OVL }, >> { .compatible = "mediatek,mt8183-disp-ovl-2l", >> .data = (void *)MTK_DISP_OVL_2L }, >> { .compatible = "mediatek,mt8192-disp-ovl-2l",
On Mon, 2023-09-18 at 11:21 +0200, AngeloGioacchino Del Regno wrote: > Il 18/09/23 11:09, CK Hu (胡俊光) ha scritto: > > On Mon, 2023-09-18 at 16:42 +0800, Hsiao Chien Sung wrote: > > > Add OVL compatible name for MT8195. > > > > Reviewed-by: CK Hu <ck.hu@mediatek.com> > > > > but it's weird to put this patch into IGT series. Without this > > patch, > > mt8195 drm driver does not work not only IGT. > > > > The driver does work because the devicetree node declares two > compatibles, > "mediatek,mt8195-disp-ovl", "mediatek,mt8183-disp-ovl" where the > second > compatible is matched in mtk_drm_drv, and the first is matched in > mtk_disp_ovl > as both are platform_driver. > > This commit is not necessary, even... :-) Agree. This patch is not necessary. Regards, CK > > Regards, > Angelo > > > Regards, > > CK > > > > > > > > Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com> > > > --- > > > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > index 93552d76b6e7..7759a06e5c0e 100644 > > > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > @@ -715,6 +715,8 @@ static const struct of_device_id > > > mtk_ddp_comp_dt_ids[] = { > > > .data = (void *)MTK_DISP_OVL }, > > > { .compatible = "mediatek,mt8192-disp-ovl", > > > .data = (void *)MTK_DISP_OVL }, > > > + { .compatible = "mediatek,mt8195-disp-ovl", > > > + .data = (void *)MTK_DISP_OVL }, > > > { .compatible = "mediatek,mt8183-disp-ovl-2l", > > > .data = (void *)MTK_DISP_OVL_2L }, > > > { .compatible = "mediatek,mt8192-disp-ovl-2l", > > >
Hi, Angelo and CK, On Mon, 2023-09-18 at 11:21 +0200, AngeloGioacchino Del Regno wrote: > Il 18/09/23 11:09, CK Hu (胡俊光) ha scritto: > > On Mon, 2023-09-18 at 16:42 +0800, Hsiao Chien Sung wrote: > > > Add OVL compatible name for MT8195. > > > > Reviewed-by: CK Hu <ck.hu@mediatek.com> > > > > but it's weird to put this patch into IGT series. Without this > > patch, > > mt8195 drm driver does not work not only IGT. > > > > The driver does work because the devicetree node declares two > compatibles, > "mediatek,mt8195-disp-ovl", "mediatek,mt8183-disp-ovl" where the > second > compatible is matched in mtk_drm_drv, and the first is matched in > mtk_disp_ovl > as both are platform_driver. > > This commit is not necessary, even... :-) > > Regards, > Angelo > > > Regards, > > CK > > > > > > > > Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com> > > > --- > > > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ > > > 1 file changed, 2 insertions(+) > > > > > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > index 93552d76b6e7..7759a06e5c0e 100644 > > > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > @@ -715,6 +715,8 @@ static const struct of_device_id > > > mtk_ddp_comp_dt_ids[] = { > > > .data = (void *)MTK_DISP_OVL }, > > > { .compatible = "mediatek,mt8192-disp-ovl", > > > .data = (void *)MTK_DISP_OVL }, > > > + { .compatible = "mediatek,mt8195-disp-ovl", > > > + .data = (void *)MTK_DISP_OVL }, > > > { .compatible = "mediatek,mt8183-disp-ovl-2l", > > > .data = (void *)MTK_DISP_OVL_2L }, > > > { .compatible = "mediatek,mt8192-disp-ovl-2l", > > Please refer to c6aa5f1fb505. This is the main reason why we have to use MT8195 instead of MT8183/MT8192. Most of the formats required by IGT is not supported. Without this commit, DRM won't work after changing the compatible name of ovl0 to "mediatek,mt8195-disp-ovl" in the dts. Thanks, Shawn
Il 11/10/23 11:38, Shawn Sung (宋孝謙) ha scritto: > Hi, Angelo and CK, > > On Mon, 2023-09-18 at 11:21 +0200, AngeloGioacchino Del Regno wrote: >> Il 18/09/23 11:09, CK Hu (胡俊光) ha scritto: >>> On Mon, 2023-09-18 at 16:42 +0800, Hsiao Chien Sung wrote: >>>> Add OVL compatible name for MT8195. >>> >>> Reviewed-by: CK Hu <ck.hu@mediatek.com> >>> >>> but it's weird to put this patch into IGT series. Without this >>> patch, >>> mt8195 drm driver does not work not only IGT. >>> >> >> The driver does work because the devicetree node declares two >> compatibles, >> "mediatek,mt8195-disp-ovl", "mediatek,mt8183-disp-ovl" where the >> second >> compatible is matched in mtk_drm_drv, and the first is matched in >> mtk_disp_ovl >> as both are platform_driver. >> >> This commit is not necessary, even... :-) >> >> Regards, >> Angelo >> >>> Regards, >>> CK >>> >>>> >>>> Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com> >>>> --- >>>> drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ >>>> 1 file changed, 2 insertions(+) >>>> >>>> diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c >>>> b/drivers/gpu/drm/mediatek/mtk_drm_drv.c >>>> index 93552d76b6e7..7759a06e5c0e 100644 >>>> --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c >>>> +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c >>>> @@ -715,6 +715,8 @@ static const struct of_device_id >>>> mtk_ddp_comp_dt_ids[] = { >>>> .data = (void *)MTK_DISP_OVL }, >>>> { .compatible = "mediatek,mt8192-disp-ovl", >>>> .data = (void *)MTK_DISP_OVL }, >>>> + { .compatible = "mediatek,mt8195-disp-ovl", >>>> + .data = (void *)MTK_DISP_OVL }, >>>> { .compatible = "mediatek,mt8183-disp-ovl-2l", >>>> .data = (void *)MTK_DISP_OVL_2L }, >>>> { .compatible = "mediatek,mt8192-disp-ovl-2l", >> >> > > Please refer to c6aa5f1fb505. This is the main reason why we have to > use MT8195 instead of MT8183/MT8192. Most of the formats required by > IGT is not supported. > > Without this commit, DRM won't work after changing the compatible name > of ovl0 to "mediatek,mt8195-disp-ovl" in the dts. > > Thanks, > Shawn You don't have to change anything at all in the dts. The current mt8195.dtsi declares: compatible = "mediatek,mt8195-disp-ovl", "mediatek,mt8183-disp-ovl"; ..this is enough to get the mediatek,mt8195-disp-ovl match in mtk_disp_ovl. Regards, Angelo
Hi Angelo, On Wed, 2023-10-11 at 13:51 +0200, AngeloGioacchino Del Regno wrote: > Il 11/10/23 11:38, Shawn Sung (宋孝謙) ha scritto: > > Hi, Angelo and CK, > > > > On Mon, 2023-09-18 at 11:21 +0200, AngeloGioacchino Del Regno > > wrote: > > > Il 18/09/23 11:09, CK Hu (胡俊光) ha scritto: > > > > On Mon, 2023-09-18 at 16:42 +0800, Hsiao Chien Sung wrote: > > > > > Add OVL compatible name for MT8195. > > > > > > > > Reviewed-by: CK Hu <ck.hu@mediatek.com> > > > > > > > > but it's weird to put this patch into IGT series. Without this > > > > patch, > > > > mt8195 drm driver does not work not only IGT. > > > > > > > > > > The driver does work because the devicetree node declares two > > > compatibles, > > > "mediatek,mt8195-disp-ovl", "mediatek,mt8183-disp-ovl" where the > > > second > > > compatible is matched in mtk_drm_drv, and the first is matched in > > > mtk_disp_ovl > > > as both are platform_driver. > > > > > > This commit is not necessary, even... :-) > > > > > > Regards, > > > Angelo > > > > > > > Regards, > > > > CK > > > > > > > > > > > > > > Signed-off-by: Hsiao Chien Sung <shawn.sung@mediatek.com> > > > > > --- > > > > > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 2 ++ > > > > > 1 file changed, 2 insertions(+) > > > > > > > > > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > > > b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > > > index 93552d76b6e7..7759a06e5c0e 100644 > > > > > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > > > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > > > > > @@ -715,6 +715,8 @@ static const struct of_device_id > > > > > mtk_ddp_comp_dt_ids[] = { > > > > > .data = (void *)MTK_DISP_OVL }, > > > > > { .compatible = "mediatek,mt8192-disp-ovl", > > > > > .data = (void *)MTK_DISP_OVL }, > > > > > + { .compatible = "mediatek,mt8195-disp-ovl", > > > > > + .data = (void *)MTK_DISP_OVL }, > > > > > { .compatible = "mediatek,mt8183-disp-ovl-2l", > > > > > .data = (void *)MTK_DISP_OVL_2L }, > > > > > { .compatible = "mediatek,mt8192-disp-ovl-2l", > > > > > > > > > > Please refer to c6aa5f1fb505. This is the main reason why we have > > to > > use MT8195 instead of MT8183/MT8192. Most of the formats required > > by > > IGT is not supported. > > > > Without this commit, DRM won't work after changing the compatible > > name > > of ovl0 to "mediatek,mt8195-disp-ovl" in the dts. > > > > Thanks, > > Shawn > > You don't have to change anything at all in the dts. > > The current mt8195.dtsi declares: > compatible = "mediatek,mt8195-disp-ovl", "mediatek,mt8183-disp-ovl"; > > ..this is enough to get the mediatek,mt8195-disp-ovl match in > mtk_disp_ovl. > > Regards, > Angelo We are running IGT on MT8188 and current patch is based on Kernel 6.1. Regards, Shawn
diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/mediatek/mtk_drm_drv.c index 93552d76b6e7..7759a06e5c0e 100644 --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c @@ -715,6 +715,8 @@ static const struct of_device_id mtk_ddp_comp_dt_ids[] = { .data = (void *)MTK_DISP_OVL }, { .compatible = "mediatek,mt8192-disp-ovl", .data = (void *)MTK_DISP_OVL }, + { .compatible = "mediatek,mt8195-disp-ovl", + .data = (void *)MTK_DISP_OVL }, { .compatible = "mediatek,mt8183-disp-ovl-2l", .data = (void *)MTK_DISP_OVL_2L }, { .compatible = "mediatek,mt8192-disp-ovl-2l",