]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amd/display: Demote error print to debug print when ATOM impl missing
authorHarry Wentland <harry.wentland@amd.com>
Wed, 3 Jan 2018 14:58:58 +0000 (09:58 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 Jan 2018 20:47:25 +0000 (15:47 -0500)
I assumed wrongfully that all relevant functions should be implemented.
Apparently this isn't the case. Demote the print to debug level for now.

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/bios/command_table.c
drivers/gpu/drm/amd/display/dc/bios/command_table2.c

index 1aefed8cf98b17832c226fb50db9af4a59702cac..4b5fdd577848a059c9e14d4ed22914284499fa9c 100644 (file)
@@ -387,7 +387,7 @@ static void init_transmitter_control(struct bios_parser *bp)
                bp->cmd_tbl.transmitter_control = transmitter_control_v1_6;
                break;
        default:
-               dm_error("Don't have transmitter_control for v%d\n", crev);
+               dm_output_to_console("Don't have transmitter_control for v%d\n", crev);
                bp->cmd_tbl.transmitter_control = NULL;
                break;
        }
@@ -911,7 +911,7 @@ static void init_set_pixel_clock(struct bios_parser *bp)
                bp->cmd_tbl.set_pixel_clock = set_pixel_clock_v7;
                break;
        default:
-               dm_error("Don't have set_pixel_clock for v%d\n",
+               dm_output_to_console("Don't have set_pixel_clock for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(SetPixelClock));
                bp->cmd_tbl.set_pixel_clock = NULL;
                break;
@@ -1230,7 +1230,7 @@ static void init_enable_spread_spectrum_on_ppll(struct bios_parser *bp)
                                enable_spread_spectrum_on_ppll_v3;
                break;
        default:
-               dm_error("Don't have enable_spread_spectrum_on_ppll for v%d\n",
+               dm_output_to_console("Don't have enable_spread_spectrum_on_ppll for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(EnableSpreadSpectrumOnPPLL));
                bp->cmd_tbl.enable_spread_spectrum_on_ppll = NULL;
                break;
@@ -1427,7 +1427,7 @@ static void init_adjust_display_pll(struct bios_parser *bp)
                bp->cmd_tbl.adjust_display_pll = adjust_display_pll_v3;
                break;
        default:
-               dm_error("Don't have adjust_display_pll for v%d\n",
+               dm_output_to_console("Don't have adjust_display_pll for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(AdjustDisplayPll));
                bp->cmd_tbl.adjust_display_pll = NULL;
                break;
@@ -1702,7 +1702,7 @@ static void init_set_crtc_timing(struct bios_parser *bp)
                                        set_crtc_using_dtd_timing_v3;
                        break;
                default:
-                       dm_error("Don't have set_crtc_timing for dtd v%d\n",
+                       dm_output_to_console("Don't have set_crtc_timing for dtd v%d\n",
                                 dtd_version);
                        bp->cmd_tbl.set_crtc_timing = NULL;
                        break;
@@ -1713,7 +1713,7 @@ static void init_set_crtc_timing(struct bios_parser *bp)
                        bp->cmd_tbl.set_crtc_timing = set_crtc_timing_v1;
                        break;
                default:
-                       dm_error("Don't have set_crtc_timing for v%d\n",
+                       dm_output_to_console("Don't have set_crtc_timing for v%d\n",
                                 BIOS_CMD_TABLE_PARA_REVISION(SetCRTC_Timing));
                        bp->cmd_tbl.set_crtc_timing = NULL;
                        break;
@@ -1901,7 +1901,7 @@ static void init_select_crtc_source(struct bios_parser *bp)
                bp->cmd_tbl.select_crtc_source = select_crtc_source_v3;
                break;
        default:
-               dm_error("Don't select_crtc_source enable_crtc for v%d\n",
+               dm_output_to_console("Don't select_crtc_source enable_crtc for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(SelectCRTC_Source));
                bp->cmd_tbl.select_crtc_source = NULL;
                break;
@@ -2010,7 +2010,7 @@ static void init_enable_crtc(struct bios_parser *bp)
                bp->cmd_tbl.enable_crtc = enable_crtc_v1;
                break;
        default:
-               dm_error("Don't have enable_crtc for v%d\n",
+               dm_output_to_console("Don't have enable_crtc for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(EnableCRTC));
                bp->cmd_tbl.enable_crtc = NULL;
                break;
@@ -2118,7 +2118,7 @@ static void init_program_clock(struct bios_parser *bp)
                bp->cmd_tbl.program_clock = program_clock_v6;
                break;
        default:
-               dm_error("Don't have program_clock for v%d\n",
+               dm_output_to_console("Don't have program_clock for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(SetPixelClock));
                bp->cmd_tbl.program_clock = NULL;
                break;
@@ -2341,7 +2341,7 @@ static void init_enable_disp_power_gating(
                                enable_disp_power_gating_v2_1;
                break;
        default:
-               dm_error("Don't enable_disp_power_gating enable_crtc for v%d\n",
+               dm_output_to_console("Don't enable_disp_power_gating enable_crtc for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(EnableDispPowerGating));
                bp->cmd_tbl.enable_disp_power_gating = NULL;
                break;
@@ -2390,7 +2390,7 @@ static void init_set_dce_clock(struct bios_parser *bp)
                bp->cmd_tbl.set_dce_clock = set_dce_clock_v2_1;
                break;
        default:
-               dm_error("Don't have set_dce_clock for v%d\n",
+               dm_output_to_console("Don't have set_dce_clock for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(SetDCEClock));
                bp->cmd_tbl.set_dce_clock = NULL;
                break;
index 946db12388d621cdb2ce46fb6bdb01de1b5f0be4..fea5e83736fd9cc42a5b8604ec1f9c6807e94abd 100644 (file)
@@ -118,7 +118,7 @@ static void init_dig_encoder_control(struct bios_parser *bp)
                bp->cmd_tbl.dig_encoder_control = encoder_control_digx_v1_5;
                break;
        default:
-               dm_error("Don't have dig_encoder_control for v%d\n", version);
+               dm_output_to_console("Don't have dig_encoder_control for v%d\n", version);
                bp->cmd_tbl.dig_encoder_control = NULL;
                break;
        }
@@ -206,7 +206,7 @@ static void init_transmitter_control(struct bios_parser *bp)
                bp->cmd_tbl.transmitter_control = transmitter_control_v1_6;
                break;
        default:
-               dm_error("Don't have transmitter_control for v%d\n", crev);
+               dm_output_to_console("Don't have transmitter_control for v%d\n", crev);
                bp->cmd_tbl.transmitter_control = NULL;
                break;
        }
@@ -270,7 +270,7 @@ static void init_set_pixel_clock(struct bios_parser *bp)
                bp->cmd_tbl.set_pixel_clock = set_pixel_clock_v7;
                break;
        default:
-               dm_error("Don't have set_pixel_clock for v%d\n",
+               dm_output_to_console("Don't have set_pixel_clock for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(setpixelclock));
                bp->cmd_tbl.set_pixel_clock = NULL;
                break;
@@ -383,7 +383,7 @@ static void init_set_crtc_timing(struct bios_parser *bp)
                        set_crtc_using_dtd_timing_v3;
                break;
        default:
-               dm_error("Don't have set_crtc_timing for v%d\n", dtd_version);
+               dm_output_to_console("Don't have set_crtc_timing for v%d\n", dtd_version);
                bp->cmd_tbl.set_crtc_timing = NULL;
                break;
        }
@@ -503,7 +503,7 @@ static void init_select_crtc_source(struct bios_parser *bp)
                bp->cmd_tbl.select_crtc_source = select_crtc_source_v3;
                break;
        default:
-               dm_error("Don't select_crtc_source enable_crtc for v%d\n",
+               dm_output_to_console("Don't select_crtc_source enable_crtc for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(selectcrtc_source));
                bp->cmd_tbl.select_crtc_source = NULL;
                break;
@@ -572,7 +572,7 @@ static void init_enable_crtc(struct bios_parser *bp)
                bp->cmd_tbl.enable_crtc = enable_crtc_v1;
                break;
        default:
-               dm_error("Don't have enable_crtc for v%d\n",
+               dm_output_to_console("Don't have enable_crtc for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(enablecrtc));
                bp->cmd_tbl.enable_crtc = NULL;
                break;
@@ -670,7 +670,7 @@ static void init_enable_disp_power_gating(
                                enable_disp_power_gating_v2_1;
                break;
        default:
-               dm_error("Don't enable_disp_power_gating enable_crtc for v%d\n",
+               dm_output_to_console("Don't enable_disp_power_gating enable_crtc for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(enabledisppowergating));
                bp->cmd_tbl.enable_disp_power_gating = NULL;
                break;
@@ -721,7 +721,7 @@ static void init_set_dce_clock(struct bios_parser *bp)
                bp->cmd_tbl.set_dce_clock = set_dce_clock_v2_1;
                break;
        default:
-               dm_error("Don't have set_dce_clock for v%d\n",
+               dm_output_to_console("Don't have set_dce_clock for v%d\n",
                         BIOS_CMD_TABLE_PARA_REVISION(setdceclock));
                bp->cmd_tbl.set_dce_clock = NULL;
                break;