Lines Matching refs:identity
49 *value = gpu->identity.model; in etnaviv_gpu_get_param()
53 *value = gpu->identity.revision; in etnaviv_gpu_get_param()
57 *value = gpu->identity.features; in etnaviv_gpu_get_param()
61 *value = gpu->identity.minor_features0; in etnaviv_gpu_get_param()
65 *value = gpu->identity.minor_features1; in etnaviv_gpu_get_param()
69 *value = gpu->identity.minor_features2; in etnaviv_gpu_get_param()
73 *value = gpu->identity.minor_features3; in etnaviv_gpu_get_param()
77 *value = gpu->identity.minor_features4; in etnaviv_gpu_get_param()
81 *value = gpu->identity.minor_features5; in etnaviv_gpu_get_param()
85 *value = gpu->identity.minor_features6; in etnaviv_gpu_get_param()
89 *value = gpu->identity.minor_features7; in etnaviv_gpu_get_param()
93 *value = gpu->identity.minor_features8; in etnaviv_gpu_get_param()
97 *value = gpu->identity.minor_features9; in etnaviv_gpu_get_param()
101 *value = gpu->identity.minor_features10; in etnaviv_gpu_get_param()
105 *value = gpu->identity.minor_features11; in etnaviv_gpu_get_param()
109 *value = gpu->identity.stream_count; in etnaviv_gpu_get_param()
113 *value = gpu->identity.register_max; in etnaviv_gpu_get_param()
117 *value = gpu->identity.thread_count; in etnaviv_gpu_get_param()
121 *value = gpu->identity.vertex_cache_size; in etnaviv_gpu_get_param()
125 *value = gpu->identity.shader_core_count; in etnaviv_gpu_get_param()
129 *value = gpu->identity.pixel_pipes; in etnaviv_gpu_get_param()
133 *value = gpu->identity.vertex_output_buffer_size; in etnaviv_gpu_get_param()
137 *value = gpu->identity.buffer_size; in etnaviv_gpu_get_param()
141 *value = gpu->identity.instruction_count; in etnaviv_gpu_get_param()
145 *value = gpu->identity.num_constants; in etnaviv_gpu_get_param()
149 *value = gpu->identity.varyings_count; in etnaviv_gpu_get_param()
169 ((gpu)->identity.model == chipModel_##mod && \
170 (gpu)->identity.revision == rev)
176 if (gpu->identity.minor_features0 & in etnaviv_hw_specs()
186 gpu->identity.stream_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
188 gpu->identity.register_max = etnaviv_field(specs[0], in etnaviv_hw_specs()
190 gpu->identity.thread_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
192 gpu->identity.vertex_cache_size = etnaviv_field(specs[0], in etnaviv_hw_specs()
194 gpu->identity.shader_core_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
196 gpu->identity.pixel_pipes = etnaviv_field(specs[0], in etnaviv_hw_specs()
198 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
202 gpu->identity.buffer_size = etnaviv_field(specs[1], in etnaviv_hw_specs()
204 gpu->identity.instruction_count = etnaviv_field(specs[1], in etnaviv_hw_specs()
206 gpu->identity.num_constants = etnaviv_field(specs[1], in etnaviv_hw_specs()
209 gpu->identity.varyings_count = etnaviv_field(specs[2], in etnaviv_hw_specs()
216 gpu->identity.stream_count = streams; in etnaviv_hw_specs()
220 if (gpu->identity.stream_count == 0) { in etnaviv_hw_specs()
221 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
222 gpu->identity.stream_count = 4; in etnaviv_hw_specs()
224 gpu->identity.stream_count = 1; in etnaviv_hw_specs()
228 if (gpu->identity.register_max) in etnaviv_hw_specs()
229 gpu->identity.register_max = 1 << gpu->identity.register_max; in etnaviv_hw_specs()
230 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
231 gpu->identity.register_max = 32; in etnaviv_hw_specs()
233 gpu->identity.register_max = 64; in etnaviv_hw_specs()
236 if (gpu->identity.thread_count) in etnaviv_hw_specs()
237 gpu->identity.thread_count = 1 << gpu->identity.thread_count; in etnaviv_hw_specs()
238 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
239 gpu->identity.thread_count = 64; in etnaviv_hw_specs()
240 else if (gpu->identity.model == chipModel_GC500 || in etnaviv_hw_specs()
241 gpu->identity.model == chipModel_GC530) in etnaviv_hw_specs()
242 gpu->identity.thread_count = 128; in etnaviv_hw_specs()
244 gpu->identity.thread_count = 256; in etnaviv_hw_specs()
246 if (gpu->identity.vertex_cache_size == 0) in etnaviv_hw_specs()
247 gpu->identity.vertex_cache_size = 8; in etnaviv_hw_specs()
249 if (gpu->identity.shader_core_count == 0) { in etnaviv_hw_specs()
250 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
251 gpu->identity.shader_core_count = 2; in etnaviv_hw_specs()
253 gpu->identity.shader_core_count = 1; in etnaviv_hw_specs()
256 if (gpu->identity.pixel_pipes == 0) in etnaviv_hw_specs()
257 gpu->identity.pixel_pipes = 1; in etnaviv_hw_specs()
260 if (gpu->identity.vertex_output_buffer_size) { in etnaviv_hw_specs()
261 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
262 1 << gpu->identity.vertex_output_buffer_size; in etnaviv_hw_specs()
263 } else if (gpu->identity.model == chipModel_GC400) { in etnaviv_hw_specs()
264 if (gpu->identity.revision < 0x4000) in etnaviv_hw_specs()
265 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
266 else if (gpu->identity.revision < 0x4200) in etnaviv_hw_specs()
267 gpu->identity.vertex_output_buffer_size = 256; in etnaviv_hw_specs()
269 gpu->identity.vertex_output_buffer_size = 128; in etnaviv_hw_specs()
271 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
274 switch (gpu->identity.instruction_count) { in etnaviv_hw_specs()
277 gpu->identity.model == chipModel_GC880) in etnaviv_hw_specs()
278 gpu->identity.instruction_count = 512; in etnaviv_hw_specs()
280 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
284 gpu->identity.instruction_count = 1024; in etnaviv_hw_specs()
288 gpu->identity.instruction_count = 2048; in etnaviv_hw_specs()
292 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
296 if (gpu->identity.num_constants == 0) in etnaviv_hw_specs()
297 gpu->identity.num_constants = 168; in etnaviv_hw_specs()
299 if (gpu->identity.varyings_count == 0) { in etnaviv_hw_specs()
300 if (gpu->identity.minor_features1 & chipMinorFeatures1_HALTI0) in etnaviv_hw_specs()
301 gpu->identity.varyings_count = 12; in etnaviv_hw_specs()
303 gpu->identity.varyings_count = 8; in etnaviv_hw_specs()
321 gpu->identity.varyings_count -= 1; in etnaviv_hw_specs()
332 gpu->identity.model = chipModel_GC500; in etnaviv_hw_identify()
333 gpu->identity.revision = etnaviv_field(chipIdentity, in etnaviv_hw_identify()
338 gpu->identity.model = gpu_read(gpu, VIVS_HI_CHIP_MODEL); in etnaviv_hw_identify()
339 gpu->identity.revision = gpu_read(gpu, VIVS_HI_CHIP_REV); in etnaviv_hw_identify()
340 gpu->identity.customer_id = gpu_read(gpu, VIVS_HI_CHIP_CUSTOMER_ID); in etnaviv_hw_identify()
347 gpu->identity.product_id = gpu_read(gpu, VIVS_HI_CHIP_PRODUCT_ID); in etnaviv_hw_identify()
348 gpu->identity.eco_id = gpu_read(gpu, VIVS_HI_CHIP_ECO_ID); in etnaviv_hw_identify()
357 if ((gpu->identity.model & 0xff00) == 0x0400 && in etnaviv_hw_identify()
358 gpu->identity.model != chipModel_GC420) { in etnaviv_hw_identify()
359 gpu->identity.model = gpu->identity.model & 0x0400; in etnaviv_hw_identify()
371 gpu->identity.revision = 0x1051; in etnaviv_hw_identify()
383 gpu->identity.model = chipModel_GC3000; in etnaviv_hw_identify()
384 gpu->identity.revision &= 0xffff; in etnaviv_hw_identify()
388 gpu->identity.eco_id = 1; in etnaviv_hw_identify()
391 gpu->identity.eco_id = 1; in etnaviv_hw_identify()
395 gpu->identity.model, gpu->identity.revision); in etnaviv_hw_identify()
405 gpu->identity.features = gpu_read(gpu, VIVS_HI_CHIP_FEATURE); in etnaviv_hw_identify()
408 if (gpu->identity.model == chipModel_GC700) in etnaviv_hw_identify()
409 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_hw_identify()
411 if ((gpu->identity.model == chipModel_GC500 && in etnaviv_hw_identify()
412 gpu->identity.revision < 2) || in etnaviv_hw_identify()
413 (gpu->identity.model == chipModel_GC300 && in etnaviv_hw_identify()
414 gpu->identity.revision < 0x2000)) { in etnaviv_hw_identify()
420 gpu->identity.minor_features0 = 0; in etnaviv_hw_identify()
421 gpu->identity.minor_features1 = 0; in etnaviv_hw_identify()
422 gpu->identity.minor_features2 = 0; in etnaviv_hw_identify()
423 gpu->identity.minor_features3 = 0; in etnaviv_hw_identify()
424 gpu->identity.minor_features4 = 0; in etnaviv_hw_identify()
425 gpu->identity.minor_features5 = 0; in etnaviv_hw_identify()
427 gpu->identity.minor_features0 = in etnaviv_hw_identify()
430 if (gpu->identity.minor_features0 & in etnaviv_hw_identify()
432 gpu->identity.minor_features1 = in etnaviv_hw_identify()
434 gpu->identity.minor_features2 = in etnaviv_hw_identify()
436 gpu->identity.minor_features3 = in etnaviv_hw_identify()
438 gpu->identity.minor_features4 = in etnaviv_hw_identify()
440 gpu->identity.minor_features5 = in etnaviv_hw_identify()
445 if (gpu->identity.model == chipModel_GC600) in etnaviv_hw_identify()
467 if (gpu->identity.minor_features2 & in etnaviv_gpu_update_clock()
582 if (gpu->identity.revision == 0x4301 || in etnaviv_gpu_enable_mlcg()
583 gpu->identity.revision == 0x4302) in etnaviv_gpu_enable_mlcg()
591 if (gpu->identity.model >= chipModel_GC400 && in etnaviv_gpu_enable_mlcg()
592 gpu->identity.model != chipModel_GC420 && in etnaviv_gpu_enable_mlcg()
593 !(gpu->identity.minor_features3 & chipMinorFeatures3_BUG_FIXES12)) in etnaviv_gpu_enable_mlcg()
600 if (gpu->identity.revision < 0x5000 && in etnaviv_gpu_enable_mlcg()
601 gpu->identity.minor_features0 & chipMinorFeatures0_HZ && in etnaviv_gpu_enable_mlcg()
602 !(gpu->identity.minor_features1 & in etnaviv_gpu_enable_mlcg()
606 if (gpu->identity.revision < 0x5422) in etnaviv_gpu_enable_mlcg()
673 if ((gpu->identity.revision > 0x5420) && in etnaviv_gpu_setup_pulse_eater()
674 (gpu->identity.features & chipFeatures_PIPE_3D)) in etnaviv_gpu_setup_pulse_eater()
693 if (gpu->identity.revision == 0x5007) in etnaviv_gpu_hw_init()
747 if (gpu->identity.model == 0) { in etnaviv_gpu_init()
754 if (gpu->identity.features & chipFeatures_PIPE_VG && in etnaviv_gpu_init()
755 gpu->identity.features & chipFeatures_FE20) { in etnaviv_gpu_init()
765 if ((gpu->identity.minor_features7 & chipMinorFeatures7_BIT_SECURITY) && in etnaviv_gpu_init()
766 (gpu->identity.minor_features10 & chipMinorFeatures10_SECURITY_AHB)) in etnaviv_gpu_init()
788 if (!(gpu->identity.features & chipFeatures_PIPE_3D) || in etnaviv_gpu_init()
789 (gpu->identity.minor_features0 & chipMinorFeatures0_MC20)) { in etnaviv_gpu_init()
798 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_gpu_init()
889 seq_printf(m, "\t model: 0x%x\n", gpu->identity.model); in etnaviv_gpu_debugfs()
890 seq_printf(m, "\t revision: 0x%x\n", gpu->identity.revision); in etnaviv_gpu_debugfs()
891 seq_printf(m, "\t product_id: 0x%x\n", gpu->identity.product_id); in etnaviv_gpu_debugfs()
892 seq_printf(m, "\t customer_id: 0x%x\n", gpu->identity.customer_id); in etnaviv_gpu_debugfs()
893 seq_printf(m, "\t eco_id: 0x%x\n", gpu->identity.eco_id); in etnaviv_gpu_debugfs()
897 gpu->identity.features); in etnaviv_gpu_debugfs()
899 gpu->identity.minor_features0); in etnaviv_gpu_debugfs()
901 gpu->identity.minor_features1); in etnaviv_gpu_debugfs()
903 gpu->identity.minor_features2); in etnaviv_gpu_debugfs()
905 gpu->identity.minor_features3); in etnaviv_gpu_debugfs()
907 gpu->identity.minor_features4); in etnaviv_gpu_debugfs()
909 gpu->identity.minor_features5); in etnaviv_gpu_debugfs()
911 gpu->identity.minor_features6); in etnaviv_gpu_debugfs()
913 gpu->identity.minor_features7); in etnaviv_gpu_debugfs()
915 gpu->identity.minor_features8); in etnaviv_gpu_debugfs()
917 gpu->identity.minor_features9); in etnaviv_gpu_debugfs()
919 gpu->identity.minor_features10); in etnaviv_gpu_debugfs()
921 gpu->identity.minor_features11); in etnaviv_gpu_debugfs()
925 gpu->identity.stream_count); in etnaviv_gpu_debugfs()
927 gpu->identity.register_max); in etnaviv_gpu_debugfs()
929 gpu->identity.thread_count); in etnaviv_gpu_debugfs()
931 gpu->identity.vertex_cache_size); in etnaviv_gpu_debugfs()
933 gpu->identity.shader_core_count); in etnaviv_gpu_debugfs()
935 gpu->identity.pixel_pipes); in etnaviv_gpu_debugfs()
937 gpu->identity.vertex_output_buffer_size); in etnaviv_gpu_debugfs()
939 gpu->identity.buffer_size); in etnaviv_gpu_debugfs()
941 gpu->identity.instruction_count); in etnaviv_gpu_debugfs()
943 gpu->identity.num_constants); in etnaviv_gpu_debugfs()
945 gpu->identity.varyings_count); in etnaviv_gpu_debugfs()
991 if (gpu->identity.features & chipFeatures_DEBUG_MODE) { in etnaviv_gpu_debugfs()