[PATCH 00/11] Add DMCUB support for Renoir

Nicholas Kazlauskas nicholas.kazlauskas at amd.com
Mon Oct 28 14:08:26 UTC 2019


The DMCUB is the Display MicroController Unit B, a display microcontroller
that is required for Renoir to support realtime display features
(ABM, PSR) and display hardware initialization.

This patch series adds the required firmware loading support in amdgpu
and the DMUB service support for amdgpu_dm and dc to interface with the
DMCUB.

The term DMCUB will generally refer to the actual microcontroller while
DMUB will generally refer to the software interface.

Cc: Harry Wentland <harry.wentland at amd.com>

Nicholas Kazlauskas (9):
  drm/amdgpu: Add ucode support for DMCUB
  drm/amdgpu: Add PSP loading support for DMCUB ucode
  drm/amd/display: Drop DMCUB from DCN21 resources
  drm/amd/display: Add the DMUB service
  drm/amd/display: Hook up the DMUB service in DM
  drm/amdgpu: Add DMCUB to firmware query interface
  drm/amd/display: Add DMUB support to DC
  drm/amd/display: Register DMUB service with DC
  drm/amd/display: Drop CONFIG_DRM_AMD_DC_DMUB guards

Yongqiang Sun (2):
  drm/amd/display: Change dmcu init sequence for dmcub loading dmcu FW.
  drm/amd/display: Add PSP FW version mask.

 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c       |  12 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c       |   3 +
 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c     |  11 +-
 drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.h     |   9 +
 drivers/gpu/drm/amd/display/Makefile          |   4 +-
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 261 +++++++++
 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h |  46 ++
 drivers/gpu/drm/amd/display/dc/Makefile       |   5 +-
 .../drm/amd/display/dc/bios/command_table2.c  |  80 +++
 drivers/gpu/drm/amd/display/dc/core/dc.c      |   4 +
 drivers/gpu/drm/amd/display/dc/dc.h           |   7 +
 drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c  | 119 +++++
 drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h  |  60 +++
 drivers/gpu/drm/amd/display/dc/dc_helper.c    | 257 +++++++++
 drivers/gpu/drm/amd/display/dc/dc_types.h     |   3 +
 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.c |  79 +++
 drivers/gpu/drm/amd/display/dc/dce/dce_dmcu.h |  13 +
 .../drm/amd/display/dc/dcn10/dcn10_dpp_cm.c   |   5 +
 .../amd/display/dc/dcn10/dcn10_hw_sequencer.c |   2 +-
 .../gpu/drm/amd/display/dc/dcn10/dcn10_optc.c |   5 +
 .../gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c  |   8 +
 .../drm/amd/display/dc/dcn21/dcn21_resource.c |  36 +-
 drivers/gpu/drm/amd/display/dc/dm_services.h  |  10 +
 drivers/gpu/drm/amd/display/dc/inc/hw/dmcu.h  |   2 +
 .../gpu/drm/amd/display/dc/inc/reg_helper.h   |  19 +
 drivers/gpu/drm/amd/display/dc/os_types.h     |   1 +
 .../gpu/drm/amd/display/dmub/inc/dmub_cmd.h   | 256 +++++++++
 .../gpu/drm/amd/display/dmub/inc/dmub_rb.h    | 129 +++++
 .../gpu/drm/amd/display/dmub/inc/dmub_srv.h   | 505 ++++++++++++++++++
 .../amd/display/dmub/inc/dmub_trace_buffer.h  |  51 ++
 .../gpu/drm/amd/display/dmub/inc/dmub_types.h |  64 +++
 drivers/gpu/drm/amd/display/dmub/src/Makefile |  27 +
 .../gpu/drm/amd/display/dmub/src/dmub_dcn20.c | 137 +++++
 .../gpu/drm/amd/display/dmub/src/dmub_dcn20.h |  62 +++
 .../gpu/drm/amd/display/dmub/src/dmub_dcn21.c | 126 +++++
 .../gpu/drm/amd/display/dmub/src/dmub_dcn21.h |  45 ++
 .../gpu/drm/amd/display/dmub/src/dmub_reg.c   | 109 ++++
 .../gpu/drm/amd/display/dmub/src/dmub_reg.h   | 120 +++++
 .../gpu/drm/amd/display/dmub/src/dmub_srv.c   | 415 ++++++++++++++
 include/uapi/drm/amdgpu_drm.h                 |   3 +
 40 files changed, 3072 insertions(+), 38 deletions(-)
 create mode 100644 drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
 create mode 100644 drivers/gpu/drm/amd/display/dc/dc_dmub_srv.h
 create mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
 create mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_rb.h
 create mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_srv.h
 create mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_trace_buffer.h
 create mode 100644 drivers/gpu/drm/amd/display/dmub/inc/dmub_types.h
 create mode 100644 drivers/gpu/drm/amd/display/dmub/src/Makefile
 create mode 100644 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn20.c
 create mode 100644 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn20.h
 create mode 100644 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.c
 create mode 100644 drivers/gpu/drm/amd/display/dmub/src/dmub_dcn21.h
 create mode 100644 drivers/gpu/drm/amd/display/dmub/src/dmub_reg.c
 create mode 100644 drivers/gpu/drm/amd/display/dmub/src/dmub_reg.h
 create mode 100644 drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c

-- 
2.20.1



More information about the amd-gfx mailing list