diff options
author | Wenjing Liu <wenjing.liu@amd.com> | 2024-02-22 00:55:04 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2024-03-20 20:12:58 +0300 |
commit | 86e9523fb0efce27095d3086473c739cce720d01 (patch) | |
tree | a9208bd995e04226a8682d52c5497283083f728f /drivers/gpu/drm/amd/display/dc/core/dc.c | |
parent | 4f5b8d78ca43fcc695ba16c83ebfabbfe09506d6 (diff) | |
download | linux-86e9523fb0efce27095d3086473c739cce720d01.tar.xz |
drm/amd/display: Update odm when ODM combine is changed on an otg master pipe with no plane
[WHY]
When committing an update with ODM combine change when the plane is
removing or already removed, we fail to detect odm change in pipe
update flags. This has caused mismatch between new dc state and the
actual hardware state, because we missed odm programming.
[HOW]
- Detect odm change even for otg master pipe without a plane.
- Update odm config before calling program pipes for pipe with planes.
The commit also updates blank pattern programming when odm is changed
without plane. This is because number of OPP is changed when ODM
combine is changed. Blank pattern is per OPP so we will need to
reprogram OPP based on the new pipe topology.
Cc: Mario Limonciello <mario.limonciello@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Reviewed-by: Dillon Varone <dillon.varone@amd.com>
Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/core/dc.c')
0 files changed, 0 insertions, 0 deletions