From patchwork Mon Apr 12 06:35:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yongqiang Niu X-Patchwork-Id: 12196901 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8983EC433B4 for ; Mon, 12 Apr 2021 06:38:19 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 23E086008E for ; Mon, 12 Apr 2021 06:38:19 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 23E086008E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=mediatek.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=qBiEzxvhbgDwz767h7SeWsTyIKYcW6J1fB33Nbxdbzc=; b=La5/Q02zTQI7R611KLssPa2luE Kf3ujojHtPhLJPn1JtWbgxhLtDGjt9h7KTojUd2RuVeww/Iypz86RU+Xf4ANOFkBNuXzRf/+duQSz WiqwgcPQVYbclp+jz9eUabSgUkG/4ByGmDS0w7sv7ma6zk3KFkqvK/gSw1jb7XIVc1gmNfBZ59VGU OapuCw47ai+EH/J+F5HENU1fVO+7JcYIdz4YMb97vLlHirZ6CpHYzLc6nLfyV8XqhzU1ixtTFPwR5 xXt+waKndvgMaYLdvNEFRuzWmZTbwNZ8/BVTcWTG9RdkMPdC4PVZHYZ84/g1sJ9OhsEQC8SY54cl6 8lpiSRug==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVqBH-005pAg-4X; Mon, 12 Apr 2021 06:36:19 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVqB9-005p9a-TR; Mon, 12 Apr 2021 06:36:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-ID:Content-Description:In-Reply-To:References; bh=NTXg+uke429viTrLPQr9wcKwhZZUAfHH6B5KN3uqYBA=; b=LG1RtOLTzrRylbpNgw8E5ZFmRd CZOxg9zE1gDipPAX32Vqte3CX9GQXf6QqPADtXSRhlVsOLW9Z15lC5+FkWuvvrHoXUIC0AsjRXQGQ Dk6PlE0Syng/IS2yPfQuzen4D7jgo4SQGdkf5ZJiAkSYTLbX4/L3K/34+I/yPvbi6qRNvRFdN1G81 qoRoTZcEqLi5UjKB5FgPy6Y4yGqeXYjLb8nYHykWav52CufnExAy/RZcM6Unj7KXB4sULENsLsjG7 gzVSkUoYriG63nw6sJUswwIZXfbyMeAK7W8GZW+n8qZgEcBzvjPlmjap+ZGI3P2/FHZN+i559vRnn vhH2LSkA==; Received: from mailgw01.mediatek.com ([216.200.240.184]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVqB6-005u8B-BV; Mon, 12 Apr 2021 06:36:09 +0000 X-UUID: 2a1f68d4531a4d04b71bf3bd39345432-20210411 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=NTXg+uke429viTrLPQr9wcKwhZZUAfHH6B5KN3uqYBA=; b=sAX3j86HpFy5C5TgFQ74nyv2wAnoQEHnAG4+aU21NyABsLcwMb73BPMbUIRagzER3+E6D5AAF5VrktaPkFcngeMy/49LxwiZQpb21/9RbY6tqRfUk1dI77jZ4DhknBtWltOjRi1g064/CXgVvOZHl7PscsKxECZP3NgEn1Mm+Zw=; X-UUID: 2a1f68d4531a4d04b71bf3bd39345432-20210411 Received: from mtkcas66.mediatek.inc [(172.29.193.44)] by mailgw01.mediatek.com (envelope-from ) (musrelay.mediatek.com ESMTP with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1688953355; Sun, 11 Apr 2021 23:36:00 -0700 Received: from MTKMBS31N2.mediatek.inc (172.27.4.87) by MTKMBS62N1.mediatek.inc (172.29.193.41) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 11 Apr 2021 23:35:59 -0700 Received: from mtkcas10.mediatek.inc (172.21.101.39) by MTKMBS31N2.mediatek.inc (172.27.4.87) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 12 Apr 2021 14:35:50 +0800 Received: from localhost.localdomain (10.17.3.153) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Mon, 12 Apr 2021 14:35:49 +0800 From: Yongqiang Niu To: Chun-Kuang Hu , Rob Herring CC: Philipp Zabel , David Airlie , Daniel Vetter , Mark Rutland , Matthias Brugger , , , , , , , Yongqiang Niu Subject: [PATCH v1, 0/3] gamma set with cmdq Date: Mon, 12 Apr 2021 14:35:44 +0800 Message-ID: <1618209347-10816-1-git-send-email-yongqiang.niu@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 X-TM-SNTS-SMTP: 9B38F95F394A55B17AF54078330921F9F4A0C88959C336EC271FA7319CCD28762000:8 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210411_233608_420065_FBBC6EFB X-CRM114-Status: UNSURE ( 9.12 ) X-CRM114-Notice: Please train this message. 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 This series are based on 5.12-rc2 and provide 3 patch to set gamma lut with cmdq Yongqiang Niu (3): drm/mediatek: Separate aal module arm64: dts: mt8183: refine aal compatible name drm/mediatek: gamma set with cmdq arch/arm64/boot/dts/mediatek/mt8183.dtsi | 3 +- drivers/gpu/drm/mediatek/Makefile | 3 +- drivers/gpu/drm/mediatek/mtk_disp_aal.c | 167 ++++++++++++++++++++++++++++ drivers/gpu/drm/mediatek/mtk_disp_drv.h | 14 ++- drivers/gpu/drm/mediatek/mtk_disp_gamma.c | 11 +- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 18 +-- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 39 +------ drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 8 +- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 8 +- drivers/gpu/drm/mediatek/mtk_drm_drv.h | 1 + 10 files changed, 213 insertions(+), 59 deletions(-) create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_aal.c