Lines Matching refs: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 ((gpu)->identity.model == chipModel_##mod && \
178 (gpu)->identity.revision == rev)
184 if (gpu->identity.minor_features0 & in etnaviv_hw_specs()
194 gpu->identity.stream_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
196 gpu->identity.register_max = etnaviv_field(specs[0], in etnaviv_hw_specs()
198 gpu->identity.thread_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
200 gpu->identity.vertex_cache_size = etnaviv_field(specs[0], in etnaviv_hw_specs()
202 gpu->identity.shader_core_count = etnaviv_field(specs[0], in etnaviv_hw_specs()
204 gpu->identity.pixel_pipes = etnaviv_field(specs[0], in etnaviv_hw_specs()
206 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
210 gpu->identity.buffer_size = etnaviv_field(specs[1], in etnaviv_hw_specs()
212 gpu->identity.instruction_count = etnaviv_field(specs[1], in etnaviv_hw_specs()
214 gpu->identity.num_constants = etnaviv_field(specs[1], in etnaviv_hw_specs()
217 gpu->identity.varyings_count = etnaviv_field(specs[2], in etnaviv_hw_specs()
224 gpu->identity.stream_count = streams; in etnaviv_hw_specs()
228 if (gpu->identity.stream_count == 0) { in etnaviv_hw_specs()
229 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
230 gpu->identity.stream_count = 4; in etnaviv_hw_specs()
232 gpu->identity.stream_count = 1; in etnaviv_hw_specs()
236 if (gpu->identity.register_max) in etnaviv_hw_specs()
237 gpu->identity.register_max = 1 << gpu->identity.register_max; in etnaviv_hw_specs()
238 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
239 gpu->identity.register_max = 32; in etnaviv_hw_specs()
241 gpu->identity.register_max = 64; in etnaviv_hw_specs()
244 if (gpu->identity.thread_count) in etnaviv_hw_specs()
245 gpu->identity.thread_count = 1 << gpu->identity.thread_count; in etnaviv_hw_specs()
246 else if (gpu->identity.model == chipModel_GC400) in etnaviv_hw_specs()
247 gpu->identity.thread_count = 64; in etnaviv_hw_specs()
248 else if (gpu->identity.model == chipModel_GC500 || in etnaviv_hw_specs()
249 gpu->identity.model == chipModel_GC530) in etnaviv_hw_specs()
250 gpu->identity.thread_count = 128; in etnaviv_hw_specs()
252 gpu->identity.thread_count = 256; in etnaviv_hw_specs()
254 if (gpu->identity.vertex_cache_size == 0) in etnaviv_hw_specs()
255 gpu->identity.vertex_cache_size = 8; in etnaviv_hw_specs()
257 if (gpu->identity.shader_core_count == 0) { in etnaviv_hw_specs()
258 if (gpu->identity.model >= 0x1000) in etnaviv_hw_specs()
259 gpu->identity.shader_core_count = 2; in etnaviv_hw_specs()
261 gpu->identity.shader_core_count = 1; in etnaviv_hw_specs()
264 if (gpu->identity.pixel_pipes == 0) in etnaviv_hw_specs()
265 gpu->identity.pixel_pipes = 1; in etnaviv_hw_specs()
268 if (gpu->identity.vertex_output_buffer_size) { in etnaviv_hw_specs()
269 gpu->identity.vertex_output_buffer_size = in etnaviv_hw_specs()
270 1 << gpu->identity.vertex_output_buffer_size; in etnaviv_hw_specs()
271 } else if (gpu->identity.model == chipModel_GC400) { in etnaviv_hw_specs()
272 if (gpu->identity.revision < 0x4000) in etnaviv_hw_specs()
273 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
274 else if (gpu->identity.revision < 0x4200) in etnaviv_hw_specs()
275 gpu->identity.vertex_output_buffer_size = 256; in etnaviv_hw_specs()
277 gpu->identity.vertex_output_buffer_size = 128; in etnaviv_hw_specs()
279 gpu->identity.vertex_output_buffer_size = 512; in etnaviv_hw_specs()
282 switch (gpu->identity.instruction_count) { in etnaviv_hw_specs()
285 gpu->identity.model == chipModel_GC880) in etnaviv_hw_specs()
286 gpu->identity.instruction_count = 512; in etnaviv_hw_specs()
288 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
292 gpu->identity.instruction_count = 1024; in etnaviv_hw_specs()
296 gpu->identity.instruction_count = 2048; in etnaviv_hw_specs()
300 gpu->identity.instruction_count = 256; in etnaviv_hw_specs()
304 if (gpu->identity.num_constants == 0) in etnaviv_hw_specs()
305 gpu->identity.num_constants = 168; in etnaviv_hw_specs()
307 if (gpu->identity.varyings_count == 0) { in etnaviv_hw_specs()
308 if (gpu->identity.minor_features1 & chipMinorFeatures1_HALTI0) in etnaviv_hw_specs()
309 gpu->identity.varyings_count = 12; in etnaviv_hw_specs()
311 gpu->identity.varyings_count = 8; in etnaviv_hw_specs()
329 gpu->identity.varyings_count -= 1; in etnaviv_hw_specs()
340 gpu->identity.model = chipModel_GC500; in etnaviv_hw_identify()
341 gpu->identity.revision = etnaviv_field(chipIdentity, in etnaviv_hw_identify()
346 gpu->identity.model = gpu_read(gpu, VIVS_HI_CHIP_MODEL); in etnaviv_hw_identify()
347 gpu->identity.revision = gpu_read(gpu, VIVS_HI_CHIP_REV); in etnaviv_hw_identify()
348 gpu->identity.customer_id = gpu_read(gpu, VIVS_HI_CHIP_CUSTOMER_ID); in etnaviv_hw_identify()
355 gpu->identity.product_id = gpu_read(gpu, VIVS_HI_CHIP_PRODUCT_ID); in etnaviv_hw_identify()
356 gpu->identity.eco_id = gpu_read(gpu, VIVS_HI_CHIP_ECO_ID); in etnaviv_hw_identify()
365 if ((gpu->identity.model & 0xff00) == 0x0400 && in etnaviv_hw_identify()
366 gpu->identity.model != chipModel_GC420) { in etnaviv_hw_identify()
367 gpu->identity.model = gpu->identity.model & 0x0400; in etnaviv_hw_identify()
379 gpu->identity.revision = 0x1051; in etnaviv_hw_identify()
391 gpu->identity.model = chipModel_GC3000; in etnaviv_hw_identify()
392 gpu->identity.revision &= 0xffff; in etnaviv_hw_identify()
396 gpu->identity.eco_id = 1; in etnaviv_hw_identify()
399 gpu->identity.eco_id = 1; in etnaviv_hw_identify()
403 gpu->identity.model, gpu->identity.revision); in etnaviv_hw_identify()
413 gpu->identity.features = gpu_read(gpu, VIVS_HI_CHIP_FEATURE); in etnaviv_hw_identify()
416 if (gpu->identity.model == chipModel_GC700) in etnaviv_hw_identify()
417 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_hw_identify()
420 if ((gpu->identity.model == chipModel_GC500 && in etnaviv_hw_identify()
421 gpu->identity.revision <= 2) || in etnaviv_hw_identify()
422 gpu->identity.model == chipModel_GC300) in etnaviv_hw_identify()
423 gpu->identity.features |= chipFeatures_PIPE_2D; in etnaviv_hw_identify()
425 if ((gpu->identity.model == chipModel_GC500 && in etnaviv_hw_identify()
426 gpu->identity.revision < 2) || in etnaviv_hw_identify()
427 (gpu->identity.model == chipModel_GC300 && in etnaviv_hw_identify()
428 gpu->identity.revision < 0x2000)) { in etnaviv_hw_identify()
434 gpu->identity.minor_features0 = 0; in etnaviv_hw_identify()
435 gpu->identity.minor_features1 = 0; in etnaviv_hw_identify()
436 gpu->identity.minor_features2 = 0; in etnaviv_hw_identify()
437 gpu->identity.minor_features3 = 0; in etnaviv_hw_identify()
438 gpu->identity.minor_features4 = 0; in etnaviv_hw_identify()
439 gpu->identity.minor_features5 = 0; in etnaviv_hw_identify()
441 gpu->identity.minor_features0 = in etnaviv_hw_identify()
444 if (gpu->identity.minor_features0 & in etnaviv_hw_identify()
446 gpu->identity.minor_features1 = in etnaviv_hw_identify()
448 gpu->identity.minor_features2 = in etnaviv_hw_identify()
450 gpu->identity.minor_features3 = in etnaviv_hw_identify()
452 gpu->identity.minor_features4 = in etnaviv_hw_identify()
454 gpu->identity.minor_features5 = in etnaviv_hw_identify()
459 if (gpu->identity.model == chipModel_GC600 || in etnaviv_hw_identify()
460 gpu->identity.model == chipModel_GC300) in etnaviv_hw_identify()
482 if (gpu->identity.minor_features2 & in etnaviv_gpu_update_clock()
605 if (gpu->identity.revision == 0x4301 || in etnaviv_gpu_enable_mlcg()
606 gpu->identity.revision == 0x4302) in etnaviv_gpu_enable_mlcg()
614 if (gpu->identity.model >= chipModel_GC400 && in etnaviv_gpu_enable_mlcg()
615 gpu->identity.model != chipModel_GC420 && in etnaviv_gpu_enable_mlcg()
616 !(gpu->identity.minor_features3 & chipMinorFeatures3_BUG_FIXES12)) in etnaviv_gpu_enable_mlcg()
623 if (gpu->identity.revision < 0x5000 && in etnaviv_gpu_enable_mlcg()
624 gpu->identity.minor_features0 & chipMinorFeatures0_HZ && in etnaviv_gpu_enable_mlcg()
625 !(gpu->identity.minor_features1 & in etnaviv_gpu_enable_mlcg()
629 if (gpu->identity.revision < 0x5422) in etnaviv_gpu_enable_mlcg()
705 if ((gpu->identity.revision > 0x5420) && in etnaviv_gpu_setup_pulse_eater()
706 (gpu->identity.features & chipFeatures_PIPE_3D)) in etnaviv_gpu_setup_pulse_eater()
728 if (gpu->identity.revision == 0x5007) in etnaviv_gpu_hw_init()
785 if (gpu->identity.model == 0) { in etnaviv_gpu_init()
791 if (gpu->identity.nn_core_count > 0) in etnaviv_gpu_init()
796 if (gpu->identity.features & chipFeatures_PIPE_VG && in etnaviv_gpu_init()
797 gpu->identity.features & chipFeatures_FE20) { in etnaviv_gpu_init()
807 if ((gpu->identity.minor_features7 & chipMinorFeatures7_BIT_SECURITY) && in etnaviv_gpu_init()
808 (gpu->identity.minor_features10 & chipMinorFeatures10_SECURITY_AHB)) in etnaviv_gpu_init()
851 if (!(gpu->identity.features & chipFeatures_PIPE_3D) || in etnaviv_gpu_init()
852 (gpu->identity.minor_features0 & chipMinorFeatures0_MC20)) { in etnaviv_gpu_init()
860 gpu->identity.features &= ~chipFeatures_FAST_CLEAR; in etnaviv_gpu_init()
934 seq_printf(m, "\t model: 0x%x\n", gpu->identity.model); in etnaviv_gpu_debugfs()
935 seq_printf(m, "\t revision: 0x%x\n", gpu->identity.revision); in etnaviv_gpu_debugfs()
936 seq_printf(m, "\t product_id: 0x%x\n", gpu->identity.product_id); in etnaviv_gpu_debugfs()
937 seq_printf(m, "\t customer_id: 0x%x\n", gpu->identity.customer_id); in etnaviv_gpu_debugfs()
938 seq_printf(m, "\t eco_id: 0x%x\n", gpu->identity.eco_id); in etnaviv_gpu_debugfs()
942 gpu->identity.features); in etnaviv_gpu_debugfs()
944 gpu->identity.minor_features0); in etnaviv_gpu_debugfs()
946 gpu->identity.minor_features1); in etnaviv_gpu_debugfs()
948 gpu->identity.minor_features2); in etnaviv_gpu_debugfs()
950 gpu->identity.minor_features3); in etnaviv_gpu_debugfs()
952 gpu->identity.minor_features4); in etnaviv_gpu_debugfs()
954 gpu->identity.minor_features5); in etnaviv_gpu_debugfs()
956 gpu->identity.minor_features6); in etnaviv_gpu_debugfs()
958 gpu->identity.minor_features7); in etnaviv_gpu_debugfs()
960 gpu->identity.minor_features8); in etnaviv_gpu_debugfs()
962 gpu->identity.minor_features9); in etnaviv_gpu_debugfs()
964 gpu->identity.minor_features10); in etnaviv_gpu_debugfs()
966 gpu->identity.minor_features11); in etnaviv_gpu_debugfs()
970 gpu->identity.stream_count); in etnaviv_gpu_debugfs()
972 gpu->identity.register_max); in etnaviv_gpu_debugfs()
974 gpu->identity.thread_count); in etnaviv_gpu_debugfs()
976 gpu->identity.vertex_cache_size); in etnaviv_gpu_debugfs()
978 gpu->identity.shader_core_count); in etnaviv_gpu_debugfs()
980 gpu->identity.nn_core_count); in etnaviv_gpu_debugfs()
982 gpu->identity.pixel_pipes); in etnaviv_gpu_debugfs()
984 gpu->identity.vertex_output_buffer_size); in etnaviv_gpu_debugfs()
986 gpu->identity.buffer_size); in etnaviv_gpu_debugfs()
988 gpu->identity.instruction_count); in etnaviv_gpu_debugfs()
990 gpu->identity.num_constants); in etnaviv_gpu_debugfs()
992 gpu->identity.varyings_count); in etnaviv_gpu_debugfs()
1038 if (gpu->identity.features & chipFeatures_DEBUG_MODE) { in etnaviv_gpu_debugfs()