Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9472858pxu; Mon, 28 Dec 2020 17:48:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZVCFvb2xh9P4XBvFV8gJ1ON5V+Oma/VVIvf0Ht7dnfghHnBahy5AoZLf4YdiK6k44XaZl X-Received: by 2002:aa7:db01:: with SMTP id t1mr44209441eds.185.1609206536536; Mon, 28 Dec 2020 17:48:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609206536; cv=none; d=google.com; s=arc-20160816; b=EGCcLRFzFM5Alw3ymacN5ztEr4IGZmRY4k10EE9N1v/x9G37FEw8SfMM6zlrk2Y1M9 4G1xAOPF6rdHgINejoefYPHi5XwNeWAqL1ykgpmd2QV2gEux9LkYw6kaLP+XKV8JVYck uWWzHYsMKH28WWmIxK5tdRYl+qXnDQkBkD8mjSRf/8XV/gPL/SESbiYXqkEcpbcr8nyL vKke8ZwFHw4aY9+WuK2+2A+4GhoI2r1q5pD/Nkx1a9Feud1c2vfwcGkJpQfF+IwEtdJL J9MV9ZaImqfqfd8lvW6xTmpW38ZehYkdk2zAuoq1R8BzKFFQhO5FgdcSsNrFdRj/Ff4h IuBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=FTRQIUI4wZYCiMN+JPvkkHnr2LiCOKTkDefTp6QXKWk=; b=R1puJbGCEaVZt8+GXDkEdxfM3uskVtDM7M50hKHV+FSn8zscRi0e4jx82qvYVTFyZb 6NotTohxXJ5ObPjT6+UNoxSHfB7Rqa5FYGmvXCQAROIApXb33hOnI26l5JnasyNIbhq+ JdOnsje+IKOa8GjIbBzt9j+8/V5Kuv9s1p/PBzKnR+mcsBSD/P8oQ8P2V48R7S88F6gs //HmFAwWzOSmNmVP5hdGj5hUedOGkQVPbFpnHIJSs9Tnaiobz5hK41ErLAva/lLI3Hwe gU/iQck50yIkE02Jjx5GCVWaCFbk2zzCEQvjXZPVXSUpmrETM3gjfxZrySPbWz7RK310 Zg0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MHDXi03f; 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 y26si18860582ejb.149.2020.12.28.17.48.33; Mon, 28 Dec 2020 17:48:56 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MHDXi03f; 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 S1728830AbgL1Xcz (ORCPT + 99 others); Mon, 28 Dec 2020 18:32:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:36800 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727731AbgL1Xcy (ORCPT ); Mon, 28 Dec 2020 18:32:54 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 457C2224D2 for ; Mon, 28 Dec 2020 23:32:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1609198333; bh=4zuOP87T+tBs/U4EXSadvydWrwt6Bdq/pnBuDyNsp3I=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=MHDXi03f6vV1G6r6J8eFCqOIkk4cqccxHFFVwin1a+8+kZzWn+BEsSAcrFk3u2n/d IV61cDtg8SfC13nFvgcrDj5TQvSvEgBeiooxTnLLWzv6J0IRxUrMOd3djHju93YkuF yGwuP3iSRjDdcgwB9OpA9MwRPi6zp4gssF+xUXElj13YzfV2fxqYYKaG5Ut3Pqw+PM iIw0zohsbxUniZC76Go+v0RypNxVa5uyZobQ9pvQuKNpqbzA3Tlw1or6YfrL1EdW2D H1OgXrkfbC3NLj4nOfZ8qSDCfBDqlzhwkzgI/tq6luEysWVdltiITD4FafGRmMLgud uMi1kAUMFexQw== Received: by mail-ej1-f48.google.com with SMTP id g20so16170380ejb.1 for ; Mon, 28 Dec 2020 15:32:13 -0800 (PST) X-Gm-Message-State: AOAM533+Q0MKad6l7elxxeQvUYJ267YP4ns5dOYcpflp8sNqC4rkM4CT sor0JsTuiwckuRLgemvgxdeRUDKQPWF5ayeZWw== X-Received: by 2002:a17:906:fb1a:: with SMTP id lz26mr43221179ejb.194.1609198331821; Mon, 28 Dec 2020 15:32:11 -0800 (PST) MIME-Version: 1.0 References: <20201210161050.8460-1-chunkuang.hu@kernel.org> In-Reply-To: <20201210161050.8460-1-chunkuang.hu@kernel.org> From: Chun-Kuang Hu Date: Tue, 29 Dec 2020 07:32:00 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 00/12] Decouple Mediatek DRM sub driver To: Chun-Kuang Hu Cc: Philipp Zabel , David Airlie , Daniel Vetter , linux-kernel , DRI Development , "moderated list:ARM/Mediatek SoC support" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Chun-Kuang Hu =E6=96=BC 2020=E5=B9=B412=E6=9C=881= 1=E6=97=A5 =E9=80=B1=E4=BA=94 =E4=B8=8A=E5=8D=8812:10=E5=AF=AB=E9=81=93=EF= =BC=9A > > 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. For this series, applied to mediatek-drm-next [1]. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/= log/?h=3Dmediatek-drm-next Regards, Chun-Kuang. > > 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.gi= t/log/?h=3Dmediatek-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 >