• Nicholas Kazlauskas's avatar
    drm/amd/display: Hook up the DMUB service in DM · 743b9786
    Nicholas Kazlauskas authored
    [Why]
    We need DMCUB on Renoir to support DMCU and PHY initialization.
    The DMUB service provides a mechanism to load the DMCUB.
    
    [How]
    Include the DMUB service in amdgpu_dm.
    
    Frontdoor loading of the DMCUB firmware needs to happen via PSP. To
    pass the firmware to PSP we need to hand it off to the firmware list
    in the base driver during software initialization.
    
    Most of the DMUB service can technically be initialized at this point
    in time, but we don't want to be allocating framebuffer memory for
    hardware that doesn't support the DMCUB and in order to check that we
    need to be able to read registers - something DM helpers aren't setup
    to do in software initialization.
    
    So everything but the service creation itself will get deferred to
    hardware initialization.
    Signed-off-by: default avatarNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
    Reviewed-by: default avatarHersen Wu <hersenxs.wu@amd.com>
    Acked-by: default avatarHarry Wentland <harry.wentland@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    743b9786
amdgpu_dm.h 11.8 KB