forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-04 1543e317f1da31b75942316931e8f491a8920811
kernel/drivers/gpu/drm/amd/display/dc/dml/display_mode_enums.h
....@@ -37,11 +37,14 @@
3737 dm_444_64 = 2,
3838 dm_420_8 = 3,
3939 dm_420_10 = 4,
40
- dm_422_8 = 5,
41
- dm_422_10 = 6,
42
- dm_444_8 = 7,
43
- dm_mono_8,
44
- dm_mono_16
40
+ dm_420_12 = 5,
41
+ dm_422_8 = 6,
42
+ dm_422_10 = 7,
43
+ dm_444_8 = 8,
44
+ dm_mono_8 = dm_444_8,
45
+ dm_mono_16 = dm_444_16,
46
+ dm_rgbe = 9,
47
+ dm_rgbe_alpha = 10,
4548 };
4649 enum output_bpc_class {
4750 dm_out_6 = 0, dm_out_8 = 1, dm_out_10 = 2, dm_out_12 = 3, dm_out_16 = 4
....@@ -77,16 +80,17 @@
7780 dm_sw_SPARE_13 = 24,
7881 dm_sw_64kb_s_x = 25,
7982 dm_sw_64kb_d_x = 26,
80
- dm_sw_SPARE_14 = 27,
83
+ dm_sw_64kb_r_x = 27,
8184 dm_sw_SPARE_15 = 28,
8285 dm_sw_var_s_x = 29,
8386 dm_sw_var_d_x = 30,
84
- dm_sw_64kb_r_x,
85
- dm_sw_gfx7_2d_thin_lvp,
86
- dm_sw_gfx7_2d_thin_gl
87
+ dm_sw_var_r_x = 31,
88
+ dm_sw_gfx7_2d_thin_l_vp,
89
+ dm_sw_gfx7_2d_thin_gl,
8790 };
8891 enum lb_depth {
89
- dm_lb_10 = 0, dm_lb_8 = 1, dm_lb_6 = 2, dm_lb_12 = 3, dm_lb_16
92
+ dm_lb_10 = 0, dm_lb_8 = 1, dm_lb_6 = 2, dm_lb_12 = 3, dm_lb_16 = 4,
93
+ dm_lb_19 = 5
9094 };
9195 enum voltage_state {
9296 dm_vmin = 0, dm_vmid = 1, dm_vnom = 2, dm_vmax = 3
....@@ -111,7 +115,12 @@
111115 enum mpc_combine_affinity {
112116 dm_mpc_always_when_possible,
113117 dm_mpc_reduce_voltage,
114
- dm_mpc_reduce_voltage_and_clocks
118
+ dm_mpc_reduce_voltage_and_clocks,
119
+ dm_mpc_never
120
+};
121
+
122
+enum RequestType {
123
+ REQ_256Bytes, REQ_128BytesNonContiguous, REQ_128BytesContiguous, REQ_NA
115124 };
116125
117126 enum self_refresh_affinity {
....@@ -121,4 +130,61 @@
121130 dm_neither_self_refresh_nor_mclk_switch
122131 };
123132
133
+enum dm_validation_status {
134
+ DML_VALIDATION_OK,
135
+ DML_FAIL_SCALE_RATIO_TAP,
136
+ DML_FAIL_SOURCE_PIXEL_FORMAT,
137
+ DML_FAIL_VIEWPORT_SIZE,
138
+ DML_FAIL_TOTAL_V_ACTIVE_BW,
139
+ DML_FAIL_DIO_SUPPORT,
140
+ DML_FAIL_NOT_ENOUGH_DSC,
141
+ DML_FAIL_DSC_CLK_REQUIRED,
142
+ DML_FAIL_DSC_VALIDATION_FAILURE,
143
+ DML_FAIL_URGENT_LATENCY,
144
+ DML_FAIL_REORDERING_BUFFER,
145
+ DML_FAIL_DISPCLK_DPPCLK,
146
+ DML_FAIL_TOTAL_AVAILABLE_PIPES,
147
+ DML_FAIL_NUM_OTG,
148
+ DML_FAIL_WRITEBACK_MODE,
149
+ DML_FAIL_WRITEBACK_LATENCY,
150
+ DML_FAIL_WRITEBACK_SCALE_RATIO_TAP,
151
+ DML_FAIL_CURSOR_SUPPORT,
152
+ DML_FAIL_PITCH_SUPPORT,
153
+ DML_FAIL_PTE_BUFFER_SIZE,
154
+ DML_FAIL_HOST_VM_IMMEDIATE_FLIP,
155
+ DML_FAIL_DSC_INPUT_BPC,
156
+ DML_FAIL_PREFETCH_SUPPORT,
157
+ DML_FAIL_V_RATIO_PREFETCH,
158
+};
159
+
160
+enum writeback_config {
161
+ dm_normal,
162
+ dm_whole_buffer_for_single_stream_no_interleave,
163
+ dm_whole_buffer_for_single_stream_interleave,
164
+};
165
+
166
+enum odm_combine_mode {
167
+ dm_odm_combine_mode_disabled,
168
+ dm_odm_combine_mode_2to1,
169
+ dm_odm_combine_mode_4to1,
170
+};
171
+
172
+enum odm_combine_policy {
173
+ dm_odm_combine_policy_dal,
174
+ dm_odm_combine_policy_none,
175
+ dm_odm_combine_policy_2to1,
176
+ dm_odm_combine_policy_4to1,
177
+};
178
+
179
+enum immediate_flip_requirement {
180
+ dm_immediate_flip_not_required,
181
+ dm_immediate_flip_required,
182
+};
183
+
184
+enum unbounded_requesting_policy {
185
+ dm_unbounded_requesting,
186
+ dm_unbounded_requesting_edp_only,
187
+ dm_unbounded_requesting_disable
188
+};
189
+
124190 #endif