Lines Matching full:identity
41 *value = gpu->identity.model; in etnaviv_gpu_get_param()
45 *value = gpu->identity.revision; in etnaviv_gpu_get_param()
49 *value = gpu->identity.features; in etnaviv_gpu_get_param()
53 *value = gpu->identity.minor_features0; in etnaviv_gpu_get_param()
57 *value = gpu->identity.minor_features1; in etnaviv_gpu_get_param()
61 *value = gpu->identity.minor_features2; in etnaviv_gpu_get_param()
65 *value = gpu->identity.minor_features3; in etnaviv_gpu_get_param()
69 *value = gpu->identity.minor_features4; in etnaviv_gpu_get_param()
73 *value = gpu->identity.minor_features5; in etnaviv_gpu_get_param()
77 *value = gpu->identity.minor_features6; in etnaviv_gpu_get_param()
81 *value = gpu->identity.minor_features7; in etnaviv_gpu_get_param()
85 *value = gpu->identity.minor_features8; in etnaviv_gpu_get_param()
89 *value = gpu->identity.minor_features9; in etnaviv_gpu_get_param()
93 *value = gpu->identity.minor_features10; in etnaviv_gpu_get_param()
97 *value = gpu->identity.minor_features11; in etnaviv_gpu_get_param()
101 *value = gpu->identity.stream_count; in etnaviv_gpu_get_param()
105 *value = gpu->identity.register_max; in etnaviv_gpu_get_param()
109 *value = gpu->identity.thread_count; in etnaviv_gpu_get_param()
113 *value = gpu->identity.vertex_cache_size; in etnaviv_gpu_get_param()
117 *value = gpu->identity.shader_core_count; in etnaviv_gpu_get_param()
121 *value = gpu->identity.pixel_pipes; in etnaviv_gpu_get_param()
125 *value = gpu->identity.vertex_output_buffer_size; in etnaviv_gpu_get_param()
129 *value = gpu->identity.buffer_size; in etnaviv_gpu_get_param()
133 *value = gpu->identity.instruction_count; in etnaviv_gpu_get_param()
137 *value = gpu->identity.num_constants; in etnaviv_gpu_get_param()
141 *value = gpu->identity.varyings_count; in etnaviv_gpu_get_param()
154 ((gpu)->identity.model == chipModel_##mod && \
155 (gpu)->identity.revision == rev)
161 if (gpu->identity.minor_features0 & in etnaviv_hw_specs()
171 gpu->identity.stream_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
173 gpu->identity.register_max = etnaviv_field(specs[0], in etnaviv_hw_specs()
175 gpu->identity.thread_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
177 gpu->identity.vertex_cache_size = etnaviv_field(specs[0], in etnaviv_hw_specs()
179 gpu->identity.shader_core_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
181 gpu->identity.pixel_pipes = etnaviv_field(specs[0], in etnaviv_hw_specs()
183 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
187 gpu->identity.buffer_size = etnaviv_field(specs[1], in etnaviv_hw_specs()
189 gpu->identity.instruction_count = etnaviv_field(specs[1], in etnaviv_hw_specs()
191 gpu->identity.num_constants = etnaviv_field(specs[1], in etnaviv_hw_specs()
194 gpu->identity.varyings_count = etnaviv_field(specs[2], in etnaviv_hw_specs()
201 gpu->identity.stream_count = streams; in etnaviv_hw_specs()
205 if (gpu->identity.stream_count == 0) { in etnaviv_hw_specs()
206 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
207 gpu->identity.stream_count = 4; in etnaviv_hw_specs()
209 gpu->identity.stream_count = 1; in etnaviv_hw_specs()
213 if (gpu->identity.register_max) in etnaviv_hw_specs()
214 gpu->identity.register_max = 1 << gpu->identity.register_max; in etnaviv_hw_specs()
215 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
216 gpu->identity.register_max = 32; in etnaviv_hw_specs()
218 gpu->identity.register_max = 64; in etnaviv_hw_specs()
221 if (gpu->identity.thread_count) in etnaviv_hw_specs()
222 gpu->identity.thread_count = 1 << gpu->identity.thread_count; in etnaviv_hw_specs()
223 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
224 gpu->identity.thread_count = 64; in etnaviv_hw_specs()
225 else if (gpu->identity.model == chipModel_GC500 || in etnaviv_hw_specs()
226 gpu->identity.model == chipModel_GC530) in etnaviv_hw_specs()
227 gpu->identity.thread_count = 128; in etnaviv_hw_specs()
229 gpu->identity.thread_count = 256; in etnaviv_hw_specs()
231 if (gpu->identity.vertex_cache_size == 0) in etnaviv_hw_specs()
232 gpu->identity.vertex_cache_size = 8; in etnaviv_hw_specs()
234 if (gpu->identity.shader_core_count == 0) { in etnaviv_hw_specs()
235 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
236 gpu->identity.shader_core_count = 2; in etnaviv_hw_specs()
238 gpu->identity.shader_core_count = 1; in etnaviv_hw_specs()
241 if (gpu->identity.pixel_pipes == 0) in etnaviv_hw_specs()
242 gpu->identity.pixel_pipes = 1; in etnaviv_hw_specs()
245 if (gpu->identity.vertex_output_buffer_size) { in etnaviv_hw_specs()
246 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
247 1 << gpu->identity.vertex_output_buffer_size; in etnaviv_hw_specs()
248 } else if (gpu->identity.model == chipModel_GC400) { in etnaviv_hw_specs()
249 if (gpu->identity.revision < 0x4000) in etnaviv_hw_specs()
250 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
251 else if (gpu->identity.revision < 0x4200) in etnaviv_hw_specs()
252 gpu->identity.vertex_output_buffer_size = 256; in etnaviv_hw_specs()
254 gpu->identity.vertex_output_buffer_size = 128; in etnaviv_hw_specs()
256 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
259 switch (gpu->identity.instruction_count) { in etnaviv_hw_specs()
262 gpu->identity.model == chipModel_GC880) in etnaviv_hw_specs()
263 gpu->identity.instruction_count = 512; in etnaviv_hw_specs()
265 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
269 gpu->identity.instruction_count = 1024; in etnaviv_hw_specs()
273 gpu->identity.instruction_count = 2048; in etnaviv_hw_specs()
277 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
281 if (gpu->identity.num_constants == 0) in etnaviv_hw_specs()
282 gpu->identity.num_constants = 168; in etnaviv_hw_specs()
284 if (gpu->identity.varyings_count == 0) { in etnaviv_hw_specs()
285 if (gpu->identity.minor_features1 & chipMinorFeatures1_HALTI0) in etnaviv_hw_specs()
286 gpu->identity.varyings_count = 12; in etnaviv_hw_specs()
288 gpu->identity.varyings_count = 8; in etnaviv_hw_specs()
306 gpu->identity.varyings_count -= 1; in etnaviv_hw_specs()
317 gpu->identity.model = chipModel_GC500; in etnaviv_hw_identify()
318 gpu->identity.revision = etnaviv_field(chipIdentity, in etnaviv_hw_identify()
322 gpu->identity.model = gpu_read(gpu, VIVS_HI_CHIP_MODEL); in etnaviv_hw_identify()
323 gpu->identity.revision = gpu_read(gpu, VIVS_HI_CHIP_REV); in etnaviv_hw_identify()
331 if ((gpu->identity.model & 0xff00) == 0x0400 && in etnaviv_hw_identify()
332 gpu->identity.model != chipModel_GC420) { in etnaviv_hw_identify()
333 gpu->identity.model = gpu->identity.model & 0x0400; in etnaviv_hw_identify()
346 gpu->identity.revision = 0x1051; in etnaviv_hw_identify()
355 * core by its real identity. in etnaviv_hw_identify()
358 gpu->identity.model = chipModel_GC3000; in etnaviv_hw_identify()
359 gpu->identity.revision &= 0xffff; in etnaviv_hw_identify()
364 gpu->identity.model, gpu->identity.revision); in etnaviv_hw_identify()
373 gpu->identity.features = gpu_read(gpu, VIVS_HI_CHIP_FEATURE); in etnaviv_hw_identify()
376 if (gpu->identity.model == chipModel_GC700) in etnaviv_hw_identify()
377 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_hw_identify()
379 if ((gpu->identity.model == chipModel_GC500 && in etnaviv_hw_identify()
380 gpu->identity.revision < 2) || in etnaviv_hw_identify()
381 (gpu->identity.model == chipModel_GC300 && in etnaviv_hw_identify()
382 gpu->identity.revision < 0x2000)) { in etnaviv_hw_identify()
388 gpu->identity.minor_features0 = 0; in etnaviv_hw_identify()
389 gpu->identity.minor_features1 = 0; in etnaviv_hw_identify()
390 gpu->identity.minor_features2 = 0; in etnaviv_hw_identify()
391 gpu->identity.minor_features3 = 0; in etnaviv_hw_identify()
392 gpu->identity.minor_features4 = 0; in etnaviv_hw_identify()
393 gpu->identity.minor_features5 = 0; in etnaviv_hw_identify()
395 gpu->identity.minor_features0 = in etnaviv_hw_identify()
398 if (gpu->identity.minor_features0 & in etnaviv_hw_identify()
400 gpu->identity.minor_features1 = in etnaviv_hw_identify()
402 gpu->identity.minor_features2 = in etnaviv_hw_identify()
404 gpu->identity.minor_features3 = in etnaviv_hw_identify()
406 gpu->identity.minor_features4 = in etnaviv_hw_identify()
408 gpu->identity.minor_features5 = in etnaviv_hw_identify()
413 if (gpu->identity.model == chipModel_GC600) { in etnaviv_hw_identify()
438 if (gpu->identity.minor_features2 & in etnaviv_gpu_update_clock()
547 if (gpu->identity.revision == 0x4301 || in etnaviv_gpu_enable_mlcg()
548 gpu->identity.revision == 0x4302) in etnaviv_gpu_enable_mlcg()
556 if (gpu->identity.model >= chipModel_GC400 && in etnaviv_gpu_enable_mlcg()
557 gpu->identity.model != chipModel_GC420 && in etnaviv_gpu_enable_mlcg()
558 !(gpu->identity.minor_features3 & chipMinorFeatures3_BUG_FIXES12)) in etnaviv_gpu_enable_mlcg()
565 if (gpu->identity.revision < 0x5000 && in etnaviv_gpu_enable_mlcg()
566 gpu->identity.minor_features0 & chipMinorFeatures0_HZ && in etnaviv_gpu_enable_mlcg()
567 !(gpu->identity.minor_features1 & in etnaviv_gpu_enable_mlcg()
571 if (gpu->identity.revision < 0x5422) in etnaviv_gpu_enable_mlcg()
619 if ((gpu->identity.revision > 0x5420) && in etnaviv_gpu_setup_pulse_eater()
620 (gpu->identity.features & chipFeatures_PIPE_3D)) in etnaviv_gpu_setup_pulse_eater()
641 if (gpu->identity.revision == 0x5007) in etnaviv_gpu_hw_init()
702 if (gpu->identity.model == 0) { in etnaviv_gpu_init()
709 if (gpu->identity.features & chipFeatures_PIPE_VG && in etnaviv_gpu_init()
710 gpu->identity.features & chipFeatures_FE20) { in etnaviv_gpu_init()
725 if (!(gpu->identity.features & chipFeatures_PIPE_3D) || in etnaviv_gpu_init()
726 (gpu->identity.minor_features0 & chipMinorFeatures0_MC20)) { in etnaviv_gpu_init()
735 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_gpu_init()
742 if ((gpu->identity.minor_features7 & chipMinorFeatures7_BIT_SECURITY) && in etnaviv_gpu_init()
743 (gpu->identity.minor_features10 & chipMinorFeatures10_SECURITY_AHB)) in etnaviv_gpu_init()
863 gpu->identity.features); in etnaviv_gpu_debugfs()
865 gpu->identity.minor_features0); in etnaviv_gpu_debugfs()
867 gpu->identity.minor_features1); in etnaviv_gpu_debugfs()
869 gpu->identity.minor_features2); in etnaviv_gpu_debugfs()
871 gpu->identity.minor_features3); in etnaviv_gpu_debugfs()
873 gpu->identity.minor_features4); in etnaviv_gpu_debugfs()
875 gpu->identity.minor_features5); in etnaviv_gpu_debugfs()
877 gpu->identity.minor_features6); in etnaviv_gpu_debugfs()
879 gpu->identity.minor_features7); in etnaviv_gpu_debugfs()
881 gpu->identity.minor_features8); in etnaviv_gpu_debugfs()
883 gpu->identity.minor_features9); in etnaviv_gpu_debugfs()
885 gpu->identity.minor_features10); in etnaviv_gpu_debugfs()
887 gpu->identity.minor_features11); in etnaviv_gpu_debugfs()
891 gpu->identity.stream_count); in etnaviv_gpu_debugfs()
893 gpu->identity.register_max); in etnaviv_gpu_debugfs()
895 gpu->identity.thread_count); in etnaviv_gpu_debugfs()
897 gpu->identity.vertex_cache_size); in etnaviv_gpu_debugfs()
899 gpu->identity.shader_core_count); in etnaviv_gpu_debugfs()
901 gpu->identity.pixel_pipes); in etnaviv_gpu_debugfs()
903 gpu->identity.vertex_output_buffer_size); in etnaviv_gpu_debugfs()
905 gpu->identity.buffer_size); in etnaviv_gpu_debugfs()
907 gpu->identity.instruction_count); in etnaviv_gpu_debugfs()
909 gpu->identity.num_constants); in etnaviv_gpu_debugfs()
911 gpu->identity.varyings_count); in etnaviv_gpu_debugfs()
943 if (gpu->identity.features & chipFeatures_DEBUG_MODE) { in etnaviv_gpu_debugfs()