Skip to content

Commit d0263be

Browse files
luozhijiaopsiff
authored andcommitted
drm/amdgpu: do not allow Oland GPU set scaling mode when native mode is 4K
Black screen when Oland GPU set scaling mode with Full/Full aspect/Center on 4K monitor, do not allow Oland GPU set scaling mode when native mode is 4K. Signed-off-by: hongao <hongao@uniontech.com> Signed-off-by: luozhijia <luozhijia@uniontech.com> Signed-off-by: WangYuli <wangyuli@uniontech.com>
1 parent 8fbae40 commit d0263be

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -614,6 +614,16 @@ static int amdgpu_connector_set_property(struct drm_connector *connector,
614614
(amdgpu_encoder->native_mode.clock == 0))
615615
return 0;
616616

617+
/*
618+
* Black screen when Oland GPU set scaling mode with Full/Full aspect/Center
619+
* on 4K monitor, do not allow Oland GPU set scaling mode when native mode is 4K.
620+
* FIXME: is there a new way to fix it?
621+
*/
622+
if(adev->asic_type == CHIP_OLAND &&
623+
amdgpu_encoder->native_mode.hdisplay == 3840 &&
624+
amdgpu_encoder->native_mode.vdisplay == 2160)
625+
return 0;
626+
617627
amdgpu_encoder->rmx_type = rmx_type;
618628

619629
amdgpu_connector_property_change_mode(&amdgpu_encoder->base);

0 commit comments

Comments
 (0)