]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
drm/amd/display: fix S/G display enablement
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Thu, 26 Oct 2023 15:50:45 +0000 (11:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Oct 2023 18:10:37 +0000 (14:10 -0400)
An assignment statement was reversed during a refactor which effectively
disabled S/G display outright. Since, we use
adev->mode_info.gpu_vm_support to indicate to the rest of the driver
that S/G display should be enabled and currently it is always set to
false. So, to fix this set adev->mode_info.gpu_vm_support's value to
that of init_data.flags.gpu_vm_support (and not vice versa).

Fixes: 098c13079c6f ("drm/amd/display: enable S/G display for for recent APUs by default")
Reported-by: Mark Broadworth <mark.broadworth@amd.com>
Tested-by: Mark Broadworth <mark.broadworth@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Yifan Zhang <yifan1.zhang@amd.com>
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index f08202abab4e9ad6136e492e6ea270634ca724c5..6f99f6754c119efddf9cc97e2db21f57bd9ad8bb 100644 (file)
@@ -1642,7 +1642,7 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
                init_data.flags.gpu_vm_support = (amdgpu_sg_display != 0) && (adev->flags & AMD_IS_APU);
        }
 
-       init_data.flags.gpu_vm_support = adev->mode_info.gpu_vm_support;
+       adev->mode_info.gpu_vm_support = init_data.flags.gpu_vm_support;
 
        if (amdgpu_dc_feature_mask & DC_FBC_MASK)
                init_data.flags.fbc_support = true;