drm/amd/display: Add back missing hw translate init for DCN1_01

Submitted by Nicholas Kazlauskas on May 31, 2019, 4:05 p.m.

Details

Message ID 20190531160526.28279-1-nicholas.kazlauskas@amd.com
State Accepted
Commit 59648d6954cd3539f9b7e599b14d8b0cdcf41279
Headers show
Series "drm/amd/display: Add back missing hw translate init for DCN1_01" ( rev: 1 ) in AMD X.Org drivers

Not browsing as part of any series.

Commit Message

Nicholas Kazlauskas May 31, 2019, 4:05 p.m.
[Why]
DCN_VERSION_1_01 is no longer handled in the dal_hw_translate_init
switch since it was inadvertently dropped in the patch that removed the
unnecessary DCN1_01 guards.

This caused numerous regressions on DCN1_01 when loading the driver.

[How]
Add it back.

Cc: Harry Wentland <harry.wentland@amd.com>
Fixes: 97df424fe7a7 ("drm/amd/display: Drop DCN1_01 guards")
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
---
 drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c
index 77615146b96e..1f9833dc8cfe 100644
--- a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c
+++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c
@@ -81,6 +81,7 @@  bool dal_hw_translate_init(
 		return true;
 #if defined(CONFIG_DRM_AMD_DC_DCN1_0)
 	case DCN_VERSION_1_0:
+	case DCN_VERSION_1_01:
 		dal_hw_translate_dcn10_init(translate);
 		return true;
 #endif

Comments

On 2019-05-31 12:05 p.m., Nicholas Kazlauskas wrote:
> [Why]

> DCN_VERSION_1_01 is no longer handled in the dal_hw_translate_init

> switch since it was inadvertently dropped in the patch that removed the

> unnecessary DCN1_01 guards.

> 

> This caused numerous regressions on DCN1_01 when loading the driver.

> 

> [How]

> Add it back.

> 

> Cc: Harry Wentland <harry.wentland@amd.com>

> Fixes: 97df424fe7a7 ("drm/amd/display: Drop DCN1_01 guards")

> Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>


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


Harry

> ---

>  drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c | 1 +

>  1 file changed, 1 insertion(+)

> 

> diff --git a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c

> index 77615146b96e..1f9833dc8cfe 100644

> --- a/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c

> +++ b/drivers/gpu/drm/amd/display/dc/gpio/hw_translate.c

> @@ -81,6 +81,7 @@ bool dal_hw_translate_init(

>  		return true;

>  #if defined(CONFIG_DRM_AMD_DC_DCN1_0)

>  	case DCN_VERSION_1_0:

> +	case DCN_VERSION_1_01:

>  		dal_hw_translate_dcn10_init(translate);

>  		return true;

>  #endif

>