mbox series

[00/14] Add Mali-G31 GPU support for RZ/G2L SoC

Message ID 20231212124035.151367-1-biju.das.jz@bp.renesas.com (mailing list archive)
Headers show
Series Add Mali-G31 GPU support for RZ/G2L SoC | expand

Message

Biju Das Dec. 12, 2023, 12:40 p.m. UTC
RZ/G2L SoC embeds Mali-G31 bifrost GPU.
This patch series aims to add support for the same.

Please don't apply patch#7 to patch#14as it is added for testing purpose.

It is tested with 5.10.y-cip + out of tree patch for (DU) + [1]

[1] https://renesas.info/wiki/RZ-G/Panfrost_for_RZG2L

Tested the kmscube application.

test logs:-
root@smarc-rzg2lc:/# kmscube
Using display 0xaaaafc431020 with EGL version 1.4
===================================
EGL information:
  version: "1.4"
  vendor: "Mesa Project"
  client extensions: "EGL_EXT_client_extensions EGL_EXT_device_base EGL_EXT_device_enumeration EGL_EXT_device_query EGL_EXT_platform_base EGL_KHR_client_get_all_proc_addresses EGL_KHR_debug EGL_EXT_platform_device EGL_EXT_platform_wayland EGL_KHR_platform_wayland EGL_MESA_platform_gbm EGL_KHR_platform_gbm EGL_MESA_platform_surfaceless"
  display extensions: "EGL_ANDROID_blob_cache EGL_EXT_buffer_age EGL_EXT_image_dma_buf_import EGL_EXT_image_dma_buf_import_modifiers EGL_KHR_cl_event2 EGL_KHR_config_attribs EGL_KHR_create_context EGL_KHR_create_context_no_error EGL_KHR_fence_sync EGL_KHR_get_all_proc_addresses EGL_KHR_gl_colorspace EGL_KHR_gl_renderbuffer_image EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_3D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_no_config_context EGL_KHR_partial_update EGL_KHR_reusable_sync EGL_KHR_surfaceless_context EGL_EXT_pixel_format_float EGL_KHR_wait_sync EGL_MESA_configless_context EGL_MESA_drm_image EGL_MESA_image_dma_buf_export EGL_MESA_query_driver EGL_WL_bind_wayland_display "
===================================
OpenGL ES 2.x information:
  version: "OpenGL ES 3.1 Mesa 21.3.0"
  shading language version: "OpenGL ES GLSL ES 3.10"
  vendor: "Panfrost"
  renderer: "Mali-G31 (Panfrost)"


root@smarc-rzg2lc:/# cat /proc/interrupts | grep panfrost
 87:       1655          0     GICv3 186 Level     panfrost-job
 88:          2          0     GICv3 187 Level     panfrost-mmu
 89:         18          0     GICv3 185 Level     panfrost-gpu

root@smarc-rzg2lc:/# cat /sys/class/devfreq/11840000.gpu/trans_stat
     From  :   To
           :  50000000  62500000 100000000 125000000 200000000 250000000 400000000 500000000   time(ms)
*  50000000:         0       119         0         0         0         0         0         1     19848
   62500000:       119         0         0         0         0         0         0         0      7236
  100000000:         0         0         0         0         0         0         0         1       132
  125000000:         0         0         0         0         0         0         0         0         0
  200000000:         0         0         0         0         0         0         0         0         0
  250000000:         1         0         0         0         0         0         0         0       780
  400000000:         0         0         0         0         0         1         0         0        56
  500000000:         1         0         1         0         0         0         1         0       176
Total transition : 245

Biju Das (10):
  dt-bindings: gpu: mali-bifrost: Document RZ/G2L support
  arm64: dts: renesas: r9a07g044: Add Mali-G31 GPU node
  arm64: dts: renesas: rzg2l-smarc-som: Add vdd core regulator
  arm64: dts: renesas: rzg2lc-smarc-som: Add vdd core regulator
  arm64: dts: renesas: r9a07g044: [HACK DO NOT APPLY] Add DU node
  arm64: dts: renesas: r9a07g054: [HACK DO NOT APPLY] Add DU node
  arm64: dts: renesas: rzg2l-smarc: [HACK DO NOT APPLY] Enable DU and
    link with DSI
  arm64: dts: renesas: rzg2lc-smarc: [HACK DO NOT APPLY] Enable DU and
    link with DSI
  drm: [HACK DO NOT APPLY] Add RZ/G2L DU Support
  defconfig: [HACK DO NOT APPLY] Enable display on RZ/G2L SMARC EVK.

Daniel Vetter (1):
  drm: [HACK DO NOT APPLY] Allow const struct drm_driver

Lad Prabhakar (2):
  dt-bindings: gpu: mali-bifrost: Document RZ/V2L SoC
  arm64: dts: renesas: r9a07g054: Fillup the GPU node

