Support mclk switching when monitors are in sync

Submitted by Alex Deucher on Aug. 22, 2019, 3:36 p.m.

Details

Reviewer None
Submitted Aug. 22, 2019, 3:36 p.m.
Last Updated Aug. 22, 2019, 7:31 p.m.
Revision 2

Cover Letter(s)

Revision 1
      This patch set enables mclk switching with multiple monitors when all
monitors are sync.  Normally mclk switching is not available with
multiple monitors because the vblank timing does not line up.  However,
if the timing is identical, the display driver can sync up the displays
in some cases.  Check for these cases and allow mclk switch when
possible.

Alex Deucher (3):
  drm/amdgpu/powerplay/smu7: enable mclk switching if monitors are
    synced
  drm/amdgpu/powerplay/vega10: enable mclk switching if monitors are
    synced
  drm/amd/display: update bw_calcs to take pipe sync into account (v2)

 .../gpu/drm/amd/display/dc/calcs/dce_calcs.c  | 49 ++++++++++++++++++-
 .../gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c  |  7 +--
 .../drm/amd/powerplay/hwmgr/vega10_hwmgr.c    |  3 +-
 3 files changed, 53 insertions(+), 6 deletions(-)
    
Revision 2
      This patch set enables mclk switching with multiple monitors when all
monitors are sync.  Normally mclk switching is not available with
multiple monitors because the vblank timing does not line up.  However,
if the timing is identical, the display driver can sync up the displays
in some cases.  Check for these cases and allow mclk switch when
possible.

Alex Deucher (4):
  drm/amdgpu/powerplay/smu7: enable mclk switching if monitors are
    synced
  drm/amdgpu/powerplay/vega10: enable mclk switching if monitors are
    synced
  drm/amd/display: update bw_calcs to take pipe sync into account (v3)
  drm/amdgpu/display: add flag for multi-display mclk switching

 .../gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c |  3 ++
 .../gpu/drm/amd/display/dc/calcs/dce_calcs.c  | 33 +++++++++++++++++--
 drivers/gpu/drm/amd/display/dc/dc.h           |  2 +-
 drivers/gpu/drm/amd/include/amd_shared.h      |  1 +
 .../gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c  |  7 ++--
 .../drm/amd/powerplay/hwmgr/vega10_hwmgr.c    |  3 +-
 6 files changed, 42 insertions(+), 7 deletions(-)
    

Revisions