AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amdgpu/display: fix warning about indentation
@ 2021-09-14 14:59 Alex Deucher
  2021-09-14 14:59 ` [PATCH 2/2] drm/amdgpu/display: add a proper license to dc_link_dp.c Alex Deucher
  2021-09-14 15:08 ` [PATCH 1/2] drm/amdgpu/display: fix warning about indentation Harry Wentland
  0 siblings, 2 replies; 4+ messages in thread
From: Alex Deucher @ 2021-09-14 14:59 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher, Leo Ma, Mikita Lipski, Aric Cyr

Looks like this code block was missing parens.

Fixes: c0ffd1945147 ("drm/amd/display: Add DPCD writes at key points")
Cc: Leo (Hanghong) Ma <hanghong.ma@amd.com>
Cc: Mikita Lipski <mikita.lipski@amd.com>
Cc: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
index ac4896ff912c..6663cfc4eb71 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
@@ -2370,12 +2370,11 @@ bool perform_link_training_with_retries(
 	/* We need to do this before the link training to ensure the idle pattern in SST
 	 * mode will be sent right after the link training
 	 */
-#if defined(CONFIG_DRM_AMD_DC_DCN)
-	if (dp_get_link_encoding_format(&current_setting) == DP_8b_10b_ENCODING)
-#endif
+	if (dp_get_link_encoding_format(&current_setting) == DP_8b_10b_ENCODING) {
 		link_enc->funcs->connect_dig_be_to_fe(link_enc,
 							pipe_ctx->stream_res.stream_enc->id, true);
 		dp_source_sequence_trace(link, DPCD_SOURCE_SEQ_AFTER_CONNECT_DIG_FE_BE);
+	}
 
 	for (j = 0; j < attempts; ++j) {
 
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH 2/2] drm/amdgpu/display: add a proper license to dc_link_dp.c
  2021-09-14 14:59 [PATCH 1/2] drm/amdgpu/display: fix warning about indentation Alex Deucher
@ 2021-09-14 14:59 ` Alex Deucher
  2021-09-14 15:07   ` Harry Wentland
  2021-09-14 15:08 ` [PATCH 1/2] drm/amdgpu/display: fix warning about indentation Harry Wentland
  1 sibling, 1 reply; 4+ messages in thread
From: Alex Deucher @ 2021-09-14 14:59 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

Was missing.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 .../gpu/drm/amd/display/dc/core/dc_link_dp.c  | 24 ++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
index 6663cfc4eb71..7ea505109340 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
@@ -1,4 +1,26 @@
-/* Copyright 2015 Advanced Micro Devices, Inc. */
+/*
+ * Copyright 2015 Advanced Micro Devices, Inc.
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a
+ * copy of this software and associated documentation files (the "Software"),
+ * to deal in the Software without restriction, including without limitation
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense,
+ * and/or sell copies of the Software, and to permit persons to whom the
+ * Software is furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
+ * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
+ *
+ * Authors: AMD
+ */
 #include "dm_services.h"
 #include "dc.h"
 #include "dc_link_dp.h"
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH 2/2] drm/amdgpu/display: add a proper license to dc_link_dp.c
  2021-09-14 14:59 ` [PATCH 2/2] drm/amdgpu/display: add a proper license to dc_link_dp.c Alex Deucher
@ 2021-09-14 15:07   ` Harry Wentland
  0 siblings, 0 replies; 4+ messages in thread
From: Harry Wentland @ 2021-09-14 15:07 UTC (permalink / raw)
  To: Alex Deucher, amd-gfx

On 2021-09-14 10:59, Alex Deucher wrote:
> Was missing.
> 
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

Reviewed-by: Harry Wentland <harry.wentland@amd.com>

Harry

> ---
>  .../gpu/drm/amd/display/dc/core/dc_link_dp.c  | 24 ++++++++++++++++++-
>  1 file changed, 23 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> index 6663cfc4eb71..7ea505109340 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> @@ -1,4 +1,26 @@
> -/* Copyright 2015 Advanced Micro Devices, Inc. */
> +/*
> + * Copyright 2015 Advanced Micro Devices, Inc.
> + *
> + * Permission is hereby granted, free of charge, to any person obtaining a
> + * copy of this software and associated documentation files (the "Software"),
> + * to deal in the Software without restriction, including without limitation
> + * the rights to use, copy, modify, merge, publish, distribute, sublicense,
> + * and/or sell copies of the Software, and to permit persons to whom the
> + * Software is furnished to do so, subject to the following conditions:
> + *
> + * The above copyright notice and this permission notice shall be included in
> + * all copies or substantial portions of the Software.
> + *
> + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
> + * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
> + * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
> + * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
> + * OTHER DEALINGS IN THE SOFTWARE.
> + *
> + * Authors: AMD
> + */
>  #include "dm_services.h"
>  #include "dc.h"
>  #include "dc_link_dp.h"
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH 1/2] drm/amdgpu/display: fix warning about indentation
  2021-09-14 14:59 [PATCH 1/2] drm/amdgpu/display: fix warning about indentation Alex Deucher
  2021-09-14 14:59 ` [PATCH 2/2] drm/amdgpu/display: add a proper license to dc_link_dp.c Alex Deucher
@ 2021-09-14 15:08 ` Harry Wentland
  1 sibling, 0 replies; 4+ messages in thread
From: Harry Wentland @ 2021-09-14 15:08 UTC (permalink / raw)
  To: Alex Deucher, amd-gfx; +Cc: Leo Ma, Mikita Lipski, Aric Cyr

On 2021-09-14 10:59, Alex Deucher wrote:
> Looks like this code block was missing parens.
> 
> Fixes: c0ffd1945147 ("drm/amd/display: Add DPCD writes at key points")
> Cc: Leo (Hanghong) Ma <hanghong.ma@amd.com>
> Cc: Mikita Lipski <mikita.lipski@amd.com>
> Cc: Aric Cyr <aric.cyr@amd.com>
> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

Reviewed-by: Harry Wentland <harry.wentland@amd.com>

Harry

> ---
>  drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> index ac4896ff912c..6663cfc4eb71 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> @@ -2370,12 +2370,11 @@ bool perform_link_training_with_retries(
>  	/* We need to do this before the link training to ensure the idle pattern in SST
>  	 * mode will be sent right after the link training
>  	 */
> -#if defined(CONFIG_DRM_AMD_DC_DCN)
> -	if (dp_get_link_encoding_format(&current_setting) == DP_8b_10b_ENCODING)
> -#endif
> +	if (dp_get_link_encoding_format(&current_setting) == DP_8b_10b_ENCODING) {
>  		link_enc->funcs->connect_dig_be_to_fe(link_enc,
>  							pipe_ctx->stream_res.stream_enc->id, true);
>  		dp_source_sequence_trace(link, DPCD_SOURCE_SEQ_AFTER_CONNECT_DIG_FE_BE);
> +	}
>  
>  	for (j = 0; j < attempts; ++j) {
>  
> 


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-09-14 15:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-14 14:59 [PATCH 1/2] drm/amdgpu/display: fix warning about indentation Alex Deucher
2021-09-14 14:59 ` [PATCH 2/2] drm/amdgpu/display: add a proper license to dc_link_dp.c Alex Deucher
2021-09-14 15:07   ` Harry Wentland
2021-09-14 15:08 ` [PATCH 1/2] drm/amdgpu/display: fix warning about indentation Harry Wentland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox