Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4596493rdb; Tue, 12 Dec 2023 04:21:13 -0800 (PST) X-Google-Smtp-Source: AGHT+IHwSwwO6OGzdoOLqPfLfTcbinECpktao96PhCyh7VY3xmpcN78vguiT7L0pV7ewUbKiRKP4 X-Received: by 2002:a05:6a20:43a9:b0:18f:9c4:d348 with SMTP id i41-20020a056a2043a900b0018f09c4d348mr10610947pzl.56.1702383673437; Tue, 12 Dec 2023 04:21:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702383673; cv=none; d=google.com; s=arc-20160816; b=REYKFgk4EJTfbFALyCJQZmxaEigpJlvp9iFuqZcUsh3RpDexYP+5c91KxQfim0RDDG G/fDPFtxFUplEHH3wIk4asjKAe3vsdJlxG5LEOtQcSP/bVYLsuQqpSAun2bdIy60bHz3 f/p+FKdkw3p/6UEekcdvH8hElojGZpbXiPryFS+oxG6UuvHu4dmAYEw0cYOHqOl0wWAV Z+UyLjPJYQm95D4Q6fjvvyoBOz7fnbqypCHWtNsXV2+xLalNhYlI1IvBcnMXPSKelsK+ 5Z5pG4+khtJIpJDAetumDDXVjg2RnZfeDC6ED7V6ifkNcOEpm/7wi/vUD+qqQ45q6cJ7 4juQ== 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=LOeISYIMwrahEh+sFl08FEXIH6/vlOrNqyOUcSSrrh4=; fh=9gBY3LVbdxTioLa7O2pOsMOkTMxlNAxxvKin9b2wF1U=; b=vf4NfNQB/zwspVpaGd9UcuceCWSvwVSPdJpcjvk64rSkbHSlS0Isff66pPQA2osVFS IaNWTFjWdo4s8UkP08NGqEpCEt9tkj4xaHhsyuZrwlGUZDeWWFzfUhhORGrbJTazJj/V zBeU88DPgST7x6Eb6OYFlEhKLpZmS7bL/l5kzhpehWc8Jsj3egOsnFkKAC768zhInaih FTdXwhAoizV8iAVZVx/b4C91kJanJMCH9rFNI8V8rHjr5yiOeo7ncQa33ECreh4txPjl iJ0SDSnceAuKA98ayeSYmZI0CSu7POQNfGJXDm+rHvbHh/MIX/9JsJiMk2Xu1FmxIhBR 5qGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=rMcCgjXZ; 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 Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id u17-20020a631411000000b005c679836faesi7644170pgl.785.2023.12.12.04.21.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Dec 2023 04:21:13 -0800 (PST) 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=rMcCgjXZ; 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 B71AB8066B80; Tue, 12 Dec 2023 04:20:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346469AbjLLMUJ (ORCPT + 99 others); Tue, 12 Dec 2023 07:20:09 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232079AbjLLMUG (ORCPT ); Tue, 12 Dec 2023 07:20:06 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8E52F83; Tue, 12 Dec 2023 04:20:07 -0800 (PST) X-UUID: c5cef7b698e811eea5db2bebc7c28f94-20231212 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=LOeISYIMwrahEh+sFl08FEXIH6/vlOrNqyOUcSSrrh4=; b=rMcCgjXZqFjrYZ95hoyu8d3/5Ej4rriqxH7jIwJt9UsBkXSpFgg8OXoJmen2ooWR9lZ9JRq1M2hTXrNVdhMAqWuP+UbNBea5U0TQNcTSh0NYJJ4BXcuuuG2tyMG4TVlQOACB6NN843Bzr4BFfi/qSis/MrF5YlbP1ZJ/KLrsF94=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.35,REQID:0b3f6a7e-1b58-4c5b-bb96-6a71b4057623,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:5d391d7,CLOUDID:343b1c61-c89d-4129-91cb-8ebfae4653fc,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: c5cef7b698e811eea5db2bebc7c28f94-20231212 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 1040439749; Tue, 12 Dec 2023 20:20:01 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) 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; Tue, 12 Dec 2023 20:20:00 +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; Tue, 12 Dec 2023 20:20:00 +0800 From: Hsiao Chien Sung To: AngeloGioacchino Del Regno , Chun-Kuang Hu , CK Hu CC: Philipp Zabel , David Airlie , Daniel Vetter , Rob Herring , Krzysztof Kozlowski , Matthias Brugger , Chen-Yu Tsai , Sean Paul , Fei Shao , Bibby Hsieh , , , , , , Hsiao Chien Sung Subject: [PATCH v4 00/17] Support IGT in display driver Date: Tue, 12 Dec 2023 20:19:40 +0800 Message-ID: <20231212121957.19231-1-shawn.sung@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.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 (howler.vger.email [0.0.0.0]); Tue, 12 Dec 2023 04:20:29 -0800 (PST) This series is based on mediatek-drm-next. 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 v4: - Seperate the patch into smaller ones - Change the title of some patches - Revert the changes that are not related to the series Changes in v3: - Modify the dt-binding document of Mediatek OVL - Set DRM mode configs accroding to the hardware capabilities - Replace cmdq_pkt_jump_absolute() with cmdq_pkt_jump() 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 (17): soc: mediatek: Add register definitions for GCE soc: mediatek: Disable 9-bit alpha in ETHDR dt-bindings: display: mediatek: ovl: Modify rules for MT8195/MT8188 drm/mediatek: Add OVL compatible name for MT8195 drm/mediatek: Set DRM mode configs accordingly drm/mediatek: Support alpha blending in OVL drm/mediatek: Support alpha blending in Mixer drm/mediatek: Support alpha blending in display driver drm/mediatek: Support CSC in OVL drm/mediatek: Support more color formats in OVL drm/mediatek: Turn off the layers with zero width or height drm/mediatek: Support CRC in display driver drm/mediatek: Support CRC in OVL drm/mediatek: Support CRC in OVL adaptor drm/mediatek: Add missing plane settings when async update drm/mediatek: Fix errors when reporting rotation capability drm/mediatek: Add comments for the structures .../display/mediatek/mediatek,ovl.yaml | 12 +- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 7 + drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 326 +++++++++++++++--- .../gpu/drm/mediatek/mtk_disp_ovl_adaptor.c | 32 +- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 261 +++++++++++++- drivers/gpu/drm/mediatek/mtk_drm_crtc.h | 39 +++ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 7 + drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 35 ++ drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 +- drivers/gpu/drm/mediatek/mtk_drm_drv.h | 16 + drivers/gpu/drm/mediatek/mtk_drm_plane.c | 15 +- drivers/gpu/drm/mediatek/mtk_ethdr.c | 106 +++++- drivers/gpu/drm/mediatek/mtk_ethdr.h | 5 + drivers/soc/mediatek/mtk-mmsys.c | 1 + include/linux/soc/mediatek/mtk-cmdq.h | 10 + 15 files changed, 834 insertions(+), 68 deletions(-) -- 2.18.0