Lines Matching full:identity
46 *value = gpu->identity.model; in etnaviv_gpu_get_param()
50 *value = gpu->identity.revision; in etnaviv_gpu_get_param()
54 *value = gpu->identity.features; in etnaviv_gpu_get_param()
58 *value = gpu->identity.minor_features0; in etnaviv_gpu_get_param()
62 *value = gpu->identity.minor_features1; in etnaviv_gpu_get_param()
66 *value = gpu->identity.minor_features2; in etnaviv_gpu_get_param()
70 *value = gpu->identity.minor_features3; in etnaviv_gpu_get_param()
74 *value = gpu->identity.minor_features4; in etnaviv_gpu_get_param()
78 *value = gpu->identity.minor_features5; in etnaviv_gpu_get_param()
82 *value = gpu->identity.minor_features6; in etnaviv_gpu_get_param()
86 *value = gpu->identity.minor_features7; in etnaviv_gpu_get_param()
90 *value = gpu->identity.minor_features8; in etnaviv_gpu_get_param()
94 *value = gpu->identity.minor_features9; in etnaviv_gpu_get_param()
98 *value = gpu->identity.minor_features10; in etnaviv_gpu_get_param()
102 *value = gpu->identity.minor_features11; in etnaviv_gpu_get_param()
106 *value = gpu->identity.stream_count; in etnaviv_gpu_get_param()
110 *value = gpu->identity.register_max; in etnaviv_gpu_get_param()
114 *value = gpu->identity.thread_count; in etnaviv_gpu_get_param()
118 *value = gpu->identity.vertex_cache_size; in etnaviv_gpu_get_param()
122 *value = gpu->identity.shader_core_count; in etnaviv_gpu_get_param()
126 *value = gpu->identity.pixel_pipes; in etnaviv_gpu_get_param()
130 *value = gpu->identity.vertex_output_buffer_size; in etnaviv_gpu_get_param()
134 *value = gpu->identity.buffer_size; in etnaviv_gpu_get_param()
138 *value = gpu->identity.instruction_count; in etnaviv_gpu_get_param()
142 *value = gpu->identity.num_constants; in etnaviv_gpu_get_param()
146 *value = gpu->identity.varyings_count; in etnaviv_gpu_get_param()
157 *value = gpu->identity.product_id; in etnaviv_gpu_get_param()
161 *value = gpu->identity.customer_id; in etnaviv_gpu_get_param()
165 *value = gpu->identity.eco_id; in etnaviv_gpu_get_param()
201 return gpu->identity.model == model && in etnaviv_is_model_rev()
202 gpu->identity.revision == revision; in etnaviv_is_model_rev()
210 if (gpu->identity.minor_features0 & in etnaviv_hw_specs()
220 gpu->identity.stream_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
222 gpu->identity.register_max = etnaviv_field(specs[0], in etnaviv_hw_specs()
224 gpu->identity.thread_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
226 gpu->identity.vertex_cache_size = etnaviv_field(specs[0], in etnaviv_hw_specs()
228 gpu->identity.shader_core_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
230 gpu->identity.pixel_pipes = etnaviv_field(specs[0], in etnaviv_hw_specs()
232 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
236 gpu->identity.buffer_size = etnaviv_field(specs[1], in etnaviv_hw_specs()
238 gpu->identity.instruction_count = etnaviv_field(specs[1], in etnaviv_hw_specs()
240 gpu->identity.num_constants = etnaviv_field(specs[1], in etnaviv_hw_specs()
243 gpu->identity.varyings_count = etnaviv_field(specs[2], in etnaviv_hw_specs()
250 gpu->identity.stream_count = streams; in etnaviv_hw_specs()
254 if (gpu->identity.stream_count == 0) { in etnaviv_hw_specs()
255 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
256 gpu->identity.stream_count = 4; in etnaviv_hw_specs()
258 gpu->identity.stream_count = 1; in etnaviv_hw_specs()
262 if (gpu->identity.register_max) in etnaviv_hw_specs()
263 gpu->identity.register_max = 1 << gpu->identity.register_max; in etnaviv_hw_specs()
264 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
265 gpu->identity.register_max = 32; in etnaviv_hw_specs()
267 gpu->identity.register_max = 64; in etnaviv_hw_specs()
270 if (gpu->identity.thread_count) in etnaviv_hw_specs()
271 gpu->identity.thread_count = 1 << gpu->identity.thread_count; in etnaviv_hw_specs()
272 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
273 gpu->identity.thread_count = 64; in etnaviv_hw_specs()
274 else if (gpu->identity.model == chipModel_GC500 || in etnaviv_hw_specs()
275 gpu->identity.model == chipModel_GC530) in etnaviv_hw_specs()
276 gpu->identity.thread_count = 128; in etnaviv_hw_specs()
278 gpu->identity.thread_count = 256; in etnaviv_hw_specs()
280 if (gpu->identity.vertex_cache_size == 0) in etnaviv_hw_specs()
281 gpu->identity.vertex_cache_size = 8; in etnaviv_hw_specs()
283 if (gpu->identity.shader_core_count == 0) { in etnaviv_hw_specs()
284 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
285 gpu->identity.shader_core_count = 2; in etnaviv_hw_specs()
287 gpu->identity.shader_core_count = 1; in etnaviv_hw_specs()
290 if (gpu->identity.pixel_pipes == 0) in etnaviv_hw_specs()
291 gpu->identity.pixel_pipes = 1; in etnaviv_hw_specs()
294 if (gpu->identity.vertex_output_buffer_size) { in etnaviv_hw_specs()
295 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
296 1 << gpu->identity.vertex_output_buffer_size; in etnaviv_hw_specs()
297 } else if (gpu->identity.model == chipModel_GC400) { in etnaviv_hw_specs()
298 if (gpu->identity.revision < 0x4000) in etnaviv_hw_specs()
299 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
300 else if (gpu->identity.revision < 0x4200) in etnaviv_hw_specs()
301 gpu->identity.vertex_output_buffer_size = 256; in etnaviv_hw_specs()
303 gpu->identity.vertex_output_buffer_size = 128; in etnaviv_hw_specs()
305 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
308 switch (gpu->identity.instruction_count) { in etnaviv_hw_specs()
311 gpu->identity.model == chipModel_GC880) in etnaviv_hw_specs()
312 gpu->identity.instruction_count = 512; in etnaviv_hw_specs()
314 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
318 gpu->identity.instruction_count = 1024; in etnaviv_hw_specs()
322 gpu->identity.instruction_count = 2048; in etnaviv_hw_specs()
326 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
330 if (gpu->identity.num_constants == 0) in etnaviv_hw_specs()
331 gpu->identity.num_constants = 168; in etnaviv_hw_specs()
333 if (gpu->identity.varyings_count == 0) { in etnaviv_hw_specs()
334 if (gpu->identity.minor_features1 & chipMinorFeatures1_HALTI0) in etnaviv_hw_specs()
335 gpu->identity.varyings_count = 12; in etnaviv_hw_specs()
337 gpu->identity.varyings_count = 8; in etnaviv_hw_specs()
355 gpu->identity.varyings_count -= 1; in etnaviv_hw_specs()
366 gpu->identity.model = chipModel_GC500; in etnaviv_hw_identify()
367 gpu->identity.revision = etnaviv_field(chipIdentity, in etnaviv_hw_identify()
372 gpu->identity.model = gpu_read(gpu, VIVS_HI_CHIP_MODEL); in etnaviv_hw_identify()
373 gpu->identity.revision = gpu_read(gpu, VIVS_HI_CHIP_REV); in etnaviv_hw_identify()
374 gpu->identity.customer_id = gpu_read(gpu, VIVS_HI_CHIP_CUSTOMER_ID); in etnaviv_hw_identify()
381 gpu->identity.product_id = gpu_read(gpu, VIVS_HI_CHIP_PRODUCT_ID); in etnaviv_hw_identify()
382 gpu->identity.eco_id = gpu_read(gpu, VIVS_HI_CHIP_ECO_ID); in etnaviv_hw_identify()
391 if ((gpu->identity.model & 0xff00) == 0x0400 && in etnaviv_hw_identify()
392 gpu->identity.model != chipModel_GC420) { in etnaviv_hw_identify()
393 gpu->identity.model = gpu->identity.model & 0x0400; in etnaviv_hw_identify()
405 gpu->identity.revision = 0x1051; in etnaviv_hw_identify()
414 * core by its real identity. in etnaviv_hw_identify()
417 gpu->identity.model = chipModel_GC3000; in etnaviv_hw_identify()
418 gpu->identity.revision &= 0xffff; in etnaviv_hw_identify()
422 gpu->identity.eco_id = 1; in etnaviv_hw_identify()
425 gpu->identity.eco_id = 1; in etnaviv_hw_identify()
429 gpu->identity.model, gpu->identity.revision); in etnaviv_hw_identify()
439 gpu->identity.features = gpu_read(gpu, VIVS_HI_CHIP_FEATURE); in etnaviv_hw_identify()
442 if (gpu->identity.model == chipModel_GC700) in etnaviv_hw_identify()
443 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_hw_identify()
446 if ((gpu->identity.model == chipModel_GC500 && in etnaviv_hw_identify()
447 gpu->identity.revision <= 2) || in etnaviv_hw_identify()
448 gpu->identity.model == chipModel_GC300) in etnaviv_hw_identify()
449 gpu->identity.features |= chipFeatures_PIPE_2D; in etnaviv_hw_identify()
451 if ((gpu->identity.model == chipModel_GC500 && in etnaviv_hw_identify()
452 gpu->identity.revision < 2) || in etnaviv_hw_identify()
453 (gpu->identity.model == chipModel_GC300 && in etnaviv_hw_identify()
454 gpu->identity.revision < 0x2000)) { in etnaviv_hw_identify()
460 gpu->identity.minor_features0 = 0; in etnaviv_hw_identify()
461 gpu->identity.minor_features1 = 0; in etnaviv_hw_identify()
462 gpu->identity.minor_features2 = 0; in etnaviv_hw_identify()
463 gpu->identity.minor_features3 = 0; in etnaviv_hw_identify()
464 gpu->identity.minor_features4 = 0; in etnaviv_hw_identify()
465 gpu->identity.minor_features5 = 0; in etnaviv_hw_identify()
467 gpu->identity.minor_features0 = in etnaviv_hw_identify()
470 if (gpu->identity.minor_features0 & in etnaviv_hw_identify()
472 gpu->identity.minor_features1 = in etnaviv_hw_identify()
474 gpu->identity.minor_features2 = in etnaviv_hw_identify()
476 gpu->identity.minor_features3 = in etnaviv_hw_identify()
478 gpu->identity.minor_features4 = in etnaviv_hw_identify()
480 gpu->identity.minor_features5 = in etnaviv_hw_identify()
485 if (gpu->identity.model == chipModel_GC600 || in etnaviv_hw_identify()
486 gpu->identity.model == chipModel_GC300) in etnaviv_hw_identify()
508 if (gpu->identity.minor_features2 & in etnaviv_gpu_update_clock()
642 if (gpu->identity.revision == 0x4301 || in etnaviv_gpu_enable_mlcg()
643 gpu->identity.revision == 0x4302) in etnaviv_gpu_enable_mlcg()
651 if (gpu->identity.model >= chipModel_GC400 && in etnaviv_gpu_enable_mlcg()
652 gpu->identity.model != chipModel_GC420 && in etnaviv_gpu_enable_mlcg()
653 !(gpu->identity.minor_features3 & chipMinorFeatures3_BUG_FIXES12)) in etnaviv_gpu_enable_mlcg()
660 if (gpu->identity.revision < 0x5000 && in etnaviv_gpu_enable_mlcg()
661 gpu->identity.minor_features0 & chipMinorFeatures0_HZ && in etnaviv_gpu_enable_mlcg()
662 !(gpu->identity.minor_features1 & in etnaviv_gpu_enable_mlcg()
666 if (gpu->identity.revision < 0x5422) in etnaviv_gpu_enable_mlcg()
748 if ((gpu->identity.revision > 0x5420) && in etnaviv_gpu_setup_pulse_eater()
749 (gpu->identity.features & chipFeatures_PIPE_3D)) in etnaviv_gpu_setup_pulse_eater()
771 if (gpu->identity.revision == 0x5007) in etnaviv_gpu_hw_init()
834 if (gpu->identity.model == 0) { in etnaviv_gpu_init()
840 if (gpu->identity.nn_core_count > 0) in etnaviv_gpu_init()
845 if (gpu->identity.features & chipFeatures_PIPE_VG && in etnaviv_gpu_init()
846 gpu->identity.features & chipFeatures_FE20) { in etnaviv_gpu_init()
856 if ((gpu->identity.minor_features7 & chipMinorFeatures7_BIT_SECURITY) && in etnaviv_gpu_init()
857 (gpu->identity.minor_features10 & chipMinorFeatures10_SECURITY_AHB)) in etnaviv_gpu_init()
893 if (!(gpu->identity.features & chipFeatures_PIPE_3D) || in etnaviv_gpu_init()
894 (gpu->identity.minor_features0 & chipMinorFeatures0_MC20) || in etnaviv_gpu_init()
895 (gpu->identity.minor_features1 & chipMinorFeatures1_MMU_VERSION)) { in etnaviv_gpu_init()
903 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_gpu_init()
977 seq_printf(m, "\t model: 0x%x\n", gpu->identity.model); in etnaviv_gpu_debugfs()
978 seq_printf(m, "\t revision: 0x%x\n", gpu->identity.revision); in etnaviv_gpu_debugfs()
979 seq_printf(m, "\t product_id: 0x%x\n", gpu->identity.product_id); in etnaviv_gpu_debugfs()
980 seq_printf(m, "\t customer_id: 0x%x\n", gpu->identity.customer_id); in etnaviv_gpu_debugfs()
981 seq_printf(m, "\t eco_id: 0x%x\n", gpu->identity.eco_id); in etnaviv_gpu_debugfs()
985 gpu->identity.features); in etnaviv_gpu_debugfs()
987 gpu->identity.minor_features0); in etnaviv_gpu_debugfs()
989 gpu->identity.minor_features1); in etnaviv_gpu_debugfs()
991 gpu->identity.minor_features2); in etnaviv_gpu_debugfs()
993 gpu->identity.minor_features3); in etnaviv_gpu_debugfs()
995 gpu->identity.minor_features4); in etnaviv_gpu_debugfs()
997 gpu->identity.minor_features5); in etnaviv_gpu_debugfs()
999 gpu->identity.minor_features6); in etnaviv_gpu_debugfs()
1001 gpu->identity.minor_features7); in etnaviv_gpu_debugfs()
1003 gpu->identity.minor_features8); in etnaviv_gpu_debugfs()
1005 gpu->identity.minor_features9); in etnaviv_gpu_debugfs()
1007 gpu->identity.minor_features10); in etnaviv_gpu_debugfs()
1009 gpu->identity.minor_features11); in etnaviv_gpu_debugfs()
1013 gpu->identity.stream_count); in etnaviv_gpu_debugfs()
1015 gpu->identity.register_max); in etnaviv_gpu_debugfs()
1017 gpu->identity.thread_count); in etnaviv_gpu_debugfs()
1019 gpu->identity.vertex_cache_size); in etnaviv_gpu_debugfs()
1021 gpu->identity.shader_core_count); in etnaviv_gpu_debugfs()
1023 gpu->identity.nn_core_count); in etnaviv_gpu_debugfs()
1025 gpu->identity.pixel_pipes); in etnaviv_gpu_debugfs()
1027 gpu->identity.vertex_output_buffer_size); in etnaviv_gpu_debugfs()
1029 gpu->identity.buffer_size); in etnaviv_gpu_debugfs()
1031 gpu->identity.instruction_count); in etnaviv_gpu_debugfs()
1033 gpu->identity.num_constants); in etnaviv_gpu_debugfs()
1035 gpu->identity.varyings_count); in etnaviv_gpu_debugfs()
1081 if (gpu->identity.features & chipFeatures_DEBUG_MODE) { in etnaviv_gpu_debugfs()