Lines Matching full:identity
45 *value = gpu->identity.model; in etnaviv_gpu_get_param()
49 *value = gpu->identity.revision; in etnaviv_gpu_get_param()
53 *value = gpu->identity.features; in etnaviv_gpu_get_param()
57 *value = gpu->identity.minor_features0; in etnaviv_gpu_get_param()
61 *value = gpu->identity.minor_features1; in etnaviv_gpu_get_param()
65 *value = gpu->identity.minor_features2; in etnaviv_gpu_get_param()
69 *value = gpu->identity.minor_features3; in etnaviv_gpu_get_param()
73 *value = gpu->identity.minor_features4; in etnaviv_gpu_get_param()
77 *value = gpu->identity.minor_features5; in etnaviv_gpu_get_param()
81 *value = gpu->identity.minor_features6; in etnaviv_gpu_get_param()
85 *value = gpu->identity.minor_features7; in etnaviv_gpu_get_param()
89 *value = gpu->identity.minor_features8; in etnaviv_gpu_get_param()
93 *value = gpu->identity.minor_features9; in etnaviv_gpu_get_param()
97 *value = gpu->identity.minor_features10; in etnaviv_gpu_get_param()
101 *value = gpu->identity.minor_features11; in etnaviv_gpu_get_param()
105 *value = gpu->identity.stream_count; in etnaviv_gpu_get_param()
109 *value = gpu->identity.register_max; in etnaviv_gpu_get_param()
113 *value = gpu->identity.thread_count; in etnaviv_gpu_get_param()
117 *value = gpu->identity.vertex_cache_size; in etnaviv_gpu_get_param()
121 *value = gpu->identity.shader_core_count; in etnaviv_gpu_get_param()
125 *value = gpu->identity.pixel_pipes; in etnaviv_gpu_get_param()
129 *value = gpu->identity.vertex_output_buffer_size; in etnaviv_gpu_get_param()
133 *value = gpu->identity.buffer_size; in etnaviv_gpu_get_param()
137 *value = gpu->identity.instruction_count; in etnaviv_gpu_get_param()
141 *value = gpu->identity.num_constants; in etnaviv_gpu_get_param()
145 *value = gpu->identity.varyings_count; in etnaviv_gpu_get_param()
156 *value = gpu->identity.product_id; in etnaviv_gpu_get_param()
160 *value = gpu->identity.customer_id; in etnaviv_gpu_get_param()
164 *value = gpu->identity.eco_id; in etnaviv_gpu_get_param()
177 return gpu->identity.model == model && in etnaviv_is_model_rev()
178 gpu->identity.revision == revision; in etnaviv_is_model_rev()
186 if (gpu->identity.minor_features0 & in etnaviv_hw_specs()
196 gpu->identity.stream_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
198 gpu->identity.register_max = etnaviv_field(specs[0], in etnaviv_hw_specs()
200 gpu->identity.thread_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
202 gpu->identity.vertex_cache_size = etnaviv_field(specs[0], in etnaviv_hw_specs()
204 gpu->identity.shader_core_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
206 gpu->identity.pixel_pipes = etnaviv_field(specs[0], in etnaviv_hw_specs()
208 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
212 gpu->identity.buffer_size = etnaviv_field(specs[1], in etnaviv_hw_specs()
214 gpu->identity.instruction_count = etnaviv_field(specs[1], in etnaviv_hw_specs()
216 gpu->identity.num_constants = etnaviv_field(specs[1], in etnaviv_hw_specs()
219 gpu->identity.varyings_count = etnaviv_field(specs[2], in etnaviv_hw_specs()
226 gpu->identity.stream_count = streams; in etnaviv_hw_specs()
230 if (gpu->identity.stream_count == 0) { in etnaviv_hw_specs()
231 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
232 gpu->identity.stream_count = 4; in etnaviv_hw_specs()
234 gpu->identity.stream_count = 1; in etnaviv_hw_specs()
238 if (gpu->identity.register_max) in etnaviv_hw_specs()
239 gpu->identity.register_max = 1 << gpu->identity.register_max; in etnaviv_hw_specs()
240 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
241 gpu->identity.register_max = 32; in etnaviv_hw_specs()
243 gpu->identity.register_max = 64; in etnaviv_hw_specs()
246 if (gpu->identity.thread_count) in etnaviv_hw_specs()
247 gpu->identity.thread_count = 1 << gpu->identity.thread_count; in etnaviv_hw_specs()
248 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
249 gpu->identity.thread_count = 64; in etnaviv_hw_specs()
250 else if (gpu->identity.model == chipModel_GC500 || in etnaviv_hw_specs()
251 gpu->identity.model == chipModel_GC530) in etnaviv_hw_specs()
252 gpu->identity.thread_count = 128; in etnaviv_hw_specs()
254 gpu->identity.thread_count = 256; in etnaviv_hw_specs()
256 if (gpu->identity.vertex_cache_size == 0) in etnaviv_hw_specs()
257 gpu->identity.vertex_cache_size = 8; in etnaviv_hw_specs()
259 if (gpu->identity.shader_core_count == 0) { in etnaviv_hw_specs()
260 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
261 gpu->identity.shader_core_count = 2; in etnaviv_hw_specs()
263 gpu->identity.shader_core_count = 1; in etnaviv_hw_specs()
266 if (gpu->identity.pixel_pipes == 0) in etnaviv_hw_specs()
267 gpu->identity.pixel_pipes = 1; in etnaviv_hw_specs()
270 if (gpu->identity.vertex_output_buffer_size) { in etnaviv_hw_specs()
271 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
272 1 << gpu->identity.vertex_output_buffer_size; in etnaviv_hw_specs()
273 } else if (gpu->identity.model == chipModel_GC400) { in etnaviv_hw_specs()
274 if (gpu->identity.revision < 0x4000) in etnaviv_hw_specs()
275 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
276 else if (gpu->identity.revision < 0x4200) in etnaviv_hw_specs()
277 gpu->identity.vertex_output_buffer_size = 256; in etnaviv_hw_specs()
279 gpu->identity.vertex_output_buffer_size = 128; in etnaviv_hw_specs()
281 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
284 switch (gpu->identity.instruction_count) { in etnaviv_hw_specs()
287 gpu->identity.model == chipModel_GC880) in etnaviv_hw_specs()
288 gpu->identity.instruction_count = 512; in etnaviv_hw_specs()
290 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
294 gpu->identity.instruction_count = 1024; in etnaviv_hw_specs()
298 gpu->identity.instruction_count = 2048; in etnaviv_hw_specs()
302 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
306 if (gpu->identity.num_constants == 0) in etnaviv_hw_specs()
307 gpu->identity.num_constants = 168; in etnaviv_hw_specs()
309 if (gpu->identity.varyings_count == 0) { in etnaviv_hw_specs()
310 if (gpu->identity.minor_features1 & chipMinorFeatures1_HALTI0) in etnaviv_hw_specs()
311 gpu->identity.varyings_count = 12; in etnaviv_hw_specs()
313 gpu->identity.varyings_count = 8; in etnaviv_hw_specs()
331 gpu->identity.varyings_count -= 1; in etnaviv_hw_specs()
342 gpu->identity.model = chipModel_GC500; in etnaviv_hw_identify()
343 gpu->identity.revision = etnaviv_field(chipIdentity, in etnaviv_hw_identify()
348 gpu->identity.model = gpu_read(gpu, VIVS_HI_CHIP_MODEL); in etnaviv_hw_identify()
349 gpu->identity.revision = gpu_read(gpu, VIVS_HI_CHIP_REV); in etnaviv_hw_identify()
350 gpu->identity.customer_id = gpu_read(gpu, VIVS_HI_CHIP_CUSTOMER_ID); in etnaviv_hw_identify()
357 gpu->identity.product_id = gpu_read(gpu, VIVS_HI_CHIP_PRODUCT_ID); in etnaviv_hw_identify()
358 gpu->identity.eco_id = gpu_read(gpu, VIVS_HI_CHIP_ECO_ID); in etnaviv_hw_identify()
367 if ((gpu->identity.model & 0xff00) == 0x0400 && in etnaviv_hw_identify()
368 gpu->identity.model != chipModel_GC420) { in etnaviv_hw_identify()
369 gpu->identity.model = gpu->identity.model & 0x0400; in etnaviv_hw_identify()
381 gpu->identity.revision = 0x1051; in etnaviv_hw_identify()
390 * core by its real identity. in etnaviv_hw_identify()
393 gpu->identity.model = chipModel_GC3000; in etnaviv_hw_identify()
394 gpu->identity.revision &= 0xffff; in etnaviv_hw_identify()
398 gpu->identity.eco_id = 1; in etnaviv_hw_identify()
401 gpu->identity.eco_id = 1; in etnaviv_hw_identify()
405 gpu->identity.model, gpu->identity.revision); in etnaviv_hw_identify()
415 gpu->identity.features = gpu_read(gpu, VIVS_HI_CHIP_FEATURE); in etnaviv_hw_identify()
418 if (gpu->identity.model == chipModel_GC700) in etnaviv_hw_identify()
419 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_hw_identify()
422 if ((gpu->identity.model == chipModel_GC500 && in etnaviv_hw_identify()
423 gpu->identity.revision <= 2) || in etnaviv_hw_identify()
424 gpu->identity.model == chipModel_GC300) in etnaviv_hw_identify()
425 gpu->identity.features |= chipFeatures_PIPE_2D; in etnaviv_hw_identify()
427 if ((gpu->identity.model == chipModel_GC500 && in etnaviv_hw_identify()
428 gpu->identity.revision < 2) || in etnaviv_hw_identify()
429 (gpu->identity.model == chipModel_GC300 && in etnaviv_hw_identify()
430 gpu->identity.revision < 0x2000)) { in etnaviv_hw_identify()
436 gpu->identity.minor_features0 = 0; in etnaviv_hw_identify()
437 gpu->identity.minor_features1 = 0; in etnaviv_hw_identify()
438 gpu->identity.minor_features2 = 0; in etnaviv_hw_identify()
439 gpu->identity.minor_features3 = 0; in etnaviv_hw_identify()
440 gpu->identity.minor_features4 = 0; in etnaviv_hw_identify()
441 gpu->identity.minor_features5 = 0; in etnaviv_hw_identify()
443 gpu->identity.minor_features0 = in etnaviv_hw_identify()
446 if (gpu->identity.minor_features0 & in etnaviv_hw_identify()
448 gpu->identity.minor_features1 = in etnaviv_hw_identify()
450 gpu->identity.minor_features2 = in etnaviv_hw_identify()
452 gpu->identity.minor_features3 = in etnaviv_hw_identify()
454 gpu->identity.minor_features4 = in etnaviv_hw_identify()
456 gpu->identity.minor_features5 = in etnaviv_hw_identify()
461 if (gpu->identity.model == chipModel_GC600 || in etnaviv_hw_identify()
462 gpu->identity.model == chipModel_GC300) in etnaviv_hw_identify()
484 if (gpu->identity.minor_features2 & in etnaviv_gpu_update_clock()
618 if (gpu->identity.revision == 0x4301 || in etnaviv_gpu_enable_mlcg()
619 gpu->identity.revision == 0x4302) in etnaviv_gpu_enable_mlcg()
627 if (gpu->identity.model >= chipModel_GC400 && in etnaviv_gpu_enable_mlcg()
628 gpu->identity.model != chipModel_GC420 && in etnaviv_gpu_enable_mlcg()
629 !(gpu->identity.minor_features3 & chipMinorFeatures3_BUG_FIXES12)) in etnaviv_gpu_enable_mlcg()
636 if (gpu->identity.revision < 0x5000 && in etnaviv_gpu_enable_mlcg()
637 gpu->identity.minor_features0 & chipMinorFeatures0_HZ && in etnaviv_gpu_enable_mlcg()
638 !(gpu->identity.minor_features1 & in etnaviv_gpu_enable_mlcg()
642 if (gpu->identity.revision < 0x5422) in etnaviv_gpu_enable_mlcg()
724 if ((gpu->identity.revision > 0x5420) && in etnaviv_gpu_setup_pulse_eater()
725 (gpu->identity.features & chipFeatures_PIPE_3D)) in etnaviv_gpu_setup_pulse_eater()
747 if (gpu->identity.revision == 0x5007) in etnaviv_gpu_hw_init()
804 if (gpu->identity.model == 0) { in etnaviv_gpu_init()
810 if (gpu->identity.nn_core_count > 0) in etnaviv_gpu_init()
815 if (gpu->identity.features & chipFeatures_PIPE_VG && in etnaviv_gpu_init()
816 gpu->identity.features & chipFeatures_FE20) { in etnaviv_gpu_init()
826 if ((gpu->identity.minor_features7 & chipMinorFeatures7_BIT_SECURITY) && in etnaviv_gpu_init()
827 (gpu->identity.minor_features10 & chipMinorFeatures10_SECURITY_AHB)) in etnaviv_gpu_init()
872 if (!(gpu->identity.features & chipFeatures_PIPE_3D) || in etnaviv_gpu_init()
873 (gpu->identity.minor_features0 & chipMinorFeatures0_MC20) || in etnaviv_gpu_init()
874 (gpu->identity.minor_features1 & chipMinorFeatures1_MMU_VERSION)) { in etnaviv_gpu_init()
882 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_gpu_init()
956 seq_printf(m, "\t model: 0x%x\n", gpu->identity.model); in etnaviv_gpu_debugfs()
957 seq_printf(m, "\t revision: 0x%x\n", gpu->identity.revision); in etnaviv_gpu_debugfs()
958 seq_printf(m, "\t product_id: 0x%x\n", gpu->identity.product_id); in etnaviv_gpu_debugfs()
959 seq_printf(m, "\t customer_id: 0x%x\n", gpu->identity.customer_id); in etnaviv_gpu_debugfs()
960 seq_printf(m, "\t eco_id: 0x%x\n", gpu->identity.eco_id); in etnaviv_gpu_debugfs()
964 gpu->identity.features); in etnaviv_gpu_debugfs()
966 gpu->identity.minor_features0); in etnaviv_gpu_debugfs()
968 gpu->identity.minor_features1); in etnaviv_gpu_debugfs()
970 gpu->identity.minor_features2); in etnaviv_gpu_debugfs()
972 gpu->identity.minor_features3); in etnaviv_gpu_debugfs()
974 gpu->identity.minor_features4); in etnaviv_gpu_debugfs()
976 gpu->identity.minor_features5); in etnaviv_gpu_debugfs()
978 gpu->identity.minor_features6); in etnaviv_gpu_debugfs()
980 gpu->identity.minor_features7); in etnaviv_gpu_debugfs()
982 gpu->identity.minor_features8); in etnaviv_gpu_debugfs()
984 gpu->identity.minor_features9); in etnaviv_gpu_debugfs()
986 gpu->identity.minor_features10); in etnaviv_gpu_debugfs()
988 gpu->identity.minor_features11); in etnaviv_gpu_debugfs()
992 gpu->identity.stream_count); in etnaviv_gpu_debugfs()
994 gpu->identity.register_max); in etnaviv_gpu_debugfs()
996 gpu->identity.thread_count); in etnaviv_gpu_debugfs()
998 gpu->identity.vertex_cache_size); in etnaviv_gpu_debugfs()
1000 gpu->identity.shader_core_count); in etnaviv_gpu_debugfs()
1002 gpu->identity.nn_core_count); in etnaviv_gpu_debugfs()
1004 gpu->identity.pixel_pipes); in etnaviv_gpu_debugfs()
1006 gpu->identity.vertex_output_buffer_size); in etnaviv_gpu_debugfs()
1008 gpu->identity.buffer_size); in etnaviv_gpu_debugfs()
1010 gpu->identity.instruction_count); in etnaviv_gpu_debugfs()
1012 gpu->identity.num_constants); in etnaviv_gpu_debugfs()
1014 gpu->identity.varyings_count); in etnaviv_gpu_debugfs()
1060 if (gpu->identity.features & chipFeatures_DEBUG_MODE) { in etnaviv_gpu_debugfs()