18c2ecf20Sopenharmony_ci/*
28c2ecf20Sopenharmony_ci * Copyright 2019 Advanced Micro Devices, Inc.
38c2ecf20Sopenharmony_ci *
48c2ecf20Sopenharmony_ci * Permission is hereby granted, free of charge, to any person obtaining a
58c2ecf20Sopenharmony_ci * copy of this software and associated documentation files (the "Software"),
68c2ecf20Sopenharmony_ci * to deal in the Software without restriction, including without limitation
78c2ecf20Sopenharmony_ci * the rights to use, copy, modify, merge, publish, distribute, sublicense,
88c2ecf20Sopenharmony_ci * and/or sell copies of the Software, and to permit persons to whom the
98c2ecf20Sopenharmony_ci * Software is furnished to do so, subject to the following conditions:
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * The above copyright notice and this permission notice shall be included in
128c2ecf20Sopenharmony_ci * all copies or substantial portions of the Software.
138c2ecf20Sopenharmony_ci *
148c2ecf20Sopenharmony_ci * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
158c2ecf20Sopenharmony_ci * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
168c2ecf20Sopenharmony_ci * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
178c2ecf20Sopenharmony_ci * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
188c2ecf20Sopenharmony_ci * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
198c2ecf20Sopenharmony_ci * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
208c2ecf20Sopenharmony_ci * OTHER DEALINGS IN THE SOFTWARE.
218c2ecf20Sopenharmony_ci *
228c2ecf20Sopenharmony_ci */
238c2ecf20Sopenharmony_ci#ifndef __AMDGPU_SOCBB_H__
248c2ecf20Sopenharmony_ci#define __AMDGPU_SOCBB_H__
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_cistruct gpu_info_voltage_scaling_v1_0 {
278c2ecf20Sopenharmony_ci	uint32_t state;
288c2ecf20Sopenharmony_ci	uint32_t dscclk_mhz;
298c2ecf20Sopenharmony_ci	uint32_t dcfclk_mhz;
308c2ecf20Sopenharmony_ci	uint32_t socclk_mhz;
318c2ecf20Sopenharmony_ci	uint32_t dram_speed_mts;
328c2ecf20Sopenharmony_ci	uint32_t fabricclk_mhz;
338c2ecf20Sopenharmony_ci	uint32_t dispclk_mhz;
348c2ecf20Sopenharmony_ci	uint32_t phyclk_mhz;
358c2ecf20Sopenharmony_ci	uint32_t dppclk_mhz;
368c2ecf20Sopenharmony_ci};
378c2ecf20Sopenharmony_ci
388c2ecf20Sopenharmony_cistruct gpu_info_soc_bounding_box_v1_0 {
398c2ecf20Sopenharmony_ci	uint32_t sr_exit_time_us;
408c2ecf20Sopenharmony_ci	uint32_t sr_enter_plus_exit_time_us;
418c2ecf20Sopenharmony_ci	uint32_t urgent_latency_us;
428c2ecf20Sopenharmony_ci	uint32_t urgent_latency_pixel_data_only_us;
438c2ecf20Sopenharmony_ci	uint32_t urgent_latency_pixel_mixed_with_vm_data_us;
448c2ecf20Sopenharmony_ci	uint32_t urgent_latency_vm_data_only_us;
458c2ecf20Sopenharmony_ci	uint32_t writeback_latency_us;
468c2ecf20Sopenharmony_ci	uint32_t ideal_dram_bw_after_urgent_percent;
478c2ecf20Sopenharmony_ci	uint32_t pct_ideal_dram_sdp_bw_after_urgent_pixel_only; // PercentOfIdealDRAMFabricAndSDPPortBWReceivedAfterUrgLatencyPixelDataOnly
488c2ecf20Sopenharmony_ci	uint32_t pct_ideal_dram_sdp_bw_after_urgent_pixel_and_vm;
498c2ecf20Sopenharmony_ci	uint32_t pct_ideal_dram_sdp_bw_after_urgent_vm_only;
508c2ecf20Sopenharmony_ci	uint32_t max_avg_sdp_bw_use_normal_percent;
518c2ecf20Sopenharmony_ci	uint32_t max_avg_dram_bw_use_normal_percent;
528c2ecf20Sopenharmony_ci	uint32_t max_request_size_bytes;
538c2ecf20Sopenharmony_ci	uint32_t downspread_percent;
548c2ecf20Sopenharmony_ci	uint32_t dram_page_open_time_ns;
558c2ecf20Sopenharmony_ci	uint32_t dram_rw_turnaround_time_ns;
568c2ecf20Sopenharmony_ci	uint32_t dram_return_buffer_per_channel_bytes;
578c2ecf20Sopenharmony_ci	uint32_t dram_channel_width_bytes;
588c2ecf20Sopenharmony_ci	uint32_t fabric_datapath_to_dcn_data_return_bytes;
598c2ecf20Sopenharmony_ci	uint32_t dcn_downspread_percent;
608c2ecf20Sopenharmony_ci	uint32_t dispclk_dppclk_vco_speed_mhz;
618c2ecf20Sopenharmony_ci	uint32_t dfs_vco_period_ps;
628c2ecf20Sopenharmony_ci	uint32_t urgent_out_of_order_return_per_channel_pixel_only_bytes;
638c2ecf20Sopenharmony_ci	uint32_t urgent_out_of_order_return_per_channel_pixel_and_vm_bytes;
648c2ecf20Sopenharmony_ci	uint32_t urgent_out_of_order_return_per_channel_vm_only_bytes;
658c2ecf20Sopenharmony_ci	uint32_t round_trip_ping_latency_dcfclk_cycles;
668c2ecf20Sopenharmony_ci	uint32_t urgent_out_of_order_return_per_channel_bytes;
678c2ecf20Sopenharmony_ci	uint32_t channel_interleave_bytes;
688c2ecf20Sopenharmony_ci	uint32_t num_banks;
698c2ecf20Sopenharmony_ci	uint32_t num_chans;
708c2ecf20Sopenharmony_ci	uint32_t vmm_page_size_bytes;
718c2ecf20Sopenharmony_ci	uint32_t dram_clock_change_latency_us;
728c2ecf20Sopenharmony_ci	uint32_t writeback_dram_clock_change_latency_us;
738c2ecf20Sopenharmony_ci	uint32_t return_bus_width_bytes;
748c2ecf20Sopenharmony_ci	uint32_t voltage_override;
758c2ecf20Sopenharmony_ci	uint32_t xfc_bus_transport_time_us;
768c2ecf20Sopenharmony_ci	uint32_t xfc_xbuf_latency_tolerance_us;
778c2ecf20Sopenharmony_ci	uint32_t use_urgent_burst_bw;
788c2ecf20Sopenharmony_ci	uint32_t num_states;
798c2ecf20Sopenharmony_ci	struct gpu_info_voltage_scaling_v1_0 clock_limits[8];
808c2ecf20Sopenharmony_ci};
818c2ecf20Sopenharmony_ci
828c2ecf20Sopenharmony_ci#endif
83