drm/amd/display: disable SG displays on cyan skillfish
Subsystems (3)
Alex Deucher
maintainerPATCH 1/1 drm/amd/display: disable SG displays on cyan skillfish
These parts were mainly for compute workloads, but they have a display that was available for the console. These chips should support SG display, but I don't know that the support was ever validated on Linux so disable it by default. It can still be enabled by setting sg_display=1 for those that want to play with it. These systems also generally had large carve outs so SG display was less of a factor.
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +5 -1
@@ -1886,7 +1886,11 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)else init_data.flags.gpu_vm_support = (amdgpu_sg_display !=0 ); }else { - init_data.flags.gpu_vm_support = (amdgpu_sg_display !=0 ) && (adev->flags &AMD_IS_APU ); +if (amdgpu_ip_version (adev,DCE_HWIP ,0 ) ==IP_VERSION (2 ,0 ,3 )) + init_data.flags.gpu_vm_support = (amdgpu_sg_display ==1 ); +else + init_data.flags.gpu_vm_support = + (amdgpu_sg_display !=0 ) && (adev->flags &AMD_IS_APU ); } adev->mode_info.gpu_vm_support = init_data.flags.gpu_vm_support;
Signature · 1 line
2.46.2
Quoted 10 lines · Alex Deucher
These parts were mainly for compute workloads, but they have a display that was available for the console. These chips should support SG display, but I don't know that the support was ever validated on Linux so disable it by default. It can still be enabled by setting sg_display=1 for those that want to play with it. These systems also generally had large carve outs so SG display was less of a factor.
Signed-off-by Alex Deucher <[email protected]>
Harry
Quoted 21 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +5
-1@@ -1886,7 +1886,11 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)else init_data.flags.gpu_vm_support = (amdgpu_sg_display !=0 ); }else { - init_data.flags.gpu_vm_support = (amdgpu_sg_display !=0 ) && (adev->flags &AMD_IS_APU ); +if (amdgpu_ip_version (adev,DCE_HWIP ,0 ) ==IP_VERSION (2 ,0 ,3 )) + init_data.flags.gpu_vm_support = (amdgpu_sg_display ==1 ); +else + init_data.flags.gpu_vm_support = + (amdgpu_sg_display !=0 ) && (adev->flags &AMD_IS_APU ); } adev->mode_info.gpu_vm_support = init_data.flags.gpu_vm_support;