summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
diff options
context:
space:
mode:
authorLeo Li <sunpeng.li@amd.com>2022-07-06 14:48:52 -0400
committerAlex Deucher <alexander.deucher@amd.com>2022-07-25 09:31:03 -0400
commit792a0cdde34d417bc2c8266d8015c5fd58d44a0d (patch)
tree1112584114853d16217339a29882b89b7a5bd0d8 /drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
parentf7bacd97af853a9bba9bb8d1baa12f997e60122f (diff)
downloadlwn-792a0cdde34d417bc2c8266d8015c5fd58d44a0d.tar.gz
lwn-792a0cdde34d417bc2c8266d8015c5fd58d44a0d.zip
drm/amd/display: Add visualconfirm module parameter
[Why] Being able to configure visual confirm at boot or in cmdline is helpful when debugging. [How] Add a module parameter to configure DC visual confirm, which works the same way as the equivalent debugfs entry. Signed-off-by: Leo Li <sunpeng.li@amd.com> Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c')
-rw-r--r--drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index a9f9c929dca6..22a3f8972705 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1538,6 +1538,8 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
if (amdgpu_dc_debug_mask & DC_FORCE_SUBVP_MCLK_SWITCH)
adev->dm.dc->debug.force_subvp_mclk_switch = true;
+ adev->dm.dc->debug.visual_confirm = amdgpu_dc_visual_confirm;
+
r = dm_dmub_hw_init(adev);
if (r) {
DRM_ERROR("DMUB interface failed to initialize: status=%d\n", r);