vbios 369 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c GOP_VBIOS_CONTENT *vbios = (GOP_VBIOS_CONTENT *)((char *)hdr + offset); vbios 370 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; vbios 390 drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c adev->bios = kmemdup(&vbios->VbiosContent, vbios 124 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h static void print_bw_calcs_vbios(struct dc_context *ctx, const struct bw_calcs_vbios *vbios) vbios 130 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [enum] bw_defines memory_type: %d", vbios->memory_type); vbios 131 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [enum] bw_defines memory_type: %d", vbios->memory_type); vbios 132 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [uint32_t] dram_channel_width_in_bits: %d", vbios->dram_channel_width_in_bits); vbios 133 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [uint32_t] number_of_dram_channels: %d", vbios->number_of_dram_channels); vbios 134 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [uint32_t] number_of_dram_banks: %d", vbios->number_of_dram_banks); vbios 135 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] low_yclk: %d", bw_fixed_to_int(vbios->low_yclk)); vbios 136 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] mid_yclk: %d", bw_fixed_to_int(vbios->mid_yclk)); vbios 137 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] high_yclk: %d", bw_fixed_to_int(vbios->high_yclk)); vbios 138 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] low_sclk: %d", bw_fixed_to_int(vbios->low_sclk)); vbios 139 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] mid1_sclk: %d", bw_fixed_to_int(vbios->mid1_sclk)); vbios 140 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] mid2_sclk: %d", bw_fixed_to_int(vbios->mid2_sclk)); vbios 141 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] mid3_sclk: %d", bw_fixed_to_int(vbios->mid3_sclk)); vbios 142 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] mid4_sclk: %d", bw_fixed_to_int(vbios->mid4_sclk)); vbios 143 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] mid5_sclk: %d", bw_fixed_to_int(vbios->mid5_sclk)); vbios 144 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] mid6_sclk: %d", bw_fixed_to_int(vbios->mid6_sclk)); vbios 145 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] high_sclk: %d", bw_fixed_to_int(vbios->high_sclk)); vbios 147 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->low_voltage_max_dispclk)); vbios 149 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->mid_voltage_max_dispclk)); vbios 151 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->high_voltage_max_dispclk)); vbios 153 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->low_voltage_max_phyclk)); vbios 155 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->mid_voltage_max_phyclk)); vbios 157 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->high_voltage_max_phyclk)); vbios 158 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] data_return_bus_width: %d", bw_fixed_to_int(vbios->data_return_bus_width)); vbios 159 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] trc: %d", bw_fixed_to_int(vbios->trc)); vbios 160 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] dmifmc_urgent_latency: %d", bw_fixed_to_int(vbios->dmifmc_urgent_latency)); vbios 162 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->stutter_self_refresh_exit_latency)); vbios 164 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->stutter_self_refresh_entry_latency)); vbios 166 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->nbp_state_change_latency)); vbios 168 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->mcifwrmc_urgent_latency)); vbios 169 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bool] scatter_gather_enable: %d", vbios->scatter_gather_enable); vbios 171 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->down_spread_percentage)); vbios 172 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [uint32_t] cursor_width: %d", vbios->cursor_width); vbios 173 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [uint32_t] average_compression_rate: %d", vbios->average_compression_rate); vbios 175 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel); vbios 176 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h DC_LOG_BANDWIDTH_CALCS(" [bw_fixed] blackout_duration: %d", bw_fixed_to_int(vbios->blackout_duration)); vbios 178 drivers/gpu/drm/amd/display/dc/calcs/calcs_logger.h bw_fixed_to_int(vbios->maximum_blackout_recovery_time)); vbios 79 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c const struct bw_calcs_vbios *vbios, vbios 126 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c yclk[low] = vbios->low_yclk; vbios 127 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c yclk[mid] = vbios->mid_yclk; vbios 128 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c yclk[high] = vbios->high_yclk; vbios 129 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c sclk[s_low] = vbios->low_sclk; vbios 130 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c sclk[s_mid1] = vbios->mid1_sclk; vbios 131 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c sclk[s_mid2] = vbios->mid2_sclk; vbios 132 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c sclk[s_mid3] = vbios->mid3_sclk; vbios 133 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c sclk[s_mid4] = vbios->mid4_sclk; vbios 134 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c sclk[s_mid5] = vbios->mid5_sclk; vbios 135 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c sclk[s_mid6] = vbios->mid6_sclk; vbios 136 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c sclk[s_high] = vbios->high_sclk; vbios 234 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->scatter_gather_enable_for_pipe[0] = vbios->scatter_gather_enable; vbios 235 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->scatter_gather_enable_for_pipe[1] = vbios->scatter_gather_enable; vbios 236 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->scatter_gather_enable_for_pipe[2] = vbios->scatter_gather_enable; vbios 237 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->scatter_gather_enable_for_pipe[3] = vbios->scatter_gather_enable; vbios 322 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->scatter_gather_enable_for_pipe[i] = vbios->scatter_gather_enable; vbios 333 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->compression_rate[i] = bw_int_to_fixed(vbios->average_compression_rate); vbios 346 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->cursor_width_pixels[i] = bw_int_to_fixed(vbios->cursor_width); vbios 593 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->number_of_dram_wrchannels = vbios->number_of_dram_channels; vbios 594 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->number_of_dram_channels = vbios->number_of_dram_channels; vbios 601 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (vbios->memory_type == bw_def_hbm) vbios 621 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (vbios->memory_type == bw_def_hbm) vbios 1053 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->inefficient_linear_pitch_in_bytes = bw_mul(bw_mul(bw_int_to_fixed(256), bw_int_to_fixed(vbios->number_of_dram_banks)), bw_int_to_fixed(data->number_of_dram_channels)); vbios 1099 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->bytes_per_page_close_open = bw_mul(data->lines_interleaved_in_mem_access[i], bw_max2(bw_mul(bw_mul(bw_mul(bw_int_to_fixed(data->bytes_per_pixel[i]), data->tile_width_in_pixels), bw_int_to_fixed(vbios->number_of_dram_banks)), bw_int_to_fixed(data->number_of_dram_channels)), bw_mul(bw_int_to_fixed(data->bytes_per_pixel[i]), data->scatter_gather_page_width[i]))); vbios 1115 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dmif_total_page_close_open_time = bw_div(bw_mul((bw_add(bw_add(data->dmif_total_number_of_data_request_page_close_open, data->scatter_gather_total_pte_request_groups), data->cursor_total_request_groups)), vbios->trc), bw_int_to_fixed(1000)); vbios 1116 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->mcifwr_total_page_close_open_time = bw_div(bw_mul(data->mcifwr_total_number_of_data_request_page_close_open, vbios->trc), bw_int_to_fixed(1000)); vbios 1130 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->total_dmifmc_urgent_trips = bw_ceil2(bw_div(data->total_requests_for_adjusted_dmif_size, (bw_add(dceip->dmif_request_buffer_size, bw_int_to_fixed(vbios->number_of_request_slots_gmc_reserves_for_dmif_per_channel * data->number_of_dram_channels)))), bw_int_to_fixed(1)); vbios 1131 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->total_dmifmc_urgent_latency = bw_mul(vbios->dmifmc_urgent_latency, data->total_dmifmc_urgent_trips); vbios 1150 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (vbios->memory_type == bw_def_hbm) { vbios 1154 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->display_reads_required_dram_access_data = bw_mul(data->adjusted_data_buffer_size_in_memory[i], bw_ceil2(bw_div(bw_int_to_fixed((8 * vbios->dram_channel_width_in_bits / 8)), data->bytes_per_request[i]), bw_int_to_fixed(1))); vbios 1161 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->total_display_writes_required_dram_access_data = bw_add(data->total_display_writes_required_dram_access_data, bw_mul(data->adjusted_data_buffer_size_in_memory[i], bw_ceil2(bw_div(bw_int_to_fixed(vbios->dram_channel_width_in_bits), data->bytes_per_request[i]), bw_int_to_fixed(1)))); vbios 1188 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dmif_burst_time[i][j] = bw_max3(data->dmif_total_page_close_open_time, bw_div(data->total_display_reads_required_dram_access_data, (bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[i]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)))), bw_div(data->total_display_reads_required_data, (bw_mul(bw_mul(sclk[j], vbios->data_return_bus_width), bw_frc_to_fixed(dceip->percent_of_ideal_port_bw_received_after_urgent_latency, 100))))); vbios 1190 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->mcifwr_burst_time[i][j] = bw_max3(data->mcifwr_total_page_close_open_time, bw_div(data->total_display_writes_required_dram_access_data, (bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[i]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_wrchannels)))), bw_div(data->total_display_writes_required_data, (bw_mul(sclk[j], vbios->data_return_bus_width)))); vbios 1201 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dmif_buffer_transfer_time[i] = bw_mul(data->source_width_rounded_up_to_chunks[i], (bw_div(dceip->lb_write_pixels_per_dispclk, (bw_div(vbios->low_voltage_max_dispclk, dceip->display_pipe_throughput_factor))))); vbios 1252 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->line_source_transfer_time[i][j][k] = bw_max2(bw_mul((bw_add(vbios->mcifwrmc_urgent_latency, data->mcifwr_burst_time[j][k])), bw_floor2(bw_div(data->src_data_for_first_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1))), bw_sub(bw_mul((bw_add(vbios->mcifwrmc_urgent_latency, data->mcifwr_burst_time[j][k])), bw_floor2(bw_div(data->src_data_for_last_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1))), data->active_time[i])); vbios 1258 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_speed_change_line_source_transfer_time[i][j][k] = bw_max2((bw_add((bw_div(data->src_data_for_first_output_pixel[i], bw_min2(bw_mul(data->bytes_per_request[i], sclk[k]), bw_div(bw_mul(data->bytes_per_request[i], vbios->low_voltage_max_dispclk), bw_int_to_fixed(2))))), (bw_mul(data->mcifwr_burst_time[j][k], bw_floor2(bw_div(data->src_data_for_first_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1)))))), (bw_add((bw_div(data->src_data_for_last_output_pixel[i], bw_min2(bw_mul(data->bytes_per_request[i], sclk[k]), bw_div(bw_mul(data->bytes_per_request[i], vbios->low_voltage_max_dispclk), bw_int_to_fixed(2))))), (bw_sub(bw_mul(data->mcifwr_burst_time[j][k], bw_floor2(bw_div(data->src_data_for_last_output_pixel[i], data->adjusted_data_buffer_size_in_memory[i]), bw_int_to_fixed(1))), data->active_time[i]))))); vbios 1320 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (data->enable[k] && bw_mtn(vbios->blackout_duration, bw_int_to_fixed(0))) { vbios 1322 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->blackout_duration_margin[i][j] = bw_min2(data->blackout_duration_margin[i][j], bw_sub(bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]), data->line_source_transfer_time[k][i][j])); vbios 1323 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_duration[i][j] = bw_max3(data->dispclk_required_for_blackout_duration[i][j], bw_div(bw_div(bw_mul(data->src_pixels_for_first_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]))), bw_div(bw_div(bw_mul(data->src_pixels_for_last_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_add(bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]), data->active_time[k])))); vbios 1324 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (bw_leq(vbios->maximum_blackout_recovery_time, bw_add(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[i][j]))) { vbios 1327 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->adjusted_data_buffer_size[k], bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), (bw_add(vbios->blackout_duration, bw_add(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[i][j])))))) { vbios 1328 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_recovery[i][j] = bw_max2(data->dispclk_required_for_blackout_recovery[i][j], bw_div(bw_mul(bw_div(bw_div((bw_sub(bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), (bw_add(vbios->blackout_duration, vbios->maximum_blackout_recovery_time))), data->adjusted_data_buffer_size[k])), bw_int_to_fixed(data->bytes_per_pixel[k])), (bw_sub(vbios->maximum_blackout_recovery_time, bw_sub(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[i][j])))), data->latency_hiding_lines[k]), data->lines_interleaved_in_mem_access[k])); vbios 1332 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->blackout_duration_margin[i][j] = bw_min2(data->blackout_duration_margin[i][j], bw_sub(bw_sub(bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]), data->mcifwr_burst_time[i][j]), data->line_source_transfer_time[k][i][j])); vbios 1333 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_duration[i][j] = bw_max3(data->dispclk_required_for_blackout_duration[i][j], bw_div(bw_div(bw_mul(data->src_pixels_for_first_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_sub(bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]), data->mcifwr_burst_time[i][j]))), bw_div(bw_div(bw_mul(data->src_pixels_for_last_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_add(bw_sub(bw_sub(bw_sub(data->minimum_latency_hiding_with_cursor[k], vbios->blackout_duration), data->dmif_burst_time[i][j]), data->mcifwr_burst_time[i][j]), data->active_time[k])))); vbios 1334 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (bw_ltn(vbios->maximum_blackout_recovery_time, bw_add(bw_add(bw_mul(bw_int_to_fixed(2), vbios->mcifwrmc_urgent_latency), data->dmif_burst_time[i][j]), data->mcifwr_burst_time[i][j]))) { vbios 1337 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->adjusted_data_buffer_size[k], bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), (bw_add(vbios->blackout_duration, bw_add(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[i][j])))))) { vbios 1338 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_blackout_recovery[i][j] = bw_max2(data->dispclk_required_for_blackout_recovery[i][j], bw_div(bw_mul(bw_div(bw_div((bw_sub(bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), (bw_add(vbios->blackout_duration, vbios->maximum_blackout_recovery_time))), data->adjusted_data_buffer_size[k])), bw_int_to_fixed(data->bytes_per_pixel[k])), (bw_sub(vbios->maximum_blackout_recovery_time, (bw_add(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[i][j]))))), data->latency_hiding_lines[k]), data->lines_interleaved_in_mem_access[k])); vbios 1345 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (bw_mtn(data->blackout_duration_margin[high][s_high], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[high][s_high], vbios->high_voltage_max_dispclk)) { vbios 1347 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (bw_ltn(data->dispclk_required_for_blackout_recovery[high][s_high], vbios->high_voltage_max_dispclk)) { vbios 1386 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_speed_change_margin = bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]); vbios 1391 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_dram_speed_change_pipe[i][j] = bw_max2(bw_div(bw_div(bw_mul(data->src_pixels_for_first_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]))), bw_div(bw_div(bw_mul(data->src_pixels_for_last_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_add(bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]), data->active_time[k])))); vbios 1392 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if ((bw_ltn(data->dispclk_required_for_dram_speed_change_pipe[i][j], vbios->high_voltage_max_dispclk))) { vbios 1400 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_speed_change_margin = bw_sub(bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->mcifwr_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]); vbios 1405 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk_required_for_dram_speed_change_pipe[i][j] = bw_max2(bw_div(bw_div(bw_mul(data->src_pixels_for_first_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_sub(bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]), data->mcifwr_burst_time[i][j]))), bw_div(bw_div(bw_mul(data->src_pixels_for_last_output_pixel[k], dceip->display_pipe_throughput_factor), dceip->lb_write_pixels_per_dispclk), (bw_add(bw_sub(bw_sub(bw_sub(bw_sub(data->maximum_latency_hiding_with_cursor[k], vbios->nbp_state_change_latency), data->dmif_burst_time[i][j]), data->dram_speed_change_line_source_transfer_time[k][i][j]), data->mcifwr_burst_time[i][j]), data->active_time[k])))); vbios 1406 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if ((bw_ltn(data->dispclk_required_for_dram_speed_change_pipe[i][j], vbios->high_voltage_max_dispclk))) { vbios 1430 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->v_blank_dram_speed_change_margin[k] = bw_sub(bw_sub(bw_sub(bw_div(bw_mul((bw_sub(data->v_total[k], bw_sub(bw_div(data->src_height[k], data->v_scale_ratio[k]), bw_int_to_fixed(4)))), data->h_total[k]), data->pixel_rate[k]), vbios->nbp_state_change_latency), data->dmif_burst_time[low][s_low]), data->dram_speed_change_line_source_transfer_time[k][low][s_low]); vbios 1434 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->v_blank_dram_speed_change_margin[k] = bw_sub(bw_sub(bw_sub(bw_sub(bw_div(bw_mul((bw_sub(data->v_total[k], bw_sub(bw_div(data->src_height[k], data->v_scale_ratio[k]), bw_int_to_fixed(4)))), data->h_total[k]), data->pixel_rate[k]), vbios->nbp_state_change_latency), data->dmif_burst_time[low][s_low]), data->mcifwr_burst_time[low][s_low]), data->dram_speed_change_line_source_transfer_time[k][low][s_low]); vbios 1458 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (number_of_displays_enabled_with_margin > 0 && (number_of_displays_enabled_with_margin + number_of_aligned_displays_with_no_margin) == number_of_displays_enabled && bw_mtn(data->min_dram_speed_change_margin[high][s_high], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[high][s_high], bw_int_to_fixed(9999)) && bw_ltn(data->dispclk_required_for_dram_speed_change[high][s_high], vbios->high_voltage_max_dispclk)) { vbios 1516 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->chunk_request_delay = bw_fixed_to_int(bw_div(bw_int_to_fixed(512), vbios->high_voltage_max_dispclk)); vbios 1520 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->display_writes_time_for_data_transfer = bw_sub(data->min_mcifwr_size_in_time, vbios->mcifwrmc_urgent_latency); vbios 1529 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); vbios 1531 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_mtn(vbios->dmifmc_urgent_latency, data->required_dmifmc_urgent_latency_for_page_close_open) || bw_mtn(vbios->mcifwrmc_urgent_latency, data->required_mcifmcwr_urgent_latency)) { vbios 1535 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); vbios 1539 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation, 100),yclk[low]),bw_div(bw_int_to_fixed(vbios->dram_channel_width_in_bits),bw_int_to_fixed(8))),bw_int_to_fixed(vbios->number_of_dram_channels))) vbios 1540 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(bw_mul(data->required_dram_bandwidth_gbyte_per_second, bw_int_to_fixed(1000)), bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[low]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels))) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[low][s_high], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[low][s_high], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[low][s_high], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[low][s_high], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[low][s_high], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[low][s_high], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[low][s_high], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[low][s_high], vbios->high_voltage_max_dispclk) && data->num_displays_with_margin[low][s_high] == number_of_displays_enabled_with_margin))) { vbios 1541 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c yclk_message = bw_fixed_to_int(vbios->low_yclk); vbios 1543 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[low]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); vbios 1545 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation, 100),yclk[mid]),bw_div(bw_int_to_fixed(vbios->dram_channel_width_in_bits),bw_int_to_fixed(8))),bw_int_to_fixed(vbios->number_of_dram_channels))) vbios 1546 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(bw_mul(data->required_dram_bandwidth_gbyte_per_second, bw_int_to_fixed(1000)), bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[mid]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels))) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[mid][s_high], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[mid][s_high], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[mid][s_high], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[mid][s_high], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[mid][s_high], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[mid][s_high], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[mid][s_high], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[mid][s_high], vbios->high_voltage_max_dispclk) && data->num_displays_with_margin[mid][s_high] == number_of_displays_enabled_with_margin))) { vbios 1547 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c yclk_message = bw_fixed_to_int(vbios->mid_yclk); vbios 1549 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[mid]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); vbios 1551 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_drambw_display_can_use_in_normal_system_operation, 100),yclk[high]),bw_div(bw_int_to_fixed(vbios->dram_channel_width_in_bits),bw_int_to_fixed(8))),bw_int_to_fixed(vbios->number_of_dram_channels))) vbios 1552 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(bw_mul(data->required_dram_bandwidth_gbyte_per_second, bw_int_to_fixed(1000)), bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)))) { vbios 1553 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c yclk_message = bw_fixed_to_int(vbios->high_yclk); vbios 1555 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); vbios 1560 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dram_bandwidth = bw_mul(bw_div(bw_mul(bw_mul(data->dram_efficiency, yclk[high]), bw_int_to_fixed(vbios->dram_channel_width_in_bits)), bw_int_to_fixed(8)), bw_int_to_fixed(data->number_of_dram_channels)); vbios 1568 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dmif_required_sclk = bw_div(bw_div(data->total_display_reads_required_data, data->display_reads_time_for_data_transfer), (bw_mul(vbios->data_return_bus_width, bw_frc_to_fixed(dceip->percent_of_ideal_port_bw_received_after_urgent_latency, 100)))); vbios 1569 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->mcifwr_required_sclk = bw_div(bw_div(data->total_display_writes_required_data, data->display_writes_time_for_data_transfer), vbios->data_return_bus_width); vbios 1575 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_mtn(vbios->dmifmc_urgent_latency, data->required_dmifmc_urgent_latency_for_page_close_open) || bw_mtn(vbios->mcifwrmc_urgent_latency, data->required_mcifmcwr_urgent_latency)) { vbios 1582 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation, 100),sclk[low]),vbios->data_return_bus_width)) vbios 1583 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(data->required_sclk, sclk[s_low]) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_low], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_low], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_low], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_low], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[data->y_clk_level][s_low], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[data->y_clk_level][s_low], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[data->y_clk_level][s_low], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[data->y_clk_level][s_low], vbios->low_voltage_max_dispclk) && data->num_displays_with_margin[data->y_clk_level][s_low] == number_of_displays_enabled_with_margin))) { vbios 1586 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->required_sclk = vbios->low_sclk; vbios 1588 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation, 100),sclk[mid]),vbios->data_return_bus_width)) vbios 1589 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(data->required_sclk, sclk[s_mid1]) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid1], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid1], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid1], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid1], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[data->y_clk_level][s_mid1], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid1], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid1], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[data->y_clk_level][s_mid1], vbios->mid_voltage_max_dispclk) && data->num_displays_with_margin[data->y_clk_level][s_mid1] == number_of_displays_enabled_with_margin))) { vbios 1592 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->required_sclk = vbios->mid1_sclk; vbios 1594 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation, 100),sclk[s_mid2]),vbios->data_return_bus_width)) vbios 1595 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(data->required_sclk, sclk[s_mid2]) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid2], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid2], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid2], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid2], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[data->y_clk_level][s_mid2], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid2], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid2], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[data->y_clk_level][s_mid2], vbios->mid_voltage_max_dispclk) && data->num_displays_with_margin[data->y_clk_level][s_mid2] == number_of_displays_enabled_with_margin))) { vbios 1598 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->required_sclk = vbios->mid2_sclk; vbios 1600 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation, 100),sclk[s_mid3]),vbios->data_return_bus_width)) vbios 1601 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(data->required_sclk, sclk[s_mid3]) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid3], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid3], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid3], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid3], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[data->y_clk_level][s_mid3], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid3], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid3], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[data->y_clk_level][s_mid3], vbios->mid_voltage_max_dispclk) && data->num_displays_with_margin[data->y_clk_level][s_mid3] == number_of_displays_enabled_with_margin))) { vbios 1604 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->required_sclk = vbios->mid3_sclk; vbios 1606 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation, 100),sclk[s_mid4]),vbios->data_return_bus_width)) vbios 1607 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(data->required_sclk, sclk[s_mid4]) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid4], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid4], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid4], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid4], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[data->y_clk_level][s_mid4], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid4], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid4], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[data->y_clk_level][s_mid4], vbios->mid_voltage_max_dispclk) && data->num_displays_with_margin[data->y_clk_level][s_mid4] == number_of_displays_enabled_with_margin))) { vbios 1610 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->required_sclk = vbios->mid4_sclk; vbios 1612 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation, 100),sclk[s_mid5]),vbios->data_return_bus_width)) vbios 1613 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(data->required_sclk, sclk[s_mid5]) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid5], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid5], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid5], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid5], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[data->y_clk_level][s_mid5], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid5], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid5], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[data->y_clk_level][s_mid5], vbios->mid_voltage_max_dispclk) && data->num_displays_with_margin[data->y_clk_level][s_mid5] == number_of_displays_enabled_with_margin))) { vbios 1616 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->required_sclk = vbios->mid5_sclk; vbios 1618 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation, 100),sclk[s_mid6]),vbios->data_return_bus_width)) vbios 1619 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c && bw_ltn(data->required_sclk, sclk[s_mid6]) && (data->cpup_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid6], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid6], vbios->high_voltage_max_dispclk))) && (data->cpuc_state_change_enable == bw_def_no || (bw_mtn(data->blackout_duration_margin[data->y_clk_level][s_mid6], bw_int_to_fixed(0)) && bw_ltn(data->dispclk_required_for_blackout_duration[data->y_clk_level][s_mid6], vbios->high_voltage_max_dispclk) && bw_ltn(data->dispclk_required_for_blackout_recovery[data->y_clk_level][s_mid6], vbios->high_voltage_max_dispclk))) && (!data->increase_voltage_to_support_mclk_switch || data->nbp_state_change_enable == bw_def_no || (bw_mtn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid6], bw_int_to_fixed(0)) && bw_ltn(data->min_dram_speed_change_margin[data->y_clk_level][s_mid6], bw_int_to_fixed(9999)) && bw_leq(data->dispclk_required_for_dram_speed_change[data->y_clk_level][s_mid6], vbios->high_voltage_max_dispclk) && data->num_displays_with_margin[data->y_clk_level][s_mid6] == number_of_displays_enabled_with_margin))) { vbios 1622 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->required_sclk = vbios->mid6_sclk; vbios 1624 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation, 100),sclk[s_high]),vbios->data_return_bus_width)) vbios 1628 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->required_sclk = vbios->high_sclk; vbios 1630 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_meq(data->total_average_bandwidth_no_compression, bw_mul(bw_mul(bw_frc_to_fixed(dceip->max_average_percent_of_ideal_port_bw_display_can_use_in_normal_system_operation, 100),sclk[s_high]),vbios->data_return_bus_width)) vbios 1634 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->required_sclk = vbios->high_sclk; vbios 1656 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->downspread_factor = bw_add(bw_int_to_fixed(1), bw_div(vbios->down_spread_percentage, bw_int_to_fixed(100))); vbios 1744 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (bw_ltn(data->total_dispclk_required_with_ramping_with_request_bandwidth, vbios->high_voltage_max_dispclk)) { vbios 1747 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_ltn(data->total_dispclk_required_without_ramping_with_request_bandwidth, vbios->high_voltage_max_dispclk)) { vbios 1748 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dispclk = vbios->high_voltage_max_dispclk; vbios 1764 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if (bw_equ(bw_int_to_fixed(yclk_message), vbios->low_yclk) && sclk_message == bw_def_low && bw_ltn(data->dispclk, vbios->low_voltage_max_dispclk)) { vbios 1767 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if ((bw_equ(bw_int_to_fixed(yclk_message), vbios->low_yclk) || bw_equ(bw_int_to_fixed(yclk_message), vbios->mid_yclk)) && (sclk_message == bw_def_low || sclk_message == bw_def_mid) && bw_ltn(data->dispclk, vbios->mid_voltage_max_dispclk)) { vbios 1770 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c else if ((bw_equ(bw_int_to_fixed(yclk_message), vbios->low_yclk) || bw_equ(bw_int_to_fixed(yclk_message), vbios->mid_yclk) || bw_equ(bw_int_to_fixed(yclk_message), vbios->high_yclk)) && (sclk_message == bw_def_low || sclk_message == bw_def_mid || sclk_message == bw_def_high) && bw_leq(data->dispclk, vbios->high_voltage_max_dispclk)) { vbios 1782 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->max_phyclk = vbios->low_voltage_max_phyclk; vbios 1785 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->max_phyclk = vbios->mid_voltage_max_phyclk; vbios 1788 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->max_phyclk = vbios->high_voltage_max_phyclk; vbios 1793 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (data->enable[k] && bw_mtn(vbios->blackout_duration, bw_int_to_fixed(0)) && data->cpup_state_change_enable == bw_def_yes) { vbios 1796 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (bw_ltn(data->adjusted_data_buffer_size[k], bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), (bw_add(vbios->blackout_duration, bw_add(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[data->y_clk_level][data->sclk_level])))))) { vbios 1797 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->blackout_recovery_time = bw_max2(data->blackout_recovery_time, bw_div((bw_add(bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), vbios->blackout_duration), bw_sub(bw_div(bw_mul(bw_mul(bw_mul((bw_add(bw_mul(bw_int_to_fixed(2), data->total_dmifmc_urgent_latency), data->dmif_burst_time[data->y_clk_level][data->sclk_level])), data->dispclk), bw_int_to_fixed(data->bytes_per_pixel[k])), data->lines_interleaved_in_mem_access[k]), data->latency_hiding_lines[k]), data->adjusted_data_buffer_size[k]))), (bw_sub(bw_div(bw_mul(bw_mul(data->dispclk, bw_int_to_fixed(data->bytes_per_pixel[k])), data->lines_interleaved_in_mem_access[k]), data->latency_hiding_lines[k]), bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]))))); vbios 1801 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->blackout_recovery_time = bw_max2(data->blackout_recovery_time, bw_add(bw_mul(bw_int_to_fixed(2), vbios->mcifwrmc_urgent_latency), data->mcifwr_burst_time[data->y_clk_level][data->sclk_level])); vbios 1802 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (bw_ltn(data->adjusted_data_buffer_size[k], bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), (bw_add(vbios->blackout_duration, bw_add(bw_mul(bw_int_to_fixed(2), vbios->mcifwrmc_urgent_latency), data->mcifwr_burst_time[data->y_clk_level][data->sclk_level])))))) { vbios 1803 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->blackout_recovery_time = bw_max2(data->blackout_recovery_time, bw_div((bw_add(bw_mul(bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]), vbios->blackout_duration), bw_sub(bw_div(bw_mul(bw_mul(bw_mul((bw_add(bw_add(bw_mul(bw_int_to_fixed(2), vbios->mcifwrmc_urgent_latency), data->dmif_burst_time[data->y_clk_level][data->sclk_level]), data->mcifwr_burst_time[data->y_clk_level][data->sclk_level])), data->dispclk), bw_int_to_fixed(data->bytes_per_pixel[k])), data->lines_interleaved_in_mem_access[k]), data->latency_hiding_lines[k]), data->adjusted_data_buffer_size[k]))), (bw_sub(bw_div(bw_mul(bw_mul(data->dispclk, bw_int_to_fixed(data->bytes_per_pixel[k])), data->lines_interleaved_in_mem_access[k]), data->latency_hiding_lines[k]), bw_div(bw_mul(data->display_bandwidth[k], data->useful_bytes_per_request[k]), data->bytes_per_request[k]))))); vbios 1859 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->urgent_watermark[i] = bw_add(bw_add(bw_add(bw_add(bw_add(data->total_dmifmc_urgent_latency, data->dmif_burst_time[data->y_clk_level][data->sclk_level]), bw_max2(data->line_source_pixels_transfer_time, data->line_source_transfer_time[i][data->y_clk_level][data->sclk_level])), vbios->blackout_duration), data->chunk_request_time), data->cursor_request_time); vbios 1860 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->stutter_exit_watermark[i] = bw_add(bw_sub(vbios->stutter_self_refresh_exit_latency, data->total_dmifmc_urgent_latency), data->urgent_watermark[i]); vbios 1861 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->stutter_entry_watermark[i] = bw_add(bw_sub(bw_add(vbios->stutter_self_refresh_exit_latency, vbios->stutter_self_refresh_entry_latency), data->total_dmifmc_urgent_latency), data->urgent_watermark[i]); vbios 1864 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->nbp_state_change_watermark[i] = bw_add(bw_add(vbios->nbp_state_change_latency, data->dmif_burst_time[data->y_clk_level][data->sclk_level]), bw_max2(data->line_source_pixels_transfer_time, data->dram_speed_change_line_source_transfer_time[i][data->y_clk_level][data->sclk_level])); vbios 1872 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->urgent_watermark[i] = bw_add(bw_add(bw_add(bw_add(bw_add(vbios->mcifwrmc_urgent_latency, data->mcifwr_burst_time[data->y_clk_level][data->sclk_level]), bw_max2(data->line_source_pixels_transfer_time, data->line_source_transfer_time[i][data->y_clk_level][data->sclk_level])), vbios->blackout_duration), data->chunk_request_time), data->cursor_request_time); vbios 1876 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->nbp_state_change_watermark[i] = bw_add(bw_add(vbios->nbp_state_change_latency, data->mcifwr_burst_time[data->y_clk_level][data->sclk_level]), bw_max2(data->line_source_pixels_transfer_time, data->dram_speed_change_line_source_transfer_time[i][data->y_clk_level][data->sclk_level])); vbios 1947 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->stutter_burst_time = bw_div(bw_int_to_fixed(data->total_stutter_dmif_buffer_size), bw_mul(sclk[data->sclk_level], vbios->data_return_bus_width)); vbios 1949 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->total_stutter_cycle_duration = bw_add(bw_add(data->min_stutter_refresh_duration, vbios->stutter_self_refresh_exit_latency), data->stutter_burst_time); vbios 1959 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->stutter_efficiency = bw_max2(bw_int_to_fixed(0), bw_mul((bw_sub(bw_int_to_fixed(1), (bw_div(bw_mul((bw_add(vbios->stutter_self_refresh_exit_latency, data->stutter_burst_time)), bw_int_to_fixed(data->num_stutter_bursts)), bw_frc_to_fixed(166666667, 10000))))), bw_int_to_fixed(100))); vbios 1978 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->latency_for_non_mcifwr_clients = bw_add(vbios->mcifwrmc_urgent_latency, dceip->mcifwr_all_surfaces_burst_time); vbios 1991 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->nbp_state_dram_speed_change_latency_supported = bw_min2(data->nbp_state_dram_speed_change_latency_supported, bw_add(bw_sub(data->maximum_latency_hiding_with_cursor[i], data->nbp_state_change_watermark[i]), vbios->nbp_state_change_latency)); vbios 1992 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->v_blank_nbp_state_dram_speed_change_latency_supported = bw_min2(data->v_blank_nbp_state_dram_speed_change_latency_supported, bw_add(bw_sub(bw_div(bw_mul((bw_sub(data->v_total[i], bw_sub(bw_div(data->src_height[i], data->v_scale_ratio[i]), bw_int_to_fixed(4)))), data->h_total[i]), data->pixel_rate[i]), data->nbp_state_change_watermark[i]), vbios->nbp_state_change_latency)); vbios 1999 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c data->dmif_required_sclk_for_urgent_latency[i] = bw_div(bw_div(data->total_display_reads_required_data, data->display_reads_time_for_data_transfer_and_urgent_latency), (bw_mul(vbios->data_return_bus_width, bw_frc_to_fixed(dceip->percent_of_ideal_port_bw_received_after_urgent_latency, 100)))); vbios 2034 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_calcs_vbios vbios = { 0 }; vbios 2042 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.memory_type = bw_def_gddr5; vbios 2043 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dram_channel_width_in_bits = 64; vbios 2044 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; vbios 2045 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_banks = 8; vbios 2046 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_yclk = bw_int_to_fixed(1600); vbios 2047 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_yclk = bw_int_to_fixed(1600); vbios 2048 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_yclk = bw_frc_to_fixed(66666, 100); vbios 2049 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_sclk = bw_int_to_fixed(200); vbios 2050 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid1_sclk = bw_int_to_fixed(300); vbios 2051 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid2_sclk = bw_int_to_fixed(300); vbios 2052 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid3_sclk = bw_int_to_fixed(300); vbios 2053 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid4_sclk = bw_int_to_fixed(300); vbios 2054 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid5_sclk = bw_int_to_fixed(300); vbios 2055 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid6_sclk = bw_int_to_fixed(300); vbios 2056 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_sclk = bw_frc_to_fixed(62609, 100); vbios 2057 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_dispclk = bw_int_to_fixed(352); vbios 2058 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_dispclk = bw_int_to_fixed(467); vbios 2059 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_dispclk = bw_int_to_fixed(643); vbios 2060 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); vbios 2061 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2062 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2063 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.data_return_bus_width = bw_int_to_fixed(32); vbios 2064 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.trc = bw_int_to_fixed(50); vbios 2065 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dmifmc_urgent_latency = bw_int_to_fixed(4); vbios 2066 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_exit_latency = bw_frc_to_fixed(153, 10); vbios 2067 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_entry_latency = bw_int_to_fixed(0); vbios 2068 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.nbp_state_change_latency = bw_frc_to_fixed(19649, 1000); vbios 2069 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); vbios 2070 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.scatter_gather_enable = true; vbios 2071 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); vbios 2072 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.cursor_width = 32; vbios 2073 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.average_compression_rate = 4; vbios 2074 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; vbios 2075 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.blackout_duration = bw_int_to_fixed(0); /* us */ vbios 2076 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); vbios 2158 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.memory_type = bw_def_gddr5; vbios 2159 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dram_channel_width_in_bits = 32; vbios 2160 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; vbios 2161 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_banks = 8; vbios 2162 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_yclk = bw_int_to_fixed(6000); vbios 2163 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_yclk = bw_int_to_fixed(3200); vbios 2164 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_yclk = bw_int_to_fixed(1000); vbios 2165 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_sclk = bw_int_to_fixed(300); vbios 2166 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid1_sclk = bw_int_to_fixed(400); vbios 2167 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid2_sclk = bw_int_to_fixed(500); vbios 2168 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid3_sclk = bw_int_to_fixed(600); vbios 2169 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid4_sclk = bw_int_to_fixed(700); vbios 2170 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid5_sclk = bw_int_to_fixed(800); vbios 2171 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid6_sclk = bw_int_to_fixed(974); vbios 2172 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_sclk = bw_int_to_fixed(1154); vbios 2173 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_dispclk = bw_int_to_fixed(459); vbios 2174 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_dispclk = bw_int_to_fixed(654); vbios 2175 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_dispclk = bw_int_to_fixed(1108); vbios 2176 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); vbios 2177 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2178 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2179 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.data_return_bus_width = bw_int_to_fixed(32); vbios 2180 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.trc = bw_int_to_fixed(48); vbios 2181 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dmifmc_urgent_latency = bw_int_to_fixed(3); vbios 2182 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_exit_latency = bw_int_to_fixed(5); vbios 2183 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_entry_latency = bw_int_to_fixed(0); vbios 2184 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.nbp_state_change_latency = bw_int_to_fixed(45); vbios 2185 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); vbios 2186 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.scatter_gather_enable = true; vbios 2187 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); vbios 2188 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.cursor_width = 32; vbios 2189 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.average_compression_rate = 4; vbios 2190 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; vbios 2191 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.blackout_duration = bw_int_to_fixed(0); /* us */ vbios 2192 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); vbios 2271 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.memory_type = bw_def_gddr5; vbios 2272 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dram_channel_width_in_bits = 32; vbios 2273 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; vbios 2274 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_banks = 8; vbios 2275 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_yclk = bw_int_to_fixed(6000); vbios 2276 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_yclk = bw_int_to_fixed(3200); vbios 2277 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_yclk = bw_int_to_fixed(1000); vbios 2278 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_sclk = bw_int_to_fixed(300); vbios 2279 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid1_sclk = bw_int_to_fixed(400); vbios 2280 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid2_sclk = bw_int_to_fixed(500); vbios 2281 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid3_sclk = bw_int_to_fixed(600); vbios 2282 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid4_sclk = bw_int_to_fixed(700); vbios 2283 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid5_sclk = bw_int_to_fixed(800); vbios 2284 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid6_sclk = bw_int_to_fixed(974); vbios 2285 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_sclk = bw_int_to_fixed(1154); vbios 2286 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_dispclk = bw_int_to_fixed(459); vbios 2287 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_dispclk = bw_int_to_fixed(654); vbios 2288 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_dispclk = bw_int_to_fixed(1108); vbios 2289 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); vbios 2290 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2291 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2292 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.data_return_bus_width = bw_int_to_fixed(32); vbios 2293 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.trc = bw_int_to_fixed(48); vbios 2294 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (vbios.number_of_dram_channels == 2) // 64-bit vbios 2295 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dmifmc_urgent_latency = bw_int_to_fixed(4); vbios 2297 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dmifmc_urgent_latency = bw_int_to_fixed(3); vbios 2298 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_exit_latency = bw_int_to_fixed(5); vbios 2299 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_entry_latency = bw_int_to_fixed(0); vbios 2300 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.nbp_state_change_latency = bw_int_to_fixed(45); vbios 2301 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); vbios 2302 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.scatter_gather_enable = true; vbios 2303 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); vbios 2304 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.cursor_width = 32; vbios 2305 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.average_compression_rate = 4; vbios 2306 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; vbios 2307 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.blackout_duration = bw_int_to_fixed(0); /* us */ vbios 2308 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); vbios 2387 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.memory_type = bw_def_gddr5; vbios 2388 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dram_channel_width_in_bits = 32; vbios 2389 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; vbios 2390 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_banks = 8; vbios 2391 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_yclk = bw_int_to_fixed(6000); vbios 2392 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_yclk = bw_int_to_fixed(3200); vbios 2393 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_yclk = bw_int_to_fixed(1000); vbios 2394 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_sclk = bw_int_to_fixed(678); vbios 2395 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid1_sclk = bw_int_to_fixed(864); vbios 2396 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid2_sclk = bw_int_to_fixed(900); vbios 2397 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid3_sclk = bw_int_to_fixed(920); vbios 2398 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid4_sclk = bw_int_to_fixed(940); vbios 2399 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid5_sclk = bw_int_to_fixed(960); vbios 2400 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid6_sclk = bw_int_to_fixed(980); vbios 2401 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_sclk = bw_int_to_fixed(1049); vbios 2402 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_dispclk = bw_int_to_fixed(459); vbios 2403 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_dispclk = bw_int_to_fixed(654); vbios 2404 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_dispclk = bw_int_to_fixed(1108); vbios 2405 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); vbios 2406 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2407 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2408 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.data_return_bus_width = bw_int_to_fixed(32); vbios 2409 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.trc = bw_int_to_fixed(48); vbios 2410 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c if (vbios.number_of_dram_channels == 2) // 64-bit vbios 2411 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dmifmc_urgent_latency = bw_int_to_fixed(4); vbios 2413 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dmifmc_urgent_latency = bw_int_to_fixed(3); vbios 2414 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_exit_latency = bw_int_to_fixed(5); vbios 2415 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_entry_latency = bw_int_to_fixed(0); vbios 2416 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.nbp_state_change_latency = bw_int_to_fixed(250); vbios 2417 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); vbios 2418 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.scatter_gather_enable = false; vbios 2419 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); vbios 2420 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.cursor_width = 32; vbios 2421 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.average_compression_rate = 4; vbios 2422 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; vbios 2423 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.blackout_duration = bw_int_to_fixed(0); /* us */ vbios 2424 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); vbios 2503 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.memory_type = bw_def_gddr5; vbios 2504 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dram_channel_width_in_bits = 64; vbios 2505 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; vbios 2506 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_banks = 8; vbios 2507 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_yclk = bw_int_to_fixed(1866); vbios 2508 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_yclk = bw_int_to_fixed(1866); vbios 2509 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_yclk = bw_int_to_fixed(1333); vbios 2510 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_sclk = bw_int_to_fixed(200); vbios 2511 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid1_sclk = bw_int_to_fixed(600); vbios 2512 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid2_sclk = bw_int_to_fixed(600); vbios 2513 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid3_sclk = bw_int_to_fixed(600); vbios 2514 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid4_sclk = bw_int_to_fixed(600); vbios 2515 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid5_sclk = bw_int_to_fixed(600); vbios 2516 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid6_sclk = bw_int_to_fixed(600); vbios 2517 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_sclk = bw_int_to_fixed(800); vbios 2518 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_dispclk = bw_int_to_fixed(352); vbios 2519 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_dispclk = bw_int_to_fixed(467); vbios 2520 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_dispclk = bw_int_to_fixed(643); vbios 2521 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); vbios 2522 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2523 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2524 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.data_return_bus_width = bw_int_to_fixed(32); vbios 2525 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.trc = bw_int_to_fixed(50); vbios 2526 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dmifmc_urgent_latency = bw_int_to_fixed(4); vbios 2527 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_exit_latency = bw_frc_to_fixed(158, 10); vbios 2528 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_entry_latency = bw_int_to_fixed(0); vbios 2529 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.nbp_state_change_latency = bw_frc_to_fixed(2008, 100); vbios 2530 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); vbios 2531 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.scatter_gather_enable = true; vbios 2532 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); vbios 2533 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.cursor_width = 32; vbios 2534 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.average_compression_rate = 4; vbios 2535 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 256; vbios 2536 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.blackout_duration = bw_int_to_fixed(0); /* us */ vbios 2537 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); vbios 2616 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.memory_type = bw_def_hbm; vbios 2617 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dram_channel_width_in_bits = 128; vbios 2618 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_channels = asic_id.vram_width / vbios.dram_channel_width_in_bits; vbios 2619 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_dram_banks = 16; vbios 2620 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_yclk = bw_int_to_fixed(2400); vbios 2621 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_yclk = bw_int_to_fixed(1700); vbios 2622 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_yclk = bw_int_to_fixed(1000); vbios 2623 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_sclk = bw_int_to_fixed(300); vbios 2624 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid1_sclk = bw_int_to_fixed(350); vbios 2625 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid2_sclk = bw_int_to_fixed(400); vbios 2626 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid3_sclk = bw_int_to_fixed(500); vbios 2627 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid4_sclk = bw_int_to_fixed(600); vbios 2628 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid5_sclk = bw_int_to_fixed(700); vbios 2629 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid6_sclk = bw_int_to_fixed(760); vbios 2630 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_sclk = bw_int_to_fixed(776); vbios 2631 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_dispclk = bw_int_to_fixed(460); vbios 2632 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_dispclk = bw_int_to_fixed(670); vbios 2633 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_dispclk = bw_int_to_fixed(1133); vbios 2634 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.low_voltage_max_phyclk = bw_int_to_fixed(540); vbios 2635 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mid_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2636 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.high_voltage_max_phyclk = bw_int_to_fixed(810); vbios 2637 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.data_return_bus_width = bw_int_to_fixed(32); vbios 2638 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.trc = bw_int_to_fixed(48); vbios 2639 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.dmifmc_urgent_latency = bw_int_to_fixed(3); vbios 2640 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_exit_latency = bw_frc_to_fixed(75, 10); vbios 2641 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.stutter_self_refresh_entry_latency = bw_frc_to_fixed(19, 10); vbios 2642 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.nbp_state_change_latency = bw_int_to_fixed(39); vbios 2643 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.mcifwrmc_urgent_latency = bw_int_to_fixed(10); vbios 2644 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.scatter_gather_enable = false; vbios 2645 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.down_spread_percentage = bw_frc_to_fixed(5, 10); vbios 2646 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.cursor_width = 32; vbios 2647 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.average_compression_rate = 4; vbios 2648 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.number_of_request_slots_gmc_reserves_for_dmif_per_channel = 8; vbios 2649 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.blackout_duration = bw_int_to_fixed(0); /* us */ vbios 2650 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c vbios.maximum_blackout_recovery_time = bw_int_to_fixed(0); vbios 2732 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c *bw_vbios = vbios; vbios 2741 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c const struct bw_calcs_vbios *vbios, vbios 2746 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c int_max_clk = bw_fixed_to_int(vbios->high_voltage_max_dispclk); vbios 2751 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c int_max_clk = bw_fixed_to_int(vbios->high_sclk); vbios 3016 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c const struct bw_calcs_vbios *vbios, vbios 3035 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_fixed high_sclk = vbios->high_sclk; vbios 3036 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_fixed mid1_sclk = vbios->mid1_sclk; vbios 3037 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_fixed mid2_sclk = vbios->mid2_sclk; vbios 3038 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_fixed mid3_sclk = vbios->mid3_sclk; vbios 3039 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_fixed mid4_sclk = vbios->mid4_sclk; vbios 3040 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_fixed mid5_sclk = vbios->mid5_sclk; vbios 3041 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_fixed mid6_sclk = vbios->mid6_sclk; vbios 3042 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_fixed low_sclk = vbios->low_sclk; vbios 3043 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_fixed high_yclk = vbios->high_yclk; vbios 3044 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_fixed mid_yclk = vbios->mid_yclk; vbios 3045 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c struct bw_fixed low_yclk = vbios->low_yclk; vbios 3049 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c print_bw_calcs_vbios(ctx, vbios); vbios 3052 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c calculate_bandwidth(dceip, vbios, data); vbios 3204 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->low_sclk = mid3_sclk; vbios 3205 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid1_sclk = mid3_sclk; vbios 3206 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid2_sclk = mid3_sclk; vbios 3207 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c calculate_bandwidth(dceip, vbios, data); vbios 3324 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->low_sclk = low_sclk; vbios 3325 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid1_sclk = mid1_sclk; vbios 3326 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid2_sclk = mid2_sclk; vbios 3327 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->low_yclk = mid_yclk; vbios 3328 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c calculate_bandwidth(dceip, vbios, data); vbios 3445 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->low_yclk = high_yclk; vbios 3446 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid_yclk = high_yclk; vbios 3447 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->low_sclk = high_sclk; vbios 3448 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid1_sclk = high_sclk; vbios 3449 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid2_sclk = high_sclk; vbios 3450 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid3_sclk = high_sclk; vbios 3451 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid4_sclk = high_sclk; vbios 3452 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid5_sclk = high_sclk; vbios 3453 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid6_sclk = high_sclk; vbios 3455 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->low_yclk = mid_yclk; vbios 3456 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->low_sclk = mid3_sclk; vbios 3457 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid1_sclk = mid3_sclk; vbios 3458 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid2_sclk = mid3_sclk; vbios 3461 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c calculate_bandwidth(dceip, vbios, data); vbios 3575 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->low_yclk = low_yclk; vbios 3576 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid_yclk = mid_yclk; vbios 3577 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->low_sclk = low_sclk; vbios 3578 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid1_sclk = mid1_sclk; vbios 3579 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid2_sclk = mid2_sclk; vbios 3580 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid3_sclk = mid3_sclk; vbios 3581 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid4_sclk = mid4_sclk; vbios 3582 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid5_sclk = mid5_sclk; vbios 3583 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->mid6_sclk = mid6_sclk; vbios 3584 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c ((struct bw_calcs_vbios *)vbios)->high_sclk = high_sclk; vbios 3596 drivers/gpu/drm/amd/display/dc/calcs/dce_calcs.c return is_display_configuration_supported(vbios, calcs_output); vbios 483 drivers/gpu/drm/amd/display/dc/inc/dce_calcs.h const struct bw_calcs_vbios *vbios, vbios 250 drivers/gpu/drm/nouveau/dispnv04/dac.c if (drm->vbios.tvdactestval) vbios 251 drivers/gpu/drm/nouveau/dispnv04/dac.c testval = drm->vbios.tvdactestval; vbios 255 drivers/gpu/drm/nouveau/dispnv04/dac.c if (drm->vbios.dactestval) vbios 256 drivers/gpu/drm/nouveau/dispnv04/dac.c testval = drm->vbios.dactestval; vbios 304 drivers/gpu/drm/nouveau/dispnv04/dfp.c drm->vbios.digital_min_front_porch) vbios 307 drivers/gpu/drm/nouveau/dispnv04/dfp.c regp->fp_horiz_regs[FP_CRTC] = output_mode->hsync_start - drm->vbios.digital_min_front_porch - 1; vbios 192 drivers/gpu/drm/nouveau/dispnv04/disp.c struct dcb_table *dcb = &drm->vbios.dcb; vbios 58 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c if (drm->vbios.tvdactestval) vbios 59 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c testval = drm->vbios.tvdactestval; vbios 426 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c drm->vbios.fp.dual_link); vbios 418 drivers/gpu/drm/nouveau/dispnv50/disp.c args.load.data = nouveau_drm(encoder->dev)->vbios.dactestval; vbios 1474 drivers/gpu/drm/nouveau/dispnv50/disp.c struct nvbios *bios = &drm->vbios; vbios 2321 drivers/gpu/drm/nouveau/dispnv50/disp.c struct dcb_table *dcb = &drm->vbios.dcb; vbios 16 drivers/gpu/drm/nouveau/include/nvkm/subdev/instmem.h struct nvkm_memory *vbios; vbios 110 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; vbios 147 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; vbios 217 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; vbios 450 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; vbios 521 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; vbios 637 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; vbios 973 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; vbios 1254 drivers/gpu/drm/nouveau/nouveau_bios.c dcb = ROMPTR(dev, drm->vbios.data[0x36]); vbios 1649 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_table *dcb = &drm->vbios.dcb; vbios 1787 drivers/gpu/drm/nouveau/nouveau_bios.c struct dcb_table *dcb = &drm->vbios.dcb; vbios 1984 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; vbios 2016 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *legacy = &drm->vbios; vbios 2044 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; vbios 2082 drivers/gpu/drm/nouveau/nouveau_bios.c struct nvbios *bios = &drm->vbios; vbios 38 drivers/gpu/drm/nouveau/nouveau_bios.h ROM16(x) ? &drm->vbios.data[ROM16(x)] : NULL; \ vbios 676 drivers/gpu/drm/nouveau/nouveau_connector.c if (!drm->vbios.fp_no_ddc) { vbios 702 drivers/gpu/drm/nouveau/nouveau_connector.c if (nouveau_bios_fp_mode(dev, NULL) && (drm->vbios.fp_no_ddc || vbios 711 drivers/gpu/drm/nouveau/nouveau_connector.c if (!drm->vbios.fp_no_ddc) { vbios 860 drivers/gpu/drm/nouveau/nouveau_connector.c struct nvbios *bios = &drm->vbios; vbios 941 drivers/gpu/drm/nouveau/nouveau_connector.c drm->vbios.fp_no_ddc) && nouveau_bios_fp_mode(dev, NULL)) { vbios 1321 drivers/gpu/drm/nouveau/nouveau_connector.c struct dcb_table *dcbt = &drm->vbios.dcb; vbios 44 drivers/gpu/drm/nouveau/nouveau_debugfs.c for (i = 0; i < drm->vbios.length; i++) vbios 45 drivers/gpu/drm/nouveau/nouveau_debugfs.c seq_printf(m, "%c", drm->vbios.data[i]); vbios 249 drivers/gpu/drm/nouveau/nouveau_debugfs.c d_inode(dentry)->i_size = drm->vbios.length; vbios 544 drivers/gpu/drm/nouveau/nouveau_display.c if (nouveau_modeset != 2 && drm->vbios.dcb.entries) { vbios 195 drivers/gpu/drm/nouveau/nouveau_drv.h struct nvbios vbios; vbios 174 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv04.c &imem->base.vbios); vbios 205 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv04.c nvkm_memory_unref(&imem->base.vbios); vbios 186 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c &imem->base.vbios); vbios 221 drivers/gpu/drm/nouveau/nvkm/subdev/instmem/nv40.c nvkm_memory_unref(&imem->base.vbios); vbios 620 drivers/gpu/drm/radeon/radeon_bios.c GOP_VBIOS_CONTENT *vbios = (GOP_VBIOS_CONTENT *)((char *)hdr + offset); vbios 621 drivers/gpu/drm/radeon/radeon_bios.c VFCT_IMAGE_HEADER *vhdr = &vbios->VbiosHeader; vbios 641 drivers/gpu/drm/radeon/radeon_bios.c rdev->bios = kmemdup(&vbios->VbiosContent, vbios 427 drivers/video/fbdev/matrox/matroxfb_misc.c static void get_bios_version(unsigned char __iomem * vbios, struct matrox_bios* bd) { vbios 430 drivers/video/fbdev/matrox/matroxfb_misc.c pcir_offset = readb(vbios + 24) | (readb(vbios + 25) << 8); vbios 432 drivers/video/fbdev/matrox/matroxfb_misc.c readb(vbios + pcir_offset ) == 'P' && vbios 433 drivers/video/fbdev/matrox/matroxfb_misc.c readb(vbios + pcir_offset + 1) == 'C' && vbios 434 drivers/video/fbdev/matrox/matroxfb_misc.c readb(vbios + pcir_offset + 2) == 'I' && vbios 435 drivers/video/fbdev/matrox/matroxfb_misc.c readb(vbios + pcir_offset + 3) == 'R') { vbios 438 drivers/video/fbdev/matrox/matroxfb_misc.c h = readb(vbios + pcir_offset + 0x12); vbios 441 drivers/video/fbdev/matrox/matroxfb_misc.c bd->version.vRev = readb(vbios + pcir_offset + 0x13); vbios 445 drivers/video/fbdev/matrox/matroxfb_misc.c h = readb(vbios + 5); vbios 452 drivers/video/fbdev/matrox/matroxfb_misc.c static void get_bios_output(unsigned char __iomem* vbios, struct matrox_bios* bd) { vbios 455 drivers/video/fbdev/matrox/matroxfb_misc.c b = readb(vbios + 0x7FF1); vbios 462 drivers/video/fbdev/matrox/matroxfb_misc.c static void get_bios_tvout(unsigned char __iomem* vbios, struct matrox_bios* bd) { vbios 467 drivers/video/fbdev/matrox/matroxfb_misc.c if (readb(vbios + 0x1D) != 'I' || vbios 468 drivers/video/fbdev/matrox/matroxfb_misc.c readb(vbios + 0x1E) != 'B' || vbios 469 drivers/video/fbdev/matrox/matroxfb_misc.c readb(vbios + 0x1F) != 'M' || vbios 470 drivers/video/fbdev/matrox/matroxfb_misc.c readb(vbios + 0x20) != ' ') { vbios 474 drivers/video/fbdev/matrox/matroxfb_misc.c unsigned char b = readb(vbios + i); vbios 476 drivers/video/fbdev/matrox/matroxfb_misc.c if (b == '(' && readb(vbios + i + 1) == 'V') { vbios 477 drivers/video/fbdev/matrox/matroxfb_misc.c if (readb(vbios + i + 6) == 'T' && vbios 478 drivers/video/fbdev/matrox/matroxfb_misc.c readb(vbios + i + 7) == 'V' && vbios 479 drivers/video/fbdev/matrox/matroxfb_misc.c readb(vbios + i + 8) == 'O') { vbios 489 drivers/video/fbdev/matrox/matroxfb_misc.c static void parse_bios(unsigned char __iomem* vbios, struct matrox_bios* bd) { vbios 492 drivers/video/fbdev/matrox/matroxfb_misc.c if (readb(vbios) != 0x55 || readb(vbios + 1) != 0xAA) { vbios 496 drivers/video/fbdev/matrox/matroxfb_misc.c get_bios_version(vbios, bd); vbios 497 drivers/video/fbdev/matrox/matroxfb_misc.c get_bios_output(vbios, bd); vbios 498 drivers/video/fbdev/matrox/matroxfb_misc.c get_bios_tvout(vbios, bd); vbios 511 drivers/video/fbdev/matrox/matroxfb_misc.c header[0] = readb(vbios + pins_offset); vbios 512 drivers/video/fbdev/matrox/matroxfb_misc.c header[1] = readb(vbios + pins_offset + 1); vbios 513 drivers/video/fbdev/matrox/matroxfb_misc.c header[2] = readb(vbios + pins_offset + 2); vbios 518 drivers/video/fbdev/matrox/matroxfb_misc.c get_pins(vbios + pins_offset, bd); vbios 523 drivers/video/fbdev/matrox/matroxfb_misc.c pins_offset = readb(vbios + 0x7FFC) | (readb(vbios + 0x7FFD) << 8); vbios 525 drivers/video/fbdev/matrox/matroxfb_misc.c get_pins(vbios + pins_offset, bd);