• Wenjing Liu's avatar
    drm/amd/display: set odm_combine_policy based on context in dcn32 resource · 2103370a
    Wenjing Liu authored
    [why]
    When populating dml pipes, odm combine policy should be assigned based
    on the pipe topology of the context passed in. DML pipes could be
    repopulated multiple times during single validate bandwidth attempt. We
    need to make sure that whenever we repopulate the dml pipes it is always
    aligned with the updated context. There is a case where DML pipes get
    repopulated during FPO optimization after ODM combine policy is changed.
    Since in the current code we reinitlaize ODM combine policy, even though
    the current context has ODM combine enabled, we overwrite it despite the
    pipes are already split. This causes DML to think that MPC combine is
    used so we mistakenly enable MPC combine because we apply pipe split
    with ODM combine policy reset. This issue doesn't impact non windowed
    MPO with ODM case because the legacy policy has restricted use cases. We
    don't encounter the case where both ODM and FPO optimizations are
    enabled together. So we decide to leave it as is because it is about to
    be replaced anyway.
    
    Cc: stable@vger.kernel.org # 6.6+
    Reviewed-by: default avatarChaitanya Dhere <chaitanya.dhere@amd.com>
    Reviewed-by: default avatarAlvin Lee <alvin.lee2@amd.com>
    Acked-by: default avatarHamza Mahfooz <hamza.mahfooz@amd.com>
    Signed-off-by: default avatarWenjing Liu <wenjing.liu@amd.com>
    Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
    2103370a
resource.h 22.3 KB