Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright 2018 Advanced Micro Devices, Inc.
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice shall be included in
0012  * all copies or substantial portions of the Software.
0013  *
0014  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0017  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
0018  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
0019  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
0020  * OTHER DEALINGS IN THE SOFTWARE.
0021  *
0022  * Authors: AMD
0023  *
0024  */
0025 
0026 #ifndef _CALCS_CALCS_LOGGER_H_
0027 #define _CALCS_CALCS_LOGGER_H_
0028 #define DC_LOGGER ctx->logger
0029 
0030 static void print_bw_calcs_dceip(struct dc_context *ctx, const struct bw_calcs_dceip *dceip)
0031 {
0032 
0033     DC_LOG_BANDWIDTH_CALCS("#####################################################################");
0034     DC_LOG_BANDWIDTH_CALCS("struct bw_calcs_dceip");
0035     DC_LOG_BANDWIDTH_CALCS("#####################################################################");
0036     DC_LOG_BANDWIDTH_CALCS("    [enum]   bw_calcs_version version %d", dceip->version);
0037     DC_LOG_BANDWIDTH_CALCS("    [bool] large_cursor: %d", dceip->large_cursor);
0038     DC_LOG_BANDWIDTH_CALCS("    [bool] dmif_pipe_en_fbc_chunk_tracker: %d", dceip->dmif_pipe_en_fbc_chunk_tracker);
0039     DC_LOG_BANDWIDTH_CALCS("    [bool] display_write_back_supported: %d", dceip->display_write_back_supported);
0040     DC_LOG_BANDWIDTH_CALCS("    [bool] argb_compression_support: %d", dceip->argb_compression_support);
0041     DC_LOG_BANDWIDTH_CALCS("    [bool] pre_downscaler_enabled: %d", dceip->pre_downscaler_enabled);
0042     DC_LOG_BANDWIDTH_CALCS("    [bool] underlay_downscale_prefetch_enabled: %d",
0043                 dceip->underlay_downscale_prefetch_enabled);
0044     DC_LOG_BANDWIDTH_CALCS("    [bool] graphics_lb_nodownscaling_multi_line_prefetching: %d",
0045                 dceip->graphics_lb_nodownscaling_multi_line_prefetching);
0046     DC_LOG_BANDWIDTH_CALCS("    [bool] limit_excessive_outstanding_dmif_requests: %d",
0047                 dceip->limit_excessive_outstanding_dmif_requests);
0048     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] cursor_max_outstanding_group_num: %d",
0049                 dceip->cursor_max_outstanding_group_num);
0050     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] lines_interleaved_into_lb: %d", dceip->lines_interleaved_into_lb);
0051     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] low_power_tiling_mode: %d", dceip->low_power_tiling_mode);
0052     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] chunk_width: %d", dceip->chunk_width);
0053     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] number_of_graphics_pipes: %d", dceip->number_of_graphics_pipes);
0054     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] number_of_underlay_pipes: %d", dceip->number_of_underlay_pipes);
0055     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] max_dmif_buffer_allocated: %d", dceip->max_dmif_buffer_allocated);
0056     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] graphics_dmif_size: %d", dceip->graphics_dmif_size);
0057     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] underlay_luma_dmif_size: %d", dceip->underlay_luma_dmif_size);
0058     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] underlay_chroma_dmif_size: %d", dceip->underlay_chroma_dmif_size);
0059     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] scatter_gather_lines_of_pte_prefetching_in_linear_mode: %d",
0060                 dceip->scatter_gather_lines_of_pte_prefetching_in_linear_mode);
0061     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] display_write_back420_luma_mcifwr_buffer_size: %d",
0062                 dceip->display_write_back420_luma_mcifwr_buffer_size);
0063     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] display_write_back420_chroma_mcifwr_buffer_size: %d",
0064                 dceip->display_write_back420_chroma_mcifwr_buffer_size);
0065     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] scatter_gather_pte_request_rows_in_tiling_mode: %d",
0066                 dceip->scatter_gather_pte_request_rows_in_tiling_mode);
0067     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] underlay_vscaler_efficiency10_bit_per_component: %d",
0068                 bw_fixed_to_int(dceip->underlay_vscaler_efficiency10_bit_per_component));
0069     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] underlay_vscaler_efficiency12_bit_per_component: %d",
0070                 bw_fixed_to_int(dceip->underlay_vscaler_efficiency12_bit_per_component));
0071     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] graphics_vscaler_efficiency6_bit_per_component: %d",
0072                 bw_fixed_to_int(dceip->graphics_vscaler_efficiency6_bit_per_component));
0073     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] graphics_vscaler_efficiency8_bit_per_component: %d",
0074                 bw_fixed_to_int(dceip->graphics_vscaler_efficiency8_bit_per_component));
0075     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] graphics_vscaler_efficiency10_bit_per_component: %d",
0076                 bw_fixed_to_int(dceip->graphics_vscaler_efficiency10_bit_per_component));
0077     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] graphics_vscaler_efficiency12_bit_per_component: %d",
0078                 bw_fixed_to_int(dceip->graphics_vscaler_efficiency12_bit_per_component));
0079     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] alpha_vscaler_efficiency: %d",
0080                 bw_fixed_to_int(dceip->alpha_vscaler_efficiency));
0081     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] lb_write_pixels_per_dispclk: %d",
0082                 bw_fixed_to_int(dceip->lb_write_pixels_per_dispclk));
0083     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] lb_size_per_component444: %d",
0084                 bw_fixed_to_int(dceip->lb_size_per_component444));
0085     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] stutter_and_dram_clock_state_change_gated_before_cursor: %d",
0086                 bw_fixed_to_int(dceip->stutter_and_dram_clock_state_change_gated_before_cursor));
0087     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] underlay420_luma_lb_size_per_component: %d",
0088                 bw_fixed_to_int(dceip->underlay420_luma_lb_size_per_component));
0089     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] underlay420_chroma_lb_size_per_component: %d",
0090                 bw_fixed_to_int(dceip->underlay420_chroma_lb_size_per_component));
0091     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] underlay422_lb_size_per_component: %d",
0092                 bw_fixed_to_int(dceip->underlay422_lb_size_per_component));
0093     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] cursor_chunk_width: %d", bw_fixed_to_int(dceip->cursor_chunk_width));
0094     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] cursor_dcp_buffer_lines: %d",
0095                 bw_fixed_to_int(dceip->cursor_dcp_buffer_lines));
0096     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] underlay_maximum_width_efficient_for_tiling: %d",
0097                 bw_fixed_to_int(dceip->underlay_maximum_width_efficient_for_tiling));
0098     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] underlay_maximum_height_efficient_for_tiling: %d",
0099                 bw_fixed_to_int(dceip->underlay_maximum_height_efficient_for_tiling));
0100     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display: %d",
0101                 bw_fixed_to_int(dceip->peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display));
0102     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation: %d",
0103                 bw_fixed_to_int(dceip->peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation));
0104     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] minimum_outstanding_pte_request_limit: %d",
0105                 bw_fixed_to_int(dceip->minimum_outstanding_pte_request_limit));
0106     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] maximum_total_outstanding_pte_requests_allowed_by_saw: %d",
0107                 bw_fixed_to_int(dceip->maximum_total_outstanding_pte_requests_allowed_by_saw));
0108     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] linear_mode_line_request_alternation_slice: %d",
0109                 bw_fixed_to_int(dceip->linear_mode_line_request_alternation_slice));
0110     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] request_efficiency: %d", bw_fixed_to_int(dceip->request_efficiency));
0111     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dispclk_per_request: %d", bw_fixed_to_int(dceip->dispclk_per_request));
0112     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dispclk_ramping_factor: %d",
0113                 bw_fixed_to_int(dceip->dispclk_ramping_factor));
0114     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] display_pipe_throughput_factor: %d",
0115                 bw_fixed_to_int(dceip->display_pipe_throughput_factor));
0116     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mcifwr_all_surfaces_burst_time: %d",
0117                 bw_fixed_to_int(dceip->mcifwr_all_surfaces_burst_time));
0118     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dmif_request_buffer_size: %d",
0119                 bw_fixed_to_int(dceip->dmif_request_buffer_size));
0120 
0121 
0122 }
0123 
0124 static void print_bw_calcs_vbios(struct dc_context *ctx, const struct bw_calcs_vbios *vbios)
0125 {
0126 
0127     DC_LOG_BANDWIDTH_CALCS("#####################################################################");
0128     DC_LOG_BANDWIDTH_CALCS("struct bw_calcs_vbios vbios");
0129     DC_LOG_BANDWIDTH_CALCS("#####################################################################");
0130     DC_LOG_BANDWIDTH_CALCS("    [enum] bw_defines memory_type: %d", vbios->memory_type);
0131     DC_LOG_BANDWIDTH_CALCS("    [enum] bw_defines memory_type: %d", vbios->memory_type);
0132     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] dram_channel_width_in_bits: %d", vbios->dram_channel_width_in_bits);
0133     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] number_of_dram_channels: %d", vbios->number_of_dram_channels);
0134     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] number_of_dram_banks: %d", vbios->number_of_dram_banks);
0135     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] low_yclk: %d", bw_fixed_to_int(vbios->low_yclk));
0136     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mid_yclk: %d", bw_fixed_to_int(vbios->mid_yclk));
0137     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] high_yclk: %d", bw_fixed_to_int(vbios->high_yclk));
0138     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] low_sclk: %d", bw_fixed_to_int(vbios->low_sclk));
0139     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mid1_sclk: %d", bw_fixed_to_int(vbios->mid1_sclk));
0140     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mid2_sclk: %d", bw_fixed_to_int(vbios->mid2_sclk));
0141     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mid3_sclk: %d", bw_fixed_to_int(vbios->mid3_sclk));
0142     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mid4_sclk: %d", bw_fixed_to_int(vbios->mid4_sclk));
0143     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mid5_sclk: %d", bw_fixed_to_int(vbios->mid5_sclk));
0144     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mid6_sclk: %d", bw_fixed_to_int(vbios->mid6_sclk));
0145     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] high_sclk: %d", bw_fixed_to_int(vbios->high_sclk));
0146     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] low_voltage_max_dispclk: %d",
0147                 bw_fixed_to_int(vbios->low_voltage_max_dispclk));
0148     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mid_voltage_max_dispclk;: %d",
0149                 bw_fixed_to_int(vbios->mid_voltage_max_dispclk));
0150     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] high_voltage_max_dispclk;: %d",
0151                 bw_fixed_to_int(vbios->high_voltage_max_dispclk));
0152     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] low_voltage_max_phyclk: %d",
0153                 bw_fixed_to_int(vbios->low_voltage_max_phyclk));
0154     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mid_voltage_max_phyclk: %d",
0155                 bw_fixed_to_int(vbios->mid_voltage_max_phyclk));
0156     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] high_voltage_max_phyclk: %d",
0157                 bw_fixed_to_int(vbios->high_voltage_max_phyclk));
0158     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] data_return_bus_width: %d", bw_fixed_to_int(vbios->data_return_bus_width));
0159     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] trc: %d", bw_fixed_to_int(vbios->trc));
0160     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dmifmc_urgent_latency: %d", bw_fixed_to_int(vbios->dmifmc_urgent_latency));
0161     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] stutter_self_refresh_exit_latency: %d",
0162                 bw_fixed_to_int(vbios->stutter_self_refresh_exit_latency));
0163     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] stutter_self_refresh_entry_latency: %d",
0164                 bw_fixed_to_int(vbios->stutter_self_refresh_entry_latency));
0165     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] nbp_state_change_latency: %d",
0166                 bw_fixed_to_int(vbios->nbp_state_change_latency));
0167     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mcifwrmc_urgent_latency: %d",
0168                 bw_fixed_to_int(vbios->mcifwrmc_urgent_latency));
0169     DC_LOG_BANDWIDTH_CALCS("    [bool] scatter_gather_enable: %d", vbios->scatter_gather_enable);
0170     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] down_spread_percentage: %d",
0171                 bw_fixed_to_int(vbios->down_spread_percentage));
0172     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] cursor_width: %d", vbios->cursor_width);
0173     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] average_compression_rate: %d", vbios->average_compression_rate);
0174     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] number_of_request_slots_gmc_reserves_for_dmif_per_channel: %d",
0175                 vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel);
0176     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] blackout_duration: %d", bw_fixed_to_int(vbios->blackout_duration));
0177     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] maximum_blackout_recovery_time: %d",
0178                 bw_fixed_to_int(vbios->maximum_blackout_recovery_time));
0179 
0180 
0181 }
0182 
0183 static void print_bw_calcs_data(struct dc_context *ctx, struct bw_calcs_data *data)
0184 {
0185 
0186     int i, j, k;
0187 
0188     DC_LOG_BANDWIDTH_CALCS("#####################################################################");
0189     DC_LOG_BANDWIDTH_CALCS("struct bw_calcs_data data");
0190     DC_LOG_BANDWIDTH_CALCS("#####################################################################");
0191     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] number_of_displays: %d", data->number_of_displays);
0192     DC_LOG_BANDWIDTH_CALCS("    [enum] bw_defines underlay_surface_type: %d", data->underlay_surface_type);
0193     DC_LOG_BANDWIDTH_CALCS("    [enum] bw_defines panning_and_bezel_adjustment: %d",
0194                 data->panning_and_bezel_adjustment);
0195     DC_LOG_BANDWIDTH_CALCS("    [enum] bw_defines graphics_tiling_mode: %d", data->graphics_tiling_mode);
0196     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] graphics_lb_bpc: %d", data->graphics_lb_bpc);
0197     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] underlay_lb_bpc: %d", data->underlay_lb_bpc);
0198     DC_LOG_BANDWIDTH_CALCS("    [enum] bw_defines underlay_tiling_mode: %d", data->underlay_tiling_mode);
0199     DC_LOG_BANDWIDTH_CALCS("    [enum] bw_defines d0_underlay_mode: %d", data->d0_underlay_mode);
0200     DC_LOG_BANDWIDTH_CALCS("    [bool] d1_display_write_back_dwb_enable: %d", data->d1_display_write_back_dwb_enable);
0201     DC_LOG_BANDWIDTH_CALCS("    [enum] bw_defines d1_underlay_mode: %d", data->d1_underlay_mode);
0202     DC_LOG_BANDWIDTH_CALCS("    [bool] cpup_state_change_enable: %d", data->cpup_state_change_enable);
0203     DC_LOG_BANDWIDTH_CALCS("    [bool] cpuc_state_change_enable: %d", data->cpuc_state_change_enable);
0204     DC_LOG_BANDWIDTH_CALCS("    [bool] nbp_state_change_enable: %d", data->nbp_state_change_enable);
0205     DC_LOG_BANDWIDTH_CALCS("    [bool] stutter_mode_enable: %d", data->stutter_mode_enable);
0206     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] y_clk_level: %d", data->y_clk_level);
0207     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] sclk_level: %d", data->sclk_level);
0208     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] number_of_underlay_surfaces: %d", data->number_of_underlay_surfaces);
0209     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] number_of_dram_wrchannels: %d", data->number_of_dram_wrchannels);
0210     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] chunk_request_delay: %d", data->chunk_request_delay);
0211     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] number_of_dram_channels: %d", data->number_of_dram_channels);
0212     DC_LOG_BANDWIDTH_CALCS("    [enum] bw_defines underlay_micro_tile_mode: %d", data->underlay_micro_tile_mode);
0213     DC_LOG_BANDWIDTH_CALCS("    [enum] bw_defines graphics_micro_tile_mode: %d", data->graphics_micro_tile_mode);
0214     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] max_phyclk: %d", bw_fixed_to_int(data->max_phyclk));
0215     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dram_efficiency: %d", bw_fixed_to_int(data->dram_efficiency));
0216     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] src_width_after_surface_type: %d",
0217                 bw_fixed_to_int(data->src_width_after_surface_type));
0218     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] src_height_after_surface_type: %d",
0219                 bw_fixed_to_int(data->src_height_after_surface_type));
0220     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] hsr_after_surface_type: %d",
0221                 bw_fixed_to_int(data->hsr_after_surface_type));
0222     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] vsr_after_surface_type: %d", bw_fixed_to_int(data->vsr_after_surface_type));
0223     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] src_width_after_rotation: %d",
0224                 bw_fixed_to_int(data->src_width_after_rotation));
0225     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] src_height_after_rotation: %d",
0226                 bw_fixed_to_int(data->src_height_after_rotation));
0227     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] hsr_after_rotation: %d", bw_fixed_to_int(data->hsr_after_rotation));
0228     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] vsr_after_rotation: %d", bw_fixed_to_int(data->vsr_after_rotation));
0229     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] source_height_pixels: %d", bw_fixed_to_int(data->source_height_pixels));
0230     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] hsr_after_stereo: %d", bw_fixed_to_int(data->hsr_after_stereo));
0231     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] vsr_after_stereo: %d", bw_fixed_to_int(data->vsr_after_stereo));
0232     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] source_width_in_lb: %d", bw_fixed_to_int(data->source_width_in_lb));
0233     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] lb_line_pitch: %d", bw_fixed_to_int(data->lb_line_pitch));
0234     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] underlay_maximum_source_efficient_for_tiling: %d",
0235                 bw_fixed_to_int(data->underlay_maximum_source_efficient_for_tiling));
0236     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] num_lines_at_frame_start: %d",
0237                 bw_fixed_to_int(data->num_lines_at_frame_start));
0238     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] min_dmif_size_in_time: %d", bw_fixed_to_int(data->min_dmif_size_in_time));
0239     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] min_mcifwr_size_in_time: %d",
0240                 bw_fixed_to_int(data->min_mcifwr_size_in_time));
0241     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_requests_for_dmif_size: %d",
0242                 bw_fixed_to_int(data->total_requests_for_dmif_size));
0243     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] peak_pte_request_to_eviction_ratio_limiting: %d",
0244                 bw_fixed_to_int(data->peak_pte_request_to_eviction_ratio_limiting));
0245     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] useful_pte_per_pte_request: %d",
0246                 bw_fixed_to_int(data->useful_pte_per_pte_request));
0247     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] scatter_gather_pte_request_rows: %d",
0248                 bw_fixed_to_int(data->scatter_gather_pte_request_rows));
0249     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] scatter_gather_row_height: %d",
0250                 bw_fixed_to_int(data->scatter_gather_row_height));
0251     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] scatter_gather_pte_requests_in_vblank: %d",
0252                 bw_fixed_to_int(data->scatter_gather_pte_requests_in_vblank));
0253     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] inefficient_linear_pitch_in_bytes: %d",
0254                 bw_fixed_to_int(data->inefficient_linear_pitch_in_bytes));
0255     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] cursor_total_data: %d", bw_fixed_to_int(data->cursor_total_data));
0256     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] cursor_total_request_groups: %d",
0257                 bw_fixed_to_int(data->cursor_total_request_groups));
0258     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] scatter_gather_total_pte_requests: %d",
0259                 bw_fixed_to_int(data->scatter_gather_total_pte_requests));
0260     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] scatter_gather_total_pte_request_groups: %d",
0261                 bw_fixed_to_int(data->scatter_gather_total_pte_request_groups));
0262     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] tile_width_in_pixels: %d", bw_fixed_to_int(data->tile_width_in_pixels));
0263     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dmif_total_number_of_data_request_page_close_open: %d",
0264                 bw_fixed_to_int(data->dmif_total_number_of_data_request_page_close_open));
0265     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mcifwr_total_number_of_data_request_page_close_open: %d",
0266                 bw_fixed_to_int(data->mcifwr_total_number_of_data_request_page_close_open));
0267     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] bytes_per_page_close_open: %d",
0268                 bw_fixed_to_int(data->bytes_per_page_close_open));
0269     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mcifwr_total_page_close_open_time: %d",
0270                 bw_fixed_to_int(data->mcifwr_total_page_close_open_time));
0271     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_requests_for_adjusted_dmif_size: %d",
0272                 bw_fixed_to_int(data->total_requests_for_adjusted_dmif_size));
0273     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_dmifmc_urgent_trips: %d",
0274                 bw_fixed_to_int(data->total_dmifmc_urgent_trips));
0275     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_dmifmc_urgent_latency: %d",
0276                 bw_fixed_to_int(data->total_dmifmc_urgent_latency));
0277     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_display_reads_required_data: %d",
0278                 bw_fixed_to_int(data->total_display_reads_required_data));
0279     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_display_reads_required_dram_access_data: %d",
0280                 bw_fixed_to_int(data->total_display_reads_required_dram_access_data));
0281     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_display_writes_required_data: %d",
0282                 bw_fixed_to_int(data->total_display_writes_required_data));
0283     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_display_writes_required_dram_access_data: %d",
0284                 bw_fixed_to_int(data->total_display_writes_required_dram_access_data));
0285     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] display_reads_required_data: %d",
0286                 bw_fixed_to_int(data->display_reads_required_data));
0287     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] display_reads_required_dram_access_data: %d",
0288                 bw_fixed_to_int(data->display_reads_required_dram_access_data));
0289     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dmif_total_page_close_open_time: %d",
0290                 bw_fixed_to_int(data->dmif_total_page_close_open_time));
0291     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] min_cursor_memory_interface_buffer_size_in_time: %d",
0292                 bw_fixed_to_int(data->min_cursor_memory_interface_buffer_size_in_time));
0293     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] min_read_buffer_size_in_time: %d",
0294                 bw_fixed_to_int(data->min_read_buffer_size_in_time));
0295     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] display_reads_time_for_data_transfer: %d",
0296                 bw_fixed_to_int(data->display_reads_time_for_data_transfer));
0297     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] display_writes_time_for_data_transfer: %d",
0298                 bw_fixed_to_int(data->display_writes_time_for_data_transfer));
0299     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dmif_required_dram_bandwidth: %d",
0300                 bw_fixed_to_int(data->dmif_required_dram_bandwidth));
0301     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mcifwr_required_dram_bandwidth: %d",
0302                 bw_fixed_to_int(data->mcifwr_required_dram_bandwidth));
0303     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] required_dmifmc_urgent_latency_for_page_close_open: %d",
0304                 bw_fixed_to_int(data->required_dmifmc_urgent_latency_for_page_close_open));
0305     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] required_mcifmcwr_urgent_latency: %d",
0306                 bw_fixed_to_int(data->required_mcifmcwr_urgent_latency));
0307     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] required_dram_bandwidth_gbyte_per_second: %d",
0308                 bw_fixed_to_int(data->required_dram_bandwidth_gbyte_per_second));
0309     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dram_bandwidth: %d", bw_fixed_to_int(data->dram_bandwidth));
0310     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dmif_required_sclk: %d", bw_fixed_to_int(data->dmif_required_sclk));
0311     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mcifwr_required_sclk: %d", bw_fixed_to_int(data->mcifwr_required_sclk));
0312     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] required_sclk: %d", bw_fixed_to_int(data->required_sclk));
0313     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] downspread_factor: %d", bw_fixed_to_int(data->downspread_factor));
0314     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] v_scaler_efficiency: %d", bw_fixed_to_int(data->v_scaler_efficiency));
0315     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] scaler_limits_factor: %d", bw_fixed_to_int(data->scaler_limits_factor));
0316     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] display_pipe_pixel_throughput: %d",
0317                 bw_fixed_to_int(data->display_pipe_pixel_throughput));
0318     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_dispclk_required_with_ramping: %d",
0319                 bw_fixed_to_int(data->total_dispclk_required_with_ramping));
0320     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_dispclk_required_without_ramping: %d",
0321                 bw_fixed_to_int(data->total_dispclk_required_without_ramping));
0322     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_read_request_bandwidth: %d",
0323                 bw_fixed_to_int(data->total_read_request_bandwidth));
0324     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_write_request_bandwidth: %d",
0325                 bw_fixed_to_int(data->total_write_request_bandwidth));
0326     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dispclk_required_for_total_read_request_bandwidth: %d",
0327                 bw_fixed_to_int(data->dispclk_required_for_total_read_request_bandwidth));
0328     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_dispclk_required_with_ramping_with_request_bandwidth: %d",
0329                 bw_fixed_to_int(data->total_dispclk_required_with_ramping_with_request_bandwidth));
0330     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_dispclk_required_without_ramping_with_request_bandwidth: %d",
0331                 bw_fixed_to_int(data->total_dispclk_required_without_ramping_with_request_bandwidth));
0332     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dispclk: %d", bw_fixed_to_int(data->dispclk));
0333     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] blackout_recovery_time: %d", bw_fixed_to_int(data->blackout_recovery_time));
0334     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] min_pixels_per_data_fifo_entry: %d",
0335                 bw_fixed_to_int(data->min_pixels_per_data_fifo_entry));
0336     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] sclk_deep_sleep: %d", bw_fixed_to_int(data->sclk_deep_sleep));
0337     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] chunk_request_time: %d", bw_fixed_to_int(data->chunk_request_time));
0338     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] cursor_request_time: %d", bw_fixed_to_int(data->cursor_request_time));
0339     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] line_source_pixels_transfer_time: %d",
0340                 bw_fixed_to_int(data->line_source_pixels_transfer_time));
0341     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dmifdram_access_efficiency: %d",
0342                 bw_fixed_to_int(data->dmifdram_access_efficiency));
0343     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mcifwrdram_access_efficiency: %d",
0344                 bw_fixed_to_int(data->mcifwrdram_access_efficiency));
0345     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_average_bandwidth_no_compression: %d",
0346                 bw_fixed_to_int(data->total_average_bandwidth_no_compression));
0347     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_average_bandwidth: %d",
0348                 bw_fixed_to_int(data->total_average_bandwidth));
0349     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] total_stutter_cycle_duration: %d",
0350                 bw_fixed_to_int(data->total_stutter_cycle_duration));
0351     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] stutter_burst_time: %d", bw_fixed_to_int(data->stutter_burst_time));
0352     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] time_in_self_refresh: %d", bw_fixed_to_int(data->time_in_self_refresh));
0353     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] stutter_efficiency: %d", bw_fixed_to_int(data->stutter_efficiency));
0354     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] worst_number_of_trips_to_memory: %d",
0355                 bw_fixed_to_int(data->worst_number_of_trips_to_memory));
0356     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] immediate_flip_time: %d", bw_fixed_to_int(data->immediate_flip_time));
0357     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] latency_for_non_dmif_clients: %d",
0358                 bw_fixed_to_int(data->latency_for_non_dmif_clients));
0359     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] latency_for_non_mcifwr_clients: %d",
0360                 bw_fixed_to_int(data->latency_for_non_mcifwr_clients));
0361     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dmifmc_urgent_latency_supported_in_high_sclk_and_yclk: %d",
0362                 bw_fixed_to_int(data->dmifmc_urgent_latency_supported_in_high_sclk_and_yclk));
0363     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] nbp_state_dram_speed_change_margin: %d",
0364                 bw_fixed_to_int(data->nbp_state_dram_speed_change_margin));
0365     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] display_reads_time_for_data_transfer_and_urgent_latency: %d",
0366                 bw_fixed_to_int(data->display_reads_time_for_data_transfer_and_urgent_latency));
0367     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dram_speed_change_margin: %d",
0368                 bw_fixed_to_int(data->dram_speed_change_margin));
0369     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] min_vblank_dram_speed_change_margin: %d",
0370                 bw_fixed_to_int(data->min_vblank_dram_speed_change_margin));
0371     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] min_stutter_refresh_duration: %d",
0372                 bw_fixed_to_int(data->min_stutter_refresh_duration));
0373     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] total_stutter_dmif_buffer_size: %d", data->total_stutter_dmif_buffer_size);
0374     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] total_bytes_requested: %d", data->total_bytes_requested);
0375     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] min_stutter_dmif_buffer_size: %d", data->min_stutter_dmif_buffer_size);
0376     DC_LOG_BANDWIDTH_CALCS("    [uint32_t] num_stutter_bursts: %d", data->num_stutter_bursts);
0377     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] v_blank_nbp_state_dram_speed_change_latency_supported: %d",
0378                 bw_fixed_to_int(data->v_blank_nbp_state_dram_speed_change_latency_supported));
0379     DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] nbp_state_dram_speed_change_latency_supported: %d",
0380                 bw_fixed_to_int(data->nbp_state_dram_speed_change_latency_supported));
0381 
0382     for (i = 0; i < maximum_number_of_surfaces; i++) {
0383         DC_LOG_BANDWIDTH_CALCS("    [bool] fbc_en[%d]:%d\n", i, data->fbc_en[i]);
0384         DC_LOG_BANDWIDTH_CALCS("    [bool] lpt_en[%d]:%d", i, data->lpt_en[i]);
0385         DC_LOG_BANDWIDTH_CALCS("    [bool] displays_match_flag[%d]:%d", i, data->displays_match_flag[i]);
0386         DC_LOG_BANDWIDTH_CALCS("    [bool] use_alpha[%d]:%d", i, data->use_alpha[i]);
0387         DC_LOG_BANDWIDTH_CALCS("    [bool] orthogonal_rotation[%d]:%d", i, data->orthogonal_rotation[i]);
0388         DC_LOG_BANDWIDTH_CALCS("    [bool] enable[%d]:%d", i, data->enable[i]);
0389         DC_LOG_BANDWIDTH_CALCS("    [bool] access_one_channel_only[%d]:%d", i, data->access_one_channel_only[i]);
0390         DC_LOG_BANDWIDTH_CALCS("    [bool] scatter_gather_enable_for_pipe[%d]:%d",
0391                     i, data->scatter_gather_enable_for_pipe[i]);
0392         DC_LOG_BANDWIDTH_CALCS("    [bool] interlace_mode[%d]:%d",
0393                     i, data->interlace_mode[i]);
0394         DC_LOG_BANDWIDTH_CALCS("    [bool] display_pstate_change_enable[%d]:%d",
0395                     i, data->display_pstate_change_enable[i]);
0396         DC_LOG_BANDWIDTH_CALCS("    [bool] line_buffer_prefetch[%d]:%d", i, data->line_buffer_prefetch[i]);
0397         DC_LOG_BANDWIDTH_CALCS("    [uint32_t] bytes_per_pixel[%d]:%d", i, data->bytes_per_pixel[i]);
0398         DC_LOG_BANDWIDTH_CALCS("    [uint32_t] max_chunks_non_fbc_mode[%d]:%d",
0399                     i, data->max_chunks_non_fbc_mode[i]);
0400         DC_LOG_BANDWIDTH_CALCS("    [uint32_t] lb_bpc[%d]:%d", i, data->lb_bpc[i]);
0401         DC_LOG_BANDWIDTH_CALCS("    [uint32_t] output_bpphdmi[%d]:%d", i, data->output_bpphdmi[i]);
0402         DC_LOG_BANDWIDTH_CALCS("    [uint32_t] output_bppdp4_lane_hbr[%d]:%d", i, data->output_bppdp4_lane_hbr[i]);
0403         DC_LOG_BANDWIDTH_CALCS("    [uint32_t] output_bppdp4_lane_hbr2[%d]:%d",
0404                     i, data->output_bppdp4_lane_hbr2[i]);
0405         DC_LOG_BANDWIDTH_CALCS("    [uint32_t] output_bppdp4_lane_hbr3[%d]:%d",
0406                     i, data->output_bppdp4_lane_hbr3[i]);
0407         DC_LOG_BANDWIDTH_CALCS("    [enum] bw_defines stereo_mode[%d]:%d", i, data->stereo_mode[i]);
0408         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dmif_buffer_transfer_time[%d]:%d",
0409                     i, bw_fixed_to_int(data->dmif_buffer_transfer_time[i]));
0410         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] displays_with_same_mode[%d]:%d",
0411                     i, bw_fixed_to_int(data->displays_with_same_mode[i]));
0412         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] stutter_dmif_buffer_size[%d]:%d",
0413                     i, bw_fixed_to_int(data->stutter_dmif_buffer_size[i]));
0414         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] stutter_refresh_duration[%d]:%d",
0415                     i, bw_fixed_to_int(data->stutter_refresh_duration[i]));
0416         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] stutter_exit_watermark[%d]:%d",
0417                     i, bw_fixed_to_int(data->stutter_exit_watermark[i]));
0418         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] stutter_entry_watermark[%d]:%d",
0419                     i, bw_fixed_to_int(data->stutter_entry_watermark[i]));
0420         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] h_total[%d]:%d", i, bw_fixed_to_int(data->h_total[i]));
0421         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] v_total[%d]:%d", i, bw_fixed_to_int(data->v_total[i]));
0422         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] pixel_rate[%d]:%d", i, bw_fixed_to_int(data->pixel_rate[i]));
0423         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] src_width[%d]:%d", i, bw_fixed_to_int(data->src_width[i]));
0424         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] pitch_in_pixels[%d]:%d",
0425                     i, bw_fixed_to_int(data->pitch_in_pixels[i]));
0426         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] pitch_in_pixels_after_surface_type[%d]:%d",
0427                     i, bw_fixed_to_int(data->pitch_in_pixels_after_surface_type[i]));
0428         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] src_height[%d]:%d", i, bw_fixed_to_int(data->src_height[i]));
0429         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] scale_ratio[%d]:%d", i, bw_fixed_to_int(data->scale_ratio[i]));
0430         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] h_taps[%d]:%d", i, bw_fixed_to_int(data->h_taps[i]));
0431         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] v_taps[%d]:%d", i, bw_fixed_to_int(data->v_taps[i]));
0432         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] h_scale_ratio[%d]:%d", i, bw_fixed_to_int(data->h_scale_ratio[i]));
0433         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] v_scale_ratio[%d]:%d", i, bw_fixed_to_int(data->v_scale_ratio[i]));
0434         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] rotation_angle[%d]:%d",
0435                     i, bw_fixed_to_int(data->rotation_angle[i]));
0436         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] compression_rate[%d]:%d",
0437                     i, bw_fixed_to_int(data->compression_rate[i]));
0438         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] hsr[%d]:%d", i, bw_fixed_to_int(data->hsr[i]));
0439         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] vsr[%d]:%d", i, bw_fixed_to_int(data->vsr[i]));
0440         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] source_width_rounded_up_to_chunks[%d]:%d",
0441                     i, bw_fixed_to_int(data->source_width_rounded_up_to_chunks[i]));
0442         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] source_width_pixels[%d]:%d",
0443                     i, bw_fixed_to_int(data->source_width_pixels[i]));
0444         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] source_height_rounded_up_to_chunks[%d]:%d",
0445                     i, bw_fixed_to_int(data->source_height_rounded_up_to_chunks[i]));
0446         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] display_bandwidth[%d]:%d",
0447                     i, bw_fixed_to_int(data->display_bandwidth[i]));
0448         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] request_bandwidth[%d]:%d",
0449                     i, bw_fixed_to_int(data->request_bandwidth[i]));
0450         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] bytes_per_request[%d]:%d",
0451                     i, bw_fixed_to_int(data->bytes_per_request[i]));
0452         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] useful_bytes_per_request[%d]:%d",
0453                     i, bw_fixed_to_int(data->useful_bytes_per_request[i]));
0454         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] lines_interleaved_in_mem_access[%d]:%d",
0455                     i, bw_fixed_to_int(data->lines_interleaved_in_mem_access[i]));
0456         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] latency_hiding_lines[%d]:%d",
0457                     i, bw_fixed_to_int(data->latency_hiding_lines[i]));
0458         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] lb_partitions[%d]:%d",
0459                     i, bw_fixed_to_int(data->lb_partitions[i]));
0460         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] lb_partitions_max[%d]:%d",
0461                     i, bw_fixed_to_int(data->lb_partitions_max[i]));
0462         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dispclk_required_with_ramping[%d]:%d",
0463                     i, bw_fixed_to_int(data->dispclk_required_with_ramping[i]));
0464         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dispclk_required_without_ramping[%d]:%d",
0465                     i, bw_fixed_to_int(data->dispclk_required_without_ramping[i]));
0466         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] data_buffer_size[%d]:%d",
0467                     i, bw_fixed_to_int(data->data_buffer_size[i]));
0468         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] outstanding_chunk_request_limit[%d]:%d",
0469                     i, bw_fixed_to_int(data->outstanding_chunk_request_limit[i]));
0470         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] urgent_watermark[%d]:%d",
0471                     i, bw_fixed_to_int(data->urgent_watermark[i]));
0472         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] nbp_state_change_watermark[%d]:%d",
0473                     i, bw_fixed_to_int(data->nbp_state_change_watermark[i]));
0474         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] v_filter_init[%d]:%d", i, bw_fixed_to_int(data->v_filter_init[i]));
0475         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] stutter_cycle_duration[%d]:%d",
0476                     i, bw_fixed_to_int(data->stutter_cycle_duration[i]));
0477         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] average_bandwidth[%d]:%d",
0478                     i, bw_fixed_to_int(data->average_bandwidth[i]));
0479         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] average_bandwidth_no_compression[%d]:%d",
0480                     i, bw_fixed_to_int(data->average_bandwidth_no_compression[i]));
0481         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] scatter_gather_pte_request_limit[%d]:%d",
0482                     i, bw_fixed_to_int(data->scatter_gather_pte_request_limit[i]));
0483         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] lb_size_per_component[%d]:%d",
0484                     i, bw_fixed_to_int(data->lb_size_per_component[i]));
0485         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] memory_chunk_size_in_bytes[%d]:%d",
0486                     i, bw_fixed_to_int(data->memory_chunk_size_in_bytes[i]));
0487         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] pipe_chunk_size_in_bytes[%d]:%d",
0488                     i, bw_fixed_to_int(data->pipe_chunk_size_in_bytes[i]));
0489         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] number_of_trips_to_memory_for_getting_apte_row[%d]:%d",
0490                     i, bw_fixed_to_int(data->number_of_trips_to_memory_for_getting_apte_row[i]));
0491         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] adjusted_data_buffer_size[%d]:%d",
0492                     i, bw_fixed_to_int(data->adjusted_data_buffer_size[i]));
0493         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] adjusted_data_buffer_size_in_memory[%d]:%d",
0494                     i, bw_fixed_to_int(data->adjusted_data_buffer_size_in_memory[i]));
0495         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] pixels_per_data_fifo_entry[%d]:%d",
0496                     i, bw_fixed_to_int(data->pixels_per_data_fifo_entry[i]));
0497         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] scatter_gather_pte_requests_in_row[%d]:%d",
0498                     i, bw_fixed_to_int(data->scatter_gather_pte_requests_in_row[i]));
0499         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] pte_request_per_chunk[%d]:%d",
0500                     i, bw_fixed_to_int(data->pte_request_per_chunk[i]));
0501         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] scatter_gather_page_width[%d]:%d",
0502                     i, bw_fixed_to_int(data->scatter_gather_page_width[i]));
0503         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] scatter_gather_page_height[%d]:%d",
0504                     i, bw_fixed_to_int(data->scatter_gather_page_height[i]));
0505         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] lb_lines_in_per_line_out_in_beginning_of_frame[%d]:%d",
0506                     i, bw_fixed_to_int(data->lb_lines_in_per_line_out_in_beginning_of_frame[i]));
0507         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] lb_lines_in_per_line_out_in_middle_of_frame[%d]:%d",
0508                     i, bw_fixed_to_int(data->lb_lines_in_per_line_out_in_middle_of_frame[i]));
0509         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] cursor_width_pixels[%d]:%d",
0510                     i, bw_fixed_to_int(data->cursor_width_pixels[i]));
0511         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] minimum_latency_hiding[%d]:%d",
0512                     i, bw_fixed_to_int(data->minimum_latency_hiding[i]));
0513         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] maximum_latency_hiding[%d]:%d",
0514                     i, bw_fixed_to_int(data->maximum_latency_hiding[i]));
0515         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] minimum_latency_hiding_with_cursor[%d]:%d",
0516                     i, bw_fixed_to_int(data->minimum_latency_hiding_with_cursor[i]));
0517         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] maximum_latency_hiding_with_cursor[%d]:%d",
0518                     i, bw_fixed_to_int(data->maximum_latency_hiding_with_cursor[i]));
0519         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] src_pixels_for_first_output_pixel[%d]:%d",
0520                     i, bw_fixed_to_int(data->src_pixels_for_first_output_pixel[i]));
0521         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] src_pixels_for_last_output_pixel[%d]:%d",
0522                     i, bw_fixed_to_int(data->src_pixels_for_last_output_pixel[i]));
0523         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] src_data_for_first_output_pixel[%d]:%d",
0524                     i, bw_fixed_to_int(data->src_data_for_first_output_pixel[i]));
0525         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] src_data_for_last_output_pixel[%d]:%d",
0526                     i, bw_fixed_to_int(data->src_data_for_last_output_pixel[i]));
0527         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] active_time[%d]:%d", i, bw_fixed_to_int(data->active_time[i]));
0528         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] horizontal_blank_and_chunk_granularity_factor[%d]:%d",
0529                     i, bw_fixed_to_int(data->horizontal_blank_and_chunk_granularity_factor[i]));
0530         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] cursor_latency_hiding[%d]:%d",
0531                     i, bw_fixed_to_int(data->cursor_latency_hiding[i]));
0532         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] v_blank_dram_speed_change_margin[%d]:%d",
0533                     i, bw_fixed_to_int(data->v_blank_dram_speed_change_margin[i]));
0534         }
0535 
0536     for (i = 0; i < maximum_number_of_surfaces; i++) {
0537         for (j = 0; j < 3; j++) {
0538             for (k = 0; k < 8; k++) {
0539 
0540                 DC_LOG_BANDWIDTH_CALCS("\n  [bw_fixed] line_source_transfer_time[%d][%d][%d]:%d",
0541                     i, j, k, bw_fixed_to_int(data->line_source_transfer_time[i][j][k]));
0542                 DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dram_speed_change_line_source_transfer_time[%d][%d][%d]:%d",
0543                     i, j, k,
0544                     bw_fixed_to_int(data->dram_speed_change_line_source_transfer_time[i][j][k]));
0545             }
0546         }
0547     }
0548 
0549     for (i = 0; i < 3; i++) {
0550         for (j = 0; j < 8; j++) {
0551 
0552             DC_LOG_BANDWIDTH_CALCS("\n  [uint32_t] num_displays_with_margin[%d][%d]:%d",
0553                     i, j, data->num_displays_with_margin[i][j]);
0554             DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dmif_burst_time[%d][%d]:%d",
0555                     i, j, bw_fixed_to_int(data->dmif_burst_time[i][j]));
0556             DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] mcifwr_burst_time[%d][%d]:%d",
0557                     i, j, bw_fixed_to_int(data->mcifwr_burst_time[i][j]));
0558             DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] min_dram_speed_change_margin[%d][%d]:%d",
0559                     i, j, bw_fixed_to_int(data->min_dram_speed_change_margin[i][j]));
0560             DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dispclk_required_for_dram_speed_change[%d][%d]:%d",
0561                     i, j, bw_fixed_to_int(data->dispclk_required_for_dram_speed_change[i][j]));
0562             DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] blackout_duration_margin[%d][%d]:%d",
0563                     i, j, bw_fixed_to_int(data->blackout_duration_margin[i][j]));
0564             DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dispclk_required_for_blackout_duration[%d][%d]:%d",
0565                     i, j, bw_fixed_to_int(data->dispclk_required_for_blackout_duration[i][j]));
0566             DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dispclk_required_for_blackout_recovery[%d][%d]:%d",
0567                     i, j, bw_fixed_to_int(data->dispclk_required_for_blackout_recovery[i][j]));
0568         }
0569     }
0570 
0571     for (i = 0; i < 6; i++) {
0572         DC_LOG_BANDWIDTH_CALCS("    [bw_fixed] dmif_required_sclk_for_urgent_latency[%d]:%d",
0573                     i, bw_fixed_to_int(data->dmif_required_sclk_for_urgent_latency[i]));
0574     }
0575 }
0576 ;
0577 
0578 #endif /* _CALCS_CALCS_LOGGER_H_ */