diff options
author | Xiaojie Yuan <xiaojie.yuan@amd.com> | 2019-03-19 02:27:04 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-06-21 19:59:34 -0400 |
commit | 76b743f45d7f5788422a9e7631f1c6cb6d46e88a (patch) | |
tree | 4b49b58db3c5746781de5a15aa45c8bc0018288f | |
parent | 57b3ec35d5df7ebec65c6472ea1cd9f6a764eb09 (diff) |
drm/amd/display: use fixed-width data type for soc bounding box struct
since it's firmware.
Signed-off-by: Xiaojie Yuan <xiaojie.yuan@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_socbb.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_socbb.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_socbb.h index 3282dfa50433..f4176cb01790 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_socbb.h +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_socbb.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #define __AMDGPU_SOCBB_H__ | 24 | #define __AMDGPU_SOCBB_H__ |
25 | 25 | ||
26 | struct gpu_info_voltage_scaling_v1_0 { | 26 | struct gpu_info_voltage_scaling_v1_0 { |
27 | int state; | 27 | uint32_t state; |
28 | uint32_t dscclk_mhz; | 28 | uint32_t dscclk_mhz; |
29 | uint32_t dcfclk_mhz; | 29 | uint32_t dcfclk_mhz; |
30 | uint32_t socclk_mhz; | 30 | uint32_t socclk_mhz; |
@@ -49,7 +49,7 @@ struct gpu_info_soc_bounding_box_v1_0 { | |||
49 | uint32_t pct_ideal_dram_sdp_bw_after_urgent_vm_only; | 49 | uint32_t pct_ideal_dram_sdp_bw_after_urgent_vm_only; |
50 | uint32_t max_avg_sdp_bw_use_normal_percent; | 50 | uint32_t max_avg_sdp_bw_use_normal_percent; |
51 | uint32_t max_avg_dram_bw_use_normal_percent; | 51 | uint32_t max_avg_dram_bw_use_normal_percent; |
52 | unsigned int max_request_size_bytes; | 52 | uint32_t max_request_size_bytes; |
53 | uint32_t downspread_percent; | 53 | uint32_t downspread_percent; |
54 | uint32_t dram_page_open_time_ns; | 54 | uint32_t dram_page_open_time_ns; |
55 | uint32_t dram_rw_turnaround_time_ns; | 55 | uint32_t dram_rw_turnaround_time_ns; |
@@ -59,23 +59,23 @@ struct gpu_info_soc_bounding_box_v1_0 { | |||
59 | uint32_t dcn_downspread_percent; | 59 | uint32_t dcn_downspread_percent; |
60 | uint32_t dispclk_dppclk_vco_speed_mhz; | 60 | uint32_t dispclk_dppclk_vco_speed_mhz; |
61 | uint32_t dfs_vco_period_ps; | 61 | uint32_t dfs_vco_period_ps; |
62 | unsigned int urgent_out_of_order_return_per_channel_pixel_only_bytes; | 62 | uint32_t urgent_out_of_order_return_per_channel_pixel_only_bytes; |
63 | unsigned int urgent_out_of_order_return_per_channel_pixel_and_vm_bytes; | 63 | uint32_t urgent_out_of_order_return_per_channel_pixel_and_vm_bytes; |
64 | unsigned int urgent_out_of_order_return_per_channel_vm_only_bytes; | 64 | uint32_t urgent_out_of_order_return_per_channel_vm_only_bytes; |
65 | unsigned int round_trip_ping_latency_dcfclk_cycles; | 65 | uint32_t round_trip_ping_latency_dcfclk_cycles; |
66 | unsigned int urgent_out_of_order_return_per_channel_bytes; | 66 | uint32_t urgent_out_of_order_return_per_channel_bytes; |
67 | unsigned int channel_interleave_bytes; | 67 | uint32_t channel_interleave_bytes; |
68 | unsigned int num_banks; | 68 | uint32_t num_banks; |
69 | unsigned int num_chans; | 69 | uint32_t num_chans; |
70 | unsigned int vmm_page_size_bytes; | 70 | uint32_t vmm_page_size_bytes; |
71 | uint32_t dram_clock_change_latency_us; | 71 | uint32_t dram_clock_change_latency_us; |
72 | uint32_t writeback_dram_clock_change_latency_us; | 72 | uint32_t writeback_dram_clock_change_latency_us; |
73 | unsigned int return_bus_width_bytes; | 73 | uint32_t return_bus_width_bytes; |
74 | unsigned int voltage_override; | 74 | uint32_t voltage_override; |
75 | uint32_t xfc_bus_transport_time_us; | 75 | uint32_t xfc_bus_transport_time_us; |
76 | uint32_t xfc_xbuf_latency_tolerance_us; | 76 | uint32_t xfc_xbuf_latency_tolerance_us; |
77 | int use_urgent_burst_bw; | 77 | uint32_t use_urgent_burst_bw; |
78 | unsigned int num_states; | 78 | uint32_t num_states; |
79 | struct gpu_info_voltage_scaling_v1_0 clock_limits[8]; | 79 | struct gpu_info_voltage_scaling_v1_0 clock_limits[8]; |
80 | }; | 80 | }; |
81 | 81 | ||