From patchwork Mon Sep 18 08:41:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?U2hhd24gU3VuZyAo5a6L5a2d6KyZKQ==?= X-Patchwork-Id: 14175 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:172:b0:3f2:4152:657d with SMTP id h50csp3019183vqi; Mon, 18 Sep 2023 16:31:02 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGrxKblkHlqnOgpoupaOkQPzE12zv25Myk5zGo4kG0p4ZTkwVnbOXMv8/Cmu+CAqrmSxPrZ X-Received: by 2002:a17:903:482:b0:1c3:d864:d6b3 with SMTP id jj2-20020a170903048200b001c3d864d6b3mr8835791plb.57.1695079862127; Mon, 18 Sep 2023 16:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695079862; cv=none; d=google.com; s=arc-20160816; b=j0MbuIlfnM2nlHfqJ6auK9zu2nChaAsd1KWBmKRn9143Jx86bVjhc3LuzpfG05Exco 0w8QEuPpTfnt50Cl18vrEzY5lVi1tvrvMrwBwfaw6yBUsyKZFjzrk9azHBLmPUxgS91i lyY/47TmrDvLh0aaa5WXmxcv2ZiR3lplwykcruSPQtYBI9IcCmfGl5DPpuzT5i6zydf4 KNujwgO5GNshzI7T616slDILDwTyz3ty5bcTAgYCNwrW738l+HMq7WNmPkd2U9AcYqlT jzsGxTpU1WCleYTSSgjVJ7y+cHpLDEdazoeZ4j5aiTHne3PJdi3mEbO6OW1EWUK5tWAi HLzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=GRY4vrGEIdX5hYHD8AE0s7VW4f1rLJUqRnAOAoSWCPY=; fh=zj/1xCYHHy/mPJj+kFbga0zHrcDizctVV21xrPlQjYA=; b=sNIwUB2awR1hpnmEwqwIwAaLhly1FEQWTNW7l4baiqZymlhVSu8049Bd79BkZikF88 a0rOhOwAS9ZYdDlLIHMIlrEQk/+gELyV+cduN1OdaFN7noBijnx8y5vBSqzPdDovv1lP Pty39daHE2A9/9f7hti94EQnFFugbf6z9V8VPQtBNNwP5sfHGrEzs7v12fqLiZLW1Z1E Qtb92pDpphMpmGDmQZ2EqNA23g8AJOIS1CRUa1zPTsc3a+czq74teKcTinjDHKprdaFt jKRagiXMw2pQlwEf1Oump2OFAHoMQ5hXdVvIo932jJRFkDV6fQJ+A4bNJNTi3F8y0Acd KVfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=icNdejLj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id i12-20020a17090332cc00b001c09b7cf835si9176429plr.412.2023.09.18.16.31.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Sep 2023 16:31:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=icNdejLj; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 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 lipwig.vger.email (Postfix) with ESMTP id 328168027B23; Mon, 18 Sep 2023 01:43:40 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241081AbjIRInZ (ORCPT + 27 others); Mon, 18 Sep 2023 04:43:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240725AbjIRImb (ORCPT ); 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 3E45AAD for ; Mon, 18 Sep 2023 01:42:19 -0700 (PDT) X-UUID: 429ae53455ff11eea33bb35ae8d461a2-20230918 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=GRY4vrGEIdX5hYHD8AE0s7VW4f1rLJUqRnAOAoSWCPY=; b=icNdejLjmZ2MQp4D+gkvhLH1kMF90TC4WKAhV4GHfqFQ9LcUWywUU24rs4A0K2ad1ir38OenXF9lhScxNA8C8I3pF3N3duJmudVOmd2mXyVrgpflpyAioCBBWmd61Oz6Y+H/2pUaaEqblnzEV2XSFPy5JSbTbEkn5iKpY5Arl/U=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.31,REQID:6fc9f84b-0e5a-40af-8cb2-9c85e21b1776,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:0ad78a4,CLOUDID:9befd2ef-9a6e-4c39-b73e-f2bc08ca3dc5,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: 429ae53455ff11eea33bb35ae8d461a2-20230918 Received: from mtkmbs14n2.mediatek.inc [(172.21.101.76)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 2105964776; Mon, 18 Sep 2023 16:42:11 +0800 Received: from mtkmbs11n2.mediatek.inc (172.21.101.187) by mtkmbs11n2.mediatek.inc (172.21.101.187) 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:10 +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:10 +0800 From: Hsiao Chien Sung To: AngeloGioacchino Del Regno , Chun-Kuang Hu , Matthias Brugger CC: Daniel Vetter , David Airlie , Philipp Zabel , Chen-Yu Tsai , CK Hu , , , , , Hsiao Chien Sung Subject: [PATCH v2 00/11] Support IGT in display driver Date: Mon, 18 Sep 2023 16:41:56 +0800 Message-ID: <20230918084207.23604-1-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Mon, 18 Sep 2023 01:43:40 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1777420061608337775 X-GMAIL-MSGID: 1777420061608337775 This series adds support for running IGT (Intel GPU Tool) tests with MediaTek display driver. The following changes will be applied: 1. Add a new API for creating GCE thread loop to retrieve CRCs from the hardware component 2. Support hardware CRC calculation in both VDOSYS0 and VDOSYS1 3. Support alpha blending in both VDOSYS0 and VDOSYS1 Changes in v2: - Simplify CMDQ by adding commands that are currently used only - Integrate CRC related codes into new APIs for Mixer and OVL to reuse - Add CPU version CRC retrieval when CMDQ is disabled Hsiao Chien Sung (11): soc: mediatek: Add register definitions for GCE soc: mediatek: Support GCE jump to absolute soc: mediatek: Disable 9-bit alpha in ETHDR drm/mediatek: Add OVL compatible name for MT8195 drm/mediatek: Adjust DRM mode configs for IGT drm/mediatek: Support alpha blending in display driver drm/mediatek: Support alpha blending in VDOSYS0 drm/mediatek: Support alpha blending in VDOSYS1 drm/mediatek: Support CRC in display driver drm/mediatek: Support CRC in VDOSYS0 drm/mediatek: Support CRC in VDOSYS1 drivers/gpu/drm/mediatek/mtk_disp_drv.h | 6 + drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 309 ++++++++++++++++-- .../gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 21 ++ drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 258 ++++++++++++++- drivers/gpu/drm/mediatek/mtk_drm_crtc.h | 39 +++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 6 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 35 ++ drivers/gpu/drm/mediatek/mtk_drm_drv.c | 12 +- drivers/gpu/drm/mediatek/mtk_drm_plane.c | 11 + drivers/gpu/drm/mediatek/mtk_ethdr.c | 121 ++++++- drivers/gpu/drm/mediatek/mtk_ethdr.h | 5 + drivers/soc/mediatek/mtk-cmdq-helper.c | 16 + drivers/soc/mediatek/mtk-mmsys.c | 1 + include/linux/soc/mediatek/mtk-cmdq.h | 12 + 14 files changed, 806 insertions(+), 46 deletions(-) --- 2.18.0