calcs_logger.h 40 KB

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