Philipp Zabel (1):
  drm: [HACK DO NOT APPLY] add drmm_encoder_alloc()

 .../bindings/gpu/arm,mali-bifrost.yaml        |  48 +-
 arch/arm64/boot/dts/renesas/r9a07g044.dtsi    |  79 ++++
 arch/arm64/boot/dts/renesas/r9a07g054.dtsi    |  77 +++-
 .../boot/dts/renesas/rzg2l-smarc-som.dtsi     |  13 +
 arch/arm64/boot/dts/renesas/rzg2l-smarc.dtsi  |  21 +
 .../boot/dts/renesas/rzg2lc-smarc-som.dtsi    |  13 +
 arch/arm64/boot/dts/renesas/rzg2lc-smarc.dtsi |  21 +
 arch/arm64/configs/defconfig                  |   1 +
 drivers/gpu/drm/Kconfig                       |   2 +
 drivers/gpu/drm/Makefile                      |   1 +
 drivers/gpu/drm/drm_drv.c                     |  17 +-
 drivers/gpu/drm/drm_encoder.c                 | 109 ++++-
 drivers/gpu/drm/rz-du/Kconfig                 |  22 +
 drivers/gpu/drm/rz-du/Makefile                |   8 +
 drivers/gpu/drm/rz-du/rzg2l_du_crtc.c         | 432 ++++++++++++++++++
 drivers/gpu/drm/rz-du/rzg2l_du_crtc.h         |  91 ++++
 drivers/gpu/drm/rz-du/rzg2l_du_drv.c          | 187 ++++++++
 drivers/gpu/drm/rz-du/rzg2l_du_drv.h          |  85 ++++
 drivers/gpu/drm/rz-du/rzg2l_du_encoder.c      | 121 +++++
 drivers/gpu/drm/rz-du/rzg2l_du_encoder.h      |  33 ++
 drivers/gpu/drm/rz-du/rzg2l_du_kms.c          | 389 ++++++++++++++++
 drivers/gpu/drm/rz-du/rzg2l_du_kms.h          |  43 ++
 drivers/gpu/drm/rz-du/rzg2l_du_regs.h         |  67 +++
 drivers/gpu/drm/rz-du/rzg2l_du_vsp.c          | 428 +++++++++++++++++
 drivers/gpu/drm/rz-du/rzg2l_du_vsp.h          |  96 ++++
 include/drm/drm_device.h                      |   4 +
 include/drm/drm_drv.h                         |   5 +-
 include/drm/drm_encoder.h                     |  30 ++
 28 files changed, 2409 insertions(+), 34 deletions(-)
 create mode 100644 drivers/gpu/drm/rz-du/Kconfig
 create mode 100644 drivers/gpu/drm/rz-du/Makefile
 create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_crtc.c
 create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_crtc.h
 create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_drv.c
 create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_drv.h
 create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_encoder.c
 create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_encoder.h
 create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_kms.c
 create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_kms.h
 create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_regs.h
 create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_vsp.c
 create mode 100644 drivers/gpu/drm/rz-du/rzg2l_du_vsp.h

Comments

Pavel Machek Dec. 13, 2023, 8:20 a.m. UTC | #1
Hi!

> RZ/G2L SoC embeds Mali-G31 bifrost GPU.
> This patch series aims to add support for the same.
> 
> Please don't apply patch#7 to patch#14as it is added for testing purpose.
> 
> It is tested with 5.10.y-cip + out of tree patch for (DU) + [1]

I reviewed series, and the parts you want applied are really quite
simple. I can apply them if there are no other comments (and provided
tests pass).

Best regards,
          	       	    	       	     	     	       	    Pavel
Nobuhiro Iwamatsu Dec. 14, 2023, 3:19 a.m. UTC | #2
Hi,

> -----Original Message-----
> From: Pavel Machek <pavel@denx.de>
> Sent: Wednesday, December 13, 2023 5:20 PM
> To: Biju Das <biju.das.jz@bp.renesas.com>
> Cc: cip-dev@lists.cip-project.org; iwamatsu nobuhiro(岩松 信洋 ○DITC□
> DIT○OST) <nobuhiro1.iwamatsu@toshiba.co.jp>; Pavel Machek
> <pavel@denx.de>; Lad Prabhakar
> <prabhakar.mahadev-lad.rj@bp.renesas.com>
> Subject: Re: [PATCH 00/14] Add Mali-G31 GPU support for RZ/G2L SoC
> 
> Hi!
> 
> > RZ/G2L SoC embeds Mali-G31 bifrost GPU.
> > This patch series aims to add support for the same.
> >
> > Please don't apply patch#7 to patch#14as it is added for testing purpose.
> >
> > It is tested with 5.10.y-cip + out of tree patch for (DU) + [1]
> 
> I reviewed series, and the parts you want applied are really quite simple. I can
> apply them if there are no other comments (and provided tests pass).
> 

I reviewed this series. There doesn't seem to be any comments.
I will apply and push.

Best regards,
  Nobuhiro
Pavel Machek Dec. 14, 2023, 9:52 a.m. UTC | #3
Hi!

> > > RZ/G2L SoC embeds Mali-G31 bifrost GPU.
> > > This patch series aims to add support for the same.
> > >
> > > Please don't apply patch#7 to patch#14as it is added for testing purpose.
> > >
> > > It is tested with 5.10.y-cip + out of tree patch for (DU) + [1]
> > 
> > I reviewed series, and the parts you want applied are really quite simple. I can
> > apply them if there are no other comments (and provided tests pass).
> > 
> 
> I reviewed this series. There doesn't seem to be any comments.
> I will apply and push.

In simple testing including the "do not apply" revealed no problems,
https://gitlab.com/cip-project/cip-kernel/linux-cip/tree/ci/pavel/linux-test,
and patches look ok to me.

Reviewed-by: Pavel Machek <pavel@denx.de>

Best regards,
								Pavel