1*b843c749SSergey Zigachev /*
2*b843c749SSergey Zigachev  * Copyright 2018 Advanced Micro Devices, Inc.
3*b843c749SSergey Zigachev  *
4*b843c749SSergey Zigachev  * Permission is hereby granted, free of charge, to any person obtaining a
5*b843c749SSergey Zigachev  * copy of this software and associated documentation files (the "Software"),
6*b843c749SSergey Zigachev  * to deal in the Software without restriction, including without limitation
7*b843c749SSergey Zigachev  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8*b843c749SSergey Zigachev  * and/or sell copies of the Software, and to permit persons to whom the
9*b843c749SSergey Zigachev  * Software is furnished to do so, subject to the following conditions:
10*b843c749SSergey Zigachev  *
11*b843c749SSergey Zigachev  * The above copyright notice and this permission notice shall be included in
12*b843c749SSergey Zigachev  * all copies or substantial portions of the Software.
13*b843c749SSergey Zigachev  *
14*b843c749SSergey Zigachev  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15*b843c749SSergey Zigachev  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16*b843c749SSergey Zigachev  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
17*b843c749SSergey Zigachev  * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
18*b843c749SSergey Zigachev  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
19*b843c749SSergey Zigachev  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
20*b843c749SSergey Zigachev  * OTHER DEALINGS IN THE SOFTWARE.
21*b843c749SSergey Zigachev  *
22*b843c749SSergey Zigachev  * Authors: AMD
23*b843c749SSergey Zigachev  *
24*b843c749SSergey Zigachev  */
25*b843c749SSergey Zigachev 
26*b843c749SSergey Zigachev #ifndef _CALCS_CALCS_LOGGER_H_
27*b843c749SSergey Zigachev #define _CALCS_CALCS_LOGGER_H_
28*b843c749SSergey Zigachev #define DC_LOGGER ctx->logger
29*b843c749SSergey Zigachev 
print_bw_calcs_dceip(struct dc_context * ctx,const struct bw_calcs_dceip * dceip)30*b843c749SSergey Zigachev static void print_bw_calcs_dceip(struct dc_context *ctx, const struct bw_calcs_dceip *dceip)
31*b843c749SSergey Zigachev {
32*b843c749SSergey Zigachev 
33*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("#####################################################################");
34*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("struct bw_calcs_dceip");
35*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("#####################################################################");
36*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[enum]   bw_calcs_version version %d", dceip->version);
37*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] large_cursor: %d", dceip->large_cursor);
38*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] dmif_pipe_en_fbc_chunk_tracker: %d", dceip->dmif_pipe_en_fbc_chunk_tracker);
39*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] display_write_back_supported: %d", dceip->display_write_back_supported);
40*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] argb_compression_support: %d", dceip->argb_compression_support);
41*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] pre_downscaler_enabled: %d", dceip->pre_downscaler_enabled);
42*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] underlay_downscale_prefetch_enabled: %d",
43*b843c749SSergey Zigachev 				dceip->underlay_downscale_prefetch_enabled);
44*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] graphics_lb_nodownscaling_multi_line_prefetching: %d",
45*b843c749SSergey Zigachev 				dceip->graphics_lb_nodownscaling_multi_line_prefetching);
46*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] limit_excessive_outstanding_dmif_requests: %d",
47*b843c749SSergey Zigachev 				dceip->limit_excessive_outstanding_dmif_requests);
48*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] cursor_max_outstanding_group_num: %d",
49*b843c749SSergey Zigachev 				dceip->cursor_max_outstanding_group_num);
50*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] lines_interleaved_into_lb: %d", dceip->lines_interleaved_into_lb);
51*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] low_power_tiling_mode: %d", dceip->low_power_tiling_mode);
52*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] chunk_width: %d", dceip->chunk_width);
53*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] number_of_graphics_pipes: %d", dceip->number_of_graphics_pipes);
54*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] number_of_underlay_pipes: %d", dceip->number_of_underlay_pipes);
55*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] max_dmif_buffer_allocated: %d", dceip->max_dmif_buffer_allocated);
56*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] graphics_dmif_size: %d", dceip->graphics_dmif_size);
57*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] underlay_luma_dmif_size: %d", dceip->underlay_luma_dmif_size);
58*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] underlay_chroma_dmif_size: %d", dceip->underlay_chroma_dmif_size);
59*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] scatter_gather_lines_of_pte_prefetching_in_linear_mode: %d",
60*b843c749SSergey Zigachev 				dceip->scatter_gather_lines_of_pte_prefetching_in_linear_mode);
61*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] display_write_back420_luma_mcifwr_buffer_size: %d",
62*b843c749SSergey Zigachev 				dceip->display_write_back420_luma_mcifwr_buffer_size);
63*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] display_write_back420_chroma_mcifwr_buffer_size: %d",
64*b843c749SSergey Zigachev 				dceip->display_write_back420_chroma_mcifwr_buffer_size);
65*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] scatter_gather_pte_request_rows_in_tiling_mode: %d",
66*b843c749SSergey Zigachev 				dceip->scatter_gather_pte_request_rows_in_tiling_mode);
67*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] underlay_vscaler_efficiency10_bit_per_component: %d",
68*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->underlay_vscaler_efficiency10_bit_per_component));
69*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] underlay_vscaler_efficiency12_bit_per_component: %d",
70*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->underlay_vscaler_efficiency12_bit_per_component));
71*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] graphics_vscaler_efficiency6_bit_per_component: %d",
72*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->graphics_vscaler_efficiency6_bit_per_component));
73*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] graphics_vscaler_efficiency8_bit_per_component: %d",
74*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->graphics_vscaler_efficiency8_bit_per_component));
75*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] graphics_vscaler_efficiency10_bit_per_component: %d",
76*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->graphics_vscaler_efficiency10_bit_per_component));
77*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] graphics_vscaler_efficiency12_bit_per_component: %d",
78*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->graphics_vscaler_efficiency12_bit_per_component));
79*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] alpha_vscaler_efficiency: %d",
80*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->alpha_vscaler_efficiency));
81*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] lb_write_pixels_per_dispclk: %d",
82*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->lb_write_pixels_per_dispclk));
83*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] lb_size_per_component444: %d",
84*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->lb_size_per_component444));
85*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] stutter_and_dram_clock_state_change_gated_before_cursor: %d",
86*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->stutter_and_dram_clock_state_change_gated_before_cursor));
87*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] underlay420_luma_lb_size_per_component: %d",
88*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->underlay420_luma_lb_size_per_component));
89*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] underlay420_chroma_lb_size_per_component: %d",
90*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->underlay420_chroma_lb_size_per_component));
91*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] underlay422_lb_size_per_component: %d",
92*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->underlay422_lb_size_per_component));
93*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] cursor_chunk_width: %d", bw_fixed_to_int(dceip->cursor_chunk_width));
94*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] cursor_dcp_buffer_lines: %d",
95*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->cursor_dcp_buffer_lines));
96*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] underlay_maximum_width_efficient_for_tiling: %d",
97*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->underlay_maximum_width_efficient_for_tiling));
98*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] underlay_maximum_height_efficient_for_tiling: %d",
99*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->underlay_maximum_height_efficient_for_tiling));
100*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display: %d",
101*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->peak_pte_request_to_eviction_ratio_limiting_multiple_displays_or_single_rotated_display));
102*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation: %d",
103*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->peak_pte_request_to_eviction_ratio_limiting_single_display_no_rotation));
104*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] minimum_outstanding_pte_request_limit: %d",
105*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->minimum_outstanding_pte_request_limit));
106*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] maximum_total_outstanding_pte_requests_allowed_by_saw: %d",
107*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->maximum_total_outstanding_pte_requests_allowed_by_saw));
108*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] linear_mode_line_request_alternation_slice: %d",
109*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->linear_mode_line_request_alternation_slice));
110*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] request_efficiency: %d", bw_fixed_to_int(dceip->request_efficiency));
111*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dispclk_per_request: %d", bw_fixed_to_int(dceip->dispclk_per_request));
112*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dispclk_ramping_factor: %d",
113*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->dispclk_ramping_factor));
114*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] display_pipe_throughput_factor: %d",
115*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->display_pipe_throughput_factor));
116*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mcifwr_all_surfaces_burst_time: %d",
117*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->mcifwr_all_surfaces_burst_time));
118*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dmif_request_buffer_size: %d",
119*b843c749SSergey Zigachev 				bw_fixed_to_int(dceip->dmif_request_buffer_size));
120*b843c749SSergey Zigachev 
121*b843c749SSergey Zigachev 
122*b843c749SSergey Zigachev }
123*b843c749SSergey Zigachev 
print_bw_calcs_vbios(struct dc_context * ctx,const struct bw_calcs_vbios * vbios)124*b843c749SSergey Zigachev static void print_bw_calcs_vbios(struct dc_context *ctx, const struct bw_calcs_vbios *vbios)
125*b843c749SSergey Zigachev {
126*b843c749SSergey Zigachev 
127*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("#####################################################################");
128*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("struct bw_calcs_vbios vbios");
129*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("#####################################################################");
130*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[enum] bw_defines memory_type: %d", vbios->memory_type);
131*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[enum] bw_defines memory_type: %d", vbios->memory_type);
132*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] dram_channel_width_in_bits: %d", vbios->dram_channel_width_in_bits);
133*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] number_of_dram_channels: %d", vbios->number_of_dram_channels);
134*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] number_of_dram_banks: %d", vbios->number_of_dram_banks);
135*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] low_yclk: %d", bw_fixed_to_int(vbios->low_yclk));
136*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mid_yclk: %d", bw_fixed_to_int(vbios->mid_yclk));
137*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] high_yclk: %d", bw_fixed_to_int(vbios->high_yclk));
138*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] low_sclk: %d", bw_fixed_to_int(vbios->low_sclk));
139*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mid1_sclk: %d", bw_fixed_to_int(vbios->mid1_sclk));
140*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mid2_sclk: %d", bw_fixed_to_int(vbios->mid2_sclk));
141*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mid3_sclk: %d", bw_fixed_to_int(vbios->mid3_sclk));
142*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mid4_sclk: %d", bw_fixed_to_int(vbios->mid4_sclk));
143*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mid5_sclk: %d", bw_fixed_to_int(vbios->mid5_sclk));
144*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mid6_sclk: %d", bw_fixed_to_int(vbios->mid6_sclk));
145*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] high_sclk: %d", bw_fixed_to_int(vbios->high_sclk));
146*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] low_voltage_max_dispclk: %d",
147*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->low_voltage_max_dispclk));
148*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mid_voltage_max_dispclk;: %d",
149*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->mid_voltage_max_dispclk));
150*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] high_voltage_max_dispclk;: %d",
151*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->high_voltage_max_dispclk));
152*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] low_voltage_max_phyclk: %d",
153*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->low_voltage_max_phyclk));
154*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mid_voltage_max_phyclk: %d",
155*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->mid_voltage_max_phyclk));
156*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] high_voltage_max_phyclk: %d",
157*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->high_voltage_max_phyclk));
158*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] data_return_bus_width: %d", bw_fixed_to_int(vbios->data_return_bus_width));
159*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] trc: %d", bw_fixed_to_int(vbios->trc));
160*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dmifmc_urgent_latency: %d", bw_fixed_to_int(vbios->dmifmc_urgent_latency));
161*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] stutter_self_refresh_exit_latency: %d",
162*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->stutter_self_refresh_exit_latency));
163*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] stutter_self_refresh_entry_latency: %d",
164*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->stutter_self_refresh_entry_latency));
165*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] nbp_state_change_latency: %d",
166*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->nbp_state_change_latency));
167*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mcifwrmc_urgent_latency: %d",
168*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->mcifwrmc_urgent_latency));
169*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] scatter_gather_enable: %d", vbios->scatter_gather_enable);
170*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] down_spread_percentage: %d",
171*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->down_spread_percentage));
172*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] cursor_width: %d", vbios->cursor_width);
173*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] average_compression_rate: %d", vbios->average_compression_rate);
174*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] number_of_request_slots_gmc_reserves_for_dmif_per_channel: %d",
175*b843c749SSergey Zigachev 				vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel);
176*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] blackout_duration: %d", bw_fixed_to_int(vbios->blackout_duration));
177*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] maximum_blackout_recovery_time: %d",
178*b843c749SSergey Zigachev 				bw_fixed_to_int(vbios->maximum_blackout_recovery_time));
179*b843c749SSergey Zigachev 
180*b843c749SSergey Zigachev 
181*b843c749SSergey Zigachev }
182*b843c749SSergey Zigachev 
print_bw_calcs_data(struct dc_context * ctx,struct bw_calcs_data * data)183*b843c749SSergey Zigachev static void print_bw_calcs_data(struct dc_context *ctx, struct bw_calcs_data *data)
184*b843c749SSergey Zigachev {
185*b843c749SSergey Zigachev 
186*b843c749SSergey Zigachev 	int i, j, k;
187*b843c749SSergey Zigachev 
188*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("#####################################################################");
189*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("struct bw_calcs_data data");
190*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("#####################################################################");
191*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] number_of_displays: %d", data->number_of_displays);
192*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[enum] bw_defines underlay_surface_type: %d", data->underlay_surface_type);
193*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[enum] bw_defines panning_and_bezel_adjustment: %d",
194*b843c749SSergey Zigachev 				data->panning_and_bezel_adjustment);
195*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[enum] bw_defines graphics_tiling_mode: %d", data->graphics_tiling_mode);
196*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] graphics_lb_bpc: %d", data->graphics_lb_bpc);
197*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] underlay_lb_bpc: %d", data->underlay_lb_bpc);
198*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[enum] bw_defines underlay_tiling_mode: %d", data->underlay_tiling_mode);
199*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[enum] bw_defines d0_underlay_mode: %d", data->d0_underlay_mode);
200*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] d1_display_write_back_dwb_enable: %d", data->d1_display_write_back_dwb_enable);
201*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[enum] bw_defines d1_underlay_mode: %d", data->d1_underlay_mode);
202*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] cpup_state_change_enable: %d", data->cpup_state_change_enable);
203*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] cpuc_state_change_enable: %d", data->cpuc_state_change_enable);
204*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] nbp_state_change_enable: %d", data->nbp_state_change_enable);
205*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bool] stutter_mode_enable: %d", data->stutter_mode_enable);
206*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] y_clk_level: %d", data->y_clk_level);
207*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] sclk_level: %d", data->sclk_level);
208*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] number_of_underlay_surfaces: %d", data->number_of_underlay_surfaces);
209*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] number_of_dram_wrchannels: %d", data->number_of_dram_wrchannels);
210*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] chunk_request_delay: %d", data->chunk_request_delay);
211*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] number_of_dram_channels: %d", data->number_of_dram_channels);
212*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[enum] bw_defines underlay_micro_tile_mode: %d", data->underlay_micro_tile_mode);
213*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[enum] bw_defines graphics_micro_tile_mode: %d", data->graphics_micro_tile_mode);
214*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] max_phyclk: %d", bw_fixed_to_int(data->max_phyclk));
215*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dram_efficiency: %d", bw_fixed_to_int(data->dram_efficiency));
216*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] src_width_after_surface_type: %d",
217*b843c749SSergey Zigachev 				bw_fixed_to_int(data->src_width_after_surface_type));
218*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] src_height_after_surface_type: %d",
219*b843c749SSergey Zigachev 				bw_fixed_to_int(data->src_height_after_surface_type));
220*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] hsr_after_surface_type: %d",
221*b843c749SSergey Zigachev 				bw_fixed_to_int(data->hsr_after_surface_type));
222*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] vsr_after_surface_type: %d", bw_fixed_to_int(data->vsr_after_surface_type));
223*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] src_width_after_rotation: %d",
224*b843c749SSergey Zigachev 				bw_fixed_to_int(data->src_width_after_rotation));
225*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] src_height_after_rotation: %d",
226*b843c749SSergey Zigachev 				bw_fixed_to_int(data->src_height_after_rotation));
227*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] hsr_after_rotation: %d", bw_fixed_to_int(data->hsr_after_rotation));
228*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] vsr_after_rotation: %d", bw_fixed_to_int(data->vsr_after_rotation));
229*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] source_height_pixels: %d", bw_fixed_to_int(data->source_height_pixels));
230*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] hsr_after_stereo: %d", bw_fixed_to_int(data->hsr_after_stereo));
231*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] vsr_after_stereo: %d", bw_fixed_to_int(data->vsr_after_stereo));
232*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] source_width_in_lb: %d", bw_fixed_to_int(data->source_width_in_lb));
233*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] lb_line_pitch: %d", bw_fixed_to_int(data->lb_line_pitch));
234*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] underlay_maximum_source_efficient_for_tiling: %d",
235*b843c749SSergey Zigachev 				bw_fixed_to_int(data->underlay_maximum_source_efficient_for_tiling));
236*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] num_lines_at_frame_start: %d",
237*b843c749SSergey Zigachev 				bw_fixed_to_int(data->num_lines_at_frame_start));
238*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] min_dmif_size_in_time: %d", bw_fixed_to_int(data->min_dmif_size_in_time));
239*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] min_mcifwr_size_in_time: %d",
240*b843c749SSergey Zigachev 				bw_fixed_to_int(data->min_mcifwr_size_in_time));
241*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_requests_for_dmif_size: %d",
242*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_requests_for_dmif_size));
243*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] peak_pte_request_to_eviction_ratio_limiting: %d",
244*b843c749SSergey Zigachev 				bw_fixed_to_int(data->peak_pte_request_to_eviction_ratio_limiting));
245*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] useful_pte_per_pte_request: %d",
246*b843c749SSergey Zigachev 				bw_fixed_to_int(data->useful_pte_per_pte_request));
247*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] scatter_gather_pte_request_rows: %d",
248*b843c749SSergey Zigachev 				bw_fixed_to_int(data->scatter_gather_pte_request_rows));
249*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] scatter_gather_row_height: %d",
250*b843c749SSergey Zigachev 				bw_fixed_to_int(data->scatter_gather_row_height));
251*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] scatter_gather_pte_requests_in_vblank: %d",
252*b843c749SSergey Zigachev 				bw_fixed_to_int(data->scatter_gather_pte_requests_in_vblank));
253*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] inefficient_linear_pitch_in_bytes: %d",
254*b843c749SSergey Zigachev 				bw_fixed_to_int(data->inefficient_linear_pitch_in_bytes));
255*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] cursor_total_data: %d", bw_fixed_to_int(data->cursor_total_data));
256*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] cursor_total_request_groups: %d",
257*b843c749SSergey Zigachev 				bw_fixed_to_int(data->cursor_total_request_groups));
258*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] scatter_gather_total_pte_requests: %d",
259*b843c749SSergey Zigachev 				bw_fixed_to_int(data->scatter_gather_total_pte_requests));
260*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] scatter_gather_total_pte_request_groups: %d",
261*b843c749SSergey Zigachev 				bw_fixed_to_int(data->scatter_gather_total_pte_request_groups));
262*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] tile_width_in_pixels: %d", bw_fixed_to_int(data->tile_width_in_pixels));
263*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dmif_total_number_of_data_request_page_close_open: %d",
264*b843c749SSergey Zigachev 				bw_fixed_to_int(data->dmif_total_number_of_data_request_page_close_open));
265*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mcifwr_total_number_of_data_request_page_close_open: %d",
266*b843c749SSergey Zigachev 				bw_fixed_to_int(data->mcifwr_total_number_of_data_request_page_close_open));
267*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] bytes_per_page_close_open: %d",
268*b843c749SSergey Zigachev 				bw_fixed_to_int(data->bytes_per_page_close_open));
269*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mcifwr_total_page_close_open_time: %d",
270*b843c749SSergey Zigachev 				bw_fixed_to_int(data->mcifwr_total_page_close_open_time));
271*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_requests_for_adjusted_dmif_size: %d",
272*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_requests_for_adjusted_dmif_size));
273*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_dmifmc_urgent_trips: %d",
274*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_dmifmc_urgent_trips));
275*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_dmifmc_urgent_latency: %d",
276*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_dmifmc_urgent_latency));
277*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_display_reads_required_data: %d",
278*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_display_reads_required_data));
279*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_display_reads_required_dram_access_data: %d",
280*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_display_reads_required_dram_access_data));
281*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_display_writes_required_data: %d",
282*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_display_writes_required_data));
283*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_display_writes_required_dram_access_data: %d",
284*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_display_writes_required_dram_access_data));
285*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] display_reads_required_data: %d",
286*b843c749SSergey Zigachev 				bw_fixed_to_int(data->display_reads_required_data));
287*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] display_reads_required_dram_access_data: %d",
288*b843c749SSergey Zigachev 				bw_fixed_to_int(data->display_reads_required_dram_access_data));
289*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dmif_total_page_close_open_time: %d",
290*b843c749SSergey Zigachev 				bw_fixed_to_int(data->dmif_total_page_close_open_time));
291*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] min_cursor_memory_interface_buffer_size_in_time: %d",
292*b843c749SSergey Zigachev 				bw_fixed_to_int(data->min_cursor_memory_interface_buffer_size_in_time));
293*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] min_read_buffer_size_in_time: %d",
294*b843c749SSergey Zigachev 				bw_fixed_to_int(data->min_read_buffer_size_in_time));
295*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] display_reads_time_for_data_transfer: %d",
296*b843c749SSergey Zigachev 				bw_fixed_to_int(data->display_reads_time_for_data_transfer));
297*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] display_writes_time_for_data_transfer: %d",
298*b843c749SSergey Zigachev 				bw_fixed_to_int(data->display_writes_time_for_data_transfer));
299*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dmif_required_dram_bandwidth: %d",
300*b843c749SSergey Zigachev 				bw_fixed_to_int(data->dmif_required_dram_bandwidth));
301*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mcifwr_required_dram_bandwidth: %d",
302*b843c749SSergey Zigachev 				bw_fixed_to_int(data->mcifwr_required_dram_bandwidth));
303*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] required_dmifmc_urgent_latency_for_page_close_open: %d",
304*b843c749SSergey Zigachev 				bw_fixed_to_int(data->required_dmifmc_urgent_latency_for_page_close_open));
305*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] required_mcifmcwr_urgent_latency: %d",
306*b843c749SSergey Zigachev 				bw_fixed_to_int(data->required_mcifmcwr_urgent_latency));
307*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] required_dram_bandwidth_gbyte_per_second: %d",
308*b843c749SSergey Zigachev 				bw_fixed_to_int(data->required_dram_bandwidth_gbyte_per_second));
309*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dram_bandwidth: %d", bw_fixed_to_int(data->dram_bandwidth));
310*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dmif_required_sclk: %d", bw_fixed_to_int(data->dmif_required_sclk));
311*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mcifwr_required_sclk: %d", bw_fixed_to_int(data->mcifwr_required_sclk));
312*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] required_sclk: %d", bw_fixed_to_int(data->required_sclk));
313*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] downspread_factor: %d", bw_fixed_to_int(data->downspread_factor));
314*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] v_scaler_efficiency: %d", bw_fixed_to_int(data->v_scaler_efficiency));
315*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] scaler_limits_factor: %d", bw_fixed_to_int(data->scaler_limits_factor));
316*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] display_pipe_pixel_throughput: %d",
317*b843c749SSergey Zigachev 				bw_fixed_to_int(data->display_pipe_pixel_throughput));
318*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_dispclk_required_with_ramping: %d",
319*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_dispclk_required_with_ramping));
320*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_dispclk_required_without_ramping: %d",
321*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_dispclk_required_without_ramping));
322*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_read_request_bandwidth: %d",
323*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_read_request_bandwidth));
324*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_write_request_bandwidth: %d",
325*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_write_request_bandwidth));
326*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dispclk_required_for_total_read_request_bandwidth: %d",
327*b843c749SSergey Zigachev 				bw_fixed_to_int(data->dispclk_required_for_total_read_request_bandwidth));
328*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_dispclk_required_with_ramping_with_request_bandwidth: %d",
329*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_dispclk_required_with_ramping_with_request_bandwidth));
330*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_dispclk_required_without_ramping_with_request_bandwidth: %d",
331*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_dispclk_required_without_ramping_with_request_bandwidth));
332*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dispclk: %d", bw_fixed_to_int(data->dispclk));
333*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] blackout_recovery_time: %d", bw_fixed_to_int(data->blackout_recovery_time));
334*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] min_pixels_per_data_fifo_entry: %d",
335*b843c749SSergey Zigachev 				bw_fixed_to_int(data->min_pixels_per_data_fifo_entry));
336*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] sclk_deep_sleep: %d", bw_fixed_to_int(data->sclk_deep_sleep));
337*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] chunk_request_time: %d", bw_fixed_to_int(data->chunk_request_time));
338*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] cursor_request_time: %d", bw_fixed_to_int(data->cursor_request_time));
339*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] line_source_pixels_transfer_time: %d",
340*b843c749SSergey Zigachev 				bw_fixed_to_int(data->line_source_pixels_transfer_time));
341*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dmifdram_access_efficiency: %d",
342*b843c749SSergey Zigachev 				bw_fixed_to_int(data->dmifdram_access_efficiency));
343*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mcifwrdram_access_efficiency: %d",
344*b843c749SSergey Zigachev 				bw_fixed_to_int(data->mcifwrdram_access_efficiency));
345*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_average_bandwidth_no_compression: %d",
346*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_average_bandwidth_no_compression));
347*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_average_bandwidth: %d",
348*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_average_bandwidth));
349*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] total_stutter_cycle_duration: %d",
350*b843c749SSergey Zigachev 				bw_fixed_to_int(data->total_stutter_cycle_duration));
351*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] stutter_burst_time: %d", bw_fixed_to_int(data->stutter_burst_time));
352*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] time_in_self_refresh: %d", bw_fixed_to_int(data->time_in_self_refresh));
353*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] stutter_efficiency: %d", bw_fixed_to_int(data->stutter_efficiency));
354*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] worst_number_of_trips_to_memory: %d",
355*b843c749SSergey Zigachev 				bw_fixed_to_int(data->worst_number_of_trips_to_memory));
356*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] immediate_flip_time: %d", bw_fixed_to_int(data->immediate_flip_time));
357*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] latency_for_non_dmif_clients: %d",
358*b843c749SSergey Zigachev 				bw_fixed_to_int(data->latency_for_non_dmif_clients));
359*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] latency_for_non_mcifwr_clients: %d",
360*b843c749SSergey Zigachev 				bw_fixed_to_int(data->latency_for_non_mcifwr_clients));
361*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dmifmc_urgent_latency_supported_in_high_sclk_and_yclk: %d",
362*b843c749SSergey Zigachev 				bw_fixed_to_int(data->dmifmc_urgent_latency_supported_in_high_sclk_and_yclk));
363*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] nbp_state_dram_speed_change_margin: %d",
364*b843c749SSergey Zigachev 				bw_fixed_to_int(data->nbp_state_dram_speed_change_margin));
365*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] display_reads_time_for_data_transfer_and_urgent_latency: %d",
366*b843c749SSergey Zigachev 				bw_fixed_to_int(data->display_reads_time_for_data_transfer_and_urgent_latency));
367*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dram_speed_change_margin: %d",
368*b843c749SSergey Zigachev 				bw_fixed_to_int(data->dram_speed_change_margin));
369*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] min_vblank_dram_speed_change_margin: %d",
370*b843c749SSergey Zigachev 				bw_fixed_to_int(data->min_vblank_dram_speed_change_margin));
371*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] min_stutter_refresh_duration: %d",
372*b843c749SSergey Zigachev 				bw_fixed_to_int(data->min_stutter_refresh_duration));
373*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] total_stutter_dmif_buffer_size: %d", data->total_stutter_dmif_buffer_size);
374*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] total_bytes_requested: %d", data->total_bytes_requested);
375*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] min_stutter_dmif_buffer_size: %d", data->min_stutter_dmif_buffer_size);
376*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[uint32_t] num_stutter_bursts: %d", data->num_stutter_bursts);
377*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] v_blank_nbp_state_dram_speed_change_latency_supported: %d",
378*b843c749SSergey Zigachev 				bw_fixed_to_int(data->v_blank_nbp_state_dram_speed_change_latency_supported));
379*b843c749SSergey Zigachev 	DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] nbp_state_dram_speed_change_latency_supported: %d",
380*b843c749SSergey Zigachev 				bw_fixed_to_int(data->nbp_state_dram_speed_change_latency_supported));
381*b843c749SSergey Zigachev 
382*b843c749SSergey Zigachev 	for (i = 0; i < maximum_number_of_surfaces; i++) {
383*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bool] fbc_en[%d]:%d\n", i, data->fbc_en[i]);
384*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bool] lpt_en[%d]:%d", i, data->lpt_en[i]);
385*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bool] displays_match_flag[%d]:%d", i, data->displays_match_flag[i]);
386*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bool] use_alpha[%d]:%d", i, data->use_alpha[i]);
387*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bool] orthogonal_rotation[%d]:%d", i, data->orthogonal_rotation[i]);
388*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bool] enable[%d]:%d", i, data->enable[i]);
389*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bool] access_one_channel_only[%d]:%d", i, data->access_one_channel_only[i]);
390*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bool] scatter_gather_enable_for_pipe[%d]:%d",
391*b843c749SSergey Zigachev 					i, data->scatter_gather_enable_for_pipe[i]);
392*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bool] interlace_mode[%d]:%d",
393*b843c749SSergey Zigachev 					i, data->interlace_mode[i]);
394*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bool] display_pstate_change_enable[%d]:%d",
395*b843c749SSergey Zigachev 					i, data->display_pstate_change_enable[i]);
396*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bool] line_buffer_prefetch[%d]:%d", i, data->line_buffer_prefetch[i]);
397*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[uint32_t] bytes_per_pixel[%d]:%d", i, data->bytes_per_pixel[i]);
398*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[uint32_t] max_chunks_non_fbc_mode[%d]:%d",
399*b843c749SSergey Zigachev 					i, data->max_chunks_non_fbc_mode[i]);
400*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[uint32_t] lb_bpc[%d]:%d", i, data->lb_bpc[i]);
401*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[uint32_t] output_bpphdmi[%d]:%d", i, data->output_bpphdmi[i]);
402*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[uint32_t] output_bppdp4_lane_hbr[%d]:%d", i, data->output_bppdp4_lane_hbr[i]);
403*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[uint32_t] output_bppdp4_lane_hbr2[%d]:%d",
404*b843c749SSergey Zigachev 					i, data->output_bppdp4_lane_hbr2[i]);
405*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[uint32_t] output_bppdp4_lane_hbr3[%d]:%d",
406*b843c749SSergey Zigachev 					i, data->output_bppdp4_lane_hbr3[i]);
407*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[enum] bw_defines stereo_mode[%d]:%d", i, data->stereo_mode[i]);
408*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dmif_buffer_transfer_time[%d]:%d",
409*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->dmif_buffer_transfer_time[i]));
410*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] displays_with_same_mode[%d]:%d",
411*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->displays_with_same_mode[i]));
412*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] stutter_dmif_buffer_size[%d]:%d",
413*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->stutter_dmif_buffer_size[i]));
414*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] stutter_refresh_duration[%d]:%d",
415*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->stutter_refresh_duration[i]));
416*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] stutter_exit_watermark[%d]:%d",
417*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->stutter_exit_watermark[i]));
418*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] stutter_entry_watermark[%d]:%d",
419*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->stutter_entry_watermark[i]));
420*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] h_total[%d]:%d", i, bw_fixed_to_int(data->h_total[i]));
421*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] v_total[%d]:%d", i, bw_fixed_to_int(data->v_total[i]));
422*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] pixel_rate[%d]:%d", i, bw_fixed_to_int(data->pixel_rate[i]));
423*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] src_width[%d]:%d", i, bw_fixed_to_int(data->src_width[i]));
424*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] pitch_in_pixels[%d]:%d",
425*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->pitch_in_pixels[i]));
426*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] pitch_in_pixels_after_surface_type[%d]:%d",
427*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->pitch_in_pixels_after_surface_type[i]));
428*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] src_height[%d]:%d", i, bw_fixed_to_int(data->src_height[i]));
429*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] scale_ratio[%d]:%d", i, bw_fixed_to_int(data->scale_ratio[i]));
430*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] h_taps[%d]:%d", i, bw_fixed_to_int(data->h_taps[i]));
431*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] v_taps[%d]:%d", i, bw_fixed_to_int(data->v_taps[i]));
432*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] h_scale_ratio[%d]:%d", i, bw_fixed_to_int(data->h_scale_ratio[i]));
433*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] v_scale_ratio[%d]:%d", i, bw_fixed_to_int(data->v_scale_ratio[i]));
434*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] rotation_angle[%d]:%d",
435*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->rotation_angle[i]));
436*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] compression_rate[%d]:%d",
437*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->compression_rate[i]));
438*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] hsr[%d]:%d", i, bw_fixed_to_int(data->hsr[i]));
439*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] vsr[%d]:%d", i, bw_fixed_to_int(data->vsr[i]));
440*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] source_width_rounded_up_to_chunks[%d]:%d",
441*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->source_width_rounded_up_to_chunks[i]));
442*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] source_width_pixels[%d]:%d",
443*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->source_width_pixels[i]));
444*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] source_height_rounded_up_to_chunks[%d]:%d",
445*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->source_height_rounded_up_to_chunks[i]));
446*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] display_bandwidth[%d]:%d",
447*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->display_bandwidth[i]));
448*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] request_bandwidth[%d]:%d",
449*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->request_bandwidth[i]));
450*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] bytes_per_request[%d]:%d",
451*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->bytes_per_request[i]));
452*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] useful_bytes_per_request[%d]:%d",
453*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->useful_bytes_per_request[i]));
454*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] lines_interleaved_in_mem_access[%d]:%d",
455*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->lines_interleaved_in_mem_access[i]));
456*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] latency_hiding_lines[%d]:%d",
457*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->latency_hiding_lines[i]));
458*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] lb_partitions[%d]:%d",
459*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->lb_partitions[i]));
460*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] lb_partitions_max[%d]:%d",
461*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->lb_partitions_max[i]));
462*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dispclk_required_with_ramping[%d]:%d",
463*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->dispclk_required_with_ramping[i]));
464*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dispclk_required_without_ramping[%d]:%d",
465*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->dispclk_required_without_ramping[i]));
466*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] data_buffer_size[%d]:%d",
467*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->data_buffer_size[i]));
468*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] outstanding_chunk_request_limit[%d]:%d",
469*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->outstanding_chunk_request_limit[i]));
470*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] urgent_watermark[%d]:%d",
471*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->urgent_watermark[i]));
472*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] nbp_state_change_watermark[%d]:%d",
473*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->nbp_state_change_watermark[i]));
474*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] v_filter_init[%d]:%d", i, bw_fixed_to_int(data->v_filter_init[i]));
475*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] stutter_cycle_duration[%d]:%d",
476*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->stutter_cycle_duration[i]));
477*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] average_bandwidth[%d]:%d",
478*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->average_bandwidth[i]));
479*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] average_bandwidth_no_compression[%d]:%d",
480*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->average_bandwidth_no_compression[i]));
481*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] scatter_gather_pte_request_limit[%d]:%d",
482*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->scatter_gather_pte_request_limit[i]));
483*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] lb_size_per_component[%d]:%d",
484*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->lb_size_per_component[i]));
485*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] memory_chunk_size_in_bytes[%d]:%d",
486*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->memory_chunk_size_in_bytes[i]));
487*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] pipe_chunk_size_in_bytes[%d]:%d",
488*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->pipe_chunk_size_in_bytes[i]));
489*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] number_of_trips_to_memory_for_getting_apte_row[%d]:%d",
490*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->number_of_trips_to_memory_for_getting_apte_row[i]));
491*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] adjusted_data_buffer_size[%d]:%d",
492*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->adjusted_data_buffer_size[i]));
493*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] adjusted_data_buffer_size_in_memory[%d]:%d",
494*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->adjusted_data_buffer_size_in_memory[i]));
495*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] pixels_per_data_fifo_entry[%d]:%d",
496*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->pixels_per_data_fifo_entry[i]));
497*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] scatter_gather_pte_requests_in_row[%d]:%d",
498*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->scatter_gather_pte_requests_in_row[i]));
499*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] pte_request_per_chunk[%d]:%d",
500*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->pte_request_per_chunk[i]));
501*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] scatter_gather_page_width[%d]:%d",
502*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->scatter_gather_page_width[i]));
503*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] scatter_gather_page_height[%d]:%d",
504*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->scatter_gather_page_height[i]));
505*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] lb_lines_in_per_line_out_in_beginning_of_frame[%d]:%d",
506*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->lb_lines_in_per_line_out_in_beginning_of_frame[i]));
507*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] lb_lines_in_per_line_out_in_middle_of_frame[%d]:%d",
508*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->lb_lines_in_per_line_out_in_middle_of_frame[i]));
509*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] cursor_width_pixels[%d]:%d",
510*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->cursor_width_pixels[i]));
511*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] minimum_latency_hiding[%d]:%d",
512*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->minimum_latency_hiding[i]));
513*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] maximum_latency_hiding[%d]:%d",
514*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->maximum_latency_hiding[i]));
515*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] minimum_latency_hiding_with_cursor[%d]:%d",
516*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->minimum_latency_hiding_with_cursor[i]));
517*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] maximum_latency_hiding_with_cursor[%d]:%d",
518*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->maximum_latency_hiding_with_cursor[i]));
519*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] src_pixels_for_first_output_pixel[%d]:%d",
520*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->src_pixels_for_first_output_pixel[i]));
521*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] src_pixels_for_last_output_pixel[%d]:%d",
522*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->src_pixels_for_last_output_pixel[i]));
523*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] src_data_for_first_output_pixel[%d]:%d",
524*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->src_data_for_first_output_pixel[i]));
525*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] src_data_for_last_output_pixel[%d]:%d",
526*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->src_data_for_last_output_pixel[i]));
527*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] active_time[%d]:%d", i, bw_fixed_to_int(data->active_time[i]));
528*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] horizontal_blank_and_chunk_granularity_factor[%d]:%d",
529*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->horizontal_blank_and_chunk_granularity_factor[i]));
530*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] cursor_latency_hiding[%d]:%d",
531*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->cursor_latency_hiding[i]));
532*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] v_blank_dram_speed_change_margin[%d]:%d",
533*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->v_blank_dram_speed_change_margin[i]));
534*b843c749SSergey Zigachev 		}
535*b843c749SSergey Zigachev 
536*b843c749SSergey Zigachev 	for (i = 0; i < maximum_number_of_surfaces; i++) {
537*b843c749SSergey Zigachev 		for (j = 0; j < 3; j++) {
538*b843c749SSergey Zigachev 			for (k = 0; k < 8; k++) {
539*b843c749SSergey Zigachev 
540*b843c749SSergey Zigachev 				DC_LOG_BANDWIDTH_CALCS("\n	[bw_fixed] line_source_transfer_time[%d][%d][%d]:%d",
541*b843c749SSergey Zigachev 					i, j, k, bw_fixed_to_int(data->line_source_transfer_time[i][j][k]));
542*b843c749SSergey Zigachev 				DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dram_speed_change_line_source_transfer_time[%d][%d][%d]:%d",
543*b843c749SSergey Zigachev 					i, j, k,
544*b843c749SSergey Zigachev 					bw_fixed_to_int(data->dram_speed_change_line_source_transfer_time[i][j][k]));
545*b843c749SSergey Zigachev 			}
546*b843c749SSergey Zigachev 		}
547*b843c749SSergey Zigachev 	}
548*b843c749SSergey Zigachev 
549*b843c749SSergey Zigachev 	for (i = 0; i < 3; i++) {
550*b843c749SSergey Zigachev 		for (j = 0; j < 8; j++) {
551*b843c749SSergey Zigachev 
552*b843c749SSergey Zigachev 			DC_LOG_BANDWIDTH_CALCS("\n	[uint32_t] num_displays_with_margin[%d][%d]:%d",
553*b843c749SSergey Zigachev 					i, j, data->num_displays_with_margin[i][j]);
554*b843c749SSergey Zigachev 			DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dmif_burst_time[%d][%d]:%d",
555*b843c749SSergey Zigachev 					i, j, bw_fixed_to_int(data->dmif_burst_time[i][j]));
556*b843c749SSergey Zigachev 			DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] mcifwr_burst_time[%d][%d]:%d",
557*b843c749SSergey Zigachev 					i, j, bw_fixed_to_int(data->mcifwr_burst_time[i][j]));
558*b843c749SSergey Zigachev 			DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] min_dram_speed_change_margin[%d][%d]:%d",
559*b843c749SSergey Zigachev 					i, j, bw_fixed_to_int(data->min_dram_speed_change_margin[i][j]));
560*b843c749SSergey Zigachev 			DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dispclk_required_for_dram_speed_change[%d][%d]:%d",
561*b843c749SSergey Zigachev 					i, j, bw_fixed_to_int(data->dispclk_required_for_dram_speed_change[i][j]));
562*b843c749SSergey Zigachev 			DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] blackout_duration_margin[%d][%d]:%d",
563*b843c749SSergey Zigachev 					i, j, bw_fixed_to_int(data->blackout_duration_margin[i][j]));
564*b843c749SSergey Zigachev 			DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dispclk_required_for_blackout_duration[%d][%d]:%d",
565*b843c749SSergey Zigachev 					i, j, bw_fixed_to_int(data->dispclk_required_for_blackout_duration[i][j]));
566*b843c749SSergey Zigachev 			DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dispclk_required_for_blackout_recovery[%d][%d]:%d",
567*b843c749SSergey Zigachev 					i, j, bw_fixed_to_int(data->dispclk_required_for_blackout_recovery[i][j]));
568*b843c749SSergey Zigachev 		}
569*b843c749SSergey Zigachev 	}
570*b843c749SSergey Zigachev 
571*b843c749SSergey Zigachev 	for (i = 0; i < 6; i++) {
572*b843c749SSergey Zigachev 		DC_LOG_BANDWIDTH_CALCS("	[bw_fixed] dmif_required_sclk_for_urgent_latency[%d]:%d",
573*b843c749SSergey Zigachev 					i, bw_fixed_to_int(data->dmif_required_sclk_for_urgent_latency[i]));
574*b843c749SSergey Zigachev 	}
575*b843c749SSergey Zigachev }
576*b843c749SSergey Zigachev ;
577*b843c749SSergey Zigachev 
578*b843c749SSergey Zigachev #endif /* _CALCS_CALCS_LOGGER_H_ */
579