• hersen wu's avatar
    drm/amd/powerplay: rv dal-pplib interface refactor powerplay part · 9ed9203c
    hersen wu authored
    [WHY] clarify dal input parameters to pplib interface, remove
    un-used parameters. dal knows exactly which parameters needed
    and their effects at pplib and smu sides.
    
    current dal sequence for dcn1_update_clock to pplib:
    
    1.smu10_display_clock_voltage_request for dcefclk
    2.smu10_display_clock_voltage_request for fclk
    3.phm_store_dal_configuration_data {
      set_min_deep_sleep_dcfclk
      set_active_display_count
      store_cc6_data --- this data never be referenced
    
    new sequence will be:
    
    1. set_display_count  --- need add new pplib interface
    2. set_min_deep_sleep_dcfclk -- new pplib interface
    3. set_hard_min_dcfclk_by_freq
    4. set_hard_min_fclk_by_freq
    
    after this code refactor, smu10_display_clock_voltage_request,
    phm_store_dal_configuration_data will not be needed for rv.
    
    [HOW] step 1: add new functions at pplib interface
          step 2: add new functions at amdgpu dm and dc
    Signed-off-by: default avatarhersen wu <hersenxs.wu@amd.com>
    Reviewed-by: default avatarRex Zhu <Rex.Zhu@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    9ed9203c
hwmgr.h 27.9 KB