From patchwork Wed Jun 19 16:38:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hsiao Chien Sung via B4 Relay X-Patchwork-Id: 13704246 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 5DB29C2BC81 for ; Wed, 19 Jun 2024 16:39:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Reply-To:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Cc:To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject: From:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=H4oGOGbVYh/qUSeAa5M7i/+q7hspnxcRAbonZyU9+EY=; b=vzhKB7173UubnrGUvS5EH1FYGe HrfC24EUFodX/IbtWCsxXBlgjqb6iGULu16aB6euuodt4xp5FJnw05HbRUZ9LI/R3VJGuWQFqrGiS 1sTW0Ch5YeCZPlqeowwwbunJU6CoCP/mcIZJeHX9A+9IShCtC1jQ0XznVTjAEGwvELU16rN1v+wrf M/EarliBQGhPz7PkXZhz6F5bs+eyafIAWaF+mE0V4R19Qkth7AecbPqBy2ZKCBrZbVvg11KEMRKTc GhWvLhlsTHN/Y3IXgvO2q1w/D0sO7/NwBNaiU8cJkKcYZ1YmMDMVBdtIX3nxepkvcgqXmpMXwlEX3 fYQjbevw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJyLR-000000024hJ-0VJO; Wed, 19 Jun 2024 16:39:37 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sJyKd-000000023xQ-44EN; Wed, 19 Jun 2024 16:38:53 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id A24F9CE2069; Wed, 19 Jun 2024 16:38:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id CB0AFC2BBFC; Wed, 19 Jun 2024 16:38:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1718815124; bh=1/Deizd7VSTe2iJzo6qC6np7IrGYcl14e1WZr+sIbJg=; h=From:Subject:Date:To:Cc:Reply-To:From; b=E/5JCVZ3BXVCdiSjx9yM6gRmqvoaNrjaDAZ9UzqD54YJWOUxOuEK6HIVRNA3cb3Zq 4WHOG1iCPEAQBJAoRLgnEX7YzNacY9eYqfb0xbvDWPhwFcrxdcYcOG3xSz3lKKNgaa BVzDrrkH7rehZdbmFjN6PTL1aXaUA2adXUnyrjWp0TZgF4+XMZNUQSyBaamh+F8uVU DWE5gKDxVSeCsT7DKH1Hg3e5+0DjDY+qvr3WtBH0o5UiLAH4O1ZMhQLoea8vKyCHvC OHpxkPm8+8atc0MSJoscKEDVwAeHSp2c24AFEcQqlZEP7JVaJxobdPQMiZtZ6hx39J rk6Pd6JT0/tkw== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id AE18CC27C53; Wed, 19 Jun 2024 16:38:44 +0000 (UTC) From: Hsiao Chien Sung via B4 Relay Subject: [PATCH v3 00/14] This series fixes the errors of MediaTek display driver found by IGT. Date: Thu, 20 Jun 2024 00:38:40 +0800 Message-Id: <20240620-igt-v3-0-a9d62d2e2c7e@mediatek.com> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAJEJc2YC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyjHUUlJIzE vPSU3UzU4B8JSMDIxMDM0NL3cz0El0TS0NL01QjQxMDkxQloMqCotS0zAqwKdGxtbUATts7MVU AAAA= To: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , AngeloGioacchino Del Regno , CK Hu , Bibby Hsieh , Daniel Kurtz , Mao Huang , "Nancy.Lin" Cc: YT Shen , dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Hsiao Chien Sung X-Mailer: b4 0.14.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1718815123; l=3450; i=shawn.sung@mediatek.com; s=20240616; h=from:subject:message-id; bh=1/Deizd7VSTe2iJzo6qC6np7IrGYcl14e1WZr+sIbJg=; b=jSxUNwpSULh9lrpbHUH8cTlzzmFaSiiiXN/JGo95ZbDBiwweC8/NdnathsAnu4DUUsl0rdBqS W1fy/hLtNqyAnnI5vunPJ8Dp2Lr+D0ZUFHe+rnoexYNx/E+2jypPD2x X-Developer-Key: i=shawn.sung@mediatek.com; a=ed25519; pk=lq1w8BuWDINX+4JHjGHhhbAU5ICP+cL9VCj7wn+cEDA= X-Endpoint-Received: by B4 Relay for shawn.sung@mediatek.com/20240616 with auth_id=172 X-Original-From: Hsiao Chien Sung X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240619_093848_968951_62C806D9 X-CRM114-Status: GOOD ( 10.54 ) 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: , Reply-To: shawn.sung@mediatek.com Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+linux-mediatek=archiver.kernel.org@lists.infradead.org Signed-off-by: Hsiao Chien Sung --- Changes in v3: - Modify the commit message - Add a patch to fix destination alpha error in OVL - Link to v2: https://lore.kernel.org/all/20240619-mediatek-drm-next-v2-0-abf68f46f8d2@mediatek.com --- Changes in v2: - Seperate the changes that belong to another repo (driver/soc/mediatek) - Move the fix patches to the front of the series - Link to v1: https://lore.kernel.org/r/20240616-mediatek-drm-next-v1-0-7e8f9cf785d8@mediatek.com --- Hsiao Chien Sung (14): drm/mediatek: Add missing plane settings when async update drm/mediatek: Disable 9-bit alpha in ETHDR drm/mediatek: Fix XRGB setting error in OVL drm/mediatek: Fix XRGB setting error in Mixer drm/mediatek: Turn off the layers with zero width or height drm/mediatek: Add OVL compatible name for MT8195 drm/mediatek: Add DRM_MODE_ROTATE_0 to rotation property drm/mediatek: Add new color format MACROs in OVL drm/mediatek: Set DRM mode configs accordingly drm/mediatek: Support more 10bit formats in OVL drm/mediatek: Support RGBA8888 and RGBX8888 in OVL on MT8195 drm/mediatek: Support DRM plane alpha in OVL drm/mediatek: Support DRM plane alpha in Mixer drm/mediatek: Fix XRGB setting error in OVL drivers/gpu/drm/mediatek/mtk_ddp_comp.h | 6 +- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 93 ++++++++++++++++++------- drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 2 +- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 24 +++++++ drivers/gpu/drm/mediatek/mtk_drm_drv.h | 4 ++ drivers/gpu/drm/mediatek/mtk_ethdr.c | 27 +++++-- drivers/gpu/drm/mediatek/mtk_plane.c | 4 +- 7 files changed, 126 insertions(+), 34 deletions(-) --- base-commit: 62fe4b067581d480e863191305f108bebffbc0e9 change-id: 20240615-mediatek-drm-next-ad601b349f23 Best regards, --- Hsiao Chien Sung (14): drm/mediatek: Add missing plane settings when async update drm/mediatek: Use 8-bit alpha in ETHDR drm/mediatek: Fix XRGB setting error in OVL drm/mediatek: Fix XRGB setting error in Mixer drm/mediatek: Fix destination alpha error in OVL drm/mediatek: Turn off the layers with zero width or height drm/mediatek: Add OVL compatible name for MT8195 drm/mediatek: Add DRM_MODE_ROTATE_0 to rotation property drm/mediatek: Add new color format MACROs in OVL drm/mediatek: Set DRM mode configs accordingly drm/mediatek: Support more 10bit formats in OVL drm/mediatek: Support RGBA8888 and RGBX8888 in OVL on MT8195 drm/mediatek: Support DRM plane alpha in OVL drm/mediatek: Support DRM plane alpha in Mixer drivers/gpu/drm/mediatek/mtk_ddp_comp.h | 6 +- drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 95 ++++++++++++++++++------- drivers/gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 2 +- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 24 +++++++ drivers/gpu/drm/mediatek/mtk_drm_drv.h | 4 ++ drivers/gpu/drm/mediatek/mtk_ethdr.c | 27 +++++-- drivers/gpu/drm/mediatek/mtk_plane.c | 4 +- 7 files changed, 127 insertions(+), 35 deletions(-) --- base-commit: 62fe4b067581d480e863191305f108bebffbc0e9 change-id: 20240619-igt-49195e21404d Best regards,