• Yintian Tao's avatar
    drm/amd/powerplay: enable pp one vf mode for vega10 · c9ffa427
    Yintian Tao authored
    Originally, due to the restriction from PSP and SMU, VF has
    to send message to hypervisor driver to handle powerplay
    change which is complicated and redundant. Currently, SMU
    and PSP can support VF to directly handle powerplay
    change by itself. Therefore, the old code about the handshake
    between VF and PF to handle powerplay will be removed and VF
    will use new the registers below to handshake with SMU.
    mmMP1_SMN_C2PMSG_101: register to handle SMU message
    mmMP1_SMN_C2PMSG_102: register to handle SMU parameter
    mmMP1_SMN_C2PMSG_103: register to handle SMU response
    
    v2: remove module parameter pp_one_vf
    v3: fix the parens
    v4: forbid vf to change smu feature
    v5: use hwmon_attributes_visible to skip sepicified hwmon atrribute
    v6: change skip condition at vega10_copy_table_to_smc
    Signed-off-by: default avatarYintian Tao <yttao@amd.com>
    Acked-by: default avatarEvan Quan <evan.quan@amd.com>
    Reviewed-by: default avatarKenneth Feng <kenneth.feng@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    c9ffa427
amdgpu_pm.c 97.2 KB