]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: Enable colorspace property for MST connectors
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 8 May 2024 21:45:35 +0000 (16:45 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 May 2024 22:14:14 +0000 (18:14 -0400)
MST colorspace property support was disabled due to a series of warnings
that came up when the device was plugged in since the properties weren't
made at device creation. Create the properties in advance instead.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Fixes: 69a959610229 ("drm/amd/display: Temporary Disable MST DP Colorspace Property").
Reported-and-tested-by: Tyler Schneider <tyler.schneider@amd.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3353
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c

index 0b03e659fdf3f28dce4096e4eba853af63b8593d..8b0e997ebdaeb88874a56c1e83f46b75417519f4 100644 (file)
@@ -613,6 +613,9 @@ dm_dp_add_mst_connector(struct drm_dp_mst_topology_mgr *mgr,
                &connector->base,
                dev->mode_config.tile_property,
                0);
+       connector->colorspace_property = master->base.colorspace_property;
+       if (connector->colorspace_property)
+               drm_connector_attach_colorspace_property(connector);
 
        drm_connector_set_path_property(connector, pathprop);