drm/amd/display: Set disable_dmcu flag properly per asic
authorWyatt Wood <wyatt.wood@amd.com>
Fri, 28 Feb 2020 15:41:26 +0000 (10:41 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 19 Mar 2020 04:03:04 +0000 (00:03 -0400)
[Why]
The default value for disable_dmcu is true, even for asics that require
dmcu.

[How]
Set flag properly per asic.

Signed-off-by: Wyatt Wood <wyatt.wood@amd.com>
Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_resource.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c

index 95fda0b7523eaabbc9e6a49c87204c071fdc89c8..261bdc3a8218c1e8b03cd8f3fd930561dcb849b7 100644 (file)
@@ -570,7 +570,7 @@ static const struct dc_plane_cap plane_cap = {
 
 static const struct dc_debug_options debug_defaults_drv = {
                .sanity_checks = true,
-               .disable_dmcu = true,
+               .disable_dmcu = false,
                .force_abm_enable = false,
                .timing_trace = false,
                .clock_trace = true,
@@ -598,7 +598,7 @@ static const struct dc_debug_options debug_defaults_drv = {
 };
 
 static const struct dc_debug_options debug_defaults_diags = {
-               .disable_dmcu = true,
+               .disable_dmcu = false,
                .force_abm_enable = false,
                .timing_trace = true,
                .clock_trace = true,
index faf4f5ef17959695dffc9f12322546544706cdc0..e25ed623581228ea1debcdf0fa2286e21171ff37 100644 (file)
@@ -1041,7 +1041,7 @@ static const struct resource_caps res_cap_nv14 = {
 };
 
 static const struct dc_debug_options debug_defaults_drv = {
-               .disable_dmcu = true,
+               .disable_dmcu = false,
                .force_abm_enable = false,
                .timing_trace = false,
                .clock_trace = true,
@@ -1060,7 +1060,7 @@ static const struct dc_debug_options debug_defaults_drv = {
 };
 
 static const struct dc_debug_options debug_defaults_diags = {
-               .disable_dmcu = true,
+               .disable_dmcu = false,
                .force_abm_enable = false,
                .timing_trace = true,
                .clock_trace = true,
index 158f7c8b55ae0afb376d987669cce688ea1fd7c3..37f9a71eb4c1b33c78fcd60d5489ecfa4c80af6f 100644 (file)
@@ -855,7 +855,7 @@ static const struct dc_plane_cap plane_cap = {
 };
 
 static const struct dc_debug_options debug_defaults_drv = {
-               .disable_dmcu = true,
+               .disable_dmcu = false,
                .force_abm_enable = false,
                .timing_trace = false,
                .clock_trace = true,
@@ -876,7 +876,7 @@ static const struct dc_debug_options debug_defaults_drv = {
 };
 
 static const struct dc_debug_options debug_defaults_diags = {
-               .disable_dmcu = true,
+               .disable_dmcu = false,
                .force_abm_enable = false,
                .timing_trace = true,
                .clock_trace = true,