mbox series

[00/11] Decouple Mediatek DRM sub driver

Message ID 20201103003422.17838-1-chunkuang.hu@kernel.org (mailing list archive)
Headers show
Series Decouple Mediatek DRM sub driver | expand

Message

Chun-Kuang Hu Nov. 3, 2020, 12:34 a.m. UTC
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.

[1] https://patchwork.kernel.org/patch/11140751/

CK Hu (9):
  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   |  86 ++---
 drivers/gpu/drm/mediatek/mtk_disp_drv.h     |  69 ++++
 drivers/gpu/drm/mediatek/mtk_disp_ovl.c     | 215 ++++++-----
 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 | 389 ++++++++++++--------
 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, 658 insertions(+), 569 deletions(-)
 create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_drv.h

Comments

Chun-Kuang Hu Nov. 15, 2020, 11:33 p.m. UTC | #1
Chun-Kuang Hu <chunkuang.hu@kernel.org> 於 2020年11月3日 週二 上午8:34寫道:
>
> 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.

Applied the whole series into mediatek-drm-next [1].

[1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next

Regards,
Chun-Kuang.

>
> [1] https://patchwork.kernel.org/patch/11140751/
>
> CK Hu (9):
>   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   |  86 ++---
>  drivers/gpu/drm/mediatek/mtk_disp_drv.h     |  69 ++++
>  drivers/gpu/drm/mediatek/mtk_disp_ovl.c     | 215 ++++++-----
>  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 | 389 ++++++++++++--------
>  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, 658 insertions(+), 569 deletions(-)
>  create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_drv.h
>
> --
> 2.17.1
>
Chun-Kuang Hu Nov. 16, 2020, 4:18 p.m. UTC | #2
Chun-Kuang Hu <chunkuang.hu@kernel.org> 於 2020年11月16日 週一 上午7:33寫道:
>
> Chun-Kuang Hu <chunkuang.hu@kernel.org> 於 2020年11月3日 週二 上午8:34寫道:
> >
> > 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.
>
> Applied the whole series into mediatek-drm-next [1].
>
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next
>

Sorry, because of iommu larb problem, I drop this series from mediatek-drm-next.

Regards,
Chun-Kuang.

> Regards,
> Chun-Kuang.
>
> >
> > [1] https://patchwork.kernel.org/patch/11140751/
> >
> > CK Hu (9):
> >   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   |  86 ++---
> >  drivers/gpu/drm/mediatek/mtk_disp_drv.h     |  69 ++++
> >  drivers/gpu/drm/mediatek/mtk_disp_ovl.c     | 215 ++++++-----
> >  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 | 389 ++++++++++++--------
> >  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, 658 insertions(+), 569 deletions(-)
> >  create mode 100644 drivers/gpu/drm/mediatek/mtk_disp_drv.h
> >
> > --
> > 2.17.1
> >