drm/amd/dal/dc: remove unused function
Subsystems (2)
PATCH 1/11 drm/amd/dal/dc: remove unused function
--- drivers/gpu/drm/amd/dal/dc/bios/bios_parser.c | 6 ------ 1 file changed, 6 deletions(-)
drivers/gpu/drm/amd/dal/dc/bios/bios_parser.c +0 -6
@@ -3662,12 +3662,6 @@ static void bios_parser_post_init(struct dc_bios *dcb)process_ext_display_connection_info (bp); } -static bool bios_parser_is_accelerated_mode ( -struct dc_bios *dcb) -{ -bios_is_accelerated_mode (dcb); -} -/** * bios_parser_set_scratch_critical_state *
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1479833848-14275-1-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org
PATCH 2/11 drm/amd/dal/dc: fix warnings in dce_stream_encoder.c
--- drivers/gpu/drm/amd/dal/dc/dce/dce_stream_encoder.c | 7 ------- 1 file changed, 7 deletions(-)
drivers/gpu/drm/amd/dal/dc/dce/dce_stream_encoder.c +0 -7
@@ -223,12 +223,7 @@ static void dce110_stream_encoder_dp_set_stream_attribute(struct dc_crtc_timing *crtc_timing, enum dc_color_space output_color_space) { - uint32_t h_active_start; -uint32_t v_active_start; uint32_t misc0; -uint32_t misc1; -uint32_t h_blank; -uint32_t h_back_porch;struct dce110_stream_encoder *enc110 =DCE110STRENC_FROM_STRENC (enc);/* set pixel encoding */
@@ -435,8 +430,6 @@ static void dce110_stream_encoder_set_mst_bandwidth( struct fixed31_32 avg_time_slots_per_mtp) {struct dce110_stream_encoder *enc110 =DCE110STRENC_FROM_STRENC (enc); -struct dc_context *ctx = enc110->base.ctx; -uint32_t retries =0 ;uint32_t x =dal_fixed31_32_floor ( avg_time_slots_per_mtp); uint32_t y = dal_fixed31_32_ceil(
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 3/11 drm/amd/dal/dc: fix warning in dce_link_encoder.c
In reply to a message not in the archive--- drivers/gpu/drm/amd/dal/dc/dce/dce_link_encoder.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/dal/dc/dce/dce_link_encoder.c +0 -1
@@ -964,7 +964,6 @@ bool dce110_link_encoder_construct(const struct dce110_link_enc_aux_registers *aux_regs, const struct dce110_link_enc_hpd_registers *hpd_regs) { - struct graphics_object_encoder_cap_info enc_cap_info = {0}; enc110->base.funcs = &dce110_lnk_enc_funcs; enc110->base.ctx = init_data->ctx;
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1479833848-14275-3-git-send-email-alexander.deucher-5C7GfCeVMHo@public.gmane.org
Re: [PATCH 03/11] drm/amd/dal/dc: fix warning in dce_link_encoder.c
Am 22.11.2016 um 17:57 schrieb Alex Deucher:
Quoted 11 lines
Reviewed-by Harry Wentland <[email protected]>Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/dal/dc/dce/dce_link_encoder.c | 1 - 1 file changed, 1 deletion(-)drivers/gpu/drm/amd/dal/dc/dce/dce_link_encoder.c +0
-0
drivers/gpu/drm/amd/dal/dc/dce/dce_link_encoder.c bool dce110_link_encoder_construct( · line 967
Quoted 5 lines
drivers/gpu/drm/amd/dal/dc/dce/dce_link_encoder.c +0
-1@@ -964,7 +964,6 @@ bool dce110_link_encoder_construct(const struct dce110_link_enc_aux_registers *aux_regs, const struct dce110_link_enc_hpd_registers *hpd_regs) { - struct graphics_object_encoder_cap_info enc_cap_info = {0};
This new line is probably superfluous now as well.
With this fixed the set is Reviewed-by: Christian König <[email protected]>.
Regards,
Christian.
drivers/gpu/drm/amd/dal/dc/dce/dce_link_encoder.c bool dce110_link_encoder_construct( · line 969
Quoted 2 lines
drivers/gpu/drm/amd/dal/dc/dce/dce_link_encoder.c +0
-0enc110->base.funcs = &dce110_lnk_enc_funcs; enc110->base.ctx = init_data->ctx;
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 4/11 drm/amd/dal/dc: fix bug in dal_display_clock_get_min_clocks_state
In reply to a message not in the archiveMissing return.
--- drivers/gpu/drm/amd/dal/dc/gpu/display_clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/dal/dc/gpu/display_clock.c +1 -1
@@ -118,7 +118,7 @@ bool dal_display_clock_get_min_clocks_state( enum clocks_state *clocks_state) {if (!disp_clk->funcs->get_min_clocks_state) - false; +return false; *clocks_state = disp_clk->funcs->get_min_clocks_state (disp_clk);return true;
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 5/11 drm/amd/dal/dc: fix warning in dal_display_clock_dce112_construct
In reply to a message not in the archive--- drivers/gpu/drm/amd/dal/dc/gpu/dce112/display_clock_dce112.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/dal/dc/gpu/dce112/display_clock_dce112.c +0 -1
@@ -843,7 +843,6 @@ bool dal_display_clock_dce112_construct(struct display_clock_dce112 *dc112, struct dc_context *ctx) { - struct dm_pp_static_clock_info *static_clk_info = {0}; struct display_clock *dc_base = &dc112->disp_clk_base;/*if (NULL == as)
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 6/11 drm/amd/dal/dc: fix warning in dce110_hw_sequencer.c
In reply to a message not in the archive--- drivers/gpu/drm/amd/dal/dc/dce110/dce110_hw_sequencer.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/dal/dc/dce110/dce110_hw_sequencer.c +0 -3
@@ -1158,7 +1158,6 @@ static enum dc_status apply_ctx_to_hw_fpga( {enum dc_status status =DC_ERROR_UNEXPECTED ;int i; -struct dc_bios *dcb = dc->ctx->dc_bios;for (i =0 ; i < context->res_ctx.pool->pipe_count; i++) { struct pipe_ctx *pipe_ctx_old =
@@ -1411,7 +1410,6 @@ static void set_plane_config( struct resource_context *res_ctx) {struct mem_input *mi = pipe_ctx->mi; -struct dc_context *ctx = pipe_ctx->stream->ctx;struct core_surface *surface = pipe_ctx->surface;struct xfm_grph_csc_adjustment adjust;struct out_csc_color_matrix tbl_entry;
@@ -1749,7 +1747,6 @@ static void dce110_program_front_end_for_pipe( {struct mem_input *mi = pipe_ctx->mi;struct pipe_ctx *old_pipe =NULL ; -struct dc_context *ctx = pipe_ctx->stream->ctx;struct core_surface *surface = pipe_ctx->surface;struct xfm_grph_csc_adjustment adjust;struct out_csc_color_matrix tbl_entry;
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 7/11 drm/amd/dal/dc: fix warning in dce110_resource.c
In reply to a message not in the archive--- drivers/gpu/drm/amd/dal/dc/dce110/dce110_resource.c | 1 - 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/dal/dc/dce110/dce110_resource.c +0 -1
@@ -1238,7 +1238,6 @@ static bool construct(struct firmware_info info;struct dc_bios *bp;struct dm_pp_static_clock_info static_clk_info = {0 }; -struct resource_straps straps = {0 }; ctx->dc_bios->regs = &bios_regs;
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 8/11 drm/amd/dal/dc: fix include order in dce80_resource.c
In reply to a message not in the archiveFixes redefinition warnings
--- drivers/gpu/drm/amd/dal/dc/dce80/dce80_resource.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/gpu/drm/amd/dal/dc/dce80/dce80_resource.c +2 -3
@@ -23,6 +23,8 @@* */ +#include "dce/dce_8_0_d.h" +#include "dce/dce_8_0_sh_mask.h" #include "dm_services.h"
@@ -51,9 +53,6 @@#include "reg_helper.h" -#include "dce/dce_8_0_d.h" -#include "dce/dce_8_0_sh_mask.h" -/* TODO remove this include */ #ifndef mmDP_DPHY_INTERNAL_CTRL
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 9/11 drm/amd/dal/dc: handle NULL mem_input in dc_init_dchub
In reply to a message not in the archiveFail gracefully if mem_input is NULL.
--- drivers/gpu/drm/amd/dal/dc/core/dc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/gpu/drm/amd/dal/dc/core/dc.c +5 -1
@@ -1808,7 +1808,7 @@ bool dc_init_dchub(struct dc *dc, struct dchub_init_data *dh_data) {int i;struct core_dc *core_dc =DC_TO_CORE (dc); -struct mem_input *mi; +struct mem_input *mi =NULL ;for (i =0 ; i < core_dc->res_pool->pipe_count; i++) {if (core_dc->res_pool->mis[i] !=NULL ) {
@@ -1816,6 +1816,10 @@ bool dc_init_dchub(struct dc *dc, struct dchub_init_data *dh_data)break ; } } +if (mi ==NULL ) { +dm_error ("no mem_input!\n" ); +return false; + }if (mi->funcs->mem_input_update_dchub) mi->funcs->mem_input_update_dchub (mi, dh_data);
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 10/11 drm/amd/dal/dc: fix warning in dc_link_dp_set_test_pattern
In reply to a message not in the archive--- drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/gpu/drm/amd/dal/dc/core/dc_link_dp.c +1 -2
@@ -2309,6 +2309,7 @@ bool dc_link_dp_set_test_pattern(unsigned char link_qual_pattern[LANE_COUNT_DP_MAX ] = {0 };union dpcd_training_pattern training_pattern;union test_response test_response; +enum dpcd_phy_test_patterns pattern;memset (&training_pattern,0 ,sizeof (training_pattern));memset (&test_response,0 ,sizeof (test_response));
@@ -2376,8 +2377,6 @@ bool dc_link_dp_set_test_pattern( p_link_settings); } -enum dpcd_phy_test_patterns pattern; -switch (test_pattern) {case DP_TEST_PATTERN_VIDEO_MODE : pattern =PHY_TEST_PATTERN_NONE ;
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
PATCH 11/11 drm/amd/dal/dc: fix warning in calculate_bandwidth
In reply to a message not in the archive--- drivers/gpu/drm/amd/dal/dc/calcs/bandwidth_calcs.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/dal/dc/calcs/bandwidth_calcs.c +0 -2
@@ -39,7 +39,6 @@ static void calculate_bandwidth( {const int32_t pixels_per_chunk =512 ; -const int32_t max_chunks_non_fbc_mode =16 ;const int32_t high =2 ;const int32_t mid =1 ;const int32_t low =0 ;
@@ -51,7 +50,6 @@ static void calculate_bandwidth(const uint32_t s_mid5 =5 ;const uint32_t s_mid6 =6 ;const uint32_t s_high =7 ; -const uint32_t vertical_front_porch =450 ;/*us*/ const uint32_t bus_efficiency =1 ;const uint32_t dmif_chunk_buff_margin =1 ;
Signature · 6 lines
2.5.5 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx