Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4908973pxu; Thu, 10 Dec 2020 08:16:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJw5XrIRm4Ht7jQPlcElV9SKqbyusAkDBAjsyvqESebUWeb9YVqJN4e8QsxR1VkJADuMndW8 X-Received: by 2002:a17:906:3153:: with SMTP id e19mr7394209eje.17.1607617014199; Thu, 10 Dec 2020 08:16:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607617014; cv=none; d=google.com; s=arc-20160816; b=YVulPJs5PvMeKjTUN+XD7bV6FpoMaBvGEYC2rUFSf0YNTKuxnFQXpx/SmYm9TlisL6 AkJUgzK1QomX1JtNASG20hG146SOo5ei8ggEKTlMcdo4YvpM80wzUbugmvgE8+1eRC2G T13OyBeWbsaUDK+2je9CT9cD+xzO8EXXr9ucbyrvM9DxH2It8t6HoIHMCrLmdwA3E90g 2MFKGfG87OneA4BXDiLF9IGAdXwu7I0ySBpOLZc7fOckJxJhzYZq86K8BPI4LJF+Lr6r KdzvkoExZxQXmRSx8b4tr50pPajFSkkWqU66kjiDwB0uEUeT5LDArEjYobmQ7CyyRgbT kubw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=xtzWbYx1ojBt3MgCLwdsHraozWhexneA9B+n6+ZbQ2s=; b=SNu/5UPwzlykNU89K//qveb2SLsfpwAl7gfsrLBmo4qtzz8Qoix8shYf54mJy7jdF4 TcMrcKLMAwXycH4ot0X9en+i9MhNzGcRIWiFHmzvjJkcWBBHEKrdlN7JbJe8NhQgb8Ur K4gVkGvRGccKCf1Teu9dnylfj1qH+VVA4Ej8urLeS+D+emeQ3tUZVEdZgkc62hlVcRWr yxcHox0E5Rhn9I0mbZojETXy1w9j2ER/fsdLJJocdGkf5rvLVYnPTgwNPO5eqjFG9R4B Og9qjSN8hLUvZ/WF50NPdiNHxWiCHV7mDtQkAV+63Z71R/HvIe1MjtpRIcRvZH/5DA5k oeTQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c26si2991303edx.406.2020.12.10.08.16.28; Thu, 10 Dec 2020 08:16:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727848AbgLJQLw (ORCPT + 99 others); Thu, 10 Dec 2020 11:11:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:38730 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389255AbgLJQLj (ORCPT ); Thu, 10 Dec 2020 11:11:39 -0500 From: Chun-Kuang Hu Authentication-Results: mail.kernel.org; dkim=permerror (bad message/signature format) To: Philipp Zabel , David Airlie , Daniel Vetter Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Chun-Kuang Hu Subject: [PATCH v2 00/12] Decouple Mediatek DRM sub driver Date: Fri, 11 Dec 2020 00:10:38 +0800 Message-Id: <20201210161050.8460-1-chunkuang.hu@kernel.org> X-Mailer: git-send-email 2.17.1 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mtk ccorr is controlled by DRM and MDP [1]. In order to share mtk_ccorr driver for DRM and MDP, decouple Mediatek DRM sub driver which include mtk_ccorr, so MDP could use this decoupled mtk_ccorr. Changes in v2: 1. Fix iommu larb problem. 2. Based on mediatek-drm-next-5.11-2 [2]. [1] https://patchwork.kernel.org/patch/11140751/ [2] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next-5.11-2 CK Hu (10): drm/mediatek: Separate getting larb device to a function drm/mediatek: Move clk info from struct mtk_ddp_comp to sub driver private data drm/mediatek: Move regs info from struct mtk_ddp_comp to sub driver private data drm/mediatek: Remove irq in struct mtk_ddp_comp drm/mediatek: Use struct cmdq_client_reg to gather cmdq variable drm/mediatek: Move cmdq_reg info from struct mtk_ddp_comp to sub driver private data drm/mediatek: Change sub driver interface from mtk_ddp_comp to device drm/mediatek: Register vblank callback function drm/mediatek: DRM driver directly refer to sub driver's function drm/mediatek: Move mtk_ddp_comp_init() from sub driver to DRM driver Chun-Kuang Hu (2): drm/mediatek: Get CMDQ client register for all ddp component drm/mediatek: Use correct device pointer to get CMDQ client register drivers/gpu/drm/mediatek/mtk_disp_color.c | 89 ++-- drivers/gpu/drm/mediatek/mtk_disp_drv.h | 69 ++++ drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 217 +++++----- drivers/gpu/drm/mediatek/mtk_disp_rdma.c | 169 ++++---- drivers/gpu/drm/mediatek/mtk_dpi.c | 44 +- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 75 ++-- drivers/gpu/drm/mediatek/mtk_drm_crtc.h | 1 - drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c | 429 ++++++++++++-------- drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.h | 100 +++-- drivers/gpu/drm/mediatek/mtk_drm_drv.c | 30 +- drivers/gpu/drm/mediatek/mtk_drm_drv.h | 2 +- drivers/gpu/drm/mediatek/mtk_dsi.c | 47 +-- 12 files changed, 676 insertions(+), 596 deletions(-) create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_drv.h -- 2.17.1