drm/etnaviv: show number of NN cores in GPU debugfs info
authorLucas Stach <l.stach@pengutronix.de>
Wed, 1 Feb 2023 15:27:47 +0000 (16:27 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 7 Feb 2023 19:49:55 +0000 (20:49 +0100)
For NPUs the number of NN cores is a interesting property, which is useful
to show in the debugfs information.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c

index 27c1058..de8c989 100644 (file)
@@ -961,6 +961,8 @@ int etnaviv_gpu_debugfs(struct etnaviv_gpu *gpu, struct seq_file *m)
                        gpu->identity.vertex_cache_size);
        seq_printf(m, "\t shader_core_count: %d\n",
                        gpu->identity.shader_core_count);
+       seq_printf(m, "\t nn_core_count: %d\n",
+                       gpu->identity.nn_core_count);
        seq_printf(m, "\t pixel_pipes: %d\n",
                        gpu->identity.pixel_pipes);
        seq_printf(m, "\t vertex_output_buffer_size: %d\n",