[PATCH 1/2] drm/amd/display: Bring back dc_log for more debug prints
Harry Wentland
harry.wentland at amd.com
Thu Jun 14 17:43:31 UTC 2018
A bunch of log statements in DC don't yet go to DRM_DEBUG_KMS or the
dynamic debug prints so we still want to enable those logs when dc_log=1
to not miss out on things such as the link training logger.
Signed-off-by: Harry Wentland <harry.wentland at amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +++
1 file changed, 3 insertions(+)
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 ed41d1e1f406..56ff7adc90d4 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -430,6 +430,9 @@ static int amdgpu_dm_init(struct amdgpu_device *adev)
init_data.dce_environment = DCE_ENV_PRODUCTION_DRV;
+ if (amdgpu_dc_log)
+ init_data.log_mask = DC_DEFAULT_LOG_MASK;
+
/*
* TODO debug why this doesn't work on Raven
*/
--
2.17.1
More information about the amd-gfx
mailing list