• Home
  • Raw
  • Download

Lines Matching full:features

137 	    pfdev->features.revision >= 0x2000)  in panfrost_gpu_init_quirks()
140 pfdev->features.coherency_features == COHERENCY_ACE) in panfrost_gpu_init_quirks()
161 u64 features; member
173 .features = hw_features_##_name, \
231 pfdev->features.l2_features = gpu_read(pfdev, GPU_L2_FEATURES); in panfrost_gpu_init_features()
232 pfdev->features.core_features = gpu_read(pfdev, GPU_CORE_FEATURES); in panfrost_gpu_init_features()
233 pfdev->features.tiler_features = gpu_read(pfdev, GPU_TILER_FEATURES); in panfrost_gpu_init_features()
234 pfdev->features.mem_features = gpu_read(pfdev, GPU_MEM_FEATURES); in panfrost_gpu_init_features()
235 pfdev->features.mmu_features = gpu_read(pfdev, GPU_MMU_FEATURES); in panfrost_gpu_init_features()
236 pfdev->features.thread_features = gpu_read(pfdev, GPU_THREAD_FEATURES); in panfrost_gpu_init_features()
237 pfdev->features.max_threads = gpu_read(pfdev, GPU_THREAD_MAX_THREADS); in panfrost_gpu_init_features()
238 pfdev->features.thread_max_workgroup_sz = gpu_read(pfdev, GPU_THREAD_MAX_WORKGROUP_SIZE); in panfrost_gpu_init_features()
239 pfdev->features.thread_max_barrier_sz = gpu_read(pfdev, GPU_THREAD_MAX_BARRIER_SIZE); in panfrost_gpu_init_features()
240 pfdev->features.coherency_features = gpu_read(pfdev, GPU_COHERENCY_FEATURES); in panfrost_gpu_init_features()
241 pfdev->features.afbc_features = gpu_read(pfdev, GPU_AFBC_FEATURES); in panfrost_gpu_init_features()
243 pfdev->features.texture_features[i] = gpu_read(pfdev, GPU_TEXTURE_FEATURES(i)); in panfrost_gpu_init_features()
245 pfdev->features.as_present = gpu_read(pfdev, GPU_AS_PRESENT); in panfrost_gpu_init_features()
247 pfdev->features.js_present = gpu_read(pfdev, GPU_JS_PRESENT); in panfrost_gpu_init_features()
248 num_js = hweight32(pfdev->features.js_present); in panfrost_gpu_init_features()
250 pfdev->features.js_features[i] = gpu_read(pfdev, GPU_JS_FEATURES(i)); in panfrost_gpu_init_features()
252 pfdev->features.shader_present = gpu_read(pfdev, GPU_SHADER_PRESENT_LO); in panfrost_gpu_init_features()
253 pfdev->features.shader_present |= (u64)gpu_read(pfdev, GPU_SHADER_PRESENT_HI) << 32; in panfrost_gpu_init_features()
255 pfdev->features.tiler_present = gpu_read(pfdev, GPU_TILER_PRESENT_LO); in panfrost_gpu_init_features()
256 pfdev->features.tiler_present |= (u64)gpu_read(pfdev, GPU_TILER_PRESENT_HI) << 32; in panfrost_gpu_init_features()
258 pfdev->features.l2_present = gpu_read(pfdev, GPU_L2_PRESENT_LO); in panfrost_gpu_init_features()
259 pfdev->features.l2_present |= (u64)gpu_read(pfdev, GPU_L2_PRESENT_HI) << 32; in panfrost_gpu_init_features()
260 pfdev->features.nr_core_groups = hweight64(pfdev->features.l2_present); in panfrost_gpu_init_features()
262 pfdev->features.stack_present = gpu_read(pfdev, GPU_STACK_PRESENT_LO); in panfrost_gpu_init_features()
263 pfdev->features.stack_present |= (u64)gpu_read(pfdev, GPU_STACK_PRESENT_HI) << 32; in panfrost_gpu_init_features()
265 pfdev->features.thread_tls_alloc = gpu_read(pfdev, GPU_THREAD_TLS_ALLOC); in panfrost_gpu_init_features()
268 pfdev->features.revision = gpu_id & 0xffff; in panfrost_gpu_init_features()
269 pfdev->features.id = gpu_id >> 16; in panfrost_gpu_init_features()
274 if (pfdev->features.id == 0x6956) in panfrost_gpu_init_features()
275 pfdev->features.id = 0x0600; in panfrost_gpu_init_features()
277 major = (pfdev->features.revision >> 12) & 0xf; in panfrost_gpu_init_features()
278 minor = (pfdev->features.revision >> 4) & 0xff; in panfrost_gpu_init_features()
279 status = pfdev->features.revision & 0xf; in panfrost_gpu_init_features()
280 rev = pfdev->features.revision; in panfrost_gpu_init_features()
282 gpu_id = pfdev->features.id; in panfrost_gpu_init_features()
291 hw_feat = model->features; in panfrost_gpu_init_features()
307 bitmap_from_u64(pfdev->features.hw_features, hw_feat); in panfrost_gpu_init_features()
308 bitmap_from_u64(pfdev->features.hw_issues, hw_issues); in panfrost_gpu_init_features()
312 dev_info(pfdev->dev, "features: %64pb, issues: %64pb", in panfrost_gpu_init_features()
313 pfdev->features.hw_features, in panfrost_gpu_init_features()
314 pfdev->features.hw_issues); in panfrost_gpu_init_features()
316 …dev_info(pfdev->dev, "Features: L2:0x%08x Shader:0x%08x Tiler:0x%08x Mem:0x%0x MMU:0x%08x AS:0x%x … in panfrost_gpu_init_features()
317 pfdev->features.l2_features, in panfrost_gpu_init_features()
318 pfdev->features.core_features, in panfrost_gpu_init_features()
319 pfdev->features.tiler_features, in panfrost_gpu_init_features()
320 pfdev->features.mem_features, in panfrost_gpu_init_features()
321 pfdev->features.mmu_features, in panfrost_gpu_init_features()
322 pfdev->features.as_present, in panfrost_gpu_init_features()
323 pfdev->features.js_present); in panfrost_gpu_init_features()
326 pfdev->features.shader_present, pfdev->features.l2_present); in panfrost_gpu_init_features()
333 if (pfdev->features.l2_present == 1) in panfrost_get_core_mask()
343 core_mask = ~(pfdev->features.l2_present - 1) & in panfrost_get_core_mask()
344 (pfdev->features.l2_present - 2); in panfrost_get_core_mask()
347 hweight64(pfdev->features.shader_present)); in panfrost_get_core_mask()
361 gpu_write(pfdev, L2_PWRON_LO, pfdev->features.l2_present & core_mask); in panfrost_gpu_power_on()
363 val, val == (pfdev->features.l2_present & core_mask), in panfrost_gpu_power_on()
369 pfdev->features.shader_present & core_mask); in panfrost_gpu_power_on()
371 val, val == (pfdev->features.shader_present & core_mask), in panfrost_gpu_power_on()
376 gpu_write(pfdev, TILER_PWRON_LO, pfdev->features.tiler_present); in panfrost_gpu_power_on()
378 val, val == pfdev->features.tiler_present, 100, 1000); in panfrost_gpu_power_on()
388 gpu_write(pfdev, SHADER_PWROFF_LO, pfdev->features.shader_present); in panfrost_gpu_power_off()
394 gpu_write(pfdev, TILER_PWROFF_LO, pfdev->features.tiler_present); in panfrost_gpu_power_off()
400 gpu_write(pfdev, L2_PWROFF_LO, pfdev->features.l2_present); in panfrost_gpu_power_off()
418 DMA_BIT_MASK(FIELD_GET(0xff00, pfdev->features.mmu_features))); in panfrost_gpu_init